Skip to content

Commit 575f4f4

Browse files
committed
chore(): Better h1 size
1 parent 927853c commit 575f4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus-theme/src/css/components/_markdown.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ html[data-theme='dark'] {
1818
--ifm-h2-vertical-rhythm-top: 2.75;
1919
--ifm-h3-vertical-rhythm-top: 2.25;
2020

21-
--ifm-h1-font-size: 3.5rem;
2221
--ifm-h2-font-size: 2rem;
2322
--ifm-h3-font-size: 1.5rem;
2423
--ifm-h4-font-size: 1.25rem;
@@ -65,6 +64,7 @@ html[data-theme='dark'] {
6564

6665
// have to override style coming from .h1Heading_node_modules-\@docusaurus-theme-classic-lib-next-theme-Heading-styles-module
6766
header > h1 {
67+
--ifm-h1-font-size: clamp(2.5rem, 8vw, 3.5rem);
6868
font-size: var(--ifm-h1-font-size);
6969
}
7070

0 commit comments

Comments
 (0)