Skip to content

Commit 49dd401

Browse files
feat(ui): Improve typography scale and line heights
- Optimize font sizes for better visual hierarchy - Simplify line height calculations for better readability - Update heading font scale to be more consistent - Improve body font line height ratios
1 parent 1755bfa commit 49dd401

File tree

2 files changed

+63
-74
lines changed

2 files changed

+63
-74
lines changed

packages/app/features/sendpot/JackpotCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ export const JackpotCard = () => {
147147
fontSize={64}
148148
$gtSm={{ fontSize: 80 }}
149149
$gtMd={{ fontSize: 96 }}
150-
lineHeight={'$15'}
151150
fontWeight={'600'}
152151
color={'$color12'}
153152
zIndex={1}

packages/ui/src/config/fonts.ts

Lines changed: 63 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,30 @@ export const headingFont = createFont({
1313
5: 16,
1414
6: 18,
1515
7: 20,
16-
8: 23,
17-
9: 30,
16+
8: 24,
17+
9: 32,
1818
10: 40,
19-
11: 55,
20-
12: 62,
21-
13: 72,
22-
14: 92,
23-
15: 114,
24-
16: 134,
19+
11: 48,
20+
12: 64,
21+
13: 96,
22+
14: 114,
2523
},
2624
lineHeight: {
27-
1: 11 + 10,
28-
2: 12 + 10,
29-
3: 13 + 10,
30-
4: 14 + 10,
31-
true: 14 + 10,
32-
5: 16 + 10,
33-
6: 18 + 10,
34-
7: 20 + 10,
35-
8: 23 + 10,
36-
9: 30 + 10,
37-
10: 40 + 10,
38-
11: 46 + 10,
39-
12: 55 + 10,
40-
13: 62 + 10,
41-
14: 72 + 10,
42-
15: 92 + 10,
43-
16: 114 + 10,
25+
1: 16,
26+
2: 16,
27+
3: 16,
28+
4: 20,
29+
true: 20,
30+
5: 24,
31+
6: 24,
32+
7: 24,
33+
8: 32,
34+
9: 40,
35+
10: 40,
36+
11: 48,
37+
12: 48,
38+
13: 56,
39+
14: 114 + 10,
4440
},
4541
face: {
4642
900: { normal: 'DM Sans Bold' },
@@ -61,33 +57,29 @@ export const bodyFont = createFont({
6157
6: 18,
6258
7: 20,
6359
8: 23,
64-
9: 30,
60+
9: 32,
6561
10: 40,
66-
11: 46,
67-
12: 55,
68-
13: 62,
69-
14: 72,
70-
15: 92,
71-
16: 114,
62+
11: 48,
63+
12: 64,
64+
13: 96,
65+
14: 114,
7266
},
7367
lineHeight: {
74-
1: 11 + 10,
75-
2: 12 + 10,
76-
3: 13 + 10,
77-
4: 14 + 10,
78-
true: 14 + 10,
79-
5: 16 + 10,
80-
6: 18 + 10,
81-
7: 20 + 10,
82-
8: 23 + 10,
83-
9: 30 + 10,
84-
10: 40 + 10,
85-
11: 46 + 10,
86-
12: 55 + 10,
87-
13: 62 + 10,
88-
14: 72 + 10,
89-
15: 92 + 10,
90-
16: 114 + 10,
68+
1: 16,
69+
2: 16,
70+
3: 16,
71+
4: 20,
72+
true: 20,
73+
5: 24,
74+
6: 24,
75+
7: 24,
76+
8: 24,
77+
9: 32,
78+
10: 40,
79+
11: 48,
80+
12: 48,
81+
13: 56,
82+
14: 114 + 10,
9183
},
9284
face: {
9385
900: { normal: 'DM Sans Bold' },
@@ -107,40 +99,38 @@ export const monoFont = createFont({
10799
6: 18,
108100
7: 20,
109101
8: 23,
110-
9: 30,
102+
9: 32,
111103
10: 40,
112-
11: 46,
113-
12: 55,
114-
13: 62,
115-
14: 72,
116-
15: 92,
117-
16: 114,
104+
11: 48,
105+
12: 64,
106+
13: 96,
107+
14: 114,
118108
},
119109
lineHeight: {
120-
1: 11 + 10,
121-
2: 12 + 10,
122-
3: 13 + 10,
123-
4: 14 + 10,
124-
true: 14 + 10,
125-
5: 16 + 10,
126-
6: 18 + 10,
127-
7: 20 + 10,
128-
8: 23 + 10,
129-
9: 30 + 10,
130-
10: 40 + 10,
131-
11: 46 + 10,
132-
12: 55 + 10,
133-
13: 62 + 10,
134-
14: 72 + 10,
135-
15: 92 + 10,
136-
16: 114 + 10,
110+
1: 11,
111+
2: 12,
112+
3: 13,
113+
4: 14,
114+
true: 14,
115+
5: 16,
116+
6: 18,
117+
7: 20,
118+
8: 23,
119+
9: 32,
120+
10: 40,
121+
11: 48,
122+
12: 48,
123+
13: 56,
124+
14: 114 + 10,
137125
},
138126
weight: {
139127
3: '300',
140128
4: '400',
141129
5: '500',
142130
},
143131
face: {
132+
300: { normal: 'DM Mono' },
133+
400: { normal: 'DM Mono' },
144134
500: { normal: 'DM Mono' },
145135
},
146136
})

0 commit comments

Comments
 (0)