@atlaskit/tokens 1.21.1 → 1.22.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -2
  3. package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -2
  4. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  5. package/dist/cjs/artifacts/token-default-values.js +17 -15
  6. package/dist/cjs/artifacts/token-names.js +4 -2
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +64 -42
  10. package/dist/cjs/get-token-value.js +1 -1
  11. package/dist/cjs/get-token.js +1 -1
  12. package/dist/cjs/tokens/atlassian-typography/font-family.js +4 -1
  13. package/dist/cjs/tokens/atlassian-typography/theme.js +13 -13
  14. package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +4 -1
  15. package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +25 -14
  16. package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +4 -1
  17. package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +25 -14
  18. package/dist/cjs/tokens/default/typography/font-family.js +9 -1
  19. package/dist/cjs/tokens/default/utility/utility.js +8 -0
  20. package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +17 -15
  21. package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +17 -15
  22. package/dist/es2019/artifacts/themes/atlassian-typography.js +16 -15
  23. package/dist/es2019/artifacts/token-default-values.js +17 -15
  24. package/dist/es2019/artifacts/token-names.js +4 -2
  25. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +64 -42
  28. package/dist/es2019/get-token-value.js +1 -1
  29. package/dist/es2019/get-token.js +1 -1
  30. package/dist/es2019/tokens/atlassian-typography/font-family.js +4 -1
  31. package/dist/es2019/tokens/atlassian-typography/theme.js +13 -13
  32. package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +4 -1
  33. package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +25 -14
  34. package/dist/es2019/tokens/atlassian-typography-minor3/font-family.js +4 -1
  35. package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +25 -14
  36. package/dist/es2019/tokens/default/typography/font-family.js +9 -1
  37. package/dist/es2019/tokens/default/utility/utility.js +8 -0
  38. package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
  39. package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
  40. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  41. package/dist/esm/artifacts/token-default-values.js +17 -15
  42. package/dist/esm/artifacts/token-names.js +4 -2
  43. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
  44. package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
  45. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +64 -42
  46. package/dist/esm/get-token-value.js +1 -1
  47. package/dist/esm/get-token.js +1 -1
  48. package/dist/esm/tokens/atlassian-typography/font-family.js +4 -1
  49. package/dist/esm/tokens/atlassian-typography/theme.js +13 -13
  50. package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +4 -1
  51. package/dist/esm/tokens/atlassian-typography-adg3/theme.js +25 -14
  52. package/dist/esm/tokens/atlassian-typography-minor3/font-family.js +4 -1
  53. package/dist/esm/tokens/atlassian-typography-minor3/theme.js +25 -14
  54. package/dist/esm/tokens/default/typography/font-family.js +9 -1
  55. package/dist/esm/tokens/default/utility/utility.js +8 -0
  56. package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  57. package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  58. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  59. package/dist/types/artifacts/token-default-values.d.ts +17 -15
  60. package/dist/types/artifacts/token-names.d.ts +7 -3
  61. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +10 -10
  62. package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +10 -10
  63. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  64. package/dist/types/artifacts/types-internal.d.ts +2 -2
  65. package/dist/types/artifacts/types.d.ts +2 -2
  66. package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +145 -10
  67. package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +145 -10
  68. package/dist/types/types.d.ts +16 -2
  69. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  70. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  71. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  72. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +17 -15
  73. package/dist/types-ts4.5/artifacts/token-names.d.ts +7 -3
  74. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +10 -10
  75. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +10 -10
  76. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  77. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  78. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  79. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +145 -10
  80. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +145 -10
  81. package/dist/types-ts4.5/types.d.ts +16 -2
  82. package/figma/atlassian-typography-adg3.json +15 -6
  83. package/figma/atlassian-typography-minor3.json +15 -6
  84. package/figma/atlassian-typography.json +15 -6
  85. package/package.json +1 -1
  86. package/report.api.md +41 -3
  87. package/tmp/api-report-tmp.d.ts +34 -5
@@ -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::eaaa970ce079ba5e26ef6b1bd1440d6c>>
3
+ * @codegen <<SignedSource::2dbe284320c4a652bc8420a1e9457c66>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -10,7 +10,7 @@ const tokens = [{
10
10
  "introduced": "1.14.0",
11
11
  "description": "The default body font."
12
12
  },
13
- "value": "normal 400 14px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
13
+ "value": "normal 400 14px/20px var(--ds-font-family-body)",
14
14
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
15
15
  "isSource": true,
16
16
  "original": {
@@ -24,7 +24,7 @@ const tokens = [{
24
24
  "fontWeight": "FontWeight400",
25
25
  "fontSize": "FontSize14",
26
26
  "lineHeight": "LineHeight200",
27
- "fontFamily": "FontFamilyWebSans",
27
+ "fontFamily": "font.family.body",
28
28
  "fontStyle": "normal",
29
29
  "letterSpacing": "LetterSpacing0"
30
30
  }
@@ -39,7 +39,7 @@ const tokens = [{
39
39
  "introduced": "1.14.0",
40
40
  "description": "Larger body font or default body font for text rich experiences."
41
41
  },
42
- "value": "normal 400 16px/24px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
42
+ "value": "normal 400 16px/24px var(--ds-font-family-body)",
43
43
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
44
44
  "isSource": true,
45
45
  "original": {
@@ -53,7 +53,7 @@ const tokens = [{
53
53
  "fontWeight": "FontWeight400",
54
54
  "fontSize": "FontSize16",
55
55
  "lineHeight": "LineHeight300",
56
- "fontFamily": "FontFamilyWebSans",
56
+ "fontFamily": "font.family.body",
57
57
  "fontStyle": "normal",
58
58
  "letterSpacing": "LetterSpacing0"
59
59
  }
@@ -68,7 +68,7 @@ const tokens = [{
68
68
  "introduced": "1.14.0",
69
69
  "description": "Smaller body font."
70
70
  },
71
- "value": "normal 400 12px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
71
+ "value": "normal 400 12px/20px var(--ds-font-family-body)",
72
72
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
73
73
  "isSource": true,
74
74
  "original": {
@@ -82,7 +82,7 @@ const tokens = [{
82
82
  "fontWeight": "FontWeight400",
83
83
  "fontSize": "FontSize12",
84
84
  "lineHeight": "LineHeight200",
85
- "fontFamily": "FontFamilyWebSans",
85
+ "fontFamily": "font.family.body",
86
86
  "fontStyle": "normal",
87
87
  "letterSpacing": "LetterSpacing0"
88
88
  }
@@ -97,7 +97,7 @@ const tokens = [{
97
97
  "introduced": "1.14.0",
98
98
  "description": "Used for monospace and code."
99
99
  },
100
- "value": "normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
100
+ "value": "normal 400 0.875em/1 var(--ds-font-family-code)",
101
101
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
102
102
  "isSource": true,
103
103
  "original": {
@@ -111,7 +111,7 @@ const tokens = [{
111
111
  "fontWeight": "FontWeight400",
112
112
  "fontSize": "FontSizeCode",
113
113
  "lineHeight": "LineHeight1",
114
- "fontFamily": "FontFamilyWebMono",
114
+ "fontFamily": "font.family.code",
115
115
  "fontStyle": "normal",
116
116
  "letterSpacing": "LetterSpacing0"
117
117
  }
@@ -126,7 +126,7 @@ const tokens = [{
126
126
  "introduced": "1.14.0",
127
127
  "description": "TBD"
128
128
  },
129
- "value": "normal 700 24px/28px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
129
+ "value": "normal 700 24px/28px var(--ds-font-family-heading)",
130
130
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
131
131
  "isSource": true,
132
132
  "original": {
@@ -140,7 +140,7 @@ const tokens = [{
140
140
  "fontWeight": "FontWeight700",
141
141
  "fontSize": "FontSize24",
142
142
  "lineHeight": "LineHeight400",
143
- "fontFamily": "FontFamilyWebSans",
143
+ "fontFamily": "font.family.heading",
144
144
  "fontStyle": "normal",
145
145
  "letterSpacing": "LetterSpacing0"
146
146
  }
@@ -155,7 +155,7 @@ const tokens = [{
155
155
  "introduced": "1.14.0",
156
156
  "description": "TBD"
157
157
  },
158
- "value": "normal 700 20px/24px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
158
+ "value": "normal 700 20px/24px var(--ds-font-family-heading)",
159
159
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
160
160
  "isSource": true,
161
161
  "original": {
@@ -169,7 +169,7 @@ const tokens = [{
169
169
  "fontWeight": "FontWeight700",
170
170
  "fontSize": "FontSize20",
171
171
  "lineHeight": "LineHeight300",
172
- "fontFamily": "FontFamilyWebSans",
172
+ "fontFamily": "font.family.heading",
173
173
  "fontStyle": "normal",
174
174
  "letterSpacing": "LetterSpacing0"
175
175
  }
@@ -184,7 +184,7 @@ const tokens = [{
184
184
  "introduced": "1.14.0",
185
185
  "description": "TBD"
186
186
  },
187
- "value": "normal 700 16px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
187
+ "value": "normal 700 16px/20px var(--ds-font-family-heading)",
188
188
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
189
189
  "isSource": true,
190
190
  "original": {
@@ -198,7 +198,7 @@ const tokens = [{
198
198
  "fontWeight": "FontWeight700",
199
199
  "fontSize": "FontSize16",
200
200
  "lineHeight": "LineHeight200",
201
- "fontFamily": "FontFamilyWebSans",
201
+ "fontFamily": "font.family.heading",
202
202
  "fontStyle": "normal",
203
203
  "letterSpacing": "LetterSpacing0"
204
204
  }
@@ -213,7 +213,7 @@ const tokens = [{
213
213
  "introduced": "1.14.0",
214
214
  "description": "TBD"
215
215
  },
216
- "value": "normal 700 28px/32px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
216
+ "value": "normal 700 28px/32px var(--ds-font-family-heading)",
217
217
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
218
218
  "isSource": true,
219
219
  "original": {
@@ -227,7 +227,7 @@ const tokens = [{
227
227
  "fontWeight": "FontWeight700",
228
228
  "fontSize": "FontSize28",
229
229
  "lineHeight": "LineHeight500",
230
- "fontFamily": "FontFamilyWebSans",
230
+ "fontFamily": "font.family.heading",
231
231
  "fontStyle": "normal",
232
232
  "letterSpacing": "LetterSpacing0"
233
233
  }
@@ -242,7 +242,7 @@ const tokens = [{
242
242
  "introduced": "1.14.0",
243
243
  "description": "TBD"
244
244
  },
245
- "value": "normal 700 14px/16px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
245
+ "value": "normal 700 14px/16px var(--ds-font-family-heading)",
246
246
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
247
247
  "isSource": true,
248
248
  "original": {
@@ -256,7 +256,7 @@ const tokens = [{
256
256
  "fontWeight": "FontWeight700",
257
257
  "fontSize": "FontSize14",
258
258
  "lineHeight": "LineHeight100",
259
- "fontFamily": "FontFamilyWebSans",
259
+ "fontFamily": "font.family.heading",
260
260
  "fontStyle": "normal",
261
261
  "letterSpacing": "LetterSpacing0"
262
262
  }
@@ -271,7 +271,7 @@ const tokens = [{
271
271
  "introduced": "1.14.0",
272
272
  "description": "TBD"
273
273
  },
274
- "value": "normal 700 36px/40px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
274
+ "value": "normal 700 36px/40px var(--ds-font-family-heading)",
275
275
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
276
276
  "isSource": true,
277
277
  "original": {
@@ -285,7 +285,7 @@ const tokens = [{
285
285
  "fontWeight": "FontWeight700",
286
286
  "fontSize": "FontSize36",
287
287
  "lineHeight": "LineHeight700",
288
- "fontFamily": "FontFamilyWebSans",
288
+ "fontFamily": "font.family.heading",
289
289
  "fontStyle": "normal",
290
290
  "letterSpacing": "LetterSpacing0"
291
291
  }
@@ -300,7 +300,7 @@ const tokens = [{
300
300
  "introduced": "1.14.0",
301
301
  "description": "TBD"
302
302
  },
303
- "value": "normal 700 12px/16px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
303
+ "value": "normal 700 12px/16px var(--ds-font-family-heading)",
304
304
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
305
305
  "isSource": true,
306
306
  "original": {
@@ -314,7 +314,7 @@ const tokens = [{
314
314
  "fontWeight": "FontWeight700",
315
315
  "fontSize": "FontSize12",
316
316
  "lineHeight": "LineHeight100",
317
- "fontFamily": "FontFamilyWebSans",
317
+ "fontFamily": "font.family.heading",
318
318
  "fontStyle": "normal",
319
319
  "letterSpacing": "LetterSpacing0"
320
320
  }
@@ -439,7 +439,7 @@ const tokens = [{
439
439
  "introduced": "1.14.0",
440
440
  "description": "Single-line non-wrapping text like that in a button."
441
441
  },
442
- "value": "normal 400 14px/1 ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
442
+ "value": "normal 400 14px/1 var(--ds-font-family-body)",
443
443
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
444
444
  "isSource": true,
445
445
  "original": {
@@ -453,7 +453,7 @@ const tokens = [{
453
453
  "fontWeight": "FontWeight400",
454
454
  "fontSize": "FontSize14",
455
455
  "lineHeight": "LineHeight1",
456
- "fontFamily": "FontFamilyWebSans",
456
+ "fontFamily": "font.family.body",
457
457
  "fontStyle": "normal",
458
458
  "letterSpacing": "LetterSpacing0"
459
459
  }
@@ -468,7 +468,7 @@ const tokens = [{
468
468
  "introduced": "1.14.0",
469
469
  "description": "Single-line non-wrapping supporting text like that in a smaller label."
470
470
  },
471
- "value": "normal 400 12px/1 ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
471
+ "value": "normal 400 12px/1 var(--ds-font-family-body)",
472
472
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
473
473
  "isSource": true,
474
474
  "original": {
@@ -482,7 +482,7 @@ const tokens = [{
482
482
  "fontWeight": "FontWeight400",
483
483
  "fontSize": "FontSize12",
484
484
  "lineHeight": "LineHeight1",
485
- "fontFamily": "FontFamilyWebSans",
485
+ "fontFamily": "font.family.body",
486
486
  "fontStyle": "normal",
487
487
  "letterSpacing": "LetterSpacing0"
488
488
  }
@@ -497,7 +497,7 @@ const tokens = [{
497
497
  "introduced": "1.14.0",
498
498
  "description": "Helpful guidance goes here"
499
499
  },
500
- "value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
500
+ "value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
501
501
  "filePath": "src/tokens/atlassian-typography/font-family.tsx",
502
502
  "isSource": true,
503
503
  "original": {
@@ -507,16 +507,16 @@ const tokens = [{
507
507
  "introduced": "1.14.0",
508
508
  "description": "Helpful guidance goes here"
509
509
  },
510
- "value": "FontFamilyWebMono"
510
+ "value": "FontFamilyWebSans"
511
511
  },
512
- "name": "font.family.code",
513
- "path": ["font", "family", "code"],
514
- "cleanName": "font.family.code"
512
+ "name": "font.family.body",
513
+ "path": ["font", "family", "body"],
514
+ "cleanName": "font.family.body"
515
515
  }, {
516
516
  "attributes": {
517
517
  "group": "fontFamily",
518
- "state": "active",
519
- "introduced": "0.10.33",
518
+ "state": "experimental",
519
+ "introduced": "1.14.0",
520
520
  "description": "Helpful guidance goes here"
521
521
  },
522
522
  "value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
@@ -525,15 +525,15 @@ const tokens = [{
525
525
  "original": {
526
526
  "attributes": {
527
527
  "group": "fontFamily",
528
- "state": "active",
529
- "introduced": "0.10.33",
528
+ "state": "experimental",
529
+ "introduced": "1.14.0",
530
530
  "description": "Helpful guidance goes here"
531
531
  },
532
532
  "value": "FontFamilyWebMono"
533
533
  },
534
- "name": "font.family.monospace",
535
- "path": ["font", "family", "monospace"],
536
- "cleanName": "font.family.monospace"
534
+ "name": "font.family.code",
535
+ "path": ["font", "family", "code"],
536
+ "cleanName": "font.family.code"
537
537
  }, {
538
538
  "attributes": {
539
539
  "group": "fontFamily",
@@ -553,9 +553,31 @@ const tokens = [{
553
553
  },
554
554
  "value": "FontFamilyWebSans"
555
555
  },
556
- "name": "font.family.product",
557
- "path": ["font", "family", "product"],
558
- "cleanName": "font.family.product"
556
+ "name": "font.family.heading",
557
+ "path": ["font", "family", "heading"],
558
+ "cleanName": "font.family.heading"
559
+ }, {
560
+ "attributes": {
561
+ "group": "fontFamily",
562
+ "state": "active",
563
+ "introduced": "0.10.33",
564
+ "description": "Helpful guidance goes here"
565
+ },
566
+ "value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
567
+ "filePath": "src/tokens/atlassian-typography/font-family.tsx",
568
+ "isSource": true,
569
+ "original": {
570
+ "attributes": {
571
+ "group": "fontFamily",
572
+ "state": "active",
573
+ "introduced": "0.10.33",
574
+ "description": "Helpful guidance goes here"
575
+ },
576
+ "value": "FontFamilyWebMono"
577
+ },
578
+ "name": "font.family.monospace",
579
+ "path": ["font", "family", "monospace"],
580
+ "cleanName": "font.family.monospace"
559
581
  }, {
560
582
  "attributes": {
561
583
  "group": "fontFamily",
@@ -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.21.1";
4
+ const version = "1.22.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.
@@ -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.21.1";
5
+ const version = "1.22.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.
@@ -7,7 +7,10 @@ const font = {
7
7
  monospace: {
8
8
  value: 'FontFamilyWebMono'
9
9
  },
10
- product: {
10
+ heading: {
11
+ value: 'FontFamilyWebSans'
12
+ },
13
+ body: {
11
14
  value: 'FontFamilyWebSans'
12
15
  },
13
16
  brand: {
@@ -6,7 +6,7 @@ const typography = {
6
6
  fontWeight: 'FontWeight700',
7
7
  fontSize: 'FontSize36',
8
8
  lineHeight: 'LineHeight700',
9
- fontFamily: 'FontFamilyWebSans',
9
+ fontFamily: 'font.family.heading',
10
10
  fontStyle: 'normal',
11
11
  letterSpacing: 'LetterSpacing0'
12
12
  }
@@ -16,7 +16,7 @@ const typography = {
16
16
  fontWeight: 'FontWeight700',
17
17
  fontSize: 'FontSize28',
18
18
  lineHeight: 'LineHeight500',
19
- fontFamily: 'FontFamilyWebSans',
19
+ fontFamily: 'font.family.heading',
20
20
  fontStyle: 'normal',
21
21
  letterSpacing: 'LetterSpacing0'
22
22
  }
@@ -26,7 +26,7 @@ const typography = {
26
26
  fontWeight: 'FontWeight700',
27
27
  fontSize: 'FontSize24',
28
28
  lineHeight: 'LineHeight400',
29
- fontFamily: 'FontFamilyWebSans',
29
+ fontFamily: 'font.family.heading',
30
30
  fontStyle: 'normal',
31
31
  letterSpacing: 'LetterSpacing0'
32
32
  }
@@ -36,7 +36,7 @@ const typography = {
36
36
  fontWeight: 'FontWeight700',
37
37
  fontSize: 'FontSize20',
38
38
  lineHeight: 'LineHeight300',
39
- fontFamily: 'FontFamilyWebSans',
39
+ fontFamily: 'font.family.heading',
40
40
  fontStyle: 'normal',
41
41
  letterSpacing: 'LetterSpacing0'
42
42
  }
@@ -46,7 +46,7 @@ const typography = {
46
46
  fontWeight: 'FontWeight700',
47
47
  fontSize: 'FontSize16',
48
48
  lineHeight: 'LineHeight200',
49
- fontFamily: 'FontFamilyWebSans',
49
+ fontFamily: 'font.family.heading',
50
50
  fontStyle: 'normal',
51
51
  letterSpacing: 'LetterSpacing0'
52
52
  }
@@ -56,7 +56,7 @@ const typography = {
56
56
  fontWeight: 'FontWeight700',
57
57
  fontSize: 'FontSize14',
58
58
  lineHeight: 'LineHeight100',
59
- fontFamily: 'FontFamilyWebSans',
59
+ fontFamily: 'font.family.heading',
60
60
  fontStyle: 'normal',
61
61
  letterSpacing: 'LetterSpacing0'
62
62
  }
@@ -66,7 +66,7 @@ const typography = {
66
66
  fontWeight: 'FontWeight700',
67
67
  fontSize: 'FontSize12',
68
68
  lineHeight: 'LineHeight100',
69
- fontFamily: 'FontFamilyWebSans',
69
+ fontFamily: 'font.family.heading',
70
70
  fontStyle: 'normal',
71
71
  letterSpacing: 'LetterSpacing0'
72
72
  }
@@ -78,7 +78,7 @@ const typography = {
78
78
  fontWeight: 'FontWeight400',
79
79
  fontSize: 'FontSizeCode',
80
80
  lineHeight: 'LineHeight1',
81
- fontFamily: 'FontFamilyWebMono',
81
+ fontFamily: 'font.family.code',
82
82
  fontStyle: 'normal',
83
83
  letterSpacing: 'LetterSpacing0'
84
84
  }
@@ -90,7 +90,7 @@ const typography = {
90
90
  fontWeight: 'FontWeight400',
91
91
  fontSize: 'FontSize14',
92
92
  lineHeight: 'LineHeight200',
93
- fontFamily: 'FontFamilyWebSans',
93
+ fontFamily: 'font.family.body',
94
94
  fontStyle: 'normal',
95
95
  letterSpacing: 'LetterSpacing0'
96
96
  }
@@ -100,7 +100,7 @@ const typography = {
100
100
  fontWeight: 'FontWeight400',
101
101
  fontSize: 'FontSize12',
102
102
  lineHeight: 'LineHeight200',
103
- fontFamily: 'FontFamilyWebSans',
103
+ fontFamily: 'font.family.body',
104
104
  fontStyle: 'normal',
105
105
  letterSpacing: 'LetterSpacing0'
106
106
  }
@@ -110,7 +110,7 @@ const typography = {
110
110
  fontWeight: 'FontWeight400',
111
111
  fontSize: 'FontSize16',
112
112
  lineHeight: 'LineHeight300',
113
- fontFamily: 'FontFamilyWebSans',
113
+ fontFamily: 'font.family.body',
114
114
  fontStyle: 'normal',
115
115
  letterSpacing: 'LetterSpacing0'
116
116
  }
@@ -122,7 +122,7 @@ const typography = {
122
122
  fontWeight: 'FontWeight400',
123
123
  fontSize: 'FontSize14',
124
124
  lineHeight: 'LineHeight1',
125
- fontFamily: 'FontFamilyWebSans',
125
+ fontFamily: 'font.family.body',
126
126
  fontStyle: 'normal',
127
127
  letterSpacing: 'LetterSpacing0'
128
128
  }
@@ -132,7 +132,7 @@ const typography = {
132
132
  fontWeight: 'FontWeight400',
133
133
  fontSize: 'FontSize12',
134
134
  lineHeight: 'LineHeight1',
135
- fontFamily: 'FontFamilyWebSans',
135
+ fontFamily: 'font.family.body',
136
136
  fontStyle: 'normal',
137
137
  letterSpacing: 'LetterSpacing0'
138
138
  }
@@ -7,7 +7,10 @@ const font = {
7
7
  monospace: {
8
8
  value: 'FontFamilyWebMono'
9
9
  },
10
- product: {
10
+ body: {
11
+ value: 'FontFamilyWebSans'
12
+ },
13
+ heading: {
11
14
  value: 'FontFamilyWebSans'
12
15
  },
13
16
  brand: {
@@ -1,3 +1,11 @@
1
+ const utility = {
2
+ // @ts-expect-error in complete utility theme
3
+ UNSAFE: {
4
+ textTransformUppercase: {
5
+ value: 'uppercase'
6
+ }
7
+ }
8
+ };
1
9
  const typography = {
2
10
  font: {
3
11
  heading: {
@@ -6,7 +14,7 @@ const typography = {
6
14
  fontWeight: 'FontWeight500',
7
15
  fontSize: 'LegacyFontSize35',
8
16
  lineHeight: 'LineHeight700',
9
- fontFamily: 'FontFamilyWebSans',
17
+ fontFamily: 'font.family.heading',
10
18
  fontStyle: 'normal',
11
19
  letterSpacing: 'LetterSpacing400'
12
20
  }
@@ -16,7 +24,7 @@ const typography = {
16
24
  fontWeight: 'FontWeight600',
17
25
  fontSize: 'LegacyFontSize29',
18
26
  lineHeight: 'LineHeight500',
19
- fontFamily: 'FontFamilyWebSans',
27
+ fontFamily: 'font.family.heading',
20
28
  fontStyle: 'normal',
21
29
  letterSpacing: 'LetterSpacing400'
22
30
  }
@@ -26,7 +34,7 @@ const typography = {
26
34
  fontWeight: 'FontWeight500',
27
35
  fontSize: 'FontSize24',
28
36
  lineHeight: 'LineHeight400',
29
- fontFamily: 'FontFamilyWebSans',
37
+ fontFamily: 'font.family.heading',
30
38
  fontStyle: 'normal',
31
39
  letterSpacing: 'LetterSpacing400'
32
40
  }
@@ -36,7 +44,7 @@ const typography = {
36
44
  fontWeight: 'FontWeight500',
37
45
  fontSize: 'FontSize20',
38
46
  lineHeight: 'LineHeight300',
39
- fontFamily: 'FontFamilyWebSans',
47
+ fontFamily: 'font.family.heading',
40
48
  fontStyle: 'normal',
41
49
  letterSpacing: 'LetterSpacing300'
42
50
  }
@@ -46,7 +54,7 @@ const typography = {
46
54
  fontWeight: 'FontWeight600',
47
55
  fontSize: 'FontSize16',
48
56
  lineHeight: 'LineHeight200',
49
- fontFamily: 'FontFamilyWebSans',
57
+ fontFamily: 'font.family.heading',
50
58
  fontStyle: 'normal',
51
59
  letterSpacing: 'LetterSpacing200'
52
60
  }
@@ -56,7 +64,7 @@ const typography = {
56
64
  fontWeight: 'FontWeight600',
57
65
  fontSize: 'FontSize14',
58
66
  lineHeight: 'LineHeight100',
59
- fontFamily: 'FontFamilyWebSans',
67
+ fontFamily: 'font.family.heading',
60
68
  fontStyle: 'normal',
61
69
  letterSpacing: 'LetterSpacing100'
62
70
  }
@@ -66,7 +74,7 @@ const typography = {
66
74
  fontWeight: 'FontWeight600',
67
75
  fontSize: 'FontSize12',
68
76
  lineHeight: 'LineHeight100',
69
- fontFamily: 'FontFamilyWebSans',
77
+ fontFamily: 'font.family.heading',
70
78
  fontStyle: 'normal',
71
79
  letterSpacing: 'LetterSpacing0'
72
80
  }
@@ -78,7 +86,7 @@ const typography = {
78
86
  fontWeight: 'FontWeight400',
79
87
  fontSize: 'FontSizeCode',
80
88
  lineHeight: 'LineHeight1',
81
- fontFamily: 'FontFamilyWebMono',
89
+ fontFamily: 'font.family.code',
82
90
  fontStyle: 'normal',
83
91
  letterSpacing: 'LetterSpacing0'
84
92
  }
@@ -90,7 +98,7 @@ const typography = {
90
98
  fontWeight: 'FontWeight400',
91
99
  fontSize: 'FontSize14',
92
100
  lineHeight: 'LineHeight200',
93
- fontFamily: 'FontFamilyWebSans',
101
+ fontFamily: 'font.family.body',
94
102
  fontStyle: 'normal',
95
103
  letterSpacing: 'LetterSpacing0'
96
104
  }
@@ -100,7 +108,7 @@ const typography = {
100
108
  fontWeight: 'FontWeight400',
101
109
  fontSize: 'FontSize16',
102
110
  lineHeight: 'LineHeight300',
103
- fontFamily: 'FontFamilyWebSans',
111
+ fontFamily: 'font.family.body',
104
112
  fontStyle: 'normal',
105
113
  letterSpacing: 'LetterSpacing0'
106
114
  }
@@ -110,7 +118,7 @@ const typography = {
110
118
  fontWeight: 'FontWeight400',
111
119
  fontSize: 'LegacyFontSize11',
112
120
  lineHeight: 'LineHeight200',
113
- fontFamily: 'FontFamilyWebSans',
121
+ fontFamily: 'font.family.body',
114
122
  fontStyle: 'normal',
115
123
  letterSpacing: 'LetterSpacing0'
116
124
  }
@@ -122,7 +130,7 @@ const typography = {
122
130
  fontWeight: 'FontWeight400',
123
131
  fontSize: 'FontSize14',
124
132
  lineHeight: 'LineHeight1',
125
- fontFamily: 'FontFamilyWebSans',
133
+ fontFamily: 'font.family.body',
126
134
  fontStyle: 'normal',
127
135
  letterSpacing: 'LetterSpacing0'
128
136
  }
@@ -132,7 +140,7 @@ const typography = {
132
140
  fontWeight: 'FontWeight400',
133
141
  fontSize: 'LegacyFontSize11',
134
142
  lineHeight: 'LineHeight1',
135
- fontFamily: 'FontFamilyWebSans',
143
+ fontFamily: 'font.family.body',
136
144
  fontStyle: 'normal',
137
145
  letterSpacing: 'LetterSpacing0'
138
146
  }
@@ -140,4 +148,7 @@ const typography = {
140
148
  }
141
149
  }
142
150
  };
143
- export default typography;
151
+ export default {
152
+ font: typography.font,
153
+ utility
154
+ };
@@ -7,7 +7,10 @@ const font = {
7
7
  monospace: {
8
8
  value: 'FontFamilyWebMono'
9
9
  },
10
- product: {
10
+ body: {
11
+ value: 'FontFamilyWebSans'
12
+ },
13
+ heading: {
11
14
  value: 'FontFamilyWebSans'
12
15
  },
13
16
  brand: {