Skip to content

Commit 2912647

Browse files
authored
Merge pull request #269 from codecoolture/typography
Slightly adjust the font scale
2 parents 7456941 + 04ea16d commit 2912647

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

components/Blockquote/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.Blockquote {
2-
font-size: 1.2em;
2+
font-size: var(--fs-l);
33
margin-bottom: 1em;
44
padding: 0 0.5em;
55

components/Code/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.Code {
2-
font-size: 85%;
32
padding: 0.15em 0.25em;
43

54
background-color: var(--c-yellow-2);

components/Heading/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
}
88

99
.Heading--Jumbo {
10-
font-size: var(--fs-xl);
10+
font-size: var(--fs-2xl);
1111
margin-bottom: 0.5em;
1212
}
1313

1414
.Heading--Xl {
15-
font-size: var(--fs-l);
15+
font-size: var(--fs-xl);
1616
margin-bottom: 0.5em;
1717
}
1818

1919
.Heading--L {
20-
font-size: calc(var(--fs-m) * 1.25);
20+
font-size: var(--fs-l);
2121
margin-bottom: 0.5em;
2222
}
2323

styles/index.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
--ff-sans-serif: var(--font-ibm-plex-sans);
2929
--ff-monospace: var(--font-ibm-plex-mono);
3030

31-
--fs-xl: 2.5rem;
32-
--fs-l: 1.5rem;
33-
--fs-m: 18px;
34-
--fs-s: 0.8rem;
35-
--fs-xs: 0.6rem;
36-
--fs-xxs: 0.5rem;
31+
/* Typographic scale based on Perfect Fourth ratio (1.333) */
32+
--fs-2xl: 2.369rem;
33+
--fs-xl: 1.777rem;
34+
--fs-l: 1.333rem;
35+
--fs-m: 1rem;
36+
--fs-s: 0.75rem;
37+
--fs-xs: 0.563rem;
3738

3839
--c-white: #fff;
3940
}

0 commit comments

Comments
 (0)