Skip to content

Commit bc33589

Browse files
committed
Add typography styles
1 parent a263043 commit bc33589

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

src/app/conf/2025/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { GraphQLConf, HostedByGraphQLFoundation } from "@/icons"
66
import NextLink from "next/link"
77
import { NewFontsStyleTag } from "../../fonts"
88
import "../../colors.css"
9+
import "../../typography.css"
910

1011
export const metadata = {
1112
description:

src/app/typography.css

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
.typography-d1,
2+
.typography-h1,
3+
.typography-h2,
4+
.typography-h3 {
5+
line-height: 1.2;
6+
}
7+
8+
.typography-body-lg,
9+
.typography-body-md,
10+
.typography-body-sm,
11+
.typography-body-xs {
12+
line-height: 1.5;
13+
}
14+
15+
.typography-d1 {
16+
font-size: 96px;
17+
}
18+
@media (min-width: 768px) {
19+
.typography-d1 {
20+
font-size: 48px;
21+
}
22+
}
23+
24+
.typography-h1 {
25+
font-size: 40px;
26+
}
27+
@media (min-width: 768px) {
28+
.typography-h1 {
29+
font-size: 72px;
30+
}
31+
}
32+
33+
.typography-h2 {
34+
font-size: 32px;
35+
}
36+
@media (min-width: 768px) {
37+
.typography-h2 {
38+
font-size: 48px;
39+
}
40+
}
41+
42+
.typography-h3 {
43+
font-size: 24px;
44+
}
45+
@media (min-width: 768px) {
46+
.typography-h3 {
47+
font-size: 32px;
48+
}
49+
}
50+
51+
.typography-body-lg {
52+
font-size: 16px;
53+
}
54+
@media (min-width: 768px) {
55+
.typography-body-lg {
56+
font-size: 20px;
57+
}
58+
}
59+
60+
.typography-body-md {
61+
font-size: 14px;
62+
}
63+
@media (min-width: 768px) {
64+
.typography-body-md {
65+
font-size: 16px;
66+
}
67+
}
68+
69+
.typography-body-sm {
70+
font-size: 12px;
71+
}
72+
@media (min-width: 768px) {
73+
.typography-body-sm {
74+
font-size: 14px;
75+
}
76+
}
77+
78+
.typography-body-xs {
79+
font-size: 10px;
80+
}
81+
@media (min-width: 768px) {
82+
.typography-body-xs {
83+
font-size: 12px;
84+
}
85+
}
86+
87+
.typography-button,
88+
.typography-tagline {
89+
font-size: 16px;
90+
line-height: 1;
91+
}
92+
93+
.typography-tagline {
94+
text-transform: uppercase;
95+
}
96+
97+
.typography-menu {
98+
font-family: var(--font-mono);
99+
font-size: 14px;
100+
line-height: 1;
101+
text-transform: uppercase;
102+
}

0 commit comments

Comments
 (0)