Skip to content

Commit 71d5ab9

Browse files
committed
Make headings a bit smaller
1 parent 41d3c91 commit 71d5ab9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/headings.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
:root {
2-
--sl-text-h4: var(--sl-text-base);
3-
--sl-text-h5: var(--sl-text-base);
2+
/* Reduce heading sizes from Starlight defaults */
3+
--sl-text-h1: 2.25rem; /* 32px - for main titles */
4+
--sl-text-h2: 1.5rem; /* 24px - for major sections */
5+
--sl-text-h3: 1.25rem; /* 20px - for subsections */
6+
--sl-text-h4: 1.125rem; /* 18px - for smaller sections */
7+
--sl-text-h5: 1rem; /* 16px - same as base text */
8+
--sl-text-h6: 0.875rem; /* 14px - smallest heading */
49
}

0 commit comments

Comments
 (0)