Skip to content

Commit de7eaf4

Browse files
committed
fix: typography in empty-state
1 parent 4120ca1 commit de7eaf4

File tree

1 file changed

+49
-17
lines changed

1 file changed

+49
-17
lines changed

packages/design-tokens/web/components/empty-state.json5

+49-17
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
big: {
55
'max-width': { value: '480px'},
66
padding: {
7-
horizontal: { value: '{size.6xl}' },
8-
top: { value: '{size.5xl}' },
9-
bottom: { value: '{size.5xl}' },
7+
horizontal: { value: '{size.6xl}' },
8+
top: { value: '{size.5xl}' },
9+
bottom: { value: '{size.5xl}' },
1010
},
1111
actions: {
1212
'margin-top': { value: '{size.xl}' }
1313
},
1414
image: {
15-
'margin-bottom': { value: '{size.3xl}' }
15+
'margin-bottom': { value: '{size.3xl}' }
1616
},
17-
'image-addon': {
18-
height: { value: '{size.6xl}' }
17+
'image-addon': {
18+
height: { value: '{size.6xl}' }
1919
},
2020
title: {
2121
'margin-bottom': { value: '{size.xl}' },
@@ -24,18 +24,18 @@
2424
normal: {
2525
'max-width': { value: '320px'},
2626
padding: {
27-
horizontal: { value: '{size.3xl}' },
28-
top: { value: '{size.3xl}' },
29-
bottom: { value: '{size.3xl}' },
27+
horizontal: { value: '{size.3xl}' },
28+
top: { value: '{size.3xl}' },
29+
bottom: { value: '{size.3xl}' },
3030
},
3131
actions: {
3232
'margin-top': { value: '{size.s}' }
3333
},
3434
image: {
35-
'margin-bottom': { value: '{size.3xl}' }
35+
'margin-bottom': { value: '{size.3xl}' }
3636
},
37-
'image-addon': {
38-
height: { value: '{size.xxl}' }
37+
'image-addon': {
38+
height: { value: '{size.xxl}' }
3939
},
4040
title: {
4141
'margin-bottom': { value: '{size.s}' },
@@ -44,12 +44,44 @@
4444
},
4545
font: {
4646
big: {
47-
title: { value: 'headline' },
48-
text: { value: 'text-normal' },
47+
title: {
48+
"font-size": { value: '{typography.headline.font-size}' },
49+
"line-height": { value: '{typography.headline.line-height}' },
50+
"letter-spacing": { value: '{typography.headline.letter-spacing}' },
51+
"font-weight": { value: '{typography.headline.font-weight}' },
52+
"font-family": { value: '{typography.headline.font-family}' },
53+
"text-transform": { value: '{typography.headline.text-transform}' },
54+
"font-feature-settings": { value: '{typography.headline.font-feature-settings}' }
55+
},
56+
text: {
57+
"font-size": { value: '{typography.text-normal.font-size}' },
58+
"line-height": { value: '{typography.text-normal.line-height}' },
59+
"letter-spacing": { value: '{typography.text-normal.letter-spacing}' },
60+
"font-weight": { value: '{typography.text-normal.font-weight}' },
61+
"font-family": { value: '{typography.text-normal.font-family}' },
62+
"text-transform": { value: '{typography.text-normal.text-transform}' },
63+
"font-feature-settings": { value: '{typography.text-normal.font-feature-settings}' }
64+
}
4965
},
5066
normal: {
51-
title: { value: 'subheading' },
52-
text: { value: 'text-normal' },
67+
title: {
68+
"font-size": { value: '{typography.subheading.font-size}' },
69+
"line-height": { value: '{typography.subheading.line-height}' },
70+
"letter-spacing": { value: '{typography.subheading.letter-spacing}' },
71+
"font-weight": { value: '{typography.subheading.font-weight}' },
72+
"font-family": { value: '{typography.subheading.font-family}' },
73+
"text-transform": { value: '{typography.subheading.text-transform}' },
74+
"font-feature-settings": { value: '{typography.subheading.font-feature-settings}' }
75+
},
76+
text: {
77+
"font-size": { value: '{typography.text-normal.font-size}' },
78+
"line-height": { value: '{typography.text-normal.line-height}' },
79+
"letter-spacing": { value: '{typography.text-normal.letter-spacing}' },
80+
"font-weight": { value: '{typography.text-normal.font-weight}' },
81+
"font-family": { value: '{typography.text-normal.font-family}' },
82+
"text-transform": { value: '{typography.text-normal.text-transform}' },
83+
"font-feature-settings": { value: '{typography.text-normal.font-feature-settings}' }
84+
}
5385
}
5486
},
5587
light: {
@@ -61,4 +93,4 @@
6193
color: { value: '{dark.foreground.contrast}'}
6294
}
6395
}
64-
}
96+
}

0 commit comments

Comments
 (0)