Skip to content

Commit fbccfce

Browse files
Improve heading 3 and heading 4 styles for better visual hierarchy
- Add proper sizing and font weights to h3-h6 headings - H3: text-xl (20px) + font-semibold for clear section breaks - H4: text-lg (18px) + font-medium for subsections - H5: text-base (16px) + font-medium for minor headings - H6: text-sm (14px) + font-medium for smallest headings - Consolidate duplicate h1 rules into single declaration - Maintain existing h1 and h2 styling that works well Fixes issue where h3 and h4 headings didn't look like proper headings on the site.
1 parent 6dc31e7 commit fbccfce

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

assets/css/index.css

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,30 @@ section.prose {
2323
@apply font-geist
2424
}
2525

26-
.prose h1,
27-
.prose h3,
28-
.prose h4,
29-
.prose h5,
30-
.prose h6 {
31-
@apply font-normal;
26+
.prose h1 {
27+
@apply text-4xl font-normal break-words;
3228
}
3329

3430
.prose h2 {
3531
@apply text-lg font-medium pb-3 border-b border-b-redis-pen-700 border-opacity-50;
3632
}
3733

34+
.prose h3 {
35+
@apply text-xl font-semibold;
36+
}
37+
38+
.prose h4 {
39+
@apply text-lg font-medium;
40+
}
41+
42+
.prose h5 {
43+
@apply text-base font-medium;
44+
}
45+
46+
.prose h6 {
47+
@apply text-sm font-medium;
48+
}
49+
3850
.prose p, .prose ol, .prose ul {
3951
@apply text-base;
4052
}
@@ -47,10 +59,6 @@ section.prose {
4759
@apply bg-none font-monogeist;
4860
}
4961

50-
.prose h1 {
51-
@apply text-4xl break-words;
52-
}
53-
5462
.prose h1[id],
5563
.prose h2[id],
5664
.prose h3[id],

0 commit comments

Comments
 (0)