@atlaskit/tokens 1.21.0 → 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 (90) hide show
  1. package/CHANGELOG.md +12 -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/babel-plugin/plugin.js +15 -1
  11. package/dist/cjs/get-token-value.js +1 -1
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/tokens/atlassian-typography/font-family.js +4 -1
  14. package/dist/cjs/tokens/atlassian-typography/theme.js +13 -13
  15. package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +4 -1
  16. package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +25 -14
  17. package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +4 -1
  18. package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +25 -14
  19. package/dist/cjs/tokens/default/typography/font-family.js +9 -1
  20. package/dist/cjs/tokens/default/utility/utility.js +8 -0
  21. package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +17 -15
  22. package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +17 -15
  23. package/dist/es2019/artifacts/themes/atlassian-typography.js +16 -15
  24. package/dist/es2019/artifacts/token-default-values.js +17 -15
  25. package/dist/es2019/artifacts/token-names.js +4 -2
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +64 -42
  29. package/dist/es2019/babel-plugin/plugin.js +15 -1
  30. package/dist/es2019/get-token-value.js +1 -1
  31. package/dist/es2019/get-token.js +1 -1
  32. package/dist/es2019/tokens/atlassian-typography/font-family.js +4 -1
  33. package/dist/es2019/tokens/atlassian-typography/theme.js +13 -13
  34. package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +4 -1
  35. package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +25 -14
  36. package/dist/es2019/tokens/atlassian-typography-minor3/font-family.js +4 -1
  37. package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +25 -14
  38. package/dist/es2019/tokens/default/typography/font-family.js +9 -1
  39. package/dist/es2019/tokens/default/utility/utility.js +8 -0
  40. package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
  41. package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
  42. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  43. package/dist/esm/artifacts/token-default-values.js +17 -15
  44. package/dist/esm/artifacts/token-names.js +4 -2
  45. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +86 -42
  46. package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +86 -42
  47. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +64 -42
  48. package/dist/esm/babel-plugin/plugin.js +15 -1
  49. package/dist/esm/get-token-value.js +1 -1
  50. package/dist/esm/get-token.js +1 -1
  51. package/dist/esm/tokens/atlassian-typography/font-family.js +4 -1
  52. package/dist/esm/tokens/atlassian-typography/theme.js +13 -13
  53. package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +4 -1
  54. package/dist/esm/tokens/atlassian-typography-adg3/theme.js +25 -14
  55. package/dist/esm/tokens/atlassian-typography-minor3/font-family.js +4 -1
  56. package/dist/esm/tokens/atlassian-typography-minor3/theme.js +25 -14
  57. package/dist/esm/tokens/default/typography/font-family.js +9 -1
  58. package/dist/esm/tokens/default/utility/utility.js +8 -0
  59. package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  60. package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  61. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  62. package/dist/types/artifacts/token-default-values.d.ts +17 -15
  63. package/dist/types/artifacts/token-names.d.ts +7 -3
  64. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +10 -10
  65. package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +10 -10
  66. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  67. package/dist/types/artifacts/types-internal.d.ts +2 -2
  68. package/dist/types/artifacts/types.d.ts +2 -2
  69. package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +145 -10
  70. package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +145 -10
  71. package/dist/types/types.d.ts +16 -2
  72. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  73. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  74. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  75. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +17 -15
  76. package/dist/types-ts4.5/artifacts/token-names.d.ts +7 -3
  77. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +10 -10
  78. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +10 -10
  79. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  80. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  81. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  82. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +145 -10
  83. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +145 -10
  84. package/dist/types-ts4.5/types.d.ts +16 -2
  85. package/figma/atlassian-typography-adg3.json +15 -6
  86. package/figma/atlassian-typography-minor3.json +15 -6
  87. package/figma/atlassian-typography.json +15 -6
  88. package/package.json +1 -1
  89. package/report.api.md +41 -3
  90. package/tmp/api-report-tmp.d.ts +34 -5
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::eaaa970ce079ba5e26ef6b1bd1440d6c>>
9
+ * @codegen <<SignedSource::2dbe284320c4a652bc8420a1e9457c66>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = [{
@@ -16,7 +16,7 @@ var tokens = [{
16
16
  "introduced": "1.14.0",
17
17
  "description": "The default body font."
18
18
  },
19
- "value": "normal 400 14px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
19
+ "value": "normal 400 14px/20px var(--ds-font-family-body)",
20
20
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
21
21
  "isSource": true,
22
22
  "original": {
@@ -30,7 +30,7 @@ var tokens = [{
30
30
  "fontWeight": "FontWeight400",
31
31
  "fontSize": "FontSize14",
32
32
  "lineHeight": "LineHeight200",
33
- "fontFamily": "FontFamilyWebSans",
33
+ "fontFamily": "font.family.body",
34
34
  "fontStyle": "normal",
35
35
  "letterSpacing": "LetterSpacing0"
36
36
  }
@@ -45,7 +45,7 @@ var tokens = [{
45
45
  "introduced": "1.14.0",
46
46
  "description": "Larger body font or default body font for text rich experiences."
47
47
  },
48
- "value": "normal 400 16px/24px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
48
+ "value": "normal 400 16px/24px var(--ds-font-family-body)",
49
49
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
50
50
  "isSource": true,
51
51
  "original": {
@@ -59,7 +59,7 @@ var tokens = [{
59
59
  "fontWeight": "FontWeight400",
60
60
  "fontSize": "FontSize16",
61
61
  "lineHeight": "LineHeight300",
62
- "fontFamily": "FontFamilyWebSans",
62
+ "fontFamily": "font.family.body",
63
63
  "fontStyle": "normal",
64
64
  "letterSpacing": "LetterSpacing0"
65
65
  }
@@ -74,7 +74,7 @@ var tokens = [{
74
74
  "introduced": "1.14.0",
75
75
  "description": "Smaller body font."
76
76
  },
77
- "value": "normal 400 12px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
77
+ "value": "normal 400 12px/20px var(--ds-font-family-body)",
78
78
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
79
79
  "isSource": true,
80
80
  "original": {
@@ -88,7 +88,7 @@ var tokens = [{
88
88
  "fontWeight": "FontWeight400",
89
89
  "fontSize": "FontSize12",
90
90
  "lineHeight": "LineHeight200",
91
- "fontFamily": "FontFamilyWebSans",
91
+ "fontFamily": "font.family.body",
92
92
  "fontStyle": "normal",
93
93
  "letterSpacing": "LetterSpacing0"
94
94
  }
@@ -103,7 +103,7 @@ var tokens = [{
103
103
  "introduced": "1.14.0",
104
104
  "description": "Used for monospace and code."
105
105
  },
106
- "value": "normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
106
+ "value": "normal 400 0.875em/1 var(--ds-font-family-code)",
107
107
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
108
108
  "isSource": true,
109
109
  "original": {
@@ -117,7 +117,7 @@ var tokens = [{
117
117
  "fontWeight": "FontWeight400",
118
118
  "fontSize": "FontSizeCode",
119
119
  "lineHeight": "LineHeight1",
120
- "fontFamily": "FontFamilyWebMono",
120
+ "fontFamily": "font.family.code",
121
121
  "fontStyle": "normal",
122
122
  "letterSpacing": "LetterSpacing0"
123
123
  }
@@ -132,7 +132,7 @@ var tokens = [{
132
132
  "introduced": "1.14.0",
133
133
  "description": "TBD"
134
134
  },
135
- "value": "normal 700 24px/28px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
135
+ "value": "normal 700 24px/28px var(--ds-font-family-heading)",
136
136
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
137
137
  "isSource": true,
138
138
  "original": {
@@ -146,7 +146,7 @@ var tokens = [{
146
146
  "fontWeight": "FontWeight700",
147
147
  "fontSize": "FontSize24",
148
148
  "lineHeight": "LineHeight400",
149
- "fontFamily": "FontFamilyWebSans",
149
+ "fontFamily": "font.family.heading",
150
150
  "fontStyle": "normal",
151
151
  "letterSpacing": "LetterSpacing0"
152
152
  }
@@ -161,7 +161,7 @@ var tokens = [{
161
161
  "introduced": "1.14.0",
162
162
  "description": "TBD"
163
163
  },
164
- "value": "normal 700 20px/24px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
164
+ "value": "normal 700 20px/24px var(--ds-font-family-heading)",
165
165
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
166
166
  "isSource": true,
167
167
  "original": {
@@ -175,7 +175,7 @@ var tokens = [{
175
175
  "fontWeight": "FontWeight700",
176
176
  "fontSize": "FontSize20",
177
177
  "lineHeight": "LineHeight300",
178
- "fontFamily": "FontFamilyWebSans",
178
+ "fontFamily": "font.family.heading",
179
179
  "fontStyle": "normal",
180
180
  "letterSpacing": "LetterSpacing0"
181
181
  }
@@ -190,7 +190,7 @@ var tokens = [{
190
190
  "introduced": "1.14.0",
191
191
  "description": "TBD"
192
192
  },
193
- "value": "normal 700 16px/20px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
193
+ "value": "normal 700 16px/20px var(--ds-font-family-heading)",
194
194
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
195
195
  "isSource": true,
196
196
  "original": {
@@ -204,7 +204,7 @@ var tokens = [{
204
204
  "fontWeight": "FontWeight700",
205
205
  "fontSize": "FontSize16",
206
206
  "lineHeight": "LineHeight200",
207
- "fontFamily": "FontFamilyWebSans",
207
+ "fontFamily": "font.family.heading",
208
208
  "fontStyle": "normal",
209
209
  "letterSpacing": "LetterSpacing0"
210
210
  }
@@ -219,7 +219,7 @@ var tokens = [{
219
219
  "introduced": "1.14.0",
220
220
  "description": "TBD"
221
221
  },
222
- "value": "normal 700 28px/32px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
222
+ "value": "normal 700 28px/32px var(--ds-font-family-heading)",
223
223
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
224
224
  "isSource": true,
225
225
  "original": {
@@ -233,7 +233,7 @@ var tokens = [{
233
233
  "fontWeight": "FontWeight700",
234
234
  "fontSize": "FontSize28",
235
235
  "lineHeight": "LineHeight500",
236
- "fontFamily": "FontFamilyWebSans",
236
+ "fontFamily": "font.family.heading",
237
237
  "fontStyle": "normal",
238
238
  "letterSpacing": "LetterSpacing0"
239
239
  }
@@ -248,7 +248,7 @@ var tokens = [{
248
248
  "introduced": "1.14.0",
249
249
  "description": "TBD"
250
250
  },
251
- "value": "normal 700 14px/16px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
251
+ "value": "normal 700 14px/16px var(--ds-font-family-heading)",
252
252
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
253
253
  "isSource": true,
254
254
  "original": {
@@ -262,7 +262,7 @@ var tokens = [{
262
262
  "fontWeight": "FontWeight700",
263
263
  "fontSize": "FontSize14",
264
264
  "lineHeight": "LineHeight100",
265
- "fontFamily": "FontFamilyWebSans",
265
+ "fontFamily": "font.family.heading",
266
266
  "fontStyle": "normal",
267
267
  "letterSpacing": "LetterSpacing0"
268
268
  }
@@ -277,7 +277,7 @@ var tokens = [{
277
277
  "introduced": "1.14.0",
278
278
  "description": "TBD"
279
279
  },
280
- "value": "normal 700 36px/40px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
280
+ "value": "normal 700 36px/40px var(--ds-font-family-heading)",
281
281
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
282
282
  "isSource": true,
283
283
  "original": {
@@ -291,7 +291,7 @@ var tokens = [{
291
291
  "fontWeight": "FontWeight700",
292
292
  "fontSize": "FontSize36",
293
293
  "lineHeight": "LineHeight700",
294
- "fontFamily": "FontFamilyWebSans",
294
+ "fontFamily": "font.family.heading",
295
295
  "fontStyle": "normal",
296
296
  "letterSpacing": "LetterSpacing0"
297
297
  }
@@ -306,7 +306,7 @@ var tokens = [{
306
306
  "introduced": "1.14.0",
307
307
  "description": "TBD"
308
308
  },
309
- "value": "normal 700 12px/16px ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
309
+ "value": "normal 700 12px/16px var(--ds-font-family-heading)",
310
310
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
311
311
  "isSource": true,
312
312
  "original": {
@@ -320,7 +320,7 @@ var tokens = [{
320
320
  "fontWeight": "FontWeight700",
321
321
  "fontSize": "FontSize12",
322
322
  "lineHeight": "LineHeight100",
323
- "fontFamily": "FontFamilyWebSans",
323
+ "fontFamily": "font.family.heading",
324
324
  "fontStyle": "normal",
325
325
  "letterSpacing": "LetterSpacing0"
326
326
  }
@@ -445,7 +445,7 @@ var tokens = [{
445
445
  "introduced": "1.14.0",
446
446
  "description": "Single-line non-wrapping text like that in a button."
447
447
  },
448
- "value": "normal 400 14px/1 ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
448
+ "value": "normal 400 14px/1 var(--ds-font-family-body)",
449
449
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
450
450
  "isSource": true,
451
451
  "original": {
@@ -459,7 +459,7 @@ var tokens = [{
459
459
  "fontWeight": "FontWeight400",
460
460
  "fontSize": "FontSize14",
461
461
  "lineHeight": "LineHeight1",
462
- "fontFamily": "FontFamilyWebSans",
462
+ "fontFamily": "font.family.body",
463
463
  "fontStyle": "normal",
464
464
  "letterSpacing": "LetterSpacing0"
465
465
  }
@@ -474,7 +474,7 @@ var tokens = [{
474
474
  "introduced": "1.14.0",
475
475
  "description": "Single-line non-wrapping supporting text like that in a smaller label."
476
476
  },
477
- "value": "normal 400 12px/1 ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
477
+ "value": "normal 400 12px/1 var(--ds-font-family-body)",
478
478
  "filePath": "src/tokens/atlassian-typography/theme.tsx",
479
479
  "isSource": true,
480
480
  "original": {
@@ -488,7 +488,7 @@ var tokens = [{
488
488
  "fontWeight": "FontWeight400",
489
489
  "fontSize": "FontSize12",
490
490
  "lineHeight": "LineHeight1",
491
- "fontFamily": "FontFamilyWebSans",
491
+ "fontFamily": "font.family.body",
492
492
  "fontStyle": "normal",
493
493
  "letterSpacing": "LetterSpacing0"
494
494
  }
@@ -503,7 +503,7 @@ var tokens = [{
503
503
  "introduced": "1.14.0",
504
504
  "description": "Helpful guidance goes here"
505
505
  },
506
- "value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
506
+ "value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
507
507
  "filePath": "src/tokens/atlassian-typography/font-family.tsx",
508
508
  "isSource": true,
509
509
  "original": {
@@ -513,16 +513,16 @@ var tokens = [{
513
513
  "introduced": "1.14.0",
514
514
  "description": "Helpful guidance goes here"
515
515
  },
516
- "value": "FontFamilyWebMono"
516
+ "value": "FontFamilyWebSans"
517
517
  },
518
- "name": "font.family.code",
519
- "path": ["font", "family", "code"],
520
- "cleanName": "font.family.code"
518
+ "name": "font.family.body",
519
+ "path": ["font", "family", "body"],
520
+ "cleanName": "font.family.body"
521
521
  }, {
522
522
  "attributes": {
523
523
  "group": "fontFamily",
524
- "state": "active",
525
- "introduced": "0.10.33",
524
+ "state": "experimental",
525
+ "introduced": "1.14.0",
526
526
  "description": "Helpful guidance goes here"
527
527
  },
528
528
  "value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
@@ -531,15 +531,15 @@ var tokens = [{
531
531
  "original": {
532
532
  "attributes": {
533
533
  "group": "fontFamily",
534
- "state": "active",
535
- "introduced": "0.10.33",
534
+ "state": "experimental",
535
+ "introduced": "1.14.0",
536
536
  "description": "Helpful guidance goes here"
537
537
  },
538
538
  "value": "FontFamilyWebMono"
539
539
  },
540
- "name": "font.family.monospace",
541
- "path": ["font", "family", "monospace"],
542
- "cleanName": "font.family.monospace"
540
+ "name": "font.family.code",
541
+ "path": ["font", "family", "code"],
542
+ "cleanName": "font.family.code"
543
543
  }, {
544
544
  "attributes": {
545
545
  "group": "fontFamily",
@@ -559,9 +559,31 @@ var tokens = [{
559
559
  },
560
560
  "value": "FontFamilyWebSans"
561
561
  },
562
- "name": "font.family.product",
563
- "path": ["font", "family", "product"],
564
- "cleanName": "font.family.product"
562
+ "name": "font.family.heading",
563
+ "path": ["font", "family", "heading"],
564
+ "cleanName": "font.family.heading"
565
+ }, {
566
+ "attributes": {
567
+ "group": "fontFamily",
568
+ "state": "active",
569
+ "introduced": "0.10.33",
570
+ "description": "Helpful guidance goes here"
571
+ },
572
+ "value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
573
+ "filePath": "src/tokens/atlassian-typography/font-family.tsx",
574
+ "isSource": true,
575
+ "original": {
576
+ "attributes": {
577
+ "group": "fontFamily",
578
+ "state": "active",
579
+ "introduced": "0.10.33",
580
+ "description": "Helpful guidance goes here"
581
+ },
582
+ "value": "FontFamilyWebMono"
583
+ },
584
+ "name": "font.family.monospace",
585
+ "path": ["font", "family", "monospace"],
586
+ "cleanName": "font.family.monospace"
565
587
  }, {
566
588
  "attributes": {
567
589
  "group": "fontFamily",
@@ -28,7 +28,21 @@ var getThemeValues = function getThemeValues(theme) {
28
28
  // If it's a box shadow, it'll be an array of values that needs to be
29
29
  // formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
30
30
  value = rawToken.value.reduce(function (prev, curr, index) {
31
- var value = "".concat(curr.offset.x, "px ").concat(curr.offset.y, "px ").concat(curr.radius, "px ").concat(curr.color);
31
+ var color = curr.color;
32
+
33
+ // Opacity needs to be added to hex values that don't already contain it.
34
+ // If it contained opacity, the length would be 9 instead of 7.
35
+ if (color.length === 7 && curr.opacity) {
36
+ var opacityAsHex = curr.opacity.toString(16); // 0.4f5c28f5c28f5c
37
+ var shortenedHex = opacityAsHex.slice(2, 4); // 4f
38
+
39
+ // The hex value has to have a length of 2. If it's shorter, a "0" needs to be added.
40
+ if (shortenedHex.length === 1) {
41
+ shortenedHex += '0';
42
+ }
43
+ color += shortenedHex;
44
+ }
45
+ var value = "".concat(curr.offset.x, "px ").concat(curr.offset.y, "px ").concat(curr.radius, "px ").concat(color);
32
46
  if (index === 0) {
33
47
  value += ", ";
34
48
  }
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
9
9
  var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
10
10
  var name = "@atlaskit/tokens";
11
- var version = "1.21.0";
11
+ var version = "1.22.0";
12
12
  /**
13
13
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
14
14
  * resulting CSS Custom Property.
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
9
9
  var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
10
10
  var _constants = require("./constants");
11
11
  var name = "@atlaskit/tokens";
12
- var version = "1.21.0";
12
+ var version = "1.22.0";
13
13
  /**
14
14
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
15
15
  * This should be used to implement design decisions throughout your application.
@@ -13,7 +13,10 @@ var font = {
13
13
  monospace: {
14
14
  value: 'FontFamilyWebMono'
15
15
  },
16
- product: {
16
+ heading: {
17
+ value: 'FontFamilyWebSans'
18
+ },
19
+ body: {
17
20
  value: 'FontFamilyWebSans'
18
21
  },
19
22
  brand: {
@@ -12,7 +12,7 @@ var typography = {
12
12
  fontWeight: 'FontWeight700',
13
13
  fontSize: 'FontSize36',
14
14
  lineHeight: 'LineHeight700',
15
- fontFamily: 'FontFamilyWebSans',
15
+ fontFamily: 'font.family.heading',
16
16
  fontStyle: 'normal',
17
17
  letterSpacing: 'LetterSpacing0'
18
18
  }
@@ -22,7 +22,7 @@ var typography = {
22
22
  fontWeight: 'FontWeight700',
23
23
  fontSize: 'FontSize28',
24
24
  lineHeight: 'LineHeight500',
25
- fontFamily: 'FontFamilyWebSans',
25
+ fontFamily: 'font.family.heading',
26
26
  fontStyle: 'normal',
27
27
  letterSpacing: 'LetterSpacing0'
28
28
  }
@@ -32,7 +32,7 @@ var typography = {
32
32
  fontWeight: 'FontWeight700',
33
33
  fontSize: 'FontSize24',
34
34
  lineHeight: 'LineHeight400',
35
- fontFamily: 'FontFamilyWebSans',
35
+ fontFamily: 'font.family.heading',
36
36
  fontStyle: 'normal',
37
37
  letterSpacing: 'LetterSpacing0'
38
38
  }
@@ -42,7 +42,7 @@ var typography = {
42
42
  fontWeight: 'FontWeight700',
43
43
  fontSize: 'FontSize20',
44
44
  lineHeight: 'LineHeight300',
45
- fontFamily: 'FontFamilyWebSans',
45
+ fontFamily: 'font.family.heading',
46
46
  fontStyle: 'normal',
47
47
  letterSpacing: 'LetterSpacing0'
48
48
  }
@@ -52,7 +52,7 @@ var typography = {
52
52
  fontWeight: 'FontWeight700',
53
53
  fontSize: 'FontSize16',
54
54
  lineHeight: 'LineHeight200',
55
- fontFamily: 'FontFamilyWebSans',
55
+ fontFamily: 'font.family.heading',
56
56
  fontStyle: 'normal',
57
57
  letterSpacing: 'LetterSpacing0'
58
58
  }
@@ -62,7 +62,7 @@ var typography = {
62
62
  fontWeight: 'FontWeight700',
63
63
  fontSize: 'FontSize14',
64
64
  lineHeight: 'LineHeight100',
65
- fontFamily: 'FontFamilyWebSans',
65
+ fontFamily: 'font.family.heading',
66
66
  fontStyle: 'normal',
67
67
  letterSpacing: 'LetterSpacing0'
68
68
  }
@@ -72,7 +72,7 @@ var typography = {
72
72
  fontWeight: 'FontWeight700',
73
73
  fontSize: 'FontSize12',
74
74
  lineHeight: 'LineHeight100',
75
- fontFamily: 'FontFamilyWebSans',
75
+ fontFamily: 'font.family.heading',
76
76
  fontStyle: 'normal',
77
77
  letterSpacing: 'LetterSpacing0'
78
78
  }
@@ -84,7 +84,7 @@ var typography = {
84
84
  fontWeight: 'FontWeight400',
85
85
  fontSize: 'FontSizeCode',
86
86
  lineHeight: 'LineHeight1',
87
- fontFamily: 'FontFamilyWebMono',
87
+ fontFamily: 'font.family.code',
88
88
  fontStyle: 'normal',
89
89
  letterSpacing: 'LetterSpacing0'
90
90
  }
@@ -96,7 +96,7 @@ var typography = {
96
96
  fontWeight: 'FontWeight400',
97
97
  fontSize: 'FontSize14',
98
98
  lineHeight: 'LineHeight200',
99
- fontFamily: 'FontFamilyWebSans',
99
+ fontFamily: 'font.family.body',
100
100
  fontStyle: 'normal',
101
101
  letterSpacing: 'LetterSpacing0'
102
102
  }
@@ -106,7 +106,7 @@ var typography = {
106
106
  fontWeight: 'FontWeight400',
107
107
  fontSize: 'FontSize12',
108
108
  lineHeight: 'LineHeight200',
109
- fontFamily: 'FontFamilyWebSans',
109
+ fontFamily: 'font.family.body',
110
110
  fontStyle: 'normal',
111
111
  letterSpacing: 'LetterSpacing0'
112
112
  }
@@ -116,7 +116,7 @@ var typography = {
116
116
  fontWeight: 'FontWeight400',
117
117
  fontSize: 'FontSize16',
118
118
  lineHeight: 'LineHeight300',
119
- fontFamily: 'FontFamilyWebSans',
119
+ fontFamily: 'font.family.body',
120
120
  fontStyle: 'normal',
121
121
  letterSpacing: 'LetterSpacing0'
122
122
  }
@@ -128,7 +128,7 @@ var typography = {
128
128
  fontWeight: 'FontWeight400',
129
129
  fontSize: 'FontSize14',
130
130
  lineHeight: 'LineHeight1',
131
- fontFamily: 'FontFamilyWebSans',
131
+ fontFamily: 'font.family.body',
132
132
  fontStyle: 'normal',
133
133
  letterSpacing: 'LetterSpacing0'
134
134
  }
@@ -138,7 +138,7 @@ var typography = {
138
138
  fontWeight: 'FontWeight400',
139
139
  fontSize: 'FontSize12',
140
140
  lineHeight: 'LineHeight1',
141
- fontFamily: 'FontFamilyWebSans',
141
+ fontFamily: 'font.family.body',
142
142
  fontStyle: 'normal',
143
143
  letterSpacing: 'LetterSpacing0'
144
144
  }
@@ -13,7 +13,10 @@ var font = {
13
13
  monospace: {
14
14
  value: 'FontFamilyWebMono'
15
15
  },
16
- product: {
16
+ body: {
17
+ value: 'FontFamilyWebSans'
18
+ },
19
+ heading: {
17
20
  value: 'FontFamilyWebSans'
18
21
  },
19
22
  brand: {
@@ -4,6 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ var utility = {
8
+ // @ts-expect-error in complete utility theme
9
+ UNSAFE: {
10
+ textTransformUppercase: {
11
+ value: 'uppercase'
12
+ }
13
+ }
14
+ };
7
15
  var typography = {
8
16
  font: {
9
17
  heading: {
@@ -12,7 +20,7 @@ var typography = {
12
20
  fontWeight: 'FontWeight500',
13
21
  fontSize: 'LegacyFontSize35',
14
22
  lineHeight: 'LineHeight700',
15
- fontFamily: 'FontFamilyWebSans',
23
+ fontFamily: 'font.family.heading',
16
24
  fontStyle: 'normal',
17
25
  letterSpacing: 'LetterSpacing400'
18
26
  }
@@ -22,7 +30,7 @@ var typography = {
22
30
  fontWeight: 'FontWeight600',
23
31
  fontSize: 'LegacyFontSize29',
24
32
  lineHeight: 'LineHeight500',
25
- fontFamily: 'FontFamilyWebSans',
33
+ fontFamily: 'font.family.heading',
26
34
  fontStyle: 'normal',
27
35
  letterSpacing: 'LetterSpacing400'
28
36
  }
@@ -32,7 +40,7 @@ var typography = {
32
40
  fontWeight: 'FontWeight500',
33
41
  fontSize: 'FontSize24',
34
42
  lineHeight: 'LineHeight400',
35
- fontFamily: 'FontFamilyWebSans',
43
+ fontFamily: 'font.family.heading',
36
44
  fontStyle: 'normal',
37
45
  letterSpacing: 'LetterSpacing400'
38
46
  }
@@ -42,7 +50,7 @@ var typography = {
42
50
  fontWeight: 'FontWeight500',
43
51
  fontSize: 'FontSize20',
44
52
  lineHeight: 'LineHeight300',
45
- fontFamily: 'FontFamilyWebSans',
53
+ fontFamily: 'font.family.heading',
46
54
  fontStyle: 'normal',
47
55
  letterSpacing: 'LetterSpacing300'
48
56
  }
@@ -52,7 +60,7 @@ var typography = {
52
60
  fontWeight: 'FontWeight600',
53
61
  fontSize: 'FontSize16',
54
62
  lineHeight: 'LineHeight200',
55
- fontFamily: 'FontFamilyWebSans',
63
+ fontFamily: 'font.family.heading',
56
64
  fontStyle: 'normal',
57
65
  letterSpacing: 'LetterSpacing200'
58
66
  }
@@ -62,7 +70,7 @@ var typography = {
62
70
  fontWeight: 'FontWeight600',
63
71
  fontSize: 'FontSize14',
64
72
  lineHeight: 'LineHeight100',
65
- fontFamily: 'FontFamilyWebSans',
73
+ fontFamily: 'font.family.heading',
66
74
  fontStyle: 'normal',
67
75
  letterSpacing: 'LetterSpacing100'
68
76
  }
@@ -72,7 +80,7 @@ var typography = {
72
80
  fontWeight: 'FontWeight600',
73
81
  fontSize: 'FontSize12',
74
82
  lineHeight: 'LineHeight100',
75
- fontFamily: 'FontFamilyWebSans',
83
+ fontFamily: 'font.family.heading',
76
84
  fontStyle: 'normal',
77
85
  letterSpacing: 'LetterSpacing0'
78
86
  }
@@ -84,7 +92,7 @@ var typography = {
84
92
  fontWeight: 'FontWeight400',
85
93
  fontSize: 'FontSizeCode',
86
94
  lineHeight: 'LineHeight1',
87
- fontFamily: 'FontFamilyWebMono',
95
+ fontFamily: 'font.family.code',
88
96
  fontStyle: 'normal',
89
97
  letterSpacing: 'LetterSpacing0'
90
98
  }
@@ -96,7 +104,7 @@ var typography = {
96
104
  fontWeight: 'FontWeight400',
97
105
  fontSize: 'FontSize14',
98
106
  lineHeight: 'LineHeight200',
99
- fontFamily: 'FontFamilyWebSans',
107
+ fontFamily: 'font.family.body',
100
108
  fontStyle: 'normal',
101
109
  letterSpacing: 'LetterSpacing0'
102
110
  }
@@ -106,7 +114,7 @@ var typography = {
106
114
  fontWeight: 'FontWeight400',
107
115
  fontSize: 'FontSize16',
108
116
  lineHeight: 'LineHeight300',
109
- fontFamily: 'FontFamilyWebSans',
117
+ fontFamily: 'font.family.body',
110
118
  fontStyle: 'normal',
111
119
  letterSpacing: 'LetterSpacing0'
112
120
  }
@@ -116,7 +124,7 @@ var typography = {
116
124
  fontWeight: 'FontWeight400',
117
125
  fontSize: 'LegacyFontSize11',
118
126
  lineHeight: 'LineHeight200',
119
- fontFamily: 'FontFamilyWebSans',
127
+ fontFamily: 'font.family.body',
120
128
  fontStyle: 'normal',
121
129
  letterSpacing: 'LetterSpacing0'
122
130
  }
@@ -128,7 +136,7 @@ var typography = {
128
136
  fontWeight: 'FontWeight400',
129
137
  fontSize: 'FontSize14',
130
138
  lineHeight: 'LineHeight1',
131
- fontFamily: 'FontFamilyWebSans',
139
+ fontFamily: 'font.family.body',
132
140
  fontStyle: 'normal',
133
141
  letterSpacing: 'LetterSpacing0'
134
142
  }
@@ -138,7 +146,7 @@ var typography = {
138
146
  fontWeight: 'FontWeight400',
139
147
  fontSize: 'LegacyFontSize11',
140
148
  lineHeight: 'LineHeight1',
141
- fontFamily: 'FontFamilyWebSans',
149
+ fontFamily: 'font.family.body',
142
150
  fontStyle: 'normal',
143
151
  letterSpacing: 'LetterSpacing0'
144
152
  }
@@ -146,5 +154,8 @@ var typography = {
146
154
  }
147
155
  }
148
156
  };
149
- var _default = typography;
157
+ var _default = {
158
+ font: typography.font,
159
+ utility: utility
160
+ };
150
161
  exports.default = _default;
@@ -13,7 +13,10 @@ var font = {
13
13
  monospace: {
14
14
  value: 'FontFamilyWebMono'
15
15
  },
16
- product: {
16
+ body: {
17
+ value: 'FontFamilyWebSans'
18
+ },
19
+ heading: {
17
20
  value: 'FontFamilyWebSans'
18
21
  },
19
22
  brand: {