@guardian/stand 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +272 -27
- package/dist/fonts/OpenSans.css +327 -0
- package/dist/index.cjs +10 -1
- package/dist/index.js +5 -1
- package/dist/styleD/build/css/css/base/colors.css +3 -3
- package/dist/styleD/build/css/css/base/radius.css +12 -0
- package/dist/styleD/build/css/css/base/sizing.css +22 -0
- package/dist/styleD/build/css/css/base/spacing.css +36 -0
- package/dist/styleD/build/css/css/base/typography.css +16 -1
- package/dist/styleD/build/css/css/semantic/colors.css +10 -8
- package/dist/styleD/build/css/css/semantic/sizing.css +14 -0
- package/dist/styleD/build/css/css/semantic/typography.css +83 -76
- package/dist/styleD/build/typescript/base/colors.cjs +3 -3
- package/dist/styleD/build/typescript/base/colors.js +3 -3
- package/dist/styleD/build/typescript/base/radius.cjs +12 -0
- package/dist/styleD/build/typescript/base/radius.js +10 -0
- package/dist/styleD/build/typescript/base/sizing.cjs +22 -0
- package/dist/styleD/build/typescript/base/sizing.js +20 -0
- package/dist/styleD/build/typescript/base/spacing.cjs +36 -0
- package/dist/styleD/build/typescript/base/spacing.js +34 -0
- package/dist/styleD/build/typescript/base/typography.cjs +20 -5
- package/dist/styleD/build/typescript/base/typography.js +20 -5
- package/dist/styleD/build/typescript/semantic/colors.cjs +14 -12
- package/dist/styleD/build/typescript/semantic/colors.js +14 -12
- package/dist/styleD/build/typescript/semantic/sizing.cjs +20 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +18 -0
- package/dist/styleD/build/typescript/semantic/typography.cjs +76 -342
- package/dist/styleD/build/typescript/semantic/typography.js +76 -342
- package/dist/styleD/utils/semantic/typography.cjs +11 -7
- package/dist/styleD/utils/semantic/typography.js +10 -7
- package/dist/types/index.d.ts +9 -1
- package/dist/types/styleD/build/typescript/base/colors.d.ts +3 -3
- package/dist/types/styleD/build/typescript/base/radius.d.ts +12 -0
- package/dist/types/styleD/build/typescript/base/sizing.d.ts +22 -0
- package/dist/types/styleD/build/typescript/base/spacing.d.ts +36 -0
- package/dist/types/styleD/build/typescript/base/typography.d.ts +18 -3
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +11 -9
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +20 -0
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +38 -304
- package/dist/types/styleD/stories/base/Radius.d.ts +1 -0
- package/dist/types/styleD/stories/base/Sizing.d.ts +1 -0
- package/dist/types/styleD/stories/base/Spacing.d.ts +1 -0
- package/dist/types/styleD/stories/semantic/Sizing.d.ts +1 -0
- package/dist/types/styleD/utils/semantic/typography.d.ts +4 -10
- package/package.json +13 -7
|
@@ -1,458 +1,192 @@
|
|
|
1
1
|
const semanticTypography = {
|
|
2
2
|
"title-sm": {
|
|
3
|
-
font:
|
|
4
|
-
|
|
5
|
-
fontWeight: 700,
|
|
6
|
-
fontSize: "18px",
|
|
7
|
-
fontStyle: "normal",
|
|
8
|
-
lineHeight: 1.15,
|
|
9
|
-
letterSpacing: "0px"
|
|
10
|
-
},
|
|
11
|
-
letterSpacing: "0px",
|
|
3
|
+
font: "normal 700 1.125rem/1.15 GH Guardian Headline",
|
|
4
|
+
letterSpacing: "0rem",
|
|
12
5
|
fontWidth: 100
|
|
13
6
|
},
|
|
14
7
|
"title-md": {
|
|
15
|
-
font:
|
|
16
|
-
|
|
17
|
-
fontWeight: 700,
|
|
18
|
-
fontSize: "20px",
|
|
19
|
-
fontStyle: "normal",
|
|
20
|
-
lineHeight: 1.15,
|
|
21
|
-
letterSpacing: "0px"
|
|
22
|
-
},
|
|
23
|
-
letterSpacing: "0px",
|
|
8
|
+
font: "normal 700 1.25rem/1.15 GH Guardian Headline",
|
|
9
|
+
letterSpacing: "0rem",
|
|
24
10
|
fontWidth: 100
|
|
25
11
|
},
|
|
26
12
|
"title-lg": {
|
|
27
|
-
font:
|
|
28
|
-
|
|
29
|
-
fontWeight: 700,
|
|
30
|
-
fontSize: "24px",
|
|
31
|
-
fontStyle: "normal",
|
|
32
|
-
lineHeight: 1.15,
|
|
33
|
-
letterSpacing: "0px"
|
|
34
|
-
},
|
|
35
|
-
letterSpacing: "0px",
|
|
13
|
+
font: "normal 700 1.5rem/1.15 GH Guardian Headline",
|
|
14
|
+
letterSpacing: "0rem",
|
|
36
15
|
fontWidth: 100
|
|
37
16
|
},
|
|
38
17
|
"title-xl": {
|
|
39
|
-
font:
|
|
40
|
-
|
|
41
|
-
fontWeight: 700,
|
|
42
|
-
fontSize: "32px",
|
|
43
|
-
fontStyle: "normal",
|
|
44
|
-
lineHeight: 1.15,
|
|
45
|
-
letterSpacing: "0px"
|
|
46
|
-
},
|
|
47
|
-
letterSpacing: "0px",
|
|
18
|
+
font: "normal 700 2rem/1.15 GH Guardian Headline",
|
|
19
|
+
letterSpacing: "0rem",
|
|
48
20
|
fontWidth: 100
|
|
49
21
|
},
|
|
50
22
|
"heading-xs": {
|
|
51
|
-
font:
|
|
52
|
-
|
|
53
|
-
fontWeight: 700,
|
|
54
|
-
fontSize: "12px",
|
|
55
|
-
fontStyle: "normal",
|
|
56
|
-
lineHeight: 1.15,
|
|
57
|
-
letterSpacing: "0px"
|
|
58
|
-
},
|
|
59
|
-
letterSpacing: "0px",
|
|
23
|
+
font: "normal 700 0.75rem/1.15 Open Sans",
|
|
24
|
+
letterSpacing: "0rem",
|
|
60
25
|
fontWidth: 95
|
|
61
26
|
},
|
|
62
27
|
"heading-sm": {
|
|
63
|
-
font:
|
|
64
|
-
|
|
65
|
-
fontWeight: 700,
|
|
66
|
-
fontSize: "14px",
|
|
67
|
-
fontStyle: "normal",
|
|
68
|
-
lineHeight: 1.15,
|
|
69
|
-
letterSpacing: "-0.2px"
|
|
70
|
-
},
|
|
71
|
-
letterSpacing: "-0.2px",
|
|
28
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
29
|
+
letterSpacing: "-0.0125rem",
|
|
72
30
|
fontWidth: 95
|
|
73
31
|
},
|
|
74
32
|
"heading-md": {
|
|
75
|
-
font:
|
|
76
|
-
|
|
77
|
-
fontWeight: 700,
|
|
78
|
-
fontSize: "16px",
|
|
79
|
-
fontStyle: "normal",
|
|
80
|
-
lineHeight: 1.15,
|
|
81
|
-
letterSpacing: "-0.5px"
|
|
82
|
-
},
|
|
83
|
-
letterSpacing: "-0.5px",
|
|
33
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
34
|
+
letterSpacing: "-0.03125rem",
|
|
84
35
|
fontWidth: 95
|
|
85
36
|
},
|
|
86
37
|
"heading-lg": {
|
|
87
|
-
font:
|
|
88
|
-
|
|
89
|
-
fontWeight: 700,
|
|
90
|
-
fontSize: "18px",
|
|
91
|
-
fontStyle: "normal",
|
|
92
|
-
lineHeight: 1.15,
|
|
93
|
-
letterSpacing: "-0.5px"
|
|
94
|
-
},
|
|
95
|
-
letterSpacing: "-0.5px",
|
|
38
|
+
font: "normal 700 1.125rem/1.15 Open Sans",
|
|
39
|
+
letterSpacing: "-0.03125rem",
|
|
96
40
|
fontWidth: 95
|
|
97
41
|
},
|
|
98
42
|
"heading-xl": {
|
|
99
|
-
font:
|
|
100
|
-
|
|
101
|
-
fontWeight: 700,
|
|
102
|
-
fontSize: "20px",
|
|
103
|
-
fontStyle: "normal",
|
|
104
|
-
lineHeight: 1.15,
|
|
105
|
-
letterSpacing: "-0.5px"
|
|
106
|
-
},
|
|
107
|
-
letterSpacing: "-0.5px",
|
|
43
|
+
font: "normal 700 1.25rem/1.15 Open Sans",
|
|
44
|
+
letterSpacing: "-0.03125rem",
|
|
108
45
|
fontWidth: 95
|
|
109
46
|
},
|
|
110
47
|
"heading-2xl": {
|
|
111
|
-
font:
|
|
112
|
-
|
|
113
|
-
fontWeight: 700,
|
|
114
|
-
fontSize: "24px",
|
|
115
|
-
fontStyle: "normal",
|
|
116
|
-
lineHeight: 1.15,
|
|
117
|
-
letterSpacing: "-1px"
|
|
118
|
-
},
|
|
119
|
-
letterSpacing: "-1px",
|
|
48
|
+
font: "normal 700 1.5rem/1.15 Open Sans",
|
|
49
|
+
letterSpacing: "-0.0625rem",
|
|
120
50
|
fontWidth: 95
|
|
121
51
|
},
|
|
122
52
|
"heading-compact-xs": {
|
|
123
|
-
font:
|
|
124
|
-
|
|
125
|
-
fontWeight: 700,
|
|
126
|
-
fontSize: "12px",
|
|
127
|
-
fontStyle: "normal",
|
|
128
|
-
lineHeight: 1.15,
|
|
129
|
-
letterSpacing: "0px"
|
|
130
|
-
},
|
|
131
|
-
letterSpacing: "0px",
|
|
53
|
+
font: "normal 700 0.75rem/1.15 Open Sans",
|
|
54
|
+
letterSpacing: "0rem",
|
|
132
55
|
fontWidth: 88
|
|
133
56
|
},
|
|
134
57
|
"heading-compact-sm": {
|
|
135
|
-
font:
|
|
136
|
-
|
|
137
|
-
fontWeight: 700,
|
|
138
|
-
fontSize: "14px",
|
|
139
|
-
fontStyle: "normal",
|
|
140
|
-
lineHeight: 1.15,
|
|
141
|
-
letterSpacing: "0px"
|
|
142
|
-
},
|
|
143
|
-
letterSpacing: "0px",
|
|
58
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
59
|
+
letterSpacing: "0rem",
|
|
144
60
|
fontWidth: 88
|
|
145
61
|
},
|
|
146
62
|
"heading-compact-md": {
|
|
147
|
-
font:
|
|
148
|
-
|
|
149
|
-
fontWeight: 700,
|
|
150
|
-
fontSize: "16px",
|
|
151
|
-
fontStyle: "normal",
|
|
152
|
-
lineHeight: 1.15,
|
|
153
|
-
letterSpacing: "-0.2px"
|
|
154
|
-
},
|
|
155
|
-
letterSpacing: "-0.2px",
|
|
63
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
64
|
+
letterSpacing: "-0.0125rem",
|
|
156
65
|
fontWidth: 88
|
|
157
66
|
},
|
|
158
67
|
"heading-compact-lg": {
|
|
159
|
-
font:
|
|
160
|
-
|
|
161
|
-
fontWeight: 700,
|
|
162
|
-
fontSize: "18px",
|
|
163
|
-
fontStyle: "normal",
|
|
164
|
-
lineHeight: 1.15,
|
|
165
|
-
letterSpacing: "-0.2px"
|
|
166
|
-
},
|
|
167
|
-
letterSpacing: "-0.2px",
|
|
68
|
+
font: "normal 700 1.125rem/1.15 Open Sans",
|
|
69
|
+
letterSpacing: "-0.0125rem",
|
|
168
70
|
fontWidth: 88
|
|
169
71
|
},
|
|
170
72
|
"heading-compact-xl": {
|
|
171
|
-
font:
|
|
172
|
-
|
|
173
|
-
fontWeight: 700,
|
|
174
|
-
fontSize: "20px",
|
|
175
|
-
fontStyle: "normal",
|
|
176
|
-
lineHeight: 1.15,
|
|
177
|
-
letterSpacing: "-0.5px"
|
|
178
|
-
},
|
|
179
|
-
letterSpacing: "-0.5px",
|
|
73
|
+
font: "normal 700 1.25rem/1.15 Open Sans",
|
|
74
|
+
letterSpacing: "-0.03125rem",
|
|
180
75
|
fontWidth: 88
|
|
181
76
|
},
|
|
182
77
|
"heading-compact-2xl": {
|
|
183
|
-
font:
|
|
184
|
-
|
|
185
|
-
fontWeight: 700,
|
|
186
|
-
fontSize: "24px",
|
|
187
|
-
fontStyle: "normal",
|
|
188
|
-
lineHeight: 1.15,
|
|
189
|
-
letterSpacing: "-0.5px"
|
|
190
|
-
},
|
|
191
|
-
letterSpacing: "-0.5px",
|
|
78
|
+
font: "normal 700 1.5rem/1.15 Open Sans",
|
|
79
|
+
letterSpacing: "-0.03125rem",
|
|
192
80
|
fontWidth: 88
|
|
193
81
|
},
|
|
194
82
|
"body-sm": {
|
|
195
|
-
font:
|
|
196
|
-
|
|
197
|
-
fontWeight: 460,
|
|
198
|
-
fontSize: "14px",
|
|
199
|
-
fontStyle: "normal",
|
|
200
|
-
lineHeight: 1.3,
|
|
201
|
-
letterSpacing: "0px"
|
|
202
|
-
},
|
|
203
|
-
letterSpacing: "0px",
|
|
83
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
84
|
+
letterSpacing: "0rem",
|
|
204
85
|
fontWidth: 95
|
|
205
86
|
},
|
|
206
87
|
"body-md": {
|
|
207
|
-
font:
|
|
208
|
-
|
|
209
|
-
fontWeight: 460,
|
|
210
|
-
fontSize: "16px",
|
|
211
|
-
fontStyle: "normal",
|
|
212
|
-
lineHeight: 1.3,
|
|
213
|
-
letterSpacing: "0px"
|
|
214
|
-
},
|
|
215
|
-
letterSpacing: "0px",
|
|
88
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
89
|
+
letterSpacing: "0rem",
|
|
216
90
|
fontWidth: 95
|
|
217
91
|
},
|
|
218
92
|
"body-lg": {
|
|
219
|
-
font:
|
|
220
|
-
|
|
221
|
-
fontWeight: 460,
|
|
222
|
-
fontSize: "18px",
|
|
223
|
-
fontStyle: "normal",
|
|
224
|
-
lineHeight: 1.3,
|
|
225
|
-
letterSpacing: "0px"
|
|
226
|
-
},
|
|
227
|
-
letterSpacing: "0px",
|
|
93
|
+
font: "normal 460 1.125rem/1.3 Open Sans",
|
|
94
|
+
letterSpacing: "0rem",
|
|
228
95
|
fontWidth: 95
|
|
229
96
|
},
|
|
230
97
|
"body-xl": {
|
|
231
|
-
font:
|
|
232
|
-
|
|
233
|
-
fontWeight: 460,
|
|
234
|
-
fontSize: "20px",
|
|
235
|
-
fontStyle: "normal",
|
|
236
|
-
lineHeight: 1.3,
|
|
237
|
-
letterSpacing: "0px"
|
|
238
|
-
},
|
|
239
|
-
letterSpacing: "0px",
|
|
98
|
+
font: "normal 460 1.25rem/1.3 Open Sans",
|
|
99
|
+
letterSpacing: "0rem",
|
|
240
100
|
fontWidth: 95
|
|
241
101
|
},
|
|
242
102
|
"body-italic-sm": {
|
|
243
|
-
font:
|
|
244
|
-
|
|
245
|
-
fontWeight: 460,
|
|
246
|
-
fontSize: "14px",
|
|
247
|
-
fontStyle: "italic",
|
|
248
|
-
lineHeight: 1.3,
|
|
249
|
-
letterSpacing: "0px"
|
|
250
|
-
},
|
|
251
|
-
letterSpacing: "0px",
|
|
103
|
+
font: "italic 460 0.875rem/1.3 Open Sans",
|
|
104
|
+
letterSpacing: "0rem",
|
|
252
105
|
fontWidth: 95
|
|
253
106
|
},
|
|
254
107
|
"body-italic-md": {
|
|
255
|
-
font:
|
|
256
|
-
|
|
257
|
-
fontWeight: 460,
|
|
258
|
-
fontSize: "16px",
|
|
259
|
-
fontStyle: "italic",
|
|
260
|
-
lineHeight: 1.3,
|
|
261
|
-
letterSpacing: "0px"
|
|
262
|
-
},
|
|
263
|
-
letterSpacing: "0px",
|
|
108
|
+
font: "italic 460 1rem/1.3 Open Sans",
|
|
109
|
+
letterSpacing: "0rem",
|
|
264
110
|
fontWidth: 95
|
|
265
111
|
},
|
|
266
112
|
"body-italic-lg": {
|
|
267
|
-
font:
|
|
268
|
-
|
|
269
|
-
fontWeight: 460,
|
|
270
|
-
fontSize: "18px",
|
|
271
|
-
fontStyle: "italic",
|
|
272
|
-
lineHeight: 1.3,
|
|
273
|
-
letterSpacing: "0px"
|
|
274
|
-
},
|
|
275
|
-
letterSpacing: "0px",
|
|
113
|
+
font: "italic 460 1.125rem/1.3 Open Sans",
|
|
114
|
+
letterSpacing: "0rem",
|
|
276
115
|
fontWidth: 95
|
|
277
116
|
},
|
|
278
117
|
"body-italic-xl": {
|
|
279
|
-
font:
|
|
280
|
-
|
|
281
|
-
fontWeight: 460,
|
|
282
|
-
fontSize: "20px",
|
|
283
|
-
fontStyle: "italic",
|
|
284
|
-
lineHeight: 1.3,
|
|
285
|
-
letterSpacing: "0px"
|
|
286
|
-
},
|
|
287
|
-
letterSpacing: "0px",
|
|
118
|
+
font: "italic 460 1.25rem/1.3 Open Sans",
|
|
119
|
+
letterSpacing: "0rem",
|
|
288
120
|
fontWidth: 95
|
|
289
121
|
},
|
|
290
122
|
"body-compact-sm": {
|
|
291
|
-
font:
|
|
292
|
-
|
|
293
|
-
fontWeight: 460,
|
|
294
|
-
fontSize: "14px",
|
|
295
|
-
fontStyle: "normal",
|
|
296
|
-
lineHeight: 1.3,
|
|
297
|
-
letterSpacing: "0px"
|
|
298
|
-
},
|
|
299
|
-
letterSpacing: "0px",
|
|
123
|
+
font: "normal 460 0.875rem/1.3 Open Sans",
|
|
124
|
+
letterSpacing: "0rem",
|
|
300
125
|
fontWidth: 88
|
|
301
126
|
},
|
|
302
127
|
"body-compact-md": {
|
|
303
|
-
font:
|
|
304
|
-
|
|
305
|
-
fontWeight: 460,
|
|
306
|
-
fontSize: "16px",
|
|
307
|
-
fontStyle: "normal",
|
|
308
|
-
lineHeight: 1.3,
|
|
309
|
-
letterSpacing: "0px"
|
|
310
|
-
},
|
|
311
|
-
letterSpacing: "0px",
|
|
128
|
+
font: "normal 460 1rem/1.3 Open Sans",
|
|
129
|
+
letterSpacing: "0rem",
|
|
312
130
|
fontWidth: 88
|
|
313
131
|
},
|
|
314
132
|
"body-compact-lg": {
|
|
315
|
-
font:
|
|
316
|
-
|
|
317
|
-
fontWeight: 460,
|
|
318
|
-
fontSize: "18px",
|
|
319
|
-
fontStyle: "normal",
|
|
320
|
-
lineHeight: 1.3,
|
|
321
|
-
letterSpacing: "0px"
|
|
322
|
-
},
|
|
323
|
-
letterSpacing: "0px",
|
|
133
|
+
font: "normal 460 1.125rem/1.3 Open Sans",
|
|
134
|
+
letterSpacing: "0rem",
|
|
324
135
|
fontWidth: 88
|
|
325
136
|
},
|
|
326
137
|
"body-compact-xl": {
|
|
327
|
-
font:
|
|
328
|
-
|
|
329
|
-
fontWeight: 460,
|
|
330
|
-
fontSize: "20px",
|
|
331
|
-
fontStyle: "normal",
|
|
332
|
-
lineHeight: 1.3,
|
|
333
|
-
letterSpacing: "0px"
|
|
334
|
-
},
|
|
335
|
-
letterSpacing: "0px",
|
|
138
|
+
font: "normal 460 1.25rem/1.3 Open Sans",
|
|
139
|
+
letterSpacing: "0rem",
|
|
336
140
|
fontWidth: 88
|
|
337
141
|
},
|
|
338
142
|
"body-compact-italic-sm": {
|
|
339
|
-
font:
|
|
340
|
-
|
|
341
|
-
fontWeight: 460,
|
|
342
|
-
fontSize: "14px",
|
|
343
|
-
fontStyle: "italic",
|
|
344
|
-
lineHeight: 1.3,
|
|
345
|
-
letterSpacing: "0px"
|
|
346
|
-
},
|
|
347
|
-
letterSpacing: "0px",
|
|
143
|
+
font: "italic 460 0.875rem/1.3 Open Sans",
|
|
144
|
+
letterSpacing: "0rem",
|
|
348
145
|
fontWidth: 88
|
|
349
146
|
},
|
|
350
147
|
"body-compact-italic-md": {
|
|
351
|
-
font:
|
|
352
|
-
|
|
353
|
-
fontWeight: 460,
|
|
354
|
-
fontSize: "16px",
|
|
355
|
-
fontStyle: "italic",
|
|
356
|
-
lineHeight: 1.3,
|
|
357
|
-
letterSpacing: "0px"
|
|
358
|
-
},
|
|
359
|
-
letterSpacing: "0px",
|
|
148
|
+
font: "italic 460 1rem/1.3 Open Sans",
|
|
149
|
+
letterSpacing: "0rem",
|
|
360
150
|
fontWidth: 88
|
|
361
151
|
},
|
|
362
152
|
"body-compact-italic-lg": {
|
|
363
|
-
font:
|
|
364
|
-
|
|
365
|
-
fontWeight: 460,
|
|
366
|
-
fontSize: "18px",
|
|
367
|
-
fontStyle: "italic",
|
|
368
|
-
lineHeight: 1.3,
|
|
369
|
-
letterSpacing: "0px"
|
|
370
|
-
},
|
|
371
|
-
letterSpacing: "0px",
|
|
153
|
+
font: "italic 460 1.125rem/1.3 Open Sans",
|
|
154
|
+
letterSpacing: "0rem",
|
|
372
155
|
fontWidth: 88
|
|
373
156
|
},
|
|
374
157
|
"body-compact-italic-xl": {
|
|
375
|
-
font:
|
|
376
|
-
|
|
377
|
-
fontWeight: 460,
|
|
378
|
-
fontSize: "20px",
|
|
379
|
-
fontStyle: "italic",
|
|
380
|
-
lineHeight: 1.3,
|
|
381
|
-
letterSpacing: "0px"
|
|
382
|
-
},
|
|
383
|
-
letterSpacing: "0px",
|
|
158
|
+
font: "italic 460 1.25rem/1.3 Open Sans",
|
|
159
|
+
letterSpacing: "0rem",
|
|
384
160
|
fontWidth: 88
|
|
385
161
|
},
|
|
386
162
|
"meta-md": {
|
|
387
|
-
font:
|
|
388
|
-
|
|
389
|
-
fontWeight: 460,
|
|
390
|
-
fontSize: "12px",
|
|
391
|
-
fontStyle: "normal",
|
|
392
|
-
lineHeight: 1.3,
|
|
393
|
-
letterSpacing: "0px"
|
|
394
|
-
},
|
|
395
|
-
letterSpacing: "0px",
|
|
163
|
+
font: "normal 460 0.75rem/1.3 Open Sans",
|
|
164
|
+
letterSpacing: "0rem",
|
|
396
165
|
fontWidth: 95
|
|
397
166
|
},
|
|
398
167
|
"meta-compact-md": {
|
|
399
|
-
font:
|
|
400
|
-
|
|
401
|
-
fontWeight: 460,
|
|
402
|
-
fontSize: "12px",
|
|
403
|
-
fontStyle: "normal",
|
|
404
|
-
lineHeight: 1.3,
|
|
405
|
-
letterSpacing: "0px"
|
|
406
|
-
},
|
|
407
|
-
letterSpacing: "0px",
|
|
168
|
+
font: "normal 460 0.75rem/1.3 Open Sans",
|
|
169
|
+
letterSpacing: "0rem",
|
|
408
170
|
fontWidth: 88
|
|
409
171
|
},
|
|
410
172
|
"article-body-md": {
|
|
411
|
-
font:
|
|
412
|
-
|
|
413
|
-
fontWeight: 400,
|
|
414
|
-
fontSize: "16px",
|
|
415
|
-
fontStyle: "normal",
|
|
416
|
-
lineHeight: 1.4,
|
|
417
|
-
letterSpacing: "0px"
|
|
418
|
-
},
|
|
419
|
-
letterSpacing: "0px",
|
|
173
|
+
font: "normal 400 1rem/1.4 GuardianTextEgyptian",
|
|
174
|
+
letterSpacing: "0rem",
|
|
420
175
|
fontWidth: 100
|
|
421
176
|
},
|
|
422
177
|
"article-body-bold-md": {
|
|
423
|
-
font:
|
|
424
|
-
|
|
425
|
-
fontWeight: 700,
|
|
426
|
-
fontSize: "16px",
|
|
427
|
-
fontStyle: "normal",
|
|
428
|
-
lineHeight: 1.4,
|
|
429
|
-
letterSpacing: "0px"
|
|
430
|
-
},
|
|
431
|
-
letterSpacing: "0px",
|
|
178
|
+
font: "normal 700 1rem/1.4 GuardianTextEgyptian",
|
|
179
|
+
letterSpacing: "0rem",
|
|
432
180
|
fontWidth: 100
|
|
433
181
|
},
|
|
434
182
|
"article-body-italic-md": {
|
|
435
|
-
font:
|
|
436
|
-
|
|
437
|
-
fontWeight: 400,
|
|
438
|
-
fontSize: "16px",
|
|
439
|
-
fontStyle: "italic",
|
|
440
|
-
lineHeight: 1.4,
|
|
441
|
-
letterSpacing: "0px"
|
|
442
|
-
},
|
|
443
|
-
letterSpacing: "0px",
|
|
183
|
+
font: "italic 400 1rem/1.4 GuardianTextEgyptian",
|
|
184
|
+
letterSpacing: "0rem",
|
|
444
185
|
fontWidth: 100
|
|
445
186
|
},
|
|
446
187
|
"article-body-bold-italic-md": {
|
|
447
|
-
font:
|
|
448
|
-
|
|
449
|
-
fontWeight: 700,
|
|
450
|
-
fontSize: "16px",
|
|
451
|
-
fontStyle: "italic",
|
|
452
|
-
lineHeight: 1.4,
|
|
453
|
-
letterSpacing: "0px"
|
|
454
|
-
},
|
|
455
|
-
letterSpacing: "0px",
|
|
188
|
+
font: "italic 700 1rem/1.4 GuardianTextEgyptian",
|
|
189
|
+
letterSpacing: "0rem",
|
|
456
190
|
fontWidth: 100
|
|
457
191
|
}
|
|
458
192
|
};
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
var react = require('@emotion/react');
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const convertTypographyToEmotionStringStyle = (typography) => {
|
|
6
6
|
return react.css`
|
|
7
|
-
font
|
|
8
|
-
font-weight: ${typography.font.fontWeight};
|
|
9
|
-
font-size: ${typography.font.fontSize};
|
|
10
|
-
font-style: ${typography.font.fontStyle};
|
|
11
|
-
line-height: ${typography.font.lineHeight};
|
|
7
|
+
font: ${typography.font};
|
|
12
8
|
letter-spacing: ${typography.letterSpacing};
|
|
13
9
|
font-variation-settings: \"wdth\" ${typography.fontWidth};
|
|
14
10
|
`;
|
|
15
11
|
};
|
|
12
|
+
const convertTypographyToEmotionObjectStyle = (typography) => {
|
|
13
|
+
return {
|
|
14
|
+
font: typography.font,
|
|
15
|
+
letterSpacing: typography.letterSpacing,
|
|
16
|
+
fontVariationSettings: `"wdth" ${typography.fontWidth}`
|
|
17
|
+
};
|
|
18
|
+
};
|
|
16
19
|
|
|
17
|
-
exports.
|
|
20
|
+
exports.convertTypographyToEmotionObjectStyle = convertTypographyToEmotionObjectStyle;
|
|
21
|
+
exports.convertTypographyToEmotionStringStyle = convertTypographyToEmotionStringStyle;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const convertTypographyToEmotionStringStyle = (typography) => {
|
|
4
4
|
return css`
|
|
5
|
-
font
|
|
6
|
-
font-weight: ${typography.font.fontWeight};
|
|
7
|
-
font-size: ${typography.font.fontSize};
|
|
8
|
-
font-style: ${typography.font.fontStyle};
|
|
9
|
-
line-height: ${typography.font.lineHeight};
|
|
5
|
+
font: ${typography.font};
|
|
10
6
|
letter-spacing: ${typography.letterSpacing};
|
|
11
7
|
font-variation-settings: \"wdth\" ${typography.fontWidth};
|
|
12
8
|
`;
|
|
13
9
|
};
|
|
10
|
+
const convertTypographyToEmotionObjectStyle = (typography) => {
|
|
11
|
+
return {
|
|
12
|
+
font: typography.font,
|
|
13
|
+
letterSpacing: typography.letterSpacing,
|
|
14
|
+
fontVariationSettings: `"wdth" ${typography.fontWidth}`
|
|
15
|
+
};
|
|
16
|
+
};
|
|
14
17
|
|
|
15
|
-
export {
|
|
18
|
+
export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,6 +13,12 @@ export { baseColors } from './styleD/build/typescript/base/colors';
|
|
|
13
13
|
export type { BaseColors } from './styleD/build/typescript/base/colors';
|
|
14
14
|
export { baseTypography } from './styleD/build/typescript/base/typography';
|
|
15
15
|
export type { BaseTypography } from './styleD/build/typescript/base/typography';
|
|
16
|
+
export { baseSpacing } from './styleD/build/typescript/base/spacing';
|
|
17
|
+
export type { BaseSpacing } from './styleD/build/typescript/base/spacing';
|
|
18
|
+
export { baseSizing } from './styleD/build/typescript/base/sizing';
|
|
19
|
+
export type { BaseSizing } from './styleD/build/typescript/base/sizing';
|
|
20
|
+
export { baseRadius } from './styleD/build/typescript/base/radius';
|
|
21
|
+
export type { BaseRadius } from './styleD/build/typescript/base/radius';
|
|
16
22
|
/**
|
|
17
23
|
* style dictionary exports - semantic
|
|
18
24
|
*/
|
|
@@ -20,7 +26,9 @@ export { semanticColors } from './styleD/build/typescript/semantic/colors';
|
|
|
20
26
|
export type { SemanticColors } from './styleD/build/typescript/semantic/colors';
|
|
21
27
|
export { semanticTypography } from './styleD/build/typescript/semantic/typography';
|
|
22
28
|
export type { SemanticTypography } from './styleD/build/typescript/semantic/typography';
|
|
29
|
+
export { semanticSizing } from './styleD/build/typescript/semantic/sizing';
|
|
30
|
+
export type { SemanticSizing } from './styleD/build/typescript/semantic/sizing';
|
|
23
31
|
/**
|
|
24
32
|
* utils exports
|
|
25
33
|
*/
|
|
26
|
-
export {
|
|
34
|
+
export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle, } from './styleD/utils/semantic/typography';
|
|
@@ -82,7 +82,7 @@ export declare const baseColors: {
|
|
|
82
82
|
};
|
|
83
83
|
readonly yellow: {
|
|
84
84
|
readonly '50': "#433608";
|
|
85
|
-
readonly '100': "#
|
|
85
|
+
readonly '100': "#5b4a0b";
|
|
86
86
|
readonly '200': "#9a7c11";
|
|
87
87
|
readonly '300': "#c69f16";
|
|
88
88
|
readonly '400': "#f1c21b";
|
|
@@ -94,7 +94,7 @@ export declare const baseColors: {
|
|
|
94
94
|
};
|
|
95
95
|
readonly orange: {
|
|
96
96
|
readonly '50': "#45260e";
|
|
97
|
-
readonly '100': "#
|
|
97
|
+
readonly '100': "#693c16";
|
|
98
98
|
readonly '200': "#9d5621";
|
|
99
99
|
readonly '300': "#c96e2a";
|
|
100
100
|
readonly '400': "#f58633";
|
|
@@ -131,7 +131,7 @@ export declare const baseColors: {
|
|
|
131
131
|
readonly 'cool-purple': {
|
|
132
132
|
readonly '50': "#232740";
|
|
133
133
|
readonly '100': "#394069";
|
|
134
|
-
readonly '200': "#
|
|
134
|
+
readonly '200': "#485084";
|
|
135
135
|
readonly '300': "#6773bb";
|
|
136
136
|
readonly '400': "#7d8ce4";
|
|
137
137
|
readonly '500': "#94a1e9";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const baseRadius: {
|
|
5
|
+
readonly 'corner-2-px': "2px";
|
|
6
|
+
readonly 'corner-4-px': "4px";
|
|
7
|
+
readonly 'corner-8-px': "8px";
|
|
8
|
+
readonly 'corner-2-rem': "0.125rem";
|
|
9
|
+
readonly 'corner-4-rem': "0.25rem";
|
|
10
|
+
readonly 'corner-8-rem': "0.5rem";
|
|
11
|
+
};
|
|
12
|
+
export type BaseRadius = typeof baseRadius;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const baseSizing: {
|
|
5
|
+
readonly 'size-2-px': "2px";
|
|
6
|
+
readonly 'size-16-px': "16px";
|
|
7
|
+
readonly 'size-18-px': "18px";
|
|
8
|
+
readonly 'size-20-px': "20px";
|
|
9
|
+
readonly 'size-24-px': "24px";
|
|
10
|
+
readonly 'size-32-px': "32px";
|
|
11
|
+
readonly 'size-40-px': "40px";
|
|
12
|
+
readonly 'size-48-px': "48px";
|
|
13
|
+
readonly 'size-2-rem': "0.125rem";
|
|
14
|
+
readonly 'size-16-rem': "1rem";
|
|
15
|
+
readonly 'size-18-rem': "1.125rem";
|
|
16
|
+
readonly 'size-20-rem': "1.25rem";
|
|
17
|
+
readonly 'size-24-rem': "1.5rem";
|
|
18
|
+
readonly 'size-32-rem': "2rem";
|
|
19
|
+
readonly 'size-40-rem': "2.5rem";
|
|
20
|
+
readonly 'size-48-rem': "3rem";
|
|
21
|
+
};
|
|
22
|
+
export type BaseSizing = typeof baseSizing;
|