@atlaskit/tokens 1.4.4 → 1.5.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 (79) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +17 -17
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +31 -35
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +15 -15
  5. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-spacing.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  8. package/dist/cjs/artifacts/token-default-values.js +17 -17
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +9 -9
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  11. package/dist/cjs/get-token-value.js +1 -1
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/palettes/shape-palette.js +8 -8
  14. package/dist/cjs/palettes/spacing-scale.js +16 -18
  15. package/dist/cjs/palettes/typography-palette.js +14 -14
  16. package/dist/cjs/tokens/default/spacing/spacing.js +0 -14
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +17 -17
  19. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +31 -35
  20. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +15 -15
  21. package/dist/es2019/artifacts/themes/atlassian-shape.js +2 -2
  22. package/dist/es2019/artifacts/themes/atlassian-spacing.js +2 -2
  23. package/dist/es2019/artifacts/themes/atlassian-typography.js +15 -15
  24. package/dist/es2019/artifacts/token-default-values.js +17 -17
  25. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +9 -9
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  27. package/dist/es2019/get-token-value.js +1 -1
  28. package/dist/es2019/get-token.js +1 -1
  29. package/dist/es2019/palettes/shape-palette.js +8 -8
  30. package/dist/es2019/palettes/spacing-scale.js +16 -18
  31. package/dist/es2019/palettes/typography-palette.js +14 -14
  32. package/dist/es2019/tokens/default/spacing/spacing.js +0 -14
  33. package/dist/es2019/version.json +1 -1
  34. package/dist/esm/artifacts/palettes-raw/shape-palette.js +17 -17
  35. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +31 -35
  36. package/dist/esm/artifacts/palettes-raw/typography-palette.js +15 -15
  37. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  38. package/dist/esm/artifacts/themes/atlassian-spacing.js +2 -2
  39. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  40. package/dist/esm/artifacts/token-default-values.js +17 -17
  41. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +9 -9
  42. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  43. package/dist/esm/get-token-value.js +1 -1
  44. package/dist/esm/get-token.js +1 -1
  45. package/dist/esm/palettes/shape-palette.js +8 -8
  46. package/dist/esm/palettes/spacing-scale.js +16 -18
  47. package/dist/esm/palettes/typography-palette.js +14 -14
  48. package/dist/esm/tokens/default/spacing/spacing.js +0 -14
  49. package/dist/esm/version.json +1 -1
  50. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +18 -3
  51. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +4 -23
  52. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +18 -3
  53. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  54. package/dist/types/artifacts/themes/atlassian-spacing.d.ts +2 -2
  55. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  56. package/dist/types/artifacts/token-default-values.d.ts +17 -17
  57. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  58. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -5
  59. package/dist/types/palettes/shape-palette.d.ts +8 -8
  60. package/dist/types/palettes/spacing-scale.d.ts +14 -16
  61. package/dist/types/types.d.ts +3 -4
  62. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +18 -3
  63. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +4 -23
  64. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +18 -3
  65. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  66. package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +2 -2
  67. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  68. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +17 -17
  69. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  70. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -5
  71. package/dist/types-ts4.5/palettes/shape-palette.d.ts +8 -8
  72. package/dist/types-ts4.5/palettes/spacing-scale.d.ts +14 -16
  73. package/dist/types-ts4.5/types.d.ts +3 -4
  74. package/figma/atlassian-shape.json +8 -8
  75. package/figma/atlassian-spacing.json +14 -28
  76. package/figma/atlassian-typography.json +6 -6
  77. package/package.json +4 -4
  78. package/report.api.md +14 -17
  79. package/tmp/api-report-tmp.d.ts +14 -17
@@ -1,29 +1,29 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::2bb692b141bab7de1129474ea0fe281e>>
3
+ * @codegen <<SignedSource::3e4dc097014124b77e69b832281f37ed>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
7
7
  html[data-theme~="typography:typography"] {
8
8
  --ds-font-family-monospace: "SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace;
9
9
  --ds-font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
10
- --ds-font-size-050: 11px;
11
- --ds-font-size-075: 12px;
12
- --ds-font-size-100: 14px;
13
- --ds-font-size-200: 16px;
14
- --ds-font-size-300: 20px;
15
- --ds-font-size-400: 24px;
16
- --ds-font-size-500: 29px;
17
- --ds-font-size-600: 35px;
10
+ --ds-font-size-050: 0.6875rem;
11
+ --ds-font-size-075: 0.75rem;
12
+ --ds-font-size-100: 0.875rem;
13
+ --ds-font-size-200: 1rem;
14
+ --ds-font-size-300: 1.25rem;
15
+ --ds-font-size-400: 1.5rem;
16
+ --ds-font-size-500: 1.8125rem;
17
+ --ds-font-size-600: 2.1875rem;
18
18
  --ds-font-weight-bold: 700;
19
19
  --ds-font-weight-medium: 500;
20
20
  --ds-font-weight-regular: 400;
21
21
  --ds-font-weight-semibold: 600;
22
- --ds-font-lineHeight-100: 16px;
23
- --ds-font-lineHeight-200: 20px;
24
- --ds-font-lineHeight-300: 24px;
25
- --ds-font-lineHeight-400: 28px;
26
- --ds-font-lineHeight-500: 32px;
27
- --ds-font-lineHeight-600: 40px;
22
+ --ds-font-lineHeight-100: 1rem;
23
+ --ds-font-lineHeight-200: 1.25rem;
24
+ --ds-font-lineHeight-300: 1.5rem;
25
+ --ds-font-lineHeight-400: 1.75rem;
26
+ --ds-font-lineHeight-500: 2rem;
27
+ --ds-font-lineHeight-600: 2.5rem;
28
28
  }
29
29
  `;
@@ -4,7 +4,7 @@
4
4
  * Token names mapped to their value in the default Atlassian themes ('light').
5
5
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
6
  *
7
- * @codegen <<SignedSource::9c962af7a2afdab3160e3f3a2b285a8a>>
7
+ * @codegen <<SignedSource::856ff062171d44deb03158a6fa7d7bd1>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  const defaultTokenValues = {
@@ -14,7 +14,7 @@ const defaultTokenValues = {
14
14
  'border.radius.300': '0.75rem',
15
15
  'border.radius.400': '1rem',
16
16
  'border.radius.round': '50%',
17
- 'border.width.0': '0',
17
+ 'border.width.0': '0rem',
18
18
  'border.width.050': '0.0625rem',
19
19
  'border.width.100': '0.125rem',
20
20
  'color.text': '#172B4D',
@@ -303,7 +303,7 @@ const defaultTokenValues = {
303
303
  'opacity.disabled': '0.4',
304
304
  'opacity.loading': '0.2',
305
305
  'utility.UNSAFE.transparent': 'transparent',
306
- 'space.0': '0',
306
+ 'space.0': '0rem',
307
307
  'space.025': '0.125rem',
308
308
  'space.050': '0.25rem',
309
309
  'space.075': '0.375rem',
@@ -319,23 +319,23 @@ const defaultTokenValues = {
319
319
  'space.1000': '5rem',
320
320
  'font.family.monospace': '"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace',
321
321
  'font.family.sans': '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
322
- 'font.size.050': '11px',
323
- 'font.size.075': '12px',
324
- 'font.size.100': '14px',
325
- 'font.size.200': '16px',
326
- 'font.size.300': '20px',
327
- 'font.size.400': '24px',
328
- 'font.size.500': '29px',
329
- 'font.size.600': '35px',
322
+ 'font.size.050': '0.6875rem',
323
+ 'font.size.075': '0.75rem',
324
+ 'font.size.100': '0.875rem',
325
+ 'font.size.200': '1rem',
326
+ 'font.size.300': '1.25rem',
327
+ 'font.size.400': '1.5rem',
328
+ 'font.size.500': '1.8125rem',
329
+ 'font.size.600': '2.1875rem',
330
330
  'font.weight.bold': '700',
331
331
  'font.weight.medium': '500',
332
332
  'font.weight.regular': '400',
333
333
  'font.weight.semibold': '600',
334
- 'font.lineHeight.100': '16px',
335
- 'font.lineHeight.200': '20px',
336
- 'font.lineHeight.300': '24px',
337
- 'font.lineHeight.400': '28px',
338
- 'font.lineHeight.500': '32px',
339
- 'font.lineHeight.600': '40px'
334
+ 'font.lineHeight.100': '1rem',
335
+ 'font.lineHeight.200': '1.25rem',
336
+ 'font.lineHeight.300': '1.5rem',
337
+ 'font.lineHeight.400': '1.75rem',
338
+ 'font.lineHeight.500': '2rem',
339
+ 'font.lineHeight.600': '2.5rem'
340
340
  };
341
341
  export default defaultTokenValues;
@@ -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::f4523de23a205d43950d1b24f656f952>>
3
+ * @codegen <<SignedSource::7cdaa82f55e6537ca0b68d196db9e1d6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -10,7 +10,7 @@ const tokens = [{
10
10
  "introduced": "1.1.0",
11
11
  "description": "Experimental, description needs to be amended"
12
12
  },
13
- "value": "0.125rem",
13
+ "value": "2px",
14
14
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
15
15
  "isSource": true,
16
16
  "original": {
@@ -32,7 +32,7 @@ const tokens = [{
32
32
  "introduced": "1.1.0",
33
33
  "description": "Experimental, description needs to be amended"
34
34
  },
35
- "value": "0.25rem",
35
+ "value": "4px",
36
36
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
37
37
  "isSource": true,
38
38
  "original": {
@@ -54,7 +54,7 @@ const tokens = [{
54
54
  "introduced": "1.1.0",
55
55
  "description": "Experimental, description needs to be amended"
56
56
  },
57
- "value": "0.5rem",
57
+ "value": "8px",
58
58
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
59
59
  "isSource": true,
60
60
  "original": {
@@ -76,7 +76,7 @@ const tokens = [{
76
76
  "introduced": "1.1.0",
77
77
  "description": "Experimental, description needs to be amended"
78
78
  },
79
- "value": "0.75rem",
79
+ "value": "12px",
80
80
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
81
81
  "isSource": true,
82
82
  "original": {
@@ -98,7 +98,7 @@ const tokens = [{
98
98
  "introduced": "1.1.0",
99
99
  "description": "Experimental, description needs to be amended"
100
100
  },
101
- "value": "1rem",
101
+ "value": "16px",
102
102
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
103
103
  "isSource": true,
104
104
  "original": {
@@ -142,7 +142,7 @@ const tokens = [{
142
142
  "introduced": "1.2.1",
143
143
  "description": "Experimental, description needs to be amended"
144
144
  },
145
- "value": "0",
145
+ "value": "0px",
146
146
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
147
147
  "isSource": true,
148
148
  "original": {
@@ -164,7 +164,7 @@ const tokens = [{
164
164
  "introduced": "1.1.0",
165
165
  "description": "Experimental, description needs to be amended"
166
166
  },
167
- "value": "0.0625rem",
167
+ "value": "1px",
168
168
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
169
169
  "isSource": true,
170
170
  "original": {
@@ -186,7 +186,7 @@ const tokens = [{
186
186
  "introduced": "1.1.0",
187
187
  "description": "Experimental, description needs to be amended"
188
188
  },
189
- "value": "0.125rem",
189
+ "value": "2px",
190
190
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
191
191
  "isSource": true,
192
192
  "original": {
@@ -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::cfa1d518948d5dc23821d17cab0cb52a>>
3
+ * @codegen <<SignedSource::c89f0dcd1df97245a694a1a77741bb39>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -8,10 +8,9 @@ const tokens = [{
8
8
  "group": "spacing",
9
9
  "state": "active",
10
10
  "introduced": "0.12.0",
11
- "pixelValue": "0px",
12
11
  "description": "Equates to `0`. Can be used for resetting default spacing styles."
13
12
  },
14
- "value": "0",
13
+ "value": "0px",
15
14
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
16
15
  "isSource": true,
17
16
  "original": {
@@ -19,7 +18,6 @@ const tokens = [{
19
18
  "group": "spacing",
20
19
  "state": "active",
21
20
  "introduced": "0.12.0",
22
- "pixelValue": "0px",
23
21
  "description": "Equates to `0`. Can be used for resetting default spacing styles."
24
22
  },
25
23
  "value": "Space0"
@@ -33,10 +31,9 @@ const tokens = [{
33
31
  "state": "active",
34
32
  "suggest": ["1px", "3px"],
35
33
  "introduced": "0.12.0",
36
- "pixelValue": "2px",
37
34
  "description": "Use for spacing in compact scenarios. The smallest value in our scale."
38
35
  },
39
- "value": "0.125rem",
36
+ "value": "2px",
40
37
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
41
38
  "isSource": true,
42
39
  "original": {
@@ -45,7 +42,6 @@ const tokens = [{
45
42
  "state": "active",
46
43
  "suggest": ["1px", "3px"],
47
44
  "introduced": "0.12.0",
48
- "pixelValue": "2px",
49
45
  "description": "Use for spacing in compact scenarios. The smallest value in our scale."
50
46
  },
51
47
  "value": "Space025"
@@ -59,10 +55,9 @@ const tokens = [{
59
55
  "state": "active",
60
56
  "suggest": ["3px", "5px"],
61
57
  "introduced": "0.12.0",
62
- "pixelValue": "4px",
63
58
  "description": "Use for spacing in compact scenarios."
64
59
  },
65
- "value": "0.25rem",
60
+ "value": "4px",
66
61
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
67
62
  "isSource": true,
68
63
  "original": {
@@ -71,7 +66,6 @@ const tokens = [{
71
66
  "state": "active",
72
67
  "suggest": ["3px", "5px"],
73
68
  "introduced": "0.12.0",
74
- "pixelValue": "4px",
75
69
  "description": "Use for spacing in compact scenarios."
76
70
  },
77
71
  "value": "Space050"
@@ -85,10 +79,9 @@ const tokens = [{
85
79
  "state": "active",
86
80
  "suggest": ["5px", "7px"],
87
81
  "introduced": "0.12.0",
88
- "pixelValue": "6px",
89
82
  "description": "Use for spacing in compact scenarios."
90
83
  },
91
- "value": "0.375rem",
84
+ "value": "6px",
92
85
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
93
86
  "isSource": true,
94
87
  "original": {
@@ -97,7 +90,6 @@ const tokens = [{
97
90
  "state": "active",
98
91
  "suggest": ["5px", "7px"],
99
92
  "introduced": "0.12.0",
100
- "pixelValue": "6px",
101
93
  "description": "Use for spacing in compact scenarios."
102
94
  },
103
95
  "value": "Space075"
@@ -111,10 +103,9 @@ const tokens = [{
111
103
  "state": "active",
112
104
  "suggest": ["7px", "9px"],
113
105
  "introduced": "0.12.0",
114
- "pixelValue": "8px",
115
106
  "description": "Use for gutter spacing."
116
107
  },
117
- "value": "0.5rem",
108
+ "value": "8px",
118
109
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
119
110
  "isSource": true,
120
111
  "original": {
@@ -123,7 +114,6 @@ const tokens = [{
123
114
  "state": "active",
124
115
  "suggest": ["7px", "9px"],
125
116
  "introduced": "0.12.0",
126
- "pixelValue": "8px",
127
117
  "description": "Use for gutter spacing."
128
118
  },
129
119
  "value": "Space100"
@@ -137,10 +127,9 @@ const tokens = [{
137
127
  "state": "active",
138
128
  "suggest": ["10px", "11px", "13px", "14px"],
139
129
  "introduced": "0.12.0",
140
- "pixelValue": "12px",
141
130
  "description": "Helpful guidance goes here"
142
131
  },
143
- "value": "0.75rem",
132
+ "value": "12px",
144
133
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
145
134
  "isSource": true,
146
135
  "original": {
@@ -149,7 +138,6 @@ const tokens = [{
149
138
  "state": "active",
150
139
  "suggest": ["10px", "11px", "13px", "14px"],
151
140
  "introduced": "0.12.0",
152
- "pixelValue": "12px",
153
141
  "description": "Helpful guidance goes here"
154
142
  },
155
143
  "value": "Space150"
@@ -163,10 +151,9 @@ const tokens = [{
163
151
  "state": "active",
164
152
  "suggest": ["14px", "15px", "17px", "18px"],
165
153
  "introduced": "0.12.0",
166
- "pixelValue": "16px",
167
154
  "description": "Use for gutter spacing."
168
155
  },
169
- "value": "1rem",
156
+ "value": "16px",
170
157
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
171
158
  "isSource": true,
172
159
  "original": {
@@ -175,7 +162,6 @@ const tokens = [{
175
162
  "state": "active",
176
163
  "suggest": ["14px", "15px", "17px", "18px"],
177
164
  "introduced": "0.12.0",
178
- "pixelValue": "16px",
179
165
  "description": "Use for gutter spacing."
180
166
  },
181
167
  "value": "Space200"
@@ -189,10 +175,9 @@ const tokens = [{
189
175
  "state": "active",
190
176
  "suggest": ["19px", "21px", "22px", "23px"],
191
177
  "introduced": "0.12.0",
192
- "pixelValue": "20px",
193
178
  "description": "Use for gutter spacing."
194
179
  },
195
- "value": "1.25rem",
180
+ "value": "20px",
196
181
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
197
182
  "isSource": true,
198
183
  "original": {
@@ -201,7 +186,6 @@ const tokens = [{
201
186
  "state": "active",
202
187
  "suggest": ["19px", "21px", "22px", "23px"],
203
188
  "introduced": "0.12.0",
204
- "pixelValue": "20px",
205
189
  "description": "Use for gutter spacing."
206
190
  },
207
191
  "value": "Space250"
@@ -215,10 +199,9 @@ const tokens = [{
215
199
  "state": "active",
216
200
  "suggest": ["23px", "25px", "26px", "27px", "28px"],
217
201
  "introduced": "0.12.0",
218
- "pixelValue": "24px",
219
202
  "description": "Use for gutter spacing."
220
203
  },
221
- "value": "1.5rem",
204
+ "value": "24px",
222
205
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
223
206
  "isSource": true,
224
207
  "original": {
@@ -227,7 +210,6 @@ const tokens = [{
227
210
  "state": "active",
228
211
  "suggest": ["23px", "25px", "26px", "27px", "28px"],
229
212
  "introduced": "0.12.0",
230
- "pixelValue": "24px",
231
213
  "description": "Use for gutter spacing."
232
214
  },
233
215
  "value": "Space300"
@@ -241,10 +223,9 @@ const tokens = [{
241
223
  "state": "active",
242
224
  "suggest": ["28px", "29px", "30px", "31px", "33px", "34px", "35px"],
243
225
  "introduced": "0.12.0",
244
- "pixelValue": "32px",
245
226
  "description": "Use for gutter spacing."
246
227
  },
247
- "value": "2rem",
228
+ "value": "32px",
248
229
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
249
230
  "isSource": true,
250
231
  "original": {
@@ -253,7 +234,6 @@ const tokens = [{
253
234
  "state": "active",
254
235
  "suggest": ["28px", "29px", "30px", "31px", "33px", "34px", "35px"],
255
236
  "introduced": "0.12.0",
256
- "pixelValue": "32px",
257
237
  "description": "Use for gutter spacing."
258
238
  },
259
239
  "value": "Space400"
@@ -266,10 +246,9 @@ const tokens = [{
266
246
  "group": "spacing",
267
247
  "state": "active",
268
248
  "introduced": "0.12.0",
269
- "pixelValue": "40px",
270
249
  "description": "Use for larger layout-specific spacing."
271
250
  },
272
- "value": "2.5rem",
251
+ "value": "40px",
273
252
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
274
253
  "isSource": true,
275
254
  "original": {
@@ -277,7 +256,6 @@ const tokens = [{
277
256
  "group": "spacing",
278
257
  "state": "active",
279
258
  "introduced": "0.12.0",
280
- "pixelValue": "40px",
281
259
  "description": "Use for larger layout-specific spacing."
282
260
  },
283
261
  "value": "Space500"
@@ -290,10 +268,9 @@ const tokens = [{
290
268
  "group": "spacing",
291
269
  "state": "active",
292
270
  "introduced": "0.12.0",
293
- "pixelValue": "48px",
294
271
  "description": "Use for larger layout-specific spacing."
295
272
  },
296
- "value": "3rem",
273
+ "value": "48px",
297
274
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
298
275
  "isSource": true,
299
276
  "original": {
@@ -301,7 +278,6 @@ const tokens = [{
301
278
  "group": "spacing",
302
279
  "state": "active",
303
280
  "introduced": "0.12.0",
304
- "pixelValue": "48px",
305
281
  "description": "Use for larger layout-specific spacing."
306
282
  },
307
283
  "value": "Space600"
@@ -314,10 +290,9 @@ const tokens = [{
314
290
  "group": "spacing",
315
291
  "state": "active",
316
292
  "introduced": "0.12.0",
317
- "pixelValue": "64px",
318
293
  "description": "Use for larger layout-specific spacing."
319
294
  },
320
- "value": "4rem",
295
+ "value": "64px",
321
296
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
322
297
  "isSource": true,
323
298
  "original": {
@@ -325,7 +300,6 @@ const tokens = [{
325
300
  "group": "spacing",
326
301
  "state": "active",
327
302
  "introduced": "0.12.0",
328
- "pixelValue": "64px",
329
303
  "description": "Use for larger layout-specific spacing."
330
304
  },
331
305
  "value": "Space800"
@@ -338,10 +312,9 @@ const tokens = [{
338
312
  "group": "spacing",
339
313
  "state": "active",
340
314
  "introduced": "0.12.0",
341
- "pixelValue": "80px",
342
315
  "description": "Use for larger layout-specific spacing."
343
316
  },
344
- "value": "5rem",
317
+ "value": "80px",
345
318
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
346
319
  "isSource": true,
347
320
  "original": {
@@ -349,7 +322,6 @@ const tokens = [{
349
322
  "group": "spacing",
350
323
  "state": "active",
351
324
  "introduced": "0.12.0",
352
- "pixelValue": "80px",
353
325
  "description": "Use for larger layout-specific spacing."
354
326
  },
355
327
  "value": "Space1000"
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.4.4";
4
+ const version = "1.5.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.4.4";
5
+ const version = "1.5.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.
@@ -4,19 +4,19 @@
4
4
 
5
5
  const baseSizeTokens = {
6
6
  Size0: {
7
- value: '0',
7
+ value: 0,
8
8
  attributes: {
9
9
  group: 'shape'
10
10
  }
11
11
  },
12
12
  Size050: {
13
- value: '0.0625rem',
13
+ value: 1,
14
14
  attributes: {
15
15
  group: 'shape'
16
16
  }
17
17
  },
18
18
  Size100: {
19
- value: '0.125rem',
19
+ value: 2,
20
20
  attributes: {
21
21
  group: 'shape'
22
22
  }
@@ -24,31 +24,31 @@ const baseSizeTokens = {
24
24
  };
25
25
  const baseRadiusTokens = {
26
26
  Radius050: {
27
- value: '0.125rem',
27
+ value: 2,
28
28
  attributes: {
29
29
  group: 'shape'
30
30
  }
31
31
  },
32
32
  Radius100: {
33
- value: '0.25rem',
33
+ value: 4,
34
34
  attributes: {
35
35
  group: 'shape'
36
36
  }
37
37
  },
38
38
  Radius200: {
39
- value: '0.5rem',
39
+ value: 8,
40
40
  attributes: {
41
41
  group: 'shape'
42
42
  }
43
43
  },
44
44
  Radius300: {
45
- value: '0.75rem',
45
+ value: 12,
46
46
  attributes: {
47
47
  group: 'shape'
48
48
  }
49
49
  },
50
50
  Radius400: {
51
- value: '1rem',
51
+ value: 16,
52
52
  attributes: {
53
53
  group: 'shape'
54
54
  }
@@ -4,90 +4,88 @@
4
4
 
5
5
  const baseSpacingTokens = {
6
6
  Space0: {
7
- value: '0',
7
+ value: 0,
8
8
  attributes: {
9
9
  group: 'spacing'
10
10
  }
11
11
  },
12
12
  Space025: {
13
- value: '0.125rem',
13
+ value: 2,
14
14
  attributes: {
15
15
  group: 'spacing'
16
16
  }
17
17
  },
18
18
  Space050: {
19
- value: '0.25rem',
19
+ value: 4,
20
20
  attributes: {
21
21
  group: 'spacing'
22
22
  }
23
23
  },
24
24
  Space075: {
25
- value: '0.375rem',
25
+ value: 6,
26
26
  attributes: {
27
27
  group: 'spacing'
28
28
  }
29
29
  },
30
30
  Space100: {
31
- value: '0.5rem',
31
+ value: 8,
32
32
  attributes: {
33
33
  group: 'spacing'
34
34
  }
35
35
  },
36
36
  Space150: {
37
- value: '0.75rem',
37
+ value: 12,
38
38
  attributes: {
39
39
  group: 'spacing'
40
40
  }
41
41
  },
42
42
  Space200: {
43
- value: '1rem',
43
+ value: 16,
44
44
  attributes: {
45
45
  group: 'spacing'
46
46
  }
47
47
  },
48
48
  Space250: {
49
- value: '1.25rem',
49
+ value: 20,
50
50
  attributes: {
51
51
  group: 'spacing'
52
52
  }
53
53
  },
54
54
  Space300: {
55
- value: '1.5rem',
55
+ value: 24,
56
56
  attributes: {
57
57
  group: 'spacing'
58
58
  }
59
59
  },
60
60
  Space400: {
61
- value: '2rem',
61
+ value: 32,
62
62
  attributes: {
63
63
  group: 'spacing'
64
64
  }
65
65
  },
66
66
  Space500: {
67
- value: '2.5rem',
67
+ value: 40,
68
68
  attributes: {
69
69
  group: 'spacing'
70
70
  }
71
71
  },
72
72
  Space600: {
73
- value: '3rem',
73
+ value: 48,
74
74
  attributes: {
75
75
  group: 'spacing'
76
76
  }
77
77
  },
78
78
  Space800: {
79
- value: '4rem',
79
+ value: 64,
80
80
  attributes: {
81
81
  group: 'spacing'
82
- },
83
- pixelValue: '64px'
82
+ }
84
83
  },
85
84
  Space1000: {
86
- value: '5rem',
85
+ value: 80,
87
86
  attributes: {
88
87
  group: 'spacing'
89
- },
90
- pixelValue: '80px'
88
+ }
91
89
  }
92
90
  };
93
91
  const spacingPalette = {