Skip to content

Commit 082ad3c

Browse files
authored
fix: shrink font size when georgia is used (#680)
* shrink font size when georgia is used * use line-height: 1.5 across the board * shave a pixel off sans font size
1 parent 952edbf commit 082ad3c

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

packages/site-kit/src/lib/styles/tokens.css

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
--sk-font-size-h1: 3.6rem;
3333
--sk-font-size-h2: 3rem;
3434
--sk-font-size-h3: 2.4rem;
35-
--sk-font-size-body: 2rem;
36-
--sk-font-size-body-small: 1.8rem;
35+
--sk-font-size-body: 1.8rem;
36+
--sk-font-size-body-small: 1.6rem;
3737
--sk-font-size-ui-small: 1.3rem;
3838
--sk-font-size-ui-medium: 1.6rem;
3939
--sk-font-size-ui-large: 3rem;
4040
--sk-font-size-mono: 1.4rem;
4141

42-
--sk-line-height-body: 1.7;
42+
--sk-line-height-body: 1.5;
4343

4444
--sk-font-h1: 500 var(--sk-font-size-h1) / 1.2 var(--sk-font-family-heading);
4545
--sk-font-h2: 500 var(--sk-font-size-h2) / 1.2 var(--sk-font-family-heading);
@@ -125,7 +125,16 @@
125125
--sk-font-family-body: 'EB Garamond', Georgia, serif;
126126
--sk-font-size-body: 2.2rem;
127127
--sk-font-size-body-small: 2rem;
128-
--sk-line-height-body: 1.5;
128+
}
129+
130+
&.font-boring {
131+
--sk-font-family-body: 'Atkinson Hyperlegible', sans-serif;
132+
--sk-font-size-body: 1.9rem;
133+
--sk-font-size-body-small: 1.7rem;
134+
135+
p code {
136+
font-size: 0.75em;
137+
}
129138
}
130139

131140
&.dark {
@@ -176,16 +185,6 @@
176185
--sk-raised-hover-color: var(--sk-back-6) var(--sk-back-3) var(--sk-back-3) var(--sk-back-6);
177186
--sk-raised-active-color: var(--sk-back-3) var(--sk-back-6) var(--sk-back-6) var(--sk-back-3);
178187
}
179-
180-
&.font-boring {
181-
--sk-font-family-body: 'Atkinson Hyperlegible', sans-serif;
182-
--sk-font-size-body: 2rem;
183-
--sk-font-size-body-small: 1.8rem;
184-
185-
p code {
186-
font-size: 0.75em;
187-
}
188-
}
189188
}
190189

191190
@media screen and (min-width: 480px) {

0 commit comments

Comments
 (0)