Skip to content

Commit 954adc3

Browse files
committed
feat(design): add typography utilities (typography.css)
Change-Id: Ifc25f727b3c5030d85a093da93a33fac546cb23e
1 parent 7def3be commit 954adc3

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

src/styles/typography.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
Typography utilities. Apply by class on custom-built pages.
3+
MDX-rendered headings inherit the same properties via #main-content
4+
selectors in index.css (kept in sync — see DESIGN.md).
5+
*/
6+
7+
.heading-hero {
8+
font-size: clamp(2.5rem, 4.5vw, 3rem);
9+
font-weight: 500;
10+
line-height: 1.2;
11+
letter-spacing: -0.025em;
12+
text-wrap: balance;
13+
}
14+
15+
.heading-page {
16+
font-size: 2rem;
17+
font-weight: 500;
18+
line-height: 1.2;
19+
letter-spacing: -0.025em;
20+
text-wrap: balance;
21+
}
22+
23+
.heading-section {
24+
font-size: 1.5rem;
25+
font-weight: 500;
26+
line-height: 1.3;
27+
letter-spacing: -0.025em;
28+
text-wrap: balance;
29+
}
30+
31+
.heading-subsection {
32+
font-size: 1.25rem;
33+
font-weight: 500;
34+
line-height: 1.3;
35+
letter-spacing: -0.01em;
36+
}
37+
38+
.heading-detail {
39+
font-size: 1.125rem;
40+
font-weight: 500;
41+
line-height: 1.4;
42+
}
43+
44+
.heading-minor {
45+
font-size: 1rem;
46+
font-weight: 500;
47+
line-height: 1.4;
48+
}
49+
50+
.text-subtitle {
51+
font-size: 1.125rem;
52+
font-weight: 400;
53+
line-height: 1.5;
54+
text-wrap: balance;
55+
}
56+
57+
.text-eyebrow {
58+
font-size: 0.75rem;
59+
font-weight: 600;
60+
letter-spacing: 0.1em;
61+
text-transform: uppercase;
62+
}

0 commit comments

Comments
 (0)