@atlaskit/tokens 1.5.1 → 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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/artifacts/generated-pairs.js +1 -289
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +3 -3
- package/dist/cjs/artifacts/themes/atlassian-dark-new-input-border.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light-new-input-border.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +12 -10
- package/dist/cjs/artifacts/token-names.js +12 -10
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-iteration.js +902 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +36 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +36 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +33 -33
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +81 -37
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/shape-palette.js +2 -1
- package/dist/cjs/set-global-theme.js +14 -3
- package/dist/cjs/tokens/atlassian-dark-new-input-border/color/border.js +1 -37
- package/dist/cjs/tokens/atlassian-light-new-input-border/color/border.js +1 -37
- package/dist/cjs/tokens/atlassian-shape/shape.js +7 -1
- package/dist/cjs/tokens/default/color/accent.js +16 -16
- package/dist/cjs/tokens/default/shape/shape.js +33 -17
- package/dist/cjs/utils/theme-state-transformer.js +2 -1
- package/dist/cjs/utils/token-order.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/generated-pairs.js +1 -289
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +3 -3
- package/dist/es2019/artifacts/themes/atlassian-dark-new-input-border.js +2 -14
- package/dist/es2019/artifacts/themes/atlassian-light-new-input-border.js +2 -14
- package/dist/es2019/artifacts/themes/atlassian-shape.js +12 -10
- package/dist/es2019/artifacts/token-default-values.js +12 -10
- package/dist/es2019/artifacts/token-names.js +12 -10
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-iteration.js +895 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-new-input-border.js +29 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-new-input-border.js +29 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +81 -37
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/shape-palette.js +2 -1
- package/dist/es2019/set-global-theme.js +10 -2
- package/dist/es2019/tokens/atlassian-dark-new-input-border/color/border.js +1 -37
- package/dist/es2019/tokens/atlassian-light-new-input-border/color/border.js +1 -37
- package/dist/es2019/tokens/atlassian-shape/shape.js +7 -1
- package/dist/es2019/tokens/default/color/accent.js +16 -16
- package/dist/es2019/tokens/default/shape/shape.js +33 -17
- package/dist/es2019/utils/theme-state-transformer.js +2 -1
- package/dist/es2019/utils/token-order.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/generated-pairs.js +1 -289
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +3 -3
- package/dist/esm/artifacts/themes/atlassian-dark-new-input-border.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light-new-input-border.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +12 -10
- package/dist/esm/artifacts/token-names.js +12 -10
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-iteration.js +895 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-new-input-border.js +29 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-light-new-input-border.js +29 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +81 -37
- package/dist/esm/constants.js +1 -1
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/shape-palette.js +2 -1
- package/dist/esm/set-global-theme.js +14 -3
- package/dist/esm/tokens/atlassian-dark-new-input-border/color/border.js +1 -37
- package/dist/esm/tokens/atlassian-light-new-input-border/color/border.js +1 -37
- package/dist/esm/tokens/atlassian-shape/shape.js +7 -1
- package/dist/esm/tokens/default/color/accent.js +16 -16
- package/dist/esm/tokens/default/shape/shape.js +33 -17
- package/dist/esm/utils/theme-state-transformer.js +2 -1
- package/dist/esm/utils/token-order.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +3 -18
- package/dist/types/artifacts/themes/atlassian-dark-new-input-border.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light-new-input-border.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +12 -10
- package/dist/types/artifacts/token-names.d.ts +23 -19
- package/dist/types/artifacts/tokens-raw/atlassian-dark-iteration.d.ts +91 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark-new-input-border.d.ts +29 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light-new-input-border.d.ts +29 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/palettes/shape-palette.d.ts +1 -1
- package/dist/types/set-global-theme.d.ts +8 -7
- package/dist/types/tokens/atlassian-dark-new-input-border/color/border.d.ts +9 -3
- package/dist/types/tokens/atlassian-light-new-input-border/color/border.d.ts +9 -3
- package/dist/types/types.d.ts +3 -1
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +3 -18
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-new-input-border.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-new-input-border.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +12 -10
- package/dist/types-ts4.5/artifacts/token-names.d.ts +23 -19
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-iteration.d.ts +91 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-new-input-border.d.ts +29 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-new-input-border.d.ts +29 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/palettes/shape-palette.d.ts +1 -1
- package/dist/types-ts4.5/set-global-theme.d.ts +8 -7
- package/dist/types-ts4.5/tokens/atlassian-dark-new-input-border/color/border.d.ts +9 -3
- package/dist/types-ts4.5/tokens/atlassian-light-new-input-border/color/border.d.ts +9 -3
- package/dist/types-ts4.5/types.d.ts +3 -1
- package/figma/atlassian-dark.json +16 -16
- package/figma/atlassian-legacy-dark.json +16 -16
- package/figma/atlassian-legacy-light.json +16 -16
- package/figma/atlassian-light.json +16 -16
- package/figma/atlassian-shape.json +36 -18
- package/package.json +4 -3
- package/report.api.md +125 -22
- package/tmp/api-report-tmp.d.ts +107 -27
|
@@ -7,6 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
var shape = {
|
|
8
8
|
border: {
|
|
9
9
|
width: {
|
|
10
|
+
'[default]': {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'shape',
|
|
13
|
+
state: 'active',
|
|
14
|
+
introduced: '1.5.2',
|
|
15
|
+
description: 'The default border width.'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
10
18
|
'0': {
|
|
11
19
|
attributes: {
|
|
12
20
|
group: 'shape',
|
|
@@ -18,67 +26,75 @@ var shape = {
|
|
|
18
26
|
'050': {
|
|
19
27
|
attributes: {
|
|
20
28
|
group: 'shape',
|
|
21
|
-
state: '
|
|
29
|
+
state: 'active',
|
|
22
30
|
introduced: '1.1.0',
|
|
23
|
-
description: '
|
|
31
|
+
description: 'Used for all borders and dividers.'
|
|
24
32
|
}
|
|
25
33
|
},
|
|
26
34
|
'100': {
|
|
27
35
|
attributes: {
|
|
28
36
|
group: 'shape',
|
|
29
|
-
state: '
|
|
37
|
+
state: 'active',
|
|
30
38
|
introduced: '1.1.0',
|
|
31
|
-
description: '
|
|
39
|
+
description: 'Used for bolder dividers and interaction states.'
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
},
|
|
35
43
|
radius: {
|
|
44
|
+
'[default]': {
|
|
45
|
+
attributes: {
|
|
46
|
+
group: 'shape',
|
|
47
|
+
state: 'active',
|
|
48
|
+
introduced: '1.5.2',
|
|
49
|
+
description: 'The default border radius.'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
36
52
|
'050': {
|
|
37
53
|
attributes: {
|
|
38
54
|
group: 'shape',
|
|
39
|
-
state: '
|
|
55
|
+
state: 'active',
|
|
40
56
|
introduced: '1.1.0',
|
|
41
|
-
description: '
|
|
57
|
+
description: 'Used for selection indicators, like tabs.'
|
|
42
58
|
}
|
|
43
59
|
},
|
|
44
60
|
'100': {
|
|
45
61
|
attributes: {
|
|
46
62
|
group: 'shape',
|
|
47
|
-
state: '
|
|
63
|
+
state: 'active',
|
|
48
64
|
introduced: '1.1.0',
|
|
49
|
-
description: '
|
|
65
|
+
description: 'Used for buttons and inputs.'
|
|
50
66
|
}
|
|
51
67
|
},
|
|
52
68
|
'200': {
|
|
53
69
|
attributes: {
|
|
54
70
|
group: 'shape',
|
|
55
|
-
state: '
|
|
71
|
+
state: 'active',
|
|
56
72
|
introduced: '1.1.0',
|
|
57
|
-
description: '
|
|
73
|
+
description: 'Used for smaller cards.'
|
|
58
74
|
}
|
|
59
75
|
},
|
|
60
76
|
'300': {
|
|
61
77
|
attributes: {
|
|
62
78
|
group: 'shape',
|
|
63
|
-
state: '
|
|
79
|
+
state: 'active',
|
|
64
80
|
introduced: '1.1.0',
|
|
65
|
-
description: '
|
|
81
|
+
description: 'Used for cards and larger containers.'
|
|
66
82
|
}
|
|
67
83
|
},
|
|
68
84
|
'400': {
|
|
69
85
|
attributes: {
|
|
70
86
|
group: 'shape',
|
|
71
|
-
state: '
|
|
87
|
+
state: 'active',
|
|
72
88
|
introduced: '1.1.0',
|
|
73
|
-
description: '
|
|
89
|
+
description: 'Used for modals.'
|
|
74
90
|
}
|
|
75
91
|
},
|
|
76
|
-
|
|
92
|
+
circle: {
|
|
77
93
|
attributes: {
|
|
78
94
|
group: 'shape',
|
|
79
|
-
state: '
|
|
95
|
+
state: 'active',
|
|
80
96
|
introduced: '1.1.0',
|
|
81
|
-
description: '
|
|
97
|
+
description: 'Used for circular containers, like a rounded button.'
|
|
82
98
|
}
|
|
83
99
|
}
|
|
84
100
|
}
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.themeStringToObject = exports.themeObjectToString = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _themeConfig = require("../theme-config");
|
|
10
|
-
var themeKinds = ['light', 'dark', 'spacing', 'typography'];
|
|
10
|
+
var themeKinds = ['light', 'dark', 'spacing', 'typography', 'shape'];
|
|
11
11
|
var isThemeKind = function isThemeKind(themeKind) {
|
|
12
12
|
return themeKinds.find(function (kind) {
|
|
13
13
|
return kind === themeKind;
|
|
@@ -44,6 +44,7 @@ var themeStringToObject = function themeStringToObject(themeState) {
|
|
|
44
44
|
themeObject[kind] = id;
|
|
45
45
|
}
|
|
46
46
|
if (isThemeKind(kind) && isThemeIds(id)) {
|
|
47
|
+
// @ts-expect-error FIXME - this is a valid ts error
|
|
47
48
|
themeObject[kind] = id;
|
|
48
49
|
}
|
|
49
50
|
return themeObject;
|
package/dist/cjs/version.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Auto-generated list of token pairings that may need to have sufficient contrast.
|
|
5
5
|
* Not currently used by tests, but is used by the custom theme contrast checker example
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::ec8e2d34c5152b1b66186e14b261c0f1>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
export const generatedPairs = [{
|
|
@@ -183,38 +183,6 @@ export const generatedPairs = [{
|
|
|
183
183
|
foreground: 'color.text.accent.red.bolder',
|
|
184
184
|
background: 'color.background.accent.red.subtle',
|
|
185
185
|
desiredContrast: 4.5
|
|
186
|
-
}, {
|
|
187
|
-
foreground: 'color.text.accent.red.bolder',
|
|
188
|
-
background: 'color.background.accent.orange.subtle',
|
|
189
|
-
desiredContrast: 4.5
|
|
190
|
-
}, {
|
|
191
|
-
foreground: 'color.text.accent.red.bolder',
|
|
192
|
-
background: 'color.background.accent.yellow.subtle',
|
|
193
|
-
desiredContrast: 4.5
|
|
194
|
-
}, {
|
|
195
|
-
foreground: 'color.text.accent.red.bolder',
|
|
196
|
-
background: 'color.background.accent.green.subtle',
|
|
197
|
-
desiredContrast: 4.5
|
|
198
|
-
}, {
|
|
199
|
-
foreground: 'color.text.accent.red.bolder',
|
|
200
|
-
background: 'color.background.accent.teal.subtle',
|
|
201
|
-
desiredContrast: 4.5
|
|
202
|
-
}, {
|
|
203
|
-
foreground: 'color.text.accent.red.bolder',
|
|
204
|
-
background: 'color.background.accent.blue.subtle',
|
|
205
|
-
desiredContrast: 4.5
|
|
206
|
-
}, {
|
|
207
|
-
foreground: 'color.text.accent.red.bolder',
|
|
208
|
-
background: 'color.background.accent.purple.subtle',
|
|
209
|
-
desiredContrast: 4.5
|
|
210
|
-
}, {
|
|
211
|
-
foreground: 'color.text.accent.red.bolder',
|
|
212
|
-
background: 'color.background.accent.magenta.subtle',
|
|
213
|
-
desiredContrast: 4.5
|
|
214
|
-
}, {
|
|
215
|
-
foreground: 'color.text.accent.red.bolder',
|
|
216
|
-
background: 'color.background.accent.gray.subtle',
|
|
217
|
-
desiredContrast: 4.5
|
|
218
186
|
}, {
|
|
219
187
|
foreground: 'color.text.accent.orange',
|
|
220
188
|
background: 'color.background.accent.orange.subtlest',
|
|
@@ -223,10 +191,6 @@ export const generatedPairs = [{
|
|
|
223
191
|
foreground: 'color.text.accent.orange',
|
|
224
192
|
background: 'color.background.accent.orange.subtler',
|
|
225
193
|
desiredContrast: 4.5
|
|
226
|
-
}, {
|
|
227
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
228
|
-
background: 'color.background.accent.red.subtle',
|
|
229
|
-
desiredContrast: 4.5
|
|
230
194
|
}, {
|
|
231
195
|
foreground: 'color.text.accent.orange.bolder',
|
|
232
196
|
background: 'color.background.accent.orange.subtlest',
|
|
@@ -239,34 +203,6 @@ export const generatedPairs = [{
|
|
|
239
203
|
foreground: 'color.text.accent.orange.bolder',
|
|
240
204
|
background: 'color.background.accent.orange.subtle',
|
|
241
205
|
desiredContrast: 4.5
|
|
242
|
-
}, {
|
|
243
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
244
|
-
background: 'color.background.accent.yellow.subtle',
|
|
245
|
-
desiredContrast: 4.5
|
|
246
|
-
}, {
|
|
247
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
248
|
-
background: 'color.background.accent.green.subtle',
|
|
249
|
-
desiredContrast: 4.5
|
|
250
|
-
}, {
|
|
251
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
252
|
-
background: 'color.background.accent.teal.subtle',
|
|
253
|
-
desiredContrast: 4.5
|
|
254
|
-
}, {
|
|
255
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
256
|
-
background: 'color.background.accent.blue.subtle',
|
|
257
|
-
desiredContrast: 4.5
|
|
258
|
-
}, {
|
|
259
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
260
|
-
background: 'color.background.accent.purple.subtle',
|
|
261
|
-
desiredContrast: 4.5
|
|
262
|
-
}, {
|
|
263
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
264
|
-
background: 'color.background.accent.magenta.subtle',
|
|
265
|
-
desiredContrast: 4.5
|
|
266
|
-
}, {
|
|
267
|
-
foreground: 'color.text.accent.orange.bolder',
|
|
268
|
-
background: 'color.background.accent.gray.subtle',
|
|
269
|
-
desiredContrast: 4.5
|
|
270
206
|
}, {
|
|
271
207
|
foreground: 'color.text.accent.yellow',
|
|
272
208
|
background: 'color.background.accent.yellow.subtlest',
|
|
@@ -275,14 +211,6 @@ export const generatedPairs = [{
|
|
|
275
211
|
foreground: 'color.text.accent.yellow',
|
|
276
212
|
background: 'color.background.accent.yellow.subtler',
|
|
277
213
|
desiredContrast: 4.5
|
|
278
|
-
}, {
|
|
279
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
280
|
-
background: 'color.background.accent.red.subtle',
|
|
281
|
-
desiredContrast: 4.5
|
|
282
|
-
}, {
|
|
283
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
284
|
-
background: 'color.background.accent.orange.subtle',
|
|
285
|
-
desiredContrast: 4.5
|
|
286
214
|
}, {
|
|
287
215
|
foreground: 'color.text.accent.yellow.bolder',
|
|
288
216
|
background: 'color.background.accent.yellow.subtlest',
|
|
@@ -295,30 +223,6 @@ export const generatedPairs = [{
|
|
|
295
223
|
foreground: 'color.text.accent.yellow.bolder',
|
|
296
224
|
background: 'color.background.accent.yellow.subtle',
|
|
297
225
|
desiredContrast: 4.5
|
|
298
|
-
}, {
|
|
299
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
300
|
-
background: 'color.background.accent.green.subtle',
|
|
301
|
-
desiredContrast: 4.5
|
|
302
|
-
}, {
|
|
303
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
304
|
-
background: 'color.background.accent.teal.subtle',
|
|
305
|
-
desiredContrast: 4.5
|
|
306
|
-
}, {
|
|
307
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
308
|
-
background: 'color.background.accent.blue.subtle',
|
|
309
|
-
desiredContrast: 4.5
|
|
310
|
-
}, {
|
|
311
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
312
|
-
background: 'color.background.accent.purple.subtle',
|
|
313
|
-
desiredContrast: 4.5
|
|
314
|
-
}, {
|
|
315
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
316
|
-
background: 'color.background.accent.magenta.subtle',
|
|
317
|
-
desiredContrast: 4.5
|
|
318
|
-
}, {
|
|
319
|
-
foreground: 'color.text.accent.yellow.bolder',
|
|
320
|
-
background: 'color.background.accent.gray.subtle',
|
|
321
|
-
desiredContrast: 4.5
|
|
322
226
|
}, {
|
|
323
227
|
foreground: 'color.text.accent.green',
|
|
324
228
|
background: 'color.background.accent.green.subtlest',
|
|
@@ -327,18 +231,6 @@ export const generatedPairs = [{
|
|
|
327
231
|
foreground: 'color.text.accent.green',
|
|
328
232
|
background: 'color.background.accent.green.subtler',
|
|
329
233
|
desiredContrast: 4.5
|
|
330
|
-
}, {
|
|
331
|
-
foreground: 'color.text.accent.green.bolder',
|
|
332
|
-
background: 'color.background.accent.red.subtle',
|
|
333
|
-
desiredContrast: 4.5
|
|
334
|
-
}, {
|
|
335
|
-
foreground: 'color.text.accent.green.bolder',
|
|
336
|
-
background: 'color.background.accent.orange.subtle',
|
|
337
|
-
desiredContrast: 4.5
|
|
338
|
-
}, {
|
|
339
|
-
foreground: 'color.text.accent.green.bolder',
|
|
340
|
-
background: 'color.background.accent.yellow.subtle',
|
|
341
|
-
desiredContrast: 4.5
|
|
342
234
|
}, {
|
|
343
235
|
foreground: 'color.text.accent.green.bolder',
|
|
344
236
|
background: 'color.background.accent.green.subtlest',
|
|
@@ -351,26 +243,6 @@ export const generatedPairs = [{
|
|
|
351
243
|
foreground: 'color.text.accent.green.bolder',
|
|
352
244
|
background: 'color.background.accent.green.subtle',
|
|
353
245
|
desiredContrast: 4.5
|
|
354
|
-
}, {
|
|
355
|
-
foreground: 'color.text.accent.green.bolder',
|
|
356
|
-
background: 'color.background.accent.teal.subtle',
|
|
357
|
-
desiredContrast: 4.5
|
|
358
|
-
}, {
|
|
359
|
-
foreground: 'color.text.accent.green.bolder',
|
|
360
|
-
background: 'color.background.accent.blue.subtle',
|
|
361
|
-
desiredContrast: 4.5
|
|
362
|
-
}, {
|
|
363
|
-
foreground: 'color.text.accent.green.bolder',
|
|
364
|
-
background: 'color.background.accent.purple.subtle',
|
|
365
|
-
desiredContrast: 4.5
|
|
366
|
-
}, {
|
|
367
|
-
foreground: 'color.text.accent.green.bolder',
|
|
368
|
-
background: 'color.background.accent.magenta.subtle',
|
|
369
|
-
desiredContrast: 4.5
|
|
370
|
-
}, {
|
|
371
|
-
foreground: 'color.text.accent.green.bolder',
|
|
372
|
-
background: 'color.background.accent.gray.subtle',
|
|
373
|
-
desiredContrast: 4.5
|
|
374
246
|
}, {
|
|
375
247
|
foreground: 'color.text.accent.teal',
|
|
376
248
|
background: 'color.background.accent.teal.subtlest',
|
|
@@ -379,22 +251,6 @@ export const generatedPairs = [{
|
|
|
379
251
|
foreground: 'color.text.accent.teal',
|
|
380
252
|
background: 'color.background.accent.teal.subtler',
|
|
381
253
|
desiredContrast: 4.5
|
|
382
|
-
}, {
|
|
383
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
384
|
-
background: 'color.background.accent.red.subtle',
|
|
385
|
-
desiredContrast: 4.5
|
|
386
|
-
}, {
|
|
387
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
388
|
-
background: 'color.background.accent.orange.subtle',
|
|
389
|
-
desiredContrast: 4.5
|
|
390
|
-
}, {
|
|
391
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
392
|
-
background: 'color.background.accent.yellow.subtle',
|
|
393
|
-
desiredContrast: 4.5
|
|
394
|
-
}, {
|
|
395
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
396
|
-
background: 'color.background.accent.green.subtle',
|
|
397
|
-
desiredContrast: 4.5
|
|
398
254
|
}, {
|
|
399
255
|
foreground: 'color.text.accent.teal.bolder',
|
|
400
256
|
background: 'color.background.accent.teal.subtlest',
|
|
@@ -407,22 +263,6 @@ export const generatedPairs = [{
|
|
|
407
263
|
foreground: 'color.text.accent.teal.bolder',
|
|
408
264
|
background: 'color.background.accent.teal.subtle',
|
|
409
265
|
desiredContrast: 4.5
|
|
410
|
-
}, {
|
|
411
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
412
|
-
background: 'color.background.accent.blue.subtle',
|
|
413
|
-
desiredContrast: 4.5
|
|
414
|
-
}, {
|
|
415
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
416
|
-
background: 'color.background.accent.purple.subtle',
|
|
417
|
-
desiredContrast: 4.5
|
|
418
|
-
}, {
|
|
419
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
420
|
-
background: 'color.background.accent.magenta.subtle',
|
|
421
|
-
desiredContrast: 4.5
|
|
422
|
-
}, {
|
|
423
|
-
foreground: 'color.text.accent.teal.bolder',
|
|
424
|
-
background: 'color.background.accent.gray.subtle',
|
|
425
|
-
desiredContrast: 4.5
|
|
426
266
|
}, {
|
|
427
267
|
foreground: 'color.text.accent.blue',
|
|
428
268
|
background: 'color.background.accent.blue.subtlest',
|
|
@@ -431,26 +271,6 @@ export const generatedPairs = [{
|
|
|
431
271
|
foreground: 'color.text.accent.blue',
|
|
432
272
|
background: 'color.background.accent.blue.subtler',
|
|
433
273
|
desiredContrast: 4.5
|
|
434
|
-
}, {
|
|
435
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
436
|
-
background: 'color.background.accent.red.subtle',
|
|
437
|
-
desiredContrast: 4.5
|
|
438
|
-
}, {
|
|
439
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
440
|
-
background: 'color.background.accent.orange.subtle',
|
|
441
|
-
desiredContrast: 4.5
|
|
442
|
-
}, {
|
|
443
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
444
|
-
background: 'color.background.accent.yellow.subtle',
|
|
445
|
-
desiredContrast: 4.5
|
|
446
|
-
}, {
|
|
447
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
448
|
-
background: 'color.background.accent.green.subtle',
|
|
449
|
-
desiredContrast: 4.5
|
|
450
|
-
}, {
|
|
451
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
452
|
-
background: 'color.background.accent.teal.subtle',
|
|
453
|
-
desiredContrast: 4.5
|
|
454
274
|
}, {
|
|
455
275
|
foreground: 'color.text.accent.blue.bolder',
|
|
456
276
|
background: 'color.background.accent.blue.subtlest',
|
|
@@ -463,18 +283,6 @@ export const generatedPairs = [{
|
|
|
463
283
|
foreground: 'color.text.accent.blue.bolder',
|
|
464
284
|
background: 'color.background.accent.blue.subtle',
|
|
465
285
|
desiredContrast: 4.5
|
|
466
|
-
}, {
|
|
467
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
468
|
-
background: 'color.background.accent.purple.subtle',
|
|
469
|
-
desiredContrast: 4.5
|
|
470
|
-
}, {
|
|
471
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
472
|
-
background: 'color.background.accent.magenta.subtle',
|
|
473
|
-
desiredContrast: 4.5
|
|
474
|
-
}, {
|
|
475
|
-
foreground: 'color.text.accent.blue.bolder',
|
|
476
|
-
background: 'color.background.accent.gray.subtle',
|
|
477
|
-
desiredContrast: 4.5
|
|
478
286
|
}, {
|
|
479
287
|
foreground: 'color.text.accent.purple',
|
|
480
288
|
background: 'color.background.accent.purple.subtlest',
|
|
@@ -483,30 +291,6 @@ export const generatedPairs = [{
|
|
|
483
291
|
foreground: 'color.text.accent.purple',
|
|
484
292
|
background: 'color.background.accent.purple.subtler',
|
|
485
293
|
desiredContrast: 4.5
|
|
486
|
-
}, {
|
|
487
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
488
|
-
background: 'color.background.accent.red.subtle',
|
|
489
|
-
desiredContrast: 4.5
|
|
490
|
-
}, {
|
|
491
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
492
|
-
background: 'color.background.accent.orange.subtle',
|
|
493
|
-
desiredContrast: 4.5
|
|
494
|
-
}, {
|
|
495
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
496
|
-
background: 'color.background.accent.yellow.subtle',
|
|
497
|
-
desiredContrast: 4.5
|
|
498
|
-
}, {
|
|
499
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
500
|
-
background: 'color.background.accent.green.subtle',
|
|
501
|
-
desiredContrast: 4.5
|
|
502
|
-
}, {
|
|
503
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
504
|
-
background: 'color.background.accent.teal.subtle',
|
|
505
|
-
desiredContrast: 4.5
|
|
506
|
-
}, {
|
|
507
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
508
|
-
background: 'color.background.accent.blue.subtle',
|
|
509
|
-
desiredContrast: 4.5
|
|
510
294
|
}, {
|
|
511
295
|
foreground: 'color.text.accent.purple.bolder',
|
|
512
296
|
background: 'color.background.accent.purple.subtlest',
|
|
@@ -519,14 +303,6 @@ export const generatedPairs = [{
|
|
|
519
303
|
foreground: 'color.text.accent.purple.bolder',
|
|
520
304
|
background: 'color.background.accent.purple.subtle',
|
|
521
305
|
desiredContrast: 4.5
|
|
522
|
-
}, {
|
|
523
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
524
|
-
background: 'color.background.accent.magenta.subtle',
|
|
525
|
-
desiredContrast: 4.5
|
|
526
|
-
}, {
|
|
527
|
-
foreground: 'color.text.accent.purple.bolder',
|
|
528
|
-
background: 'color.background.accent.gray.subtle',
|
|
529
|
-
desiredContrast: 4.5
|
|
530
306
|
}, {
|
|
531
307
|
foreground: 'color.text.accent.magenta',
|
|
532
308
|
background: 'color.background.accent.magenta.subtlest',
|
|
@@ -535,34 +311,6 @@ export const generatedPairs = [{
|
|
|
535
311
|
foreground: 'color.text.accent.magenta',
|
|
536
312
|
background: 'color.background.accent.magenta.subtler',
|
|
537
313
|
desiredContrast: 4.5
|
|
538
|
-
}, {
|
|
539
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
540
|
-
background: 'color.background.accent.red.subtle',
|
|
541
|
-
desiredContrast: 4.5
|
|
542
|
-
}, {
|
|
543
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
544
|
-
background: 'color.background.accent.orange.subtle',
|
|
545
|
-
desiredContrast: 4.5
|
|
546
|
-
}, {
|
|
547
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
548
|
-
background: 'color.background.accent.yellow.subtle',
|
|
549
|
-
desiredContrast: 4.5
|
|
550
|
-
}, {
|
|
551
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
552
|
-
background: 'color.background.accent.green.subtle',
|
|
553
|
-
desiredContrast: 4.5
|
|
554
|
-
}, {
|
|
555
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
556
|
-
background: 'color.background.accent.teal.subtle',
|
|
557
|
-
desiredContrast: 4.5
|
|
558
|
-
}, {
|
|
559
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
560
|
-
background: 'color.background.accent.blue.subtle',
|
|
561
|
-
desiredContrast: 4.5
|
|
562
|
-
}, {
|
|
563
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
564
|
-
background: 'color.background.accent.purple.subtle',
|
|
565
|
-
desiredContrast: 4.5
|
|
566
314
|
}, {
|
|
567
315
|
foreground: 'color.text.accent.magenta.bolder',
|
|
568
316
|
background: 'color.background.accent.magenta.subtlest',
|
|
@@ -575,10 +323,6 @@ export const generatedPairs = [{
|
|
|
575
323
|
foreground: 'color.text.accent.magenta.bolder',
|
|
576
324
|
background: 'color.background.accent.magenta.subtle',
|
|
577
325
|
desiredContrast: 4.5
|
|
578
|
-
}, {
|
|
579
|
-
foreground: 'color.text.accent.magenta.bolder',
|
|
580
|
-
background: 'color.background.accent.gray.subtle',
|
|
581
|
-
desiredContrast: 4.5
|
|
582
326
|
}, {
|
|
583
327
|
foreground: 'color.text.accent.gray',
|
|
584
328
|
background: 'color.background.accent.gray.subtlest',
|
|
@@ -587,38 +331,6 @@ export const generatedPairs = [{
|
|
|
587
331
|
foreground: 'color.text.accent.gray',
|
|
588
332
|
background: 'color.background.accent.gray.subtler',
|
|
589
333
|
desiredContrast: 4.5
|
|
590
|
-
}, {
|
|
591
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
592
|
-
background: 'color.background.accent.red.subtle',
|
|
593
|
-
desiredContrast: 4.5
|
|
594
|
-
}, {
|
|
595
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
596
|
-
background: 'color.background.accent.orange.subtle',
|
|
597
|
-
desiredContrast: 4.5
|
|
598
|
-
}, {
|
|
599
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
600
|
-
background: 'color.background.accent.yellow.subtle',
|
|
601
|
-
desiredContrast: 4.5
|
|
602
|
-
}, {
|
|
603
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
604
|
-
background: 'color.background.accent.green.subtle',
|
|
605
|
-
desiredContrast: 4.5
|
|
606
|
-
}, {
|
|
607
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
608
|
-
background: 'color.background.accent.teal.subtle',
|
|
609
|
-
desiredContrast: 4.5
|
|
610
|
-
}, {
|
|
611
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
612
|
-
background: 'color.background.accent.blue.subtle',
|
|
613
|
-
desiredContrast: 4.5
|
|
614
|
-
}, {
|
|
615
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
616
|
-
background: 'color.background.accent.purple.subtle',
|
|
617
|
-
desiredContrast: 4.5
|
|
618
|
-
}, {
|
|
619
|
-
foreground: 'color.text.accent.gray.bolder',
|
|
620
|
-
background: 'color.background.accent.magenta.subtle',
|
|
621
|
-
desiredContrast: 4.5
|
|
622
334
|
}, {
|
|
623
335
|
foreground: 'color.text.accent.gray.bolder',
|
|
624
336
|
background: 'color.background.accent.gray.subtlest',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ba57ec0a6991ab386479b6c9006397ba>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -79,14 +79,14 @@ const tokens = [{
|
|
|
79
79
|
"name": "border.radius.Radius400",
|
|
80
80
|
"path": ["border", "radius", "Radius400"]
|
|
81
81
|
}, {
|
|
82
|
-
"value": "
|
|
82
|
+
"value": "32032px",
|
|
83
83
|
"attributes": {
|
|
84
84
|
"group": "shape"
|
|
85
85
|
},
|
|
86
86
|
"filePath": "src/palettes/shape-palette.tsx",
|
|
87
87
|
"isSource": true,
|
|
88
88
|
"original": {
|
|
89
|
-
"value":
|
|
89
|
+
"value": 32032,
|
|
90
90
|
"attributes": {
|
|
91
91
|
"group": "shape"
|
|
92
92
|
}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b255ff03ae4f781bb3016003a111bed0>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
7
7
|
html[data-color-mode="light"][data-theme~="light:dark"],
|
|
8
8
|
html[data-color-mode="dark"][data-theme~="dark:dark"] {
|
|
9
9
|
color-scheme: dark;
|
|
10
|
-
--ds-border: #
|
|
11
|
-
--ds-border-disabled: #A1BDD914;
|
|
12
|
-
--ds-border-focused: #85B8FF;
|
|
13
|
-
--ds-border-input: #738496;
|
|
14
|
-
--ds-border-inverse: #161A1D;
|
|
15
|
-
--ds-border-selected: #579DFF;
|
|
16
|
-
--ds-border-brand: #579DFF;
|
|
17
|
-
--ds-border-danger: #EF5C48;
|
|
18
|
-
--ds-border-warning: #CF9F02;
|
|
19
|
-
--ds-border-success: #2ABB7F;
|
|
20
|
-
--ds-border-discovery: #8F7EE7;
|
|
21
|
-
--ds-border-information: #388BFF;
|
|
22
|
-
--ds-border-bold: #738496;
|
|
10
|
+
--ds-border-input: #596773;
|
|
23
11
|
}
|
|
24
12
|
`;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b14cc1106ad737bfef0b77e4b645c1df>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
7
7
|
html[data-color-mode="light"][data-theme~="light:light"],
|
|
8
8
|
html[data-color-mode="dark"][data-theme~="dark:light"] {
|
|
9
9
|
color-scheme: light;
|
|
10
|
-
--ds-border: #
|
|
11
|
-
--ds-border-disabled: #091E420F;
|
|
12
|
-
--ds-border-focused: #388BFF;
|
|
13
|
-
--ds-border-input: #758195;
|
|
14
|
-
--ds-border-inverse: #FFFFFF;
|
|
15
|
-
--ds-border-selected: #0C66E4;
|
|
16
|
-
--ds-border-brand: #0C66E4;
|
|
17
|
-
--ds-border-danger: #E34935;
|
|
18
|
-
--ds-border-warning: #D97008;
|
|
19
|
-
--ds-border-success: #22A06B;
|
|
20
|
-
--ds-border-discovery: #8270DB;
|
|
21
|
-
--ds-border-information: #1D7AFC;
|
|
22
|
-
--ds-border-bold: #758195;
|
|
10
|
+
--ds-border-input: #8590A2;
|
|
23
11
|
}
|
|
24
12
|
`;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::861a4448ac467155c8290f2b211e99c5>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
7
7
|
html[data-theme~="shape:shape"] {
|
|
8
|
-
--ds-radius-050: 0.125rem;
|
|
9
|
-
--ds-radius
|
|
10
|
-
--ds-radius-
|
|
11
|
-
--ds-radius-
|
|
12
|
-
--ds-radius-
|
|
13
|
-
--ds-radius-
|
|
14
|
-
--ds-
|
|
15
|
-
--ds-width
|
|
16
|
-
--ds-width-
|
|
8
|
+
--ds-border-radius-050: 0.125rem;
|
|
9
|
+
--ds-border-radius: 0.25rem;
|
|
10
|
+
--ds-border-radius-100: 0.25rem;
|
|
11
|
+
--ds-border-radius-200: 0.5rem;
|
|
12
|
+
--ds-border-radius-300: 0.75rem;
|
|
13
|
+
--ds-border-radius-400: 1rem;
|
|
14
|
+
--ds-border-radius-circle: 2002rem;
|
|
15
|
+
--ds-border-width: 0.0625rem;
|
|
16
|
+
--ds-border-width-0: 0rem;
|
|
17
|
+
--ds-border-width-050: 0.0625rem;
|
|
18
|
+
--ds-border-width-100: 0.125rem;
|
|
17
19
|
}
|
|
18
20
|
`;
|