@atlaskit/tokens 1.17.1 → 1.18.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/CHANGELOG.md +6 -0
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +92 -77
- package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +4 -3
- package/dist/cjs/artifacts/token-names.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +44 -99
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +42 -97
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +42 -97
- package/dist/cjs/babel-plugin/plugin.js +2 -2
- package/dist/cjs/get-global-theme.js +2 -2
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography-palette.js +46 -40
- package/dist/cjs/tokens/atlassian-typography/theme.js +10 -0
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +12 -2
- package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +10 -0
- package/dist/cjs/tokens/default/typography/font.js +8 -0
- package/dist/cjs/utils/generate-custom-color-ramp.js +2 -2
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +92 -77
- package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +4 -3
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +2 -1
- package/dist/es2019/artifacts/themes/atlassian-typography.js +2 -1
- package/dist/es2019/artifacts/token-default-values.js +4 -3
- package/dist/es2019/artifacts/token-names.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +44 -99
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +42 -97
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +42 -97
- package/dist/es2019/get-theme-styles.js +1 -2
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +44 -38
- package/dist/es2019/tokens/atlassian-typography/theme.js +10 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +12 -2
- package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +10 -0
- package/dist/es2019/tokens/default/typography/font.js +8 -0
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +92 -77
- package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +4 -3
- package/dist/esm/artifacts/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +44 -99
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +42 -97
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +42 -97
- package/dist/esm/babel-plugin/plugin.js +2 -2
- package/dist/esm/get-global-theme.js +2 -2
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +46 -40
- package/dist/esm/tokens/atlassian-typography/theme.js +10 -0
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +12 -2
- package/dist/esm/tokens/atlassian-typography-minor3/theme.js +10 -0
- package/dist/esm/tokens/default/typography/font.js +8 -0
- package/dist/esm/utils/generate-custom-color-ramp.js +2 -2
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +4 -3
- package/dist/types/artifacts/token-names.d.ts +3 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +2 -45
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +2 -81
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +2 -81
- package/dist/types/palettes/typography-palette.d.ts +1 -1
- package/dist/types/types.d.ts +6 -6
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +4 -3
- package/dist/types-ts4.5/artifacts/token-names.d.ts +3 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +2 -45
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +2 -81
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +2 -81
- package/dist/types-ts4.5/palettes/typography-palette.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +6 -6
- package/package.json +1 -1
- package/report.api.md +2 -0
- package/tmp/api-report-tmp.d.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::eaaa970ce079ba5e26ef6b1bd1440d6c>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -10,14 +10,7 @@ const tokens = [{
|
|
|
10
10
|
"introduced": "1.14.0",
|
|
11
11
|
"description": "The default body font."
|
|
12
12
|
},
|
|
13
|
-
"value":
|
|
14
|
-
"fontSize": 14,
|
|
15
|
-
"fontStyle": "normal",
|
|
16
|
-
"fontWeight": "400",
|
|
17
|
-
"lineHeight": 20,
|
|
18
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
19
|
-
"letterSpacing": "0"
|
|
20
|
-
},
|
|
13
|
+
"value": "normal 400 14px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
21
14
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
22
15
|
"isSource": true,
|
|
23
16
|
"original": {
|
|
@@ -44,16 +37,38 @@ const tokens = [{
|
|
|
44
37
|
"group": "typography",
|
|
45
38
|
"state": "experimental",
|
|
46
39
|
"introduced": "1.14.0",
|
|
47
|
-
"description": "
|
|
40
|
+
"description": "Larger body font or default body font for text rich experiences."
|
|
48
41
|
},
|
|
49
|
-
"value":
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
"value": "normal 400 16px/24px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
43
|
+
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
44
|
+
"isSource": true,
|
|
45
|
+
"original": {
|
|
46
|
+
"attributes": {
|
|
47
|
+
"group": "typography",
|
|
48
|
+
"state": "experimental",
|
|
49
|
+
"introduced": "1.14.0",
|
|
50
|
+
"description": "Larger body font or default body font for text rich experiences."
|
|
51
|
+
},
|
|
52
|
+
"value": {
|
|
53
|
+
"fontWeight": "FontWeight400",
|
|
54
|
+
"fontSize": "FontSize16",
|
|
55
|
+
"lineHeight": "LineHeight300",
|
|
56
|
+
"fontFamily": "FontFamilyWebSans",
|
|
57
|
+
"fontStyle": "normal",
|
|
58
|
+
"letterSpacing": "LetterSpacing0"
|
|
59
|
+
}
|
|
56
60
|
},
|
|
61
|
+
"name": "font.body.lg",
|
|
62
|
+
"path": ["font", "body", "lg"],
|
|
63
|
+
"cleanName": "font.body.lg"
|
|
64
|
+
}, {
|
|
65
|
+
"attributes": {
|
|
66
|
+
"group": "typography",
|
|
67
|
+
"state": "experimental",
|
|
68
|
+
"introduced": "1.14.0",
|
|
69
|
+
"description": "Smaller body font."
|
|
70
|
+
},
|
|
71
|
+
"value": "normal 400 12px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
57
72
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
58
73
|
"isSource": true,
|
|
59
74
|
"original": {
|
|
@@ -82,14 +97,7 @@ const tokens = [{
|
|
|
82
97
|
"introduced": "1.14.0",
|
|
83
98
|
"description": "Used for monospace and code."
|
|
84
99
|
},
|
|
85
|
-
"value":
|
|
86
|
-
"fontSize": "0.875em",
|
|
87
|
-
"fontStyle": "normal",
|
|
88
|
-
"fontWeight": "400",
|
|
89
|
-
"lineHeight": "1",
|
|
90
|
-
"fontFamily": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
91
|
-
"letterSpacing": "0"
|
|
92
|
-
},
|
|
100
|
+
"value": "normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
|
|
93
101
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
94
102
|
"isSource": true,
|
|
95
103
|
"original": {
|
|
@@ -118,14 +126,7 @@ const tokens = [{
|
|
|
118
126
|
"introduced": "1.14.0",
|
|
119
127
|
"description": "TBD"
|
|
120
128
|
},
|
|
121
|
-
"value":
|
|
122
|
-
"fontSize": 24,
|
|
123
|
-
"fontStyle": "normal",
|
|
124
|
-
"fontWeight": "700",
|
|
125
|
-
"lineHeight": 28,
|
|
126
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
127
|
-
"letterSpacing": "0"
|
|
128
|
-
},
|
|
129
|
+
"value": "normal 700 24px/28px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
129
130
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
130
131
|
"isSource": true,
|
|
131
132
|
"original": {
|
|
@@ -154,14 +155,7 @@ const tokens = [{
|
|
|
154
155
|
"introduced": "1.14.0",
|
|
155
156
|
"description": "TBD"
|
|
156
157
|
},
|
|
157
|
-
"value":
|
|
158
|
-
"fontSize": 20,
|
|
159
|
-
"fontStyle": "normal",
|
|
160
|
-
"fontWeight": "700",
|
|
161
|
-
"lineHeight": 24,
|
|
162
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
163
|
-
"letterSpacing": "0"
|
|
164
|
-
},
|
|
158
|
+
"value": "normal 700 20px/24px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
165
159
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
166
160
|
"isSource": true,
|
|
167
161
|
"original": {
|
|
@@ -190,14 +184,7 @@ const tokens = [{
|
|
|
190
184
|
"introduced": "1.14.0",
|
|
191
185
|
"description": "TBD"
|
|
192
186
|
},
|
|
193
|
-
"value":
|
|
194
|
-
"fontSize": 16,
|
|
195
|
-
"fontStyle": "normal",
|
|
196
|
-
"fontWeight": "700",
|
|
197
|
-
"lineHeight": 20,
|
|
198
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
199
|
-
"letterSpacing": "0"
|
|
200
|
-
},
|
|
187
|
+
"value": "normal 700 16px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
201
188
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
202
189
|
"isSource": true,
|
|
203
190
|
"original": {
|
|
@@ -226,14 +213,7 @@ const tokens = [{
|
|
|
226
213
|
"introduced": "1.14.0",
|
|
227
214
|
"description": "TBD"
|
|
228
215
|
},
|
|
229
|
-
"value":
|
|
230
|
-
"fontSize": 28,
|
|
231
|
-
"fontStyle": "normal",
|
|
232
|
-
"fontWeight": "700",
|
|
233
|
-
"lineHeight": 32,
|
|
234
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
235
|
-
"letterSpacing": "0"
|
|
236
|
-
},
|
|
216
|
+
"value": "normal 700 28px/32px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
237
217
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
238
218
|
"isSource": true,
|
|
239
219
|
"original": {
|
|
@@ -262,14 +242,7 @@ const tokens = [{
|
|
|
262
242
|
"introduced": "1.14.0",
|
|
263
243
|
"description": "TBD"
|
|
264
244
|
},
|
|
265
|
-
"value":
|
|
266
|
-
"fontSize": 14,
|
|
267
|
-
"fontStyle": "normal",
|
|
268
|
-
"fontWeight": "700",
|
|
269
|
-
"lineHeight": 16,
|
|
270
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
271
|
-
"letterSpacing": "0"
|
|
272
|
-
},
|
|
245
|
+
"value": "normal 700 14px/16px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
273
246
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
274
247
|
"isSource": true,
|
|
275
248
|
"original": {
|
|
@@ -298,14 +271,7 @@ const tokens = [{
|
|
|
298
271
|
"introduced": "1.14.0",
|
|
299
272
|
"description": "TBD"
|
|
300
273
|
},
|
|
301
|
-
"value":
|
|
302
|
-
"fontSize": 36,
|
|
303
|
-
"fontStyle": "normal",
|
|
304
|
-
"fontWeight": "700",
|
|
305
|
-
"lineHeight": 40,
|
|
306
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
307
|
-
"letterSpacing": "0"
|
|
308
|
-
},
|
|
274
|
+
"value": "normal 700 36px/40px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
309
275
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
310
276
|
"isSource": true,
|
|
311
277
|
"original": {
|
|
@@ -334,14 +300,7 @@ const tokens = [{
|
|
|
334
300
|
"introduced": "1.14.0",
|
|
335
301
|
"description": "TBD"
|
|
336
302
|
},
|
|
337
|
-
"value":
|
|
338
|
-
"fontSize": 12,
|
|
339
|
-
"fontStyle": "normal",
|
|
340
|
-
"fontWeight": "700",
|
|
341
|
-
"lineHeight": 16,
|
|
342
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
343
|
-
"letterSpacing": "0"
|
|
344
|
-
},
|
|
303
|
+
"value": "normal 700 12px/16px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
345
304
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
346
305
|
"isSource": true,
|
|
347
306
|
"original": {
|
|
@@ -480,14 +439,7 @@ const tokens = [{
|
|
|
480
439
|
"introduced": "1.14.0",
|
|
481
440
|
"description": "Single-line non-wrapping text like that in a button."
|
|
482
441
|
},
|
|
483
|
-
"value":
|
|
484
|
-
"fontSize": 14,
|
|
485
|
-
"fontStyle": "normal",
|
|
486
|
-
"fontWeight": "400",
|
|
487
|
-
"lineHeight": "1",
|
|
488
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
489
|
-
"letterSpacing": "0"
|
|
490
|
-
},
|
|
442
|
+
"value": "normal 400 14px/1 ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
491
443
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
492
444
|
"isSource": true,
|
|
493
445
|
"original": {
|
|
@@ -516,14 +468,7 @@ const tokens = [{
|
|
|
516
468
|
"introduced": "1.14.0",
|
|
517
469
|
"description": "Single-line non-wrapping supporting text like that in a smaller label."
|
|
518
470
|
},
|
|
519
|
-
"value":
|
|
520
|
-
"fontSize": 12,
|
|
521
|
-
"fontStyle": "normal",
|
|
522
|
-
"fontWeight": "400",
|
|
523
|
-
"lineHeight": "1",
|
|
524
|
-
"fontFamily": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
525
|
-
"letterSpacing": "0"
|
|
526
|
-
},
|
|
471
|
+
"value": "normal 400 12px/1 ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
|
|
527
472
|
"filePath": "src/tokens/atlassian-typography/theme.tsx",
|
|
528
473
|
"isSource": true,
|
|
529
474
|
"original": {
|
|
@@ -48,8 +48,7 @@ const getThemeStyles = async preferences => {
|
|
|
48
48
|
}
|
|
49
49
|
}),
|
|
50
50
|
// Add custom themes if they're present
|
|
51
|
-
(async
|
|
52
|
-
var _preferences$UNSAFE_t;
|
|
51
|
+
(async _preferences$UNSAFE_t => {
|
|
53
52
|
if (preferences !== 'all' && preferences !== null && preferences !== void 0 && preferences.UNSAFE_themeOptions && isValidBrandHex(preferences === null || preferences === void 0 ? void 0 : (_preferences$UNSAFE_t = preferences.UNSAFE_themeOptions) === null || _preferences$UNSAFE_t === void 0 ? void 0 : _preferences$UNSAFE_t.brandColor)) {
|
|
54
53
|
try {
|
|
55
54
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
const name = "@atlaskit/tokens";
|
|
4
|
-
const version = "1.
|
|
4
|
+
const version = "1.18.0";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
const name = "@atlaskit/tokens";
|
|
5
|
-
const version = "1.
|
|
5
|
+
const version = "1.18.0";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -3,31 +3,31 @@ const letterSpacingScale = {
|
|
|
3
3
|
LetterSpacing0: {
|
|
4
4
|
value: '0',
|
|
5
5
|
attributes: {
|
|
6
|
-
group: '
|
|
6
|
+
group: 'letterSpacing'
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
LetterSpacing100: {
|
|
10
10
|
value: '-0.003em',
|
|
11
11
|
attributes: {
|
|
12
|
-
group: '
|
|
12
|
+
group: 'letterSpacing'
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
LetterSpacing200: {
|
|
16
16
|
value: '-0.006em',
|
|
17
17
|
attributes: {
|
|
18
|
-
group: '
|
|
18
|
+
group: 'letterSpacing'
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
LetterSpacing300: {
|
|
22
22
|
value: '-0.008em',
|
|
23
23
|
attributes: {
|
|
24
|
-
group: '
|
|
24
|
+
group: 'letterSpacing'
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
LetterSpacing400: {
|
|
28
28
|
value: '-0.01em',
|
|
29
29
|
attributes: {
|
|
30
|
-
group: '
|
|
30
|
+
group: 'letterSpacing'
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -37,49 +37,55 @@ const lineHeightScale = {
|
|
|
37
37
|
LineHeight1: {
|
|
38
38
|
value: '1',
|
|
39
39
|
attributes: {
|
|
40
|
-
group: '
|
|
40
|
+
group: 'lineHeight'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
LineHeight050: {
|
|
44
|
+
value: 12,
|
|
45
|
+
attributes: {
|
|
46
|
+
group: 'lineHeight'
|
|
41
47
|
}
|
|
42
48
|
},
|
|
43
49
|
LineHeight100: {
|
|
44
50
|
value: 16,
|
|
45
51
|
attributes: {
|
|
46
|
-
group: '
|
|
52
|
+
group: 'lineHeight'
|
|
47
53
|
}
|
|
48
54
|
},
|
|
49
55
|
LineHeight200: {
|
|
50
56
|
value: 20,
|
|
51
57
|
attributes: {
|
|
52
|
-
group: '
|
|
58
|
+
group: 'lineHeight'
|
|
53
59
|
}
|
|
54
60
|
},
|
|
55
61
|
LineHeight300: {
|
|
56
62
|
value: 24,
|
|
57
63
|
attributes: {
|
|
58
|
-
group: '
|
|
64
|
+
group: 'lineHeight'
|
|
59
65
|
}
|
|
60
66
|
},
|
|
61
67
|
LineHeight400: {
|
|
62
68
|
value: 28,
|
|
63
69
|
attributes: {
|
|
64
|
-
group: '
|
|
70
|
+
group: 'lineHeight'
|
|
65
71
|
}
|
|
66
72
|
},
|
|
67
73
|
LineHeight500: {
|
|
68
74
|
value: 32,
|
|
69
75
|
attributes: {
|
|
70
|
-
group: '
|
|
76
|
+
group: 'lineHeight'
|
|
71
77
|
}
|
|
72
78
|
},
|
|
73
79
|
LineHeight600: {
|
|
74
80
|
value: 36,
|
|
75
81
|
attributes: {
|
|
76
|
-
group: '
|
|
82
|
+
group: 'lineHeight'
|
|
77
83
|
}
|
|
78
84
|
},
|
|
79
85
|
LineHeight700: {
|
|
80
86
|
value: 40,
|
|
81
87
|
attributes: {
|
|
82
|
-
group: '
|
|
88
|
+
group: 'lineHeight'
|
|
83
89
|
}
|
|
84
90
|
}
|
|
85
91
|
}
|
|
@@ -89,25 +95,25 @@ const fontWeightScale = {
|
|
|
89
95
|
FontWeight400: {
|
|
90
96
|
value: '400',
|
|
91
97
|
attributes: {
|
|
92
|
-
group: '
|
|
98
|
+
group: 'fontWeight'
|
|
93
99
|
}
|
|
94
100
|
},
|
|
95
101
|
FontWeight500: {
|
|
96
102
|
value: '500',
|
|
97
103
|
attributes: {
|
|
98
|
-
group: '
|
|
104
|
+
group: 'fontWeight'
|
|
99
105
|
}
|
|
100
106
|
},
|
|
101
107
|
FontWeight600: {
|
|
102
108
|
value: '600',
|
|
103
109
|
attributes: {
|
|
104
|
-
group: '
|
|
110
|
+
group: 'fontWeight'
|
|
105
111
|
}
|
|
106
112
|
},
|
|
107
113
|
FontWeight700: {
|
|
108
114
|
value: '700',
|
|
109
115
|
attributes: {
|
|
110
|
-
group: '
|
|
116
|
+
group: 'fontWeight'
|
|
111
117
|
}
|
|
112
118
|
}
|
|
113
119
|
}
|
|
@@ -117,13 +123,13 @@ const fontFamilyPalette = {
|
|
|
117
123
|
FontFamilyCharlie: {
|
|
118
124
|
value: 'Charlie Sans',
|
|
119
125
|
attributes: {
|
|
120
|
-
group: '
|
|
126
|
+
group: 'fontFamily'
|
|
121
127
|
}
|
|
122
128
|
},
|
|
123
129
|
LegacyFontFamilyWebSans: {
|
|
124
130
|
value: `-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif`,
|
|
125
131
|
attributes: {
|
|
126
|
-
group: '
|
|
132
|
+
group: 'fontFamily'
|
|
127
133
|
}
|
|
128
134
|
},
|
|
129
135
|
/**
|
|
@@ -134,37 +140,37 @@ const fontFamilyPalette = {
|
|
|
134
140
|
FontFamilyWebSans: {
|
|
135
141
|
value: `ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif`,
|
|
136
142
|
attributes: {
|
|
137
|
-
group: '
|
|
143
|
+
group: 'fontFamily'
|
|
138
144
|
}
|
|
139
145
|
},
|
|
140
146
|
FontFamilyiOSSans: {
|
|
141
147
|
value: 'SF Pro',
|
|
142
148
|
attributes: {
|
|
143
|
-
group: '
|
|
149
|
+
group: 'fontFamily'
|
|
144
150
|
}
|
|
145
151
|
},
|
|
146
152
|
FontFamilyAndroidSans: {
|
|
147
153
|
value: 'Roboto',
|
|
148
154
|
attributes: {
|
|
149
|
-
group: '
|
|
155
|
+
group: 'fontFamily'
|
|
150
156
|
}
|
|
151
157
|
},
|
|
152
158
|
FontFamilyWebMono: {
|
|
153
159
|
value: `ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace`,
|
|
154
160
|
attributes: {
|
|
155
|
-
group: '
|
|
161
|
+
group: 'fontFamily'
|
|
156
162
|
}
|
|
157
163
|
},
|
|
158
164
|
FontFamilyiOSMono: {
|
|
159
165
|
value: 'SF Mono',
|
|
160
166
|
attributes: {
|
|
161
|
-
group: '
|
|
167
|
+
group: 'fontFamily'
|
|
162
168
|
}
|
|
163
169
|
},
|
|
164
170
|
FontFamilyAndroidMono: {
|
|
165
171
|
value: 'Roboto Mono',
|
|
166
172
|
attributes: {
|
|
167
|
-
group: '
|
|
173
|
+
group: 'fontFamily'
|
|
168
174
|
}
|
|
169
175
|
}
|
|
170
176
|
}
|
|
@@ -174,79 +180,79 @@ const fontSizeScale = {
|
|
|
174
180
|
FontSizeCode: {
|
|
175
181
|
value: '0.875em',
|
|
176
182
|
attributes: {
|
|
177
|
-
group: '
|
|
183
|
+
group: 'fontSize'
|
|
178
184
|
}
|
|
179
185
|
},
|
|
180
186
|
LegacyFontSize11: {
|
|
181
187
|
value: 11,
|
|
182
188
|
attributes: {
|
|
183
|
-
group: '
|
|
189
|
+
group: 'fontSize'
|
|
184
190
|
}
|
|
185
191
|
},
|
|
186
192
|
FontSize12: {
|
|
187
193
|
value: 12,
|
|
188
194
|
attributes: {
|
|
189
|
-
group: '
|
|
195
|
+
group: 'fontSize'
|
|
190
196
|
}
|
|
191
197
|
},
|
|
192
198
|
FontSize14: {
|
|
193
199
|
value: 14,
|
|
194
200
|
attributes: {
|
|
195
|
-
group: '
|
|
201
|
+
group: 'fontSize'
|
|
196
202
|
}
|
|
197
203
|
},
|
|
198
204
|
FontSize16: {
|
|
199
205
|
value: 16,
|
|
200
206
|
attributes: {
|
|
201
|
-
group: '
|
|
207
|
+
group: 'fontSize'
|
|
202
208
|
}
|
|
203
209
|
},
|
|
204
210
|
FontSize20: {
|
|
205
211
|
value: 20,
|
|
206
212
|
attributes: {
|
|
207
|
-
group: '
|
|
213
|
+
group: 'fontSize'
|
|
208
214
|
}
|
|
209
215
|
},
|
|
210
216
|
FontSize24: {
|
|
211
217
|
value: 24,
|
|
212
218
|
attributes: {
|
|
213
|
-
group: '
|
|
219
|
+
group: 'fontSize'
|
|
214
220
|
}
|
|
215
221
|
},
|
|
216
222
|
FontSize28: {
|
|
217
223
|
value: 28,
|
|
218
224
|
attributes: {
|
|
219
|
-
group: '
|
|
225
|
+
group: 'fontSize'
|
|
220
226
|
}
|
|
221
227
|
},
|
|
222
228
|
LegacyFontSize29: {
|
|
223
229
|
value: 29,
|
|
224
230
|
attributes: {
|
|
225
|
-
group: '
|
|
231
|
+
group: 'fontSize'
|
|
226
232
|
}
|
|
227
233
|
},
|
|
228
234
|
FontSize32: {
|
|
229
235
|
value: 32,
|
|
230
236
|
attributes: {
|
|
231
|
-
group: '
|
|
237
|
+
group: 'fontSize'
|
|
232
238
|
}
|
|
233
239
|
},
|
|
234
240
|
LegacyFontSize35: {
|
|
235
241
|
value: 35,
|
|
236
242
|
attributes: {
|
|
237
|
-
group: '
|
|
243
|
+
group: 'fontSize'
|
|
238
244
|
}
|
|
239
245
|
},
|
|
240
246
|
FontSize36: {
|
|
241
247
|
value: 36,
|
|
242
248
|
attributes: {
|
|
243
|
-
group: '
|
|
249
|
+
group: 'fontSize'
|
|
244
250
|
}
|
|
245
251
|
},
|
|
246
252
|
FontSize48: {
|
|
247
253
|
value: 48,
|
|
248
254
|
attributes: {
|
|
249
|
-
group: '
|
|
255
|
+
group: 'fontSize'
|
|
250
256
|
}
|
|
251
257
|
}
|
|
252
258
|
}
|
|
@@ -104,6 +104,16 @@ const typography = {
|
|
|
104
104
|
fontStyle: 'normal',
|
|
105
105
|
letterSpacing: 'LetterSpacing0'
|
|
106
106
|
}
|
|
107
|
+
},
|
|
108
|
+
lg: {
|
|
109
|
+
value: {
|
|
110
|
+
fontWeight: 'FontWeight400',
|
|
111
|
+
fontSize: 'FontSize16',
|
|
112
|
+
lineHeight: 'LineHeight300',
|
|
113
|
+
fontFamily: 'FontFamilyWebSans',
|
|
114
|
+
fontStyle: 'normal',
|
|
115
|
+
letterSpacing: 'LetterSpacing0'
|
|
116
|
+
}
|
|
107
117
|
}
|
|
108
118
|
},
|
|
109
119
|
ui: {
|
|
@@ -95,6 +95,16 @@ const typography = {
|
|
|
95
95
|
letterSpacing: 'LetterSpacing0'
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
+
lg: {
|
|
99
|
+
value: {
|
|
100
|
+
fontWeight: 'FontWeight400',
|
|
101
|
+
fontSize: 'FontSize16',
|
|
102
|
+
lineHeight: 'LineHeight300',
|
|
103
|
+
fontFamily: 'FontFamilyWebSans',
|
|
104
|
+
fontStyle: 'normal',
|
|
105
|
+
letterSpacing: 'LetterSpacing0'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
98
108
|
sm: {
|
|
99
109
|
value: {
|
|
100
110
|
fontWeight: 'FontWeight400',
|
|
@@ -111,7 +121,7 @@ const typography = {
|
|
|
111
121
|
value: {
|
|
112
122
|
fontWeight: 'FontWeight400',
|
|
113
123
|
fontSize: 'FontSize14',
|
|
114
|
-
lineHeight: '
|
|
124
|
+
lineHeight: 'LineHeight1',
|
|
115
125
|
fontFamily: 'FontFamilyWebSans',
|
|
116
126
|
fontStyle: 'normal',
|
|
117
127
|
letterSpacing: 'LetterSpacing0'
|
|
@@ -121,7 +131,7 @@ const typography = {
|
|
|
121
131
|
value: {
|
|
122
132
|
fontWeight: 'FontWeight400',
|
|
123
133
|
fontSize: 'LegacyFontSize11',
|
|
124
|
-
lineHeight: '
|
|
134
|
+
lineHeight: 'LineHeight1',
|
|
125
135
|
fontFamily: 'FontFamilyWebSans',
|
|
126
136
|
fontStyle: 'normal',
|
|
127
137
|
letterSpacing: 'LetterSpacing0'
|
|
@@ -95,6 +95,16 @@ const typography = {
|
|
|
95
95
|
letterSpacing: 'LetterSpacing0'
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
+
lg: {
|
|
99
|
+
value: {
|
|
100
|
+
fontWeight: 'FontWeight400',
|
|
101
|
+
fontSize: 'FontSize16',
|
|
102
|
+
lineHeight: 'LineHeight300',
|
|
103
|
+
fontFamily: 'FontFamilyWebSans',
|
|
104
|
+
fontStyle: 'normal',
|
|
105
|
+
letterSpacing: 'LetterSpacing0'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
98
108
|
sm: {
|
|
99
109
|
value: {
|
|
100
110
|
fontWeight: 'FontWeight400',
|
|
@@ -104,6 +104,14 @@ const font = {
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
body: {
|
|
107
|
+
lg: {
|
|
108
|
+
attributes: {
|
|
109
|
+
group: 'typography',
|
|
110
|
+
state: 'experimental',
|
|
111
|
+
introduced: '1.14.0',
|
|
112
|
+
description: 'Larger body font or default body font for text rich experiences.'
|
|
113
|
+
}
|
|
114
|
+
},
|
|
107
115
|
sm: {
|
|
108
116
|
attributes: {
|
|
109
117
|
group: 'typography',
|