@carbon/type 10.34.0-rc.0 → 10.36.0
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/es/index.js +128 -25
- package/lib/index.js +151 -24
- package/package.json +5 -5
- package/scss/_inlined/_scale.scss +1 -1
- package/scss/_inlined/_styles.import.scss +761 -0
- package/scss/_inlined/_styles.scss +214 -36
- package/scss/_scale.scss +1 -1
- package/scss/_styles.import.scss +761 -0
- package/scss/_styles.scss +214 -36
- package/scss/modules/_scale.scss +1 -1
- package/scss/modules/_styles.scss +187 -26
- package/scss/vendor/@carbon/layout/_convert.import.scss +56 -0
- package/scss/vendor/@carbon/layout/_convert.scss +14 -0
- package/scss/vendor/@carbon/layout/_key-height.import.scss +112 -0
- package/scss/vendor/@carbon/layout/_key-height.scss +14 -0
- package/scss/vendor/@carbon/layout/modules/_convert.scss +4 -2
- package/src/__tests__/__snapshots__/styles-test.js.snap +190 -18
- package/src/__tests__/exports-test.js +72 -48
- package/src/styles.js +81 -21
- package/src/tokens.js +50 -0
- package/umd/index.js +151 -24
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`styles body01 should be printable 1`] = `
|
|
4
|
+
"font-size: 0.875rem;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
line-height: 1.42857;
|
|
7
|
+
letter-spacing: 0.16px;"
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
exports[`styles body02 should be printable 1`] = `
|
|
11
|
+
"font-size: 1rem;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
line-height: 1.5;
|
|
14
|
+
letter-spacing: 0;"
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
exports[`styles bodyCompact01 should be printable 1`] = `
|
|
18
|
+
"font-size: 0.875rem;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
line-height: 1.28572;
|
|
21
|
+
letter-spacing: 0.16px;"
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
exports[`styles bodyCompact02 should be printable 1`] = `
|
|
25
|
+
"font-size: 1rem;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
line-height: 1.375;
|
|
28
|
+
letter-spacing: 0;"
|
|
29
|
+
`;
|
|
30
|
+
|
|
3
31
|
exports[`styles bodyLong01 should be printable 1`] = `
|
|
4
32
|
"font-size: 0.875rem;
|
|
5
33
|
font-weight: 400;
|
|
6
|
-
line-height: 1.
|
|
34
|
+
line-height: 1.42857;
|
|
7
35
|
letter-spacing: 0.16px;"
|
|
8
36
|
`;
|
|
9
37
|
|
|
@@ -17,7 +45,7 @@ letter-spacing: 0;"
|
|
|
17
45
|
exports[`styles bodyShort01 should be printable 1`] = `
|
|
18
46
|
"font-size: 0.875rem;
|
|
19
47
|
font-weight: 400;
|
|
20
|
-
line-height: 1.
|
|
48
|
+
line-height: 1.28572;
|
|
21
49
|
letter-spacing: 0.16px;"
|
|
22
50
|
`;
|
|
23
51
|
|
|
@@ -31,14 +59,14 @@ letter-spacing: 0;"
|
|
|
31
59
|
exports[`styles caption01 should be printable 1`] = `
|
|
32
60
|
"font-size: 0.75rem;
|
|
33
61
|
font-weight: 400;
|
|
34
|
-
line-height: 1.
|
|
62
|
+
line-height: 1.33333;
|
|
35
63
|
letter-spacing: 0.32px;"
|
|
36
64
|
`;
|
|
37
65
|
|
|
38
66
|
exports[`styles caption02 should be printable 1`] = `
|
|
39
67
|
"font-size: 0.875rem;
|
|
40
68
|
font-weight: 400;
|
|
41
|
-
line-height: 1.
|
|
69
|
+
line-height: 1.28572;
|
|
42
70
|
letter-spacing: 0.32px;"
|
|
43
71
|
`;
|
|
44
72
|
|
|
@@ -46,7 +74,7 @@ exports[`styles code01 should be printable 1`] = `
|
|
|
46
74
|
"font-family: 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;
|
|
47
75
|
font-size: 0.75rem;
|
|
48
76
|
font-weight: 400;
|
|
49
|
-
line-height: 1.
|
|
77
|
+
line-height: 1.33333;
|
|
50
78
|
letter-spacing: 0.32px;"
|
|
51
79
|
`;
|
|
52
80
|
|
|
@@ -54,7 +82,7 @@ exports[`styles code02 should be printable 1`] = `
|
|
|
54
82
|
"font-family: 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace;
|
|
55
83
|
font-size: 0.875rem;
|
|
56
84
|
font-weight: 400;
|
|
57
|
-
line-height: 1.
|
|
85
|
+
line-height: 1.42857;
|
|
58
86
|
letter-spacing: 0.32px;"
|
|
59
87
|
`;
|
|
60
88
|
|
|
@@ -110,7 +138,7 @@ letter-spacing: 0;"
|
|
|
110
138
|
exports[`styles expressiveHeading04 should be printable 1`] = `
|
|
111
139
|
"font-size: 1.75rem;
|
|
112
140
|
font-weight: 400;
|
|
113
|
-
line-height: 1.
|
|
141
|
+
line-height: 1.28572;
|
|
114
142
|
letter-spacing: 0;"
|
|
115
143
|
`;
|
|
116
144
|
|
|
@@ -135,50 +163,192 @@ line-height: 1.334;
|
|
|
135
163
|
letter-spacing: 0;"
|
|
136
164
|
`;
|
|
137
165
|
|
|
166
|
+
exports[`styles fluidDisplay01 should be printable 1`] = `
|
|
167
|
+
"font-size: 2.625rem;
|
|
168
|
+
font-weight: 300;
|
|
169
|
+
line-height: 1.19;
|
|
170
|
+
letter-spacing: 0;"
|
|
171
|
+
`;
|
|
172
|
+
|
|
173
|
+
exports[`styles fluidDisplay02 should be printable 1`] = `
|
|
174
|
+
"font-size: 2.625rem;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
line-height: 1.19;
|
|
177
|
+
letter-spacing: 0;"
|
|
178
|
+
`;
|
|
179
|
+
|
|
180
|
+
exports[`styles fluidDisplay03 should be printable 1`] = `
|
|
181
|
+
"font-size: 2.625rem;
|
|
182
|
+
font-weight: 300;
|
|
183
|
+
line-height: 1.19;
|
|
184
|
+
letter-spacing: 0;"
|
|
185
|
+
`;
|
|
186
|
+
|
|
187
|
+
exports[`styles fluidDisplay04 should be printable 1`] = `
|
|
188
|
+
"font-size: 2.625rem;
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
line-height: 1.19;
|
|
191
|
+
letter-spacing: 0;"
|
|
192
|
+
`;
|
|
193
|
+
|
|
194
|
+
exports[`styles fluidHeading03 should be printable 1`] = `
|
|
195
|
+
"font-size: 1.25rem;
|
|
196
|
+
font-weight: 400;
|
|
197
|
+
line-height: 1.4;
|
|
198
|
+
letter-spacing: 0;"
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`styles fluidHeading04 should be printable 1`] = `
|
|
202
|
+
"font-size: 1.75rem;
|
|
203
|
+
font-weight: 400;
|
|
204
|
+
line-height: 1.28572;
|
|
205
|
+
letter-spacing: 0;"
|
|
206
|
+
`;
|
|
207
|
+
|
|
208
|
+
exports[`styles fluidHeading05 should be printable 1`] = `
|
|
209
|
+
"font-size: 2rem;
|
|
210
|
+
font-weight: 400;
|
|
211
|
+
line-height: 1.25;
|
|
212
|
+
letter-spacing: 0;"
|
|
213
|
+
`;
|
|
214
|
+
|
|
215
|
+
exports[`styles fluidHeading06 should be printable 1`] = `
|
|
216
|
+
"font-size: 2rem;
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
line-height: 1.25;
|
|
219
|
+
letter-spacing: 0;"
|
|
220
|
+
`;
|
|
221
|
+
|
|
222
|
+
exports[`styles fluidParagraph01 should be printable 1`] = `
|
|
223
|
+
"font-size: 1.5rem;
|
|
224
|
+
font-weight: 300;
|
|
225
|
+
line-height: 1.334;
|
|
226
|
+
letter-spacing: 0;"
|
|
227
|
+
`;
|
|
228
|
+
|
|
229
|
+
exports[`styles fluidQuotation01 should be printable 1`] = `
|
|
230
|
+
"font-family: 'IBM Plex Serif', 'Georgia', Times, serif;
|
|
231
|
+
font-size: 1.25rem;
|
|
232
|
+
font-weight: 400;
|
|
233
|
+
line-height: 1.3;
|
|
234
|
+
letter-spacing: 0;"
|
|
235
|
+
`;
|
|
236
|
+
|
|
237
|
+
exports[`styles fluidQuotation02 should be printable 1`] = `
|
|
238
|
+
"font-family: 'IBM Plex Serif', 'Georgia', Times, serif;
|
|
239
|
+
font-size: 2rem;
|
|
240
|
+
font-weight: 300;
|
|
241
|
+
line-height: 1.25;
|
|
242
|
+
letter-spacing: 0;"
|
|
243
|
+
`;
|
|
244
|
+
|
|
138
245
|
exports[`styles heading01 should be printable 1`] = `
|
|
139
246
|
"font-size: 0.875rem;
|
|
140
247
|
font-weight: 600;
|
|
141
|
-
line-height: 1.
|
|
248
|
+
line-height: 1.42857;
|
|
142
249
|
letter-spacing: 0.16px;"
|
|
143
250
|
`;
|
|
144
251
|
|
|
145
252
|
exports[`styles heading02 should be printable 1`] = `
|
|
146
253
|
"font-size: 1rem;
|
|
147
254
|
font-weight: 600;
|
|
255
|
+
line-height: 1.5;
|
|
256
|
+
letter-spacing: 0;"
|
|
257
|
+
`;
|
|
258
|
+
|
|
259
|
+
exports[`styles heading03 should be printable 1`] = `
|
|
260
|
+
"font-size: 1.25rem;
|
|
261
|
+
font-weight: 400;
|
|
262
|
+
line-height: 1.4;
|
|
263
|
+
letter-spacing: 0;"
|
|
264
|
+
`;
|
|
265
|
+
|
|
266
|
+
exports[`styles heading04 should be printable 1`] = `
|
|
267
|
+
"font-size: 1.75rem;
|
|
268
|
+
font-weight: 400;
|
|
269
|
+
line-height: 1.28572;
|
|
270
|
+
letter-spacing: 0;"
|
|
271
|
+
`;
|
|
272
|
+
|
|
273
|
+
exports[`styles heading05 should be printable 1`] = `
|
|
274
|
+
"font-size: 2rem;
|
|
275
|
+
font-weight: 400;
|
|
276
|
+
line-height: 1.25;
|
|
277
|
+
letter-spacing: 0;"
|
|
278
|
+
`;
|
|
279
|
+
|
|
280
|
+
exports[`styles heading06 should be printable 1`] = `
|
|
281
|
+
"font-size: 2.625rem;
|
|
282
|
+
font-weight: 300;
|
|
283
|
+
line-height: 1.199;
|
|
284
|
+
letter-spacing: 0;"
|
|
285
|
+
`;
|
|
286
|
+
|
|
287
|
+
exports[`styles heading07 should be printable 1`] = `
|
|
288
|
+
"font-size: 3.375rem;
|
|
289
|
+
font-weight: 300;
|
|
290
|
+
line-height: 1.199;
|
|
291
|
+
letter-spacing: 0;"
|
|
292
|
+
`;
|
|
293
|
+
|
|
294
|
+
exports[`styles headingCompact01 should be printable 1`] = `
|
|
295
|
+
"font-size: 0.875rem;
|
|
296
|
+
font-weight: 600;
|
|
297
|
+
line-height: 1.28572;
|
|
298
|
+
letter-spacing: 0.16px;"
|
|
299
|
+
`;
|
|
300
|
+
|
|
301
|
+
exports[`styles headingCompact02 should be printable 1`] = `
|
|
302
|
+
"font-size: 1rem;
|
|
303
|
+
font-weight: 600;
|
|
148
304
|
line-height: 1.375;
|
|
149
305
|
letter-spacing: 0;"
|
|
150
306
|
`;
|
|
151
307
|
|
|
152
308
|
exports[`styles helperText01 should be printable 1`] = `
|
|
153
309
|
"font-size: 0.75rem;
|
|
154
|
-
line-height: 1.
|
|
310
|
+
line-height: 1.33333;
|
|
155
311
|
letter-spacing: 0.32px;"
|
|
156
312
|
`;
|
|
157
313
|
|
|
158
314
|
exports[`styles helperText02 should be printable 1`] = `
|
|
159
315
|
"font-size: 0.875rem;
|
|
160
|
-
line-height: 1.
|
|
161
|
-
letter-spacing: 0.
|
|
316
|
+
line-height: 1.28572;
|
|
317
|
+
letter-spacing: 0.16px;"
|
|
162
318
|
`;
|
|
163
319
|
|
|
164
320
|
exports[`styles label01 should be printable 1`] = `
|
|
165
321
|
"font-size: 0.75rem;
|
|
166
322
|
font-weight: 400;
|
|
167
|
-
line-height: 1.
|
|
323
|
+
line-height: 1.33333;
|
|
168
324
|
letter-spacing: 0.32px;"
|
|
169
325
|
`;
|
|
170
326
|
|
|
171
327
|
exports[`styles label02 should be printable 1`] = `
|
|
172
328
|
"font-size: 0.875rem;
|
|
173
329
|
font-weight: 400;
|
|
174
|
-
line-height: 1.
|
|
330
|
+
line-height: 1.28572;
|
|
331
|
+
letter-spacing: 0.16px;"
|
|
332
|
+
`;
|
|
333
|
+
|
|
334
|
+
exports[`styles legal01 should be printable 1`] = `
|
|
335
|
+
"font-size: 0.75rem;
|
|
336
|
+
font-weight: 400;
|
|
337
|
+
line-height: 1.33333;
|
|
175
338
|
letter-spacing: 0.32px;"
|
|
176
339
|
`;
|
|
177
340
|
|
|
341
|
+
exports[`styles legal02 should be printable 1`] = `
|
|
342
|
+
"font-size: 0.875rem;
|
|
343
|
+
font-weight: 400;
|
|
344
|
+
line-height: 1.28572;
|
|
345
|
+
letter-spacing: 0.16px;"
|
|
346
|
+
`;
|
|
347
|
+
|
|
178
348
|
exports[`styles productiveHeading01 should be printable 1`] = `
|
|
179
349
|
"font-size: 0.875rem;
|
|
180
350
|
font-weight: 600;
|
|
181
|
-
line-height: 1.
|
|
351
|
+
line-height: 1.28572;
|
|
182
352
|
letter-spacing: 0.16px;"
|
|
183
353
|
`;
|
|
184
354
|
|
|
@@ -199,7 +369,7 @@ letter-spacing: 0;"
|
|
|
199
369
|
exports[`styles productiveHeading04 should be printable 1`] = `
|
|
200
370
|
"font-size: 1.75rem;
|
|
201
371
|
font-weight: 400;
|
|
202
|
-
line-height: 1.
|
|
372
|
+
line-height: 1.28572;
|
|
203
373
|
letter-spacing: 0;"
|
|
204
374
|
`;
|
|
205
375
|
|
|
@@ -220,19 +390,21 @@ letter-spacing: 0;"
|
|
|
220
390
|
exports[`styles productiveHeading07 should be printable 1`] = `
|
|
221
391
|
"font-size: 3.375rem;
|
|
222
392
|
font-weight: 300;
|
|
223
|
-
line-height: 1.
|
|
393
|
+
line-height: 1.199;
|
|
224
394
|
letter-spacing: 0;"
|
|
225
395
|
`;
|
|
226
396
|
|
|
227
397
|
exports[`styles quotation01 should be printable 1`] = `
|
|
228
|
-
"font-
|
|
398
|
+
"font-family: 'IBM Plex Serif', 'Georgia', Times, serif;
|
|
399
|
+
font-size: 1.25rem;
|
|
229
400
|
font-weight: 400;
|
|
230
401
|
line-height: 1.3;
|
|
231
402
|
letter-spacing: 0;"
|
|
232
403
|
`;
|
|
233
404
|
|
|
234
405
|
exports[`styles quotation02 should be printable 1`] = `
|
|
235
|
-
"font-
|
|
406
|
+
"font-family: 'IBM Plex Serif', 'Georgia', Times, serif;
|
|
407
|
+
font-size: 2rem;
|
|
236
408
|
font-weight: 300;
|
|
237
409
|
line-height: 1.25;
|
|
238
410
|
letter-spacing: 0;"
|
|
@@ -12,53 +12,77 @@ import * as CarbonType from '../';
|
|
|
12
12
|
describe('type', () => {
|
|
13
13
|
it('should export type helpers', () => {
|
|
14
14
|
expect(Object.keys(CarbonType)).toMatchInlineSnapshot(`
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
15
|
+
Array [
|
|
16
|
+
"fontFamilies",
|
|
17
|
+
"fontFamily",
|
|
18
|
+
"fontWeights",
|
|
19
|
+
"fontWeight",
|
|
20
|
+
"print",
|
|
21
|
+
"reset",
|
|
22
|
+
"getTypeSize",
|
|
23
|
+
"scale",
|
|
24
|
+
"fluid",
|
|
25
|
+
"unstable_tokens",
|
|
26
|
+
"styles",
|
|
27
|
+
"caption01",
|
|
28
|
+
"caption02",
|
|
29
|
+
"label01",
|
|
30
|
+
"label02",
|
|
31
|
+
"helperText01",
|
|
32
|
+
"helperText02",
|
|
33
|
+
"bodyShort01",
|
|
34
|
+
"bodyLong01",
|
|
35
|
+
"bodyShort02",
|
|
36
|
+
"bodyLong02",
|
|
37
|
+
"code01",
|
|
38
|
+
"code02",
|
|
39
|
+
"heading01",
|
|
40
|
+
"productiveHeading01",
|
|
41
|
+
"heading02",
|
|
42
|
+
"productiveHeading02",
|
|
43
|
+
"productiveHeading03",
|
|
44
|
+
"productiveHeading04",
|
|
45
|
+
"productiveHeading05",
|
|
46
|
+
"productiveHeading06",
|
|
47
|
+
"productiveHeading07",
|
|
48
|
+
"expressiveHeading01",
|
|
49
|
+
"expressiveHeading02",
|
|
50
|
+
"expressiveHeading03",
|
|
51
|
+
"expressiveHeading04",
|
|
52
|
+
"expressiveHeading05",
|
|
53
|
+
"expressiveHeading06",
|
|
54
|
+
"expressiveParagraph01",
|
|
55
|
+
"quotation01",
|
|
56
|
+
"quotation02",
|
|
57
|
+
"display01",
|
|
58
|
+
"display02",
|
|
59
|
+
"display03",
|
|
60
|
+
"display04",
|
|
61
|
+
"legal01",
|
|
62
|
+
"legal02",
|
|
63
|
+
"bodyCompact01",
|
|
64
|
+
"bodyCompact02",
|
|
65
|
+
"body01",
|
|
66
|
+
"body02",
|
|
67
|
+
"headingCompact01",
|
|
68
|
+
"headingCompact02",
|
|
69
|
+
"heading03",
|
|
70
|
+
"heading04",
|
|
71
|
+
"heading05",
|
|
72
|
+
"heading06",
|
|
73
|
+
"heading07",
|
|
74
|
+
"fluidHeading03",
|
|
75
|
+
"fluidHeading04",
|
|
76
|
+
"fluidHeading05",
|
|
77
|
+
"fluidHeading06",
|
|
78
|
+
"fluidParagraph01",
|
|
79
|
+
"fluidQuotation01",
|
|
80
|
+
"fluidQuotation02",
|
|
81
|
+
"fluidDisplay01",
|
|
82
|
+
"fluidDisplay02",
|
|
83
|
+
"fluidDisplay03",
|
|
84
|
+
"fluidDisplay04",
|
|
85
|
+
]
|
|
86
|
+
`);
|
|
63
87
|
});
|
|
64
88
|
});
|
package/src/styles.js
CHANGED
|
@@ -13,54 +13,54 @@ import { scale } from './scale';
|
|
|
13
13
|
export const caption01 = {
|
|
14
14
|
fontSize: rem(scale[0]),
|
|
15
15
|
fontWeight: fontWeights.regular,
|
|
16
|
-
lineHeight: 1.
|
|
16
|
+
lineHeight: 1.33333,
|
|
17
17
|
letterSpacing: px(0.32),
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export const caption02 = {
|
|
21
21
|
fontSize: rem(scale[1]),
|
|
22
22
|
fontWeight: fontWeights.regular,
|
|
23
|
-
lineHeight: 1.
|
|
23
|
+
lineHeight: 1.28572,
|
|
24
24
|
letterSpacing: px(0.32),
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export const label01 = {
|
|
28
28
|
fontSize: rem(scale[0]),
|
|
29
29
|
fontWeight: fontWeights.regular,
|
|
30
|
-
lineHeight: 1.
|
|
30
|
+
lineHeight: 1.33333,
|
|
31
31
|
letterSpacing: px(0.32),
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export const label02 = {
|
|
35
35
|
fontSize: rem(scale[1]),
|
|
36
36
|
fontWeight: fontWeights.regular,
|
|
37
|
-
lineHeight: 1.
|
|
38
|
-
letterSpacing: px(0.
|
|
37
|
+
lineHeight: 1.28572,
|
|
38
|
+
letterSpacing: px(0.16),
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const helperText01 = {
|
|
42
42
|
fontSize: rem(scale[0]),
|
|
43
|
-
lineHeight: 1.
|
|
43
|
+
lineHeight: 1.33333,
|
|
44
44
|
letterSpacing: px(0.32),
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const helperText02 = {
|
|
48
48
|
fontSize: rem(scale[1]),
|
|
49
|
-
lineHeight: 1.
|
|
50
|
-
letterSpacing: px(0.
|
|
49
|
+
lineHeight: 1.28572,
|
|
50
|
+
letterSpacing: px(0.16),
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export const bodyShort01 = {
|
|
54
54
|
fontSize: rem(scale[1]),
|
|
55
55
|
fontWeight: fontWeights.regular,
|
|
56
|
-
lineHeight: 1.
|
|
56
|
+
lineHeight: 1.28572,
|
|
57
57
|
letterSpacing: px(0.16),
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export const bodyLong01 = {
|
|
61
61
|
fontSize: rem(scale[1]),
|
|
62
62
|
fontWeight: fontWeights.regular,
|
|
63
|
-
lineHeight: 1.
|
|
63
|
+
lineHeight: 1.42857,
|
|
64
64
|
letterSpacing: px(0.16),
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -82,7 +82,7 @@ export const code01 = {
|
|
|
82
82
|
fontFamily: fontFamilies.mono,
|
|
83
83
|
fontSize: rem(scale[0]),
|
|
84
84
|
fontWeight: fontWeights.regular,
|
|
85
|
-
lineHeight: 1.
|
|
85
|
+
lineHeight: 1.33333,
|
|
86
86
|
letterSpacing: px(0.32),
|
|
87
87
|
};
|
|
88
88
|
|
|
@@ -90,27 +90,37 @@ export const code02 = {
|
|
|
90
90
|
fontFamily: fontFamilies.mono,
|
|
91
91
|
fontSize: rem(scale[1]),
|
|
92
92
|
fontWeight: fontWeights.regular,
|
|
93
|
-
lineHeight: 1.
|
|
93
|
+
lineHeight: 1.42857,
|
|
94
94
|
letterSpacing: px(0.32),
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
export const heading01 = {
|
|
98
98
|
fontSize: rem(scale[1]),
|
|
99
99
|
fontWeight: fontWeights.semibold,
|
|
100
|
-
lineHeight: 1.
|
|
100
|
+
lineHeight: 1.42857,
|
|
101
101
|
letterSpacing: px(0.16),
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
export const productiveHeading01 =
|
|
104
|
+
export const productiveHeading01 = {
|
|
105
|
+
fontSize: rem(scale[1]),
|
|
106
|
+
fontWeight: fontWeights.semibold,
|
|
107
|
+
lineHeight: 1.28572,
|
|
108
|
+
letterSpacing: px(0.16),
|
|
109
|
+
};
|
|
105
110
|
|
|
106
111
|
export const heading02 = {
|
|
107
112
|
fontSize: rem(scale[2]),
|
|
108
113
|
fontWeight: fontWeights.semibold,
|
|
109
|
-
lineHeight: 1.
|
|
114
|
+
lineHeight: 1.5,
|
|
110
115
|
letterSpacing: 0,
|
|
111
116
|
};
|
|
112
117
|
|
|
113
|
-
export const productiveHeading02 =
|
|
118
|
+
export const productiveHeading02 = {
|
|
119
|
+
fontSize: rem(scale[2]),
|
|
120
|
+
fontWeight: fontWeights.semibold,
|
|
121
|
+
lineHeight: 1.375,
|
|
122
|
+
letterSpacing: 0,
|
|
123
|
+
};
|
|
114
124
|
|
|
115
125
|
export const productiveHeading03 = {
|
|
116
126
|
fontSize: rem(scale[4]),
|
|
@@ -122,7 +132,7 @@ export const productiveHeading03 = {
|
|
|
122
132
|
export const productiveHeading04 = {
|
|
123
133
|
fontSize: rem(scale[6]),
|
|
124
134
|
fontWeight: fontWeights.regular,
|
|
125
|
-
lineHeight: 1.
|
|
135
|
+
lineHeight: 1.28572,
|
|
126
136
|
letterSpacing: 0,
|
|
127
137
|
};
|
|
128
138
|
|
|
@@ -143,7 +153,7 @@ export const productiveHeading06 = {
|
|
|
143
153
|
export const productiveHeading07 = {
|
|
144
154
|
fontSize: rem(scale[11]),
|
|
145
155
|
fontWeight: fontWeights.light,
|
|
146
|
-
lineHeight: 1.
|
|
156
|
+
lineHeight: 1.199,
|
|
147
157
|
letterSpacing: 0,
|
|
148
158
|
};
|
|
149
159
|
|
|
@@ -177,7 +187,7 @@ export const expressiveHeading03 = {
|
|
|
177
187
|
export const expressiveHeading04 = {
|
|
178
188
|
fontSize: rem(scale[6]),
|
|
179
189
|
fontWeight: fontWeights.regular,
|
|
180
|
-
lineHeight: 1.
|
|
190
|
+
lineHeight: 1.28572,
|
|
181
191
|
letterSpacing: 0,
|
|
182
192
|
breakpoints: {
|
|
183
193
|
xlg: {
|
|
@@ -262,7 +272,7 @@ export const expressiveParagraph01 = {
|
|
|
262
272
|
breakpoints: {
|
|
263
273
|
lg: {
|
|
264
274
|
fontSize: rem(scale[6]),
|
|
265
|
-
lineHeight: 1.
|
|
275
|
+
lineHeight: 1.28572,
|
|
266
276
|
},
|
|
267
277
|
max: {
|
|
268
278
|
fontSize: rem(scale[7]),
|
|
@@ -272,6 +282,7 @@ export const expressiveParagraph01 = {
|
|
|
272
282
|
};
|
|
273
283
|
|
|
274
284
|
export const quotation01 = {
|
|
285
|
+
fontFamily: fontFamilies.serif,
|
|
275
286
|
fontSize: rem(scale[4]),
|
|
276
287
|
fontWeight: fontWeights.regular,
|
|
277
288
|
lineHeight: 1.3,
|
|
@@ -291,7 +302,7 @@ export const quotation01 = {
|
|
|
291
302
|
xlg: {
|
|
292
303
|
fontSize: rem(scale[6]),
|
|
293
304
|
fontWeight: fontWeights.regular,
|
|
294
|
-
lineHeight: 1.
|
|
305
|
+
lineHeight: 1.28572,
|
|
295
306
|
letterSpacing: 0,
|
|
296
307
|
},
|
|
297
308
|
max: {
|
|
@@ -304,6 +315,7 @@ export const quotation01 = {
|
|
|
304
315
|
};
|
|
305
316
|
|
|
306
317
|
export const quotation02 = {
|
|
318
|
+
fontFamily: fontFamilies.serif,
|
|
307
319
|
fontSize: rem(scale[7]),
|
|
308
320
|
fontWeight: fontWeights.light,
|
|
309
321
|
lineHeight: 1.25,
|
|
@@ -427,3 +439,51 @@ export const display04 = {
|
|
|
427
439
|
},
|
|
428
440
|
},
|
|
429
441
|
};
|
|
442
|
+
|
|
443
|
+
// Type changes - V11
|
|
444
|
+
|
|
445
|
+
// Small styles
|
|
446
|
+
// No changes for code-01, code-02, label-01, label-02
|
|
447
|
+
export const legal01 = {
|
|
448
|
+
fontSize: rem(scale[0]),
|
|
449
|
+
fontWeight: fontWeights.regular,
|
|
450
|
+
lineHeight: 1.33333,
|
|
451
|
+
letterSpacing: px(0.32),
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
export const legal02 = {
|
|
455
|
+
fontSize: rem(scale[1]),
|
|
456
|
+
fontWeight: fontWeights.regular,
|
|
457
|
+
lineHeight: 1.28572,
|
|
458
|
+
letterSpacing: px(0.16),
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
// Body styles
|
|
462
|
+
export const bodyCompact01 = bodyShort01;
|
|
463
|
+
export const bodyCompact02 = bodyShort02;
|
|
464
|
+
export const body01 = bodyLong01;
|
|
465
|
+
export const body02 = bodyLong02;
|
|
466
|
+
|
|
467
|
+
// Fixed heading styles
|
|
468
|
+
export const headingCompact01 = productiveHeading01;
|
|
469
|
+
export const headingCompact02 = productiveHeading02;
|
|
470
|
+
export const heading03 = productiveHeading03;
|
|
471
|
+
export const heading04 = productiveHeading04;
|
|
472
|
+
export const heading05 = productiveHeading05;
|
|
473
|
+
export const heading06 = productiveHeading06;
|
|
474
|
+
export const heading07 = productiveHeading07;
|
|
475
|
+
|
|
476
|
+
// Fluid heading styles
|
|
477
|
+
export const fluidHeading03 = expressiveHeading03;
|
|
478
|
+
export const fluidHeading04 = expressiveHeading04;
|
|
479
|
+
export const fluidHeading05 = expressiveHeading05;
|
|
480
|
+
export const fluidHeading06 = expressiveHeading06;
|
|
481
|
+
|
|
482
|
+
// Additional fluid styles
|
|
483
|
+
export const fluidParagraph01 = expressiveParagraph01;
|
|
484
|
+
export const fluidQuotation01 = quotation01;
|
|
485
|
+
export const fluidQuotation02 = quotation02;
|
|
486
|
+
export const fluidDisplay01 = display01;
|
|
487
|
+
export const fluidDisplay02 = display02;
|
|
488
|
+
export const fluidDisplay03 = display03;
|
|
489
|
+
export const fluidDisplay04 = display04;
|