@atlaskit/tokens 1.5.2 → 1.6.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 (100) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +3 -3
  3. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +12 -10
  5. package/dist/cjs/artifacts/token-names.js +12 -10
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +33 -33
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +33 -33
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +81 -37
  13. package/dist/cjs/constants.js +1 -1
  14. package/dist/cjs/get-token-value.js +1 -1
  15. package/dist/cjs/get-token.js +1 -1
  16. package/dist/cjs/palettes/shape-palette.js +2 -1
  17. package/dist/cjs/set-global-theme.js +14 -3
  18. package/dist/cjs/tokens/atlassian-shape/shape.js +7 -1
  19. package/dist/cjs/tokens/default/shape/shape.js +33 -17
  20. package/dist/cjs/utils/theme-state-transformer.js +2 -1
  21. package/dist/cjs/utils/token-order.js +1 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +3 -3
  24. package/dist/es2019/artifacts/themes/atlassian-shape.js +12 -10
  25. package/dist/es2019/artifacts/token-default-values.js +12 -10
  26. package/dist/es2019/artifacts/token-names.js +12 -10
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +33 -33
  29. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  30. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  31. package/dist/es2019/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  32. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +33 -33
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +81 -37
  34. package/dist/es2019/constants.js +1 -1
  35. package/dist/es2019/get-token-value.js +1 -1
  36. package/dist/es2019/get-token.js +1 -1
  37. package/dist/es2019/palettes/shape-palette.js +2 -1
  38. package/dist/es2019/set-global-theme.js +10 -2
  39. package/dist/es2019/tokens/atlassian-shape/shape.js +7 -1
  40. package/dist/es2019/tokens/default/shape/shape.js +33 -17
  41. package/dist/es2019/utils/theme-state-transformer.js +2 -1
  42. package/dist/es2019/utils/token-order.js +1 -1
  43. package/dist/es2019/version.json +1 -1
  44. package/dist/esm/artifacts/palettes-raw/shape-palette.js +3 -3
  45. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  46. package/dist/esm/artifacts/token-default-values.js +12 -10
  47. package/dist/esm/artifacts/token-names.js +12 -10
  48. package/dist/esm/artifacts/tokens-raw/atlassian-dark-new-input-border.js +3 -267
  49. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +33 -33
  50. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
  51. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
  52. package/dist/esm/artifacts/tokens-raw/atlassian-light-new-input-border.js +3 -267
  53. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +33 -33
  54. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +81 -37
  55. package/dist/esm/constants.js +1 -1
  56. package/dist/esm/get-token-value.js +1 -1
  57. package/dist/esm/get-token.js +1 -1
  58. package/dist/esm/palettes/shape-palette.js +2 -1
  59. package/dist/esm/set-global-theme.js +14 -3
  60. package/dist/esm/tokens/atlassian-shape/shape.js +7 -1
  61. package/dist/esm/tokens/default/shape/shape.js +33 -17
  62. package/dist/esm/utils/theme-state-transformer.js +2 -1
  63. package/dist/esm/utils/token-order.js +1 -1
  64. package/dist/esm/version.json +1 -1
  65. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +3 -18
  66. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  67. package/dist/types/artifacts/token-default-values.d.ts +12 -10
  68. package/dist/types/artifacts/token-names.d.ts +23 -19
  69. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  70. package/dist/types/artifacts/types-internal.d.ts +2 -2
  71. package/dist/types/artifacts/types.d.ts +2 -2
  72. package/dist/types/index.d.ts +1 -1
  73. package/dist/types/palettes/shape-palette.d.ts +1 -1
  74. package/dist/types/set-global-theme.d.ts +8 -7
  75. package/dist/types/types.d.ts +3 -1
  76. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +3 -18
  77. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  78. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +12 -10
  79. package/dist/types-ts4.5/artifacts/token-names.d.ts +23 -19
  80. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-new-input-border.d.ts +1 -1
  81. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  82. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  83. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  84. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-new-input-border.d.ts +1 -1
  85. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  86. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  87. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  88. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  89. package/dist/types-ts4.5/index.d.ts +1 -1
  90. package/dist/types-ts4.5/palettes/shape-palette.d.ts +1 -1
  91. package/dist/types-ts4.5/set-global-theme.d.ts +8 -7
  92. package/dist/types-ts4.5/types.d.ts +3 -1
  93. package/figma/atlassian-dark.json +16 -16
  94. package/figma/atlassian-legacy-dark.json +16 -16
  95. package/figma/atlassian-legacy-light.json +16 -16
  96. package/figma/atlassian-light.json +16 -16
  97. package/figma/atlassian-shape.json +36 -18
  98. package/package.json +3 -4
  99. package/report.api.md +125 -22
  100. package/tmp/api-report-tmp.d.ts +107 -27
@@ -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::4f1312b7d279fa9e11425bc4621e8a31>>
3
+ * @codegen <<SignedSource::2246b2d7c94a1fe562f7860f3b40764b>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -30,7 +30,7 @@ const tokens = [{
30
30
  "group": "paint",
31
31
  "state": "active",
32
32
  "introduced": "0.6.0",
33
- "description": "Use for red text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
33
+ "description": "Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the color."
34
34
  },
35
35
  "value": "#AE2A19",
36
36
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -40,7 +40,7 @@ const tokens = [{
40
40
  "group": "paint",
41
41
  "state": "active",
42
42
  "introduced": "0.6.0",
43
- "description": "Use for red text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
43
+ "description": "Use for red text on subtlest and subtler red accent backgrounds when there is no meaning tied to the color."
44
44
  },
45
45
  "value": "Red800"
46
46
  },
@@ -52,7 +52,7 @@ const tokens = [{
52
52
  "group": "paint",
53
53
  "state": "active",
54
54
  "introduced": "0.7.0",
55
- "description": "Use on bold red accent backgrounds."
55
+ "description": "Use for red text on subtle red accent backgrounds when there is no meaning tied to the color."
56
56
  },
57
57
  "value": "#601E16",
58
58
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -62,7 +62,7 @@ const tokens = [{
62
62
  "group": "paint",
63
63
  "state": "active",
64
64
  "introduced": "0.7.0",
65
- "description": "Use on bold red accent backgrounds."
65
+ "description": "Use for red text on subtle red accent backgrounds when there is no meaning tied to the color."
66
66
  },
67
67
  "value": "Red900"
68
68
  },
@@ -74,7 +74,7 @@ const tokens = [{
74
74
  "group": "paint",
75
75
  "state": "active",
76
76
  "introduced": "0.6.0",
77
- "description": "Use for orange text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
77
+ "description": "Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the color."
78
78
  },
79
79
  "value": "#974F0C",
80
80
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -84,7 +84,7 @@ const tokens = [{
84
84
  "group": "paint",
85
85
  "state": "active",
86
86
  "introduced": "0.6.0",
87
- "description": "Use for orange text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
87
+ "description": "Use for orange text on subtlest and subtler orange accent backgrounds when there is no meaning tied to the color."
88
88
  },
89
89
  "value": "Orange800"
90
90
  },
@@ -96,7 +96,7 @@ const tokens = [{
96
96
  "group": "paint",
97
97
  "state": "active",
98
98
  "introduced": "0.7.0",
99
- "description": "Use on bold orange accent backgrounds."
99
+ "description": "Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the color."
100
100
  },
101
101
  "value": "#5F3811",
102
102
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -106,7 +106,7 @@ const tokens = [{
106
106
  "group": "paint",
107
107
  "state": "active",
108
108
  "introduced": "0.7.0",
109
- "description": "Use on bold orange accent backgrounds."
109
+ "description": "Use for orange text on subtle orange accent backgrounds when there is no meaning tied to the color."
110
110
  },
111
111
  "value": "Orange900"
112
112
  },
@@ -118,7 +118,7 @@ const tokens = [{
118
118
  "group": "paint",
119
119
  "state": "active",
120
120
  "introduced": "0.6.0",
121
- "description": "Use for yellow text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
121
+ "description": "Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the color."
122
122
  },
123
123
  "value": "#7F5F01",
124
124
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -128,7 +128,7 @@ const tokens = [{
128
128
  "group": "paint",
129
129
  "state": "active",
130
130
  "introduced": "0.6.0",
131
- "description": "Use for yellow text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
131
+ "description": "Use for yellow text on subtlest and subtler yellow accent backgrounds when there is no meaning tied to the color."
132
132
  },
133
133
  "value": "Yellow800"
134
134
  },
@@ -140,7 +140,7 @@ const tokens = [{
140
140
  "group": "paint",
141
141
  "state": "active",
142
142
  "introduced": "0.7.0",
143
- "description": "Use on bold yellow accent backgrounds."
143
+ "description": "Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the color."
144
144
  },
145
145
  "value": "#533F04",
146
146
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -150,7 +150,7 @@ const tokens = [{
150
150
  "group": "paint",
151
151
  "state": "active",
152
152
  "introduced": "0.7.0",
153
- "description": "Use on bold yellow accent backgrounds."
153
+ "description": "Use for yellow text on subtle yellow accent backgrounds when there is no meaning tied to the color."
154
154
  },
155
155
  "value": "Yellow900"
156
156
  },
@@ -162,7 +162,7 @@ const tokens = [{
162
162
  "group": "paint",
163
163
  "state": "active",
164
164
  "introduced": "0.6.0",
165
- "description": "Use for green text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
165
+ "description": "Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the color."
166
166
  },
167
167
  "value": "#216E4E",
168
168
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -172,7 +172,7 @@ const tokens = [{
172
172
  "group": "paint",
173
173
  "state": "active",
174
174
  "introduced": "0.6.0",
175
- "description": "Use for green text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
175
+ "description": "Use for green text on subtlest and subtler green accent backgrounds when there is no meaning tied to the color."
176
176
  },
177
177
  "value": "Green800"
178
178
  },
@@ -184,7 +184,7 @@ const tokens = [{
184
184
  "group": "paint",
185
185
  "state": "active",
186
186
  "introduced": "0.7.0",
187
- "description": "Use on bold green accent backgrounds."
187
+ "description": "Use for green text on subtle green accent backgrounds when there is no meaning tied to the color."
188
188
  },
189
189
  "value": "#164B35",
190
190
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -194,7 +194,7 @@ const tokens = [{
194
194
  "group": "paint",
195
195
  "state": "active",
196
196
  "introduced": "0.7.0",
197
- "description": "Use on bold green accent backgrounds."
197
+ "description": "Use for green text on subtle green accent backgrounds when there is no meaning tied to the color."
198
198
  },
199
199
  "value": "Green900"
200
200
  },
@@ -206,7 +206,7 @@ const tokens = [{
206
206
  "group": "paint",
207
207
  "state": "active",
208
208
  "introduced": "0.6.0",
209
- "description": "Use for teal text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
209
+ "description": "Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the color."
210
210
  },
211
211
  "value": "#206B74",
212
212
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -216,7 +216,7 @@ const tokens = [{
216
216
  "group": "paint",
217
217
  "state": "active",
218
218
  "introduced": "0.6.0",
219
- "description": "Use for teal text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
219
+ "description": "Use for teal text on subtlest and subtler teal accent backgrounds when there is no meaning tied to the color."
220
220
  },
221
221
  "value": "Teal800"
222
222
  },
@@ -228,7 +228,7 @@ const tokens = [{
228
228
  "group": "paint",
229
229
  "state": "active",
230
230
  "introduced": "0.7.0",
231
- "description": "Use on bold teal accent backgrounds."
231
+ "description": "Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the color."
232
232
  },
233
233
  "value": "#1D474C",
234
234
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -238,7 +238,7 @@ const tokens = [{
238
238
  "group": "paint",
239
239
  "state": "active",
240
240
  "introduced": "0.7.0",
241
- "description": "Use on bold teal accent backgrounds."
241
+ "description": "Use for teal text on subtle teal accent backgrounds when there is no meaning tied to the color."
242
242
  },
243
243
  "value": "Teal900"
244
244
  },
@@ -250,7 +250,7 @@ const tokens = [{
250
250
  "group": "paint",
251
251
  "state": "active",
252
252
  "introduced": "0.6.0",
253
- "description": "Use for blue text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
253
+ "description": "Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the color."
254
254
  },
255
255
  "value": "#0055CC",
256
256
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -260,7 +260,7 @@ const tokens = [{
260
260
  "group": "paint",
261
261
  "state": "active",
262
262
  "introduced": "0.6.0",
263
- "description": "Use for blue text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
263
+ "description": "Use for blue text on subtlest and subtler blue accent backgrounds when there is no meaning tied to the color."
264
264
  },
265
265
  "value": "Blue800"
266
266
  },
@@ -272,7 +272,7 @@ const tokens = [{
272
272
  "group": "paint",
273
273
  "state": "active",
274
274
  "introduced": "0.7.0",
275
- "description": "Use on bold blue accent backgrounds."
275
+ "description": "Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the color."
276
276
  },
277
277
  "value": "#09326C",
278
278
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -282,7 +282,7 @@ const tokens = [{
282
282
  "group": "paint",
283
283
  "state": "active",
284
284
  "introduced": "0.7.0",
285
- "description": "Use on bold blue accent backgrounds."
285
+ "description": "Use for blue text on subtle blue accent backgrounds when there is no meaning tied to the color."
286
286
  },
287
287
  "value": "Blue900"
288
288
  },
@@ -294,7 +294,7 @@ const tokens = [{
294
294
  "group": "paint",
295
295
  "state": "active",
296
296
  "introduced": "0.6.0",
297
- "description": "Use for purple text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
297
+ "description": "Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the color."
298
298
  },
299
299
  "value": "#5E4DB2",
300
300
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -304,7 +304,7 @@ const tokens = [{
304
304
  "group": "paint",
305
305
  "state": "active",
306
306
  "introduced": "0.6.0",
307
- "description": "Use for purple text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
307
+ "description": "Use for purple text on subtlest and subtler purple accent backgrounds when there is no meaning tied to the color."
308
308
  },
309
309
  "value": "Purple800"
310
310
  },
@@ -316,7 +316,7 @@ const tokens = [{
316
316
  "group": "paint",
317
317
  "state": "active",
318
318
  "introduced": "0.7.0",
319
- "description": "Use on bold purple accent backgrounds."
319
+ "description": "Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the color."
320
320
  },
321
321
  "value": "#352C63",
322
322
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -326,7 +326,7 @@ const tokens = [{
326
326
  "group": "paint",
327
327
  "state": "active",
328
328
  "introduced": "0.7.0",
329
- "description": "Use on bold purple accent backgrounds."
329
+ "description": "Use for purple text on subtle purple accent backgrounds when there is no meaning tied to the color."
330
330
  },
331
331
  "value": "Purple900"
332
332
  },
@@ -338,7 +338,7 @@ const tokens = [{
338
338
  "group": "paint",
339
339
  "state": "active",
340
340
  "introduced": "0.6.0",
341
- "description": "Use for magenta text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
341
+ "description": "Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the color."
342
342
  },
343
343
  "value": "#943D73",
344
344
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -348,7 +348,7 @@ const tokens = [{
348
348
  "group": "paint",
349
349
  "state": "active",
350
350
  "introduced": "0.6.0",
351
- "description": "Use for magenta text on non-bold backgrounds when there is no meaning tied to the color, such as colored tags."
351
+ "description": "Use for magenta text on subtlest and subtler magenta accent backgrounds when there is no meaning tied to the color."
352
352
  },
353
353
  "value": "Magenta800"
354
354
  },
@@ -360,7 +360,7 @@ const tokens = [{
360
360
  "group": "paint",
361
361
  "state": "active",
362
362
  "introduced": "0.7.0",
363
- "description": "Use on bold magenta accent backgrounds."
363
+ "description": "Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the color."
364
364
  },
365
365
  "value": "#50253F",
366
366
  "filePath": "src/tokens/atlassian-light/color/accent.tsx",
@@ -370,7 +370,7 @@ const tokens = [{
370
370
  "group": "paint",
371
371
  "state": "active",
372
372
  "introduced": "0.7.0",
373
- "description": "Use on bold magenta accent backgrounds."
373
+ "description": "Use for magenta text on subtle magenta accent backgrounds when there is no meaning tied to the color."
374
374
  },
375
375
  "value": "Magenta900"
376
376
  },
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::7cdaa82f55e6537ca0b68d196db9e1d6>>
3
+ * @codegen <<SignedSource::8b50feb722f3a686c5a45c85ec5545b2>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
7
7
  "attributes": {
8
8
  "group": "shape",
9
- "state": "experimental",
9
+ "state": "active",
10
10
  "introduced": "1.1.0",
11
- "description": "Experimental, description needs to be amended"
11
+ "description": "Used for selection indicators, like tabs."
12
12
  },
13
13
  "value": "2px",
14
14
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -16,9 +16,9 @@ const tokens = [{
16
16
  "original": {
17
17
  "attributes": {
18
18
  "group": "shape",
19
- "state": "experimental",
19
+ "state": "active",
20
20
  "introduced": "1.1.0",
21
- "description": "Experimental, description needs to be amended"
21
+ "description": "Used for selection indicators, like tabs."
22
22
  },
23
23
  "value": "Radius050"
24
24
  },
@@ -28,9 +28,31 @@ const tokens = [{
28
28
  }, {
29
29
  "attributes": {
30
30
  "group": "shape",
31
- "state": "experimental",
31
+ "state": "active",
32
+ "introduced": "1.5.2",
33
+ "description": "The default border radius."
34
+ },
35
+ "value": "4px",
36
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
37
+ "isSource": true,
38
+ "original": {
39
+ "attributes": {
40
+ "group": "shape",
41
+ "state": "active",
42
+ "introduced": "1.5.2",
43
+ "description": "The default border radius."
44
+ },
45
+ "value": "Radius100"
46
+ },
47
+ "name": "border.radius.[default]",
48
+ "path": ["border", "radius", "[default]"],
49
+ "cleanName": "border.radius"
50
+ }, {
51
+ "attributes": {
52
+ "group": "shape",
53
+ "state": "active",
32
54
  "introduced": "1.1.0",
33
- "description": "Experimental, description needs to be amended"
55
+ "description": "Used for buttons and inputs."
34
56
  },
35
57
  "value": "4px",
36
58
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -38,9 +60,9 @@ const tokens = [{
38
60
  "original": {
39
61
  "attributes": {
40
62
  "group": "shape",
41
- "state": "experimental",
63
+ "state": "active",
42
64
  "introduced": "1.1.0",
43
- "description": "Experimental, description needs to be amended"
65
+ "description": "Used for buttons and inputs."
44
66
  },
45
67
  "value": "Radius100"
46
68
  },
@@ -50,9 +72,9 @@ const tokens = [{
50
72
  }, {
51
73
  "attributes": {
52
74
  "group": "shape",
53
- "state": "experimental",
75
+ "state": "active",
54
76
  "introduced": "1.1.0",
55
- "description": "Experimental, description needs to be amended"
77
+ "description": "Used for smaller cards."
56
78
  },
57
79
  "value": "8px",
58
80
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -60,9 +82,9 @@ const tokens = [{
60
82
  "original": {
61
83
  "attributes": {
62
84
  "group": "shape",
63
- "state": "experimental",
85
+ "state": "active",
64
86
  "introduced": "1.1.0",
65
- "description": "Experimental, description needs to be amended"
87
+ "description": "Used for smaller cards."
66
88
  },
67
89
  "value": "Radius200"
68
90
  },
@@ -72,9 +94,9 @@ const tokens = [{
72
94
  }, {
73
95
  "attributes": {
74
96
  "group": "shape",
75
- "state": "experimental",
97
+ "state": "active",
76
98
  "introduced": "1.1.0",
77
- "description": "Experimental, description needs to be amended"
99
+ "description": "Used for cards and larger containers."
78
100
  },
79
101
  "value": "12px",
80
102
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -82,9 +104,9 @@ const tokens = [{
82
104
  "original": {
83
105
  "attributes": {
84
106
  "group": "shape",
85
- "state": "experimental",
107
+ "state": "active",
86
108
  "introduced": "1.1.0",
87
- "description": "Experimental, description needs to be amended"
109
+ "description": "Used for cards and larger containers."
88
110
  },
89
111
  "value": "Radius300"
90
112
  },
@@ -94,9 +116,9 @@ const tokens = [{
94
116
  }, {
95
117
  "attributes": {
96
118
  "group": "shape",
97
- "state": "experimental",
119
+ "state": "active",
98
120
  "introduced": "1.1.0",
99
- "description": "Experimental, description needs to be amended"
121
+ "description": "Used for modals."
100
122
  },
101
123
  "value": "16px",
102
124
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -104,9 +126,9 @@ const tokens = [{
104
126
  "original": {
105
127
  "attributes": {
106
128
  "group": "shape",
107
- "state": "experimental",
129
+ "state": "active",
108
130
  "introduced": "1.1.0",
109
- "description": "Experimental, description needs to be amended"
131
+ "description": "Used for modals."
110
132
  },
111
133
  "value": "Radius400"
112
134
  },
@@ -116,25 +138,47 @@ const tokens = [{
116
138
  }, {
117
139
  "attributes": {
118
140
  "group": "shape",
119
- "state": "experimental",
141
+ "state": "active",
120
142
  "introduced": "1.1.0",
121
- "description": "Experimental, description needs to be amended"
143
+ "description": "Used for circular containers, like a rounded button."
122
144
  },
123
- "value": "50%",
145
+ "value": "32032px",
124
146
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
125
147
  "isSource": true,
126
148
  "original": {
127
149
  "attributes": {
128
150
  "group": "shape",
129
- "state": "experimental",
151
+ "state": "active",
130
152
  "introduced": "1.1.0",
131
- "description": "Experimental, description needs to be amended"
153
+ "description": "Used for circular containers, like a rounded button."
132
154
  },
133
155
  "value": "RadiusCircle"
134
156
  },
135
- "name": "border.radius.round",
136
- "path": ["border", "radius", "round"],
137
- "cleanName": "border.radius.round"
157
+ "name": "border.radius.circle",
158
+ "path": ["border", "radius", "circle"],
159
+ "cleanName": "border.radius.circle"
160
+ }, {
161
+ "attributes": {
162
+ "group": "shape",
163
+ "state": "active",
164
+ "introduced": "1.5.2",
165
+ "description": "The default border width."
166
+ },
167
+ "value": "1px",
168
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
169
+ "isSource": true,
170
+ "original": {
171
+ "attributes": {
172
+ "group": "shape",
173
+ "state": "active",
174
+ "introduced": "1.5.2",
175
+ "description": "The default border width."
176
+ },
177
+ "value": "Size050"
178
+ },
179
+ "name": "border.width.[default]",
180
+ "path": ["border", "width", "[default]"],
181
+ "cleanName": "border.width"
138
182
  }, {
139
183
  "attributes": {
140
184
  "group": "shape",
@@ -160,9 +204,9 @@ const tokens = [{
160
204
  }, {
161
205
  "attributes": {
162
206
  "group": "shape",
163
- "state": "experimental",
207
+ "state": "active",
164
208
  "introduced": "1.1.0",
165
- "description": "Experimental, description needs to be amended"
209
+ "description": "Used for all borders and dividers."
166
210
  },
167
211
  "value": "1px",
168
212
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -170,9 +214,9 @@ const tokens = [{
170
214
  "original": {
171
215
  "attributes": {
172
216
  "group": "shape",
173
- "state": "experimental",
217
+ "state": "active",
174
218
  "introduced": "1.1.0",
175
- "description": "Experimental, description needs to be amended"
219
+ "description": "Used for all borders and dividers."
176
220
  },
177
221
  "value": "Size050"
178
222
  },
@@ -182,9 +226,9 @@ const tokens = [{
182
226
  }, {
183
227
  "attributes": {
184
228
  "group": "shape",
185
- "state": "experimental",
229
+ "state": "active",
186
230
  "introduced": "1.1.0",
187
- "description": "Experimental, description needs to be amended"
231
+ "description": "Used for bolder dividers and interaction states."
188
232
  },
189
233
  "value": "2px",
190
234
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
@@ -192,9 +236,9 @@ const tokens = [{
192
236
  "original": {
193
237
  "attributes": {
194
238
  "group": "shape",
195
- "state": "experimental",
239
+ "state": "active",
196
240
  "introduced": "1.1.0",
197
- "description": "Experimental, description needs to be amended"
241
+ "description": "Used for bolder dividers and interaction states."
198
242
  },
199
243
  "value": "Size100"
200
244
  },
@@ -2,5 +2,5 @@ export const THEME_DATA_ATTRIBUTE = 'data-theme';
2
2
  export const COLOR_MODE_ATTRIBUTE = 'data-color-mode';
3
3
  export const DEFAULT_THEME = 'light';
4
4
  export const CSS_PREFIX = 'ds';
5
- export const CSS_VAR_FULL = ['opacity', 'font', 'space'];
5
+ export const CSS_VAR_FULL = ['opacity', 'font', 'space', 'border'];
6
6
  export const TOKEN_NOT_FOUND_CSS_VAR = `--${CSS_PREFIX}-token-not-found`;
@@ -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.5.2";
4
+ const version = "1.6.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.5.2";
5
+ const version = "1.6.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.
@@ -54,7 +54,8 @@ const baseRadiusTokens = {
54
54
  }
55
55
  },
56
56
  RadiusCircle: {
57
- value: '50%',
57
+ // The year atlassian was founded in rem
58
+ value: 32032,
58
59
  attributes: {
59
60
  group: 'shape'
60
61
  }
@@ -16,6 +16,7 @@ const themeStateDefaults = {
16
16
  colorMode: 'auto',
17
17
  dark: 'dark',
18
18
  light: 'light',
19
+ shape: undefined,
19
20
  spacing: undefined,
20
21
  typography: undefined
21
22
  };
@@ -70,6 +71,7 @@ const setGlobalTheme = async ({
70
71
  colorMode = themeStateDefaults['colorMode'],
71
72
  dark = themeStateDefaults['dark'],
72
73
  light = themeStateDefaults['light'],
74
+ shape = themeStateDefaults['shape'],
73
75
  spacing = themeStateDefaults['spacing'],
74
76
  typography = themeStateDefaults['typography']
75
77
  } = {}) => {
@@ -77,6 +79,7 @@ const setGlobalTheme = async ({
77
79
  colorMode,
78
80
  dark,
79
81
  light,
82
+ shape,
80
83
  spacing,
81
84
  typography
82
85
  });
@@ -105,6 +108,7 @@ const setGlobalTheme = async ({
105
108
  colorMode,
106
109
  dark,
107
110
  light,
111
+ shape,
108
112
  spacing,
109
113
  typography
110
114
  });
@@ -132,12 +136,14 @@ export const getThemeStyles = async ({
132
136
  dark = themeStateDefaults['dark'],
133
137
  light = themeStateDefaults['light'],
134
138
  spacing = themeStateDefaults['spacing'],
135
- typography = themeStateDefaults['typography']
139
+ typography = themeStateDefaults['typography'],
140
+ shape = themeStateDefaults['shape']
136
141
  } = {}) => {
137
142
  const themePreferences = getThemePreferences({
138
143
  colorMode,
139
144
  dark,
140
145
  light,
146
+ shape,
141
147
  spacing,
142
148
  typography
143
149
  });
@@ -185,6 +191,7 @@ export const getThemeHtmlAttrs = ({
185
191
  colorMode = themeStateDefaults['colorMode'],
186
192
  dark = themeStateDefaults['dark'],
187
193
  light = themeStateDefaults['light'],
194
+ shape = themeStateDefaults['shape'],
188
195
  spacing = themeStateDefaults['spacing'],
189
196
  typography = themeStateDefaults['typography']
190
197
  } = {}) => {
@@ -192,7 +199,8 @@ export const getThemeHtmlAttrs = ({
192
199
  dark,
193
200
  light,
194
201
  spacing,
195
- typography
202
+ typography,
203
+ shape
196
204
  };
197
205
  const themeAttribute = themeObjectToString(themePreferences);
198
206
  return {
@@ -5,6 +5,9 @@
5
5
  const shape = {
6
6
  border: {
7
7
  width: {
8
+ '[default]': {
9
+ value: 'Size050'
10
+ },
8
11
  '0': {
9
12
  value: 'Size0'
10
13
  },
@@ -16,6 +19,9 @@ const shape = {
16
19
  }
17
20
  },
18
21
  radius: {
22
+ '[default]': {
23
+ value: 'Radius100'
24
+ },
19
25
  '050': {
20
26
  value: 'Radius050'
21
27
  },
@@ -31,7 +37,7 @@ const shape = {
31
37
  '400': {
32
38
  value: 'Radius400'
33
39
  },
34
- round: {
40
+ circle: {
35
41
  value: 'RadiusCircle'
36
42
  }
37
43
  }