@atlaskit/tokens 6.0.0 → 6.1.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 +9 -0
- package/babel-plugin/package.json +1 -1
- package/codemods/theme-to-design-tokens/transform.tsx +1 -0
- package/css-type-schema/package.json +1 -1
- package/custom-themes/package.json +1 -1
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +53 -23
- package/dist/cjs/artifacts/replacement-mapping.js +29 -2
- package/dist/cjs/artifacts/theme-import-map.js +13 -1
- package/dist/cjs/artifacts/themes/atlassian-shape-rounder.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-shape-roundest.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +21 -13
- package/dist/cjs/artifacts/token-names.js +21 -13
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +469 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +469 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +249 -41
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/entry-points/token-metadata.codegen.js +96 -51
- package/dist/cjs/theme-config.js +18 -2
- package/dist/cjs/theme-state-transformer.js +3 -1
- package/dist/cjs/utils/token-order.js +6 -3
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +53 -23
- package/dist/es2019/artifacts/replacement-mapping.js +29 -2
- package/dist/es2019/artifacts/theme-import-map.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-shape-rounder.js +28 -0
- package/dist/es2019/artifacts/themes/atlassian-shape-roundest.js +28 -0
- package/dist/es2019/artifacts/themes/atlassian-shape.js +11 -3
- package/dist/es2019/artifacts/token-default-values.js +21 -13
- package/dist/es2019/artifacts/token-names.js +21 -13
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +463 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +463 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +249 -41
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/entry-points/token-metadata.codegen.js +96 -51
- package/dist/es2019/theme-config.js +18 -2
- package/dist/es2019/theme-state-transformer.js +3 -1
- package/dist/es2019/utils/token-order.js +6 -3
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +53 -23
- package/dist/esm/artifacts/replacement-mapping.js +29 -2
- package/dist/esm/artifacts/theme-import-map.js +9 -1
- package/dist/esm/artifacts/themes/atlassian-shape-rounder.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-shape-roundest.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +21 -13
- package/dist/esm/artifacts/token-names.js +21 -13
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +463 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +463 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +249 -41
- package/dist/esm/constants.js +1 -1
- package/dist/esm/entry-points/token-metadata.codegen.js +96 -51
- package/dist/esm/theme-config.js +18 -2
- package/dist/esm/theme-state-transformer.js +3 -1
- package/dist/esm/utils/token-order.js +6 -3
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-shape-rounder.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-shape-roundest.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +20 -12
- package/dist/types/artifacts/token-names.d.ts +39 -23
- package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +59 -0
- package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +59 -0
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +9 -5
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/enable-global-theme.d.ts +1 -1
- package/dist/types/entry-points/css-type-schema.codegen.d.ts +3 -3
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/get-ssr-auto-script.d.ts +1 -1
- package/dist/types/get-theme-styles.d.ts +1 -1
- package/dist/types/set-global-theme.d.ts +1 -1
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/types.d.ts +12 -2
- package/dist/types/utils/color-detection.d.ts +1 -1
- package/dist/types/utils/custom-theme-token-contrast-check.d.ts +2 -2
- package/dist/types/utils/generate-custom-color-ramp.d.ts +2 -8
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-rounder.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-roundest.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +20 -12
- package/dist/types-ts4.5/artifacts/token-names.d.ts +39 -23
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +59 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +59 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +9 -5
- 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/enable-global-theme.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +3 -3
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types-ts4.5/get-ssr-auto-script.d.ts +1 -1
- package/dist/types-ts4.5/get-theme-styles.d.ts +1 -1
- package/dist/types-ts4.5/set-global-theme.d.ts +1 -1
- package/dist/types-ts4.5/theme-config.d.ts +6 -2
- package/dist/types-ts4.5/types.d.ts +12 -2
- package/dist/types-ts4.5/utils/color-detection.d.ts +1 -1
- package/dist/types-ts4.5/utils/custom-theme-token-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/utils/generate-custom-color-ramp.d.ts +2 -4
- package/figma/atlassian-shape-rounder.json +114 -0
- package/figma/atlassian-shape-roundest.json +114 -0
- package/figma/atlassian-shape.json +44 -46
- package/package.json +8 -9
- package/palettes-raw/package.json +1 -1
- package/rename-mapping/package.json +1 -1
- package/token-default-values/package.json +1 -1
- package/token-ids/package.json +1 -1
- package/token-metadata/package.json +1 -1
- package/token-names/package.json +1 -1
- package/token-order/package.json +1 -1
- package/tokens-raw/package.json +1 -1
|
@@ -36,7 +36,9 @@ var isColorMode = function isColorMode(modeId) {
|
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
var themeStringToObject = exports.themeStringToObject = function themeStringToObject(themeState) {
|
|
39
|
-
return themeState.split(' ')
|
|
39
|
+
return themeState.split(' ')
|
|
40
|
+
// @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
|
|
41
|
+
.map(function (theme) {
|
|
40
42
|
return theme.split(/:([^]*)/);
|
|
41
43
|
}).reduce(function (themeObject, _ref) {
|
|
42
44
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
@@ -26,15 +26,18 @@ var tokenOrder = exports.tokenOrder = [{
|
|
|
26
26
|
{
|
|
27
27
|
path: 'utility',
|
|
28
28
|
subpaths: []
|
|
29
|
-
}, {
|
|
30
|
-
path: 'border',
|
|
31
|
-
subpaths: ['radius', 'width']
|
|
32
29
|
}, {
|
|
33
30
|
path: 'space',
|
|
34
31
|
subpaths: []
|
|
35
32
|
}, {
|
|
36
33
|
path: 'font',
|
|
37
34
|
subpaths: ['heading', 'body', 'metric', 'code', 'weight', 'family', 'size', 'lineHeight']
|
|
35
|
+
}, {
|
|
36
|
+
path: 'radius',
|
|
37
|
+
subpaths: []
|
|
38
|
+
}, {
|
|
39
|
+
path: 'border',
|
|
40
|
+
subpaths: ['radius', 'width']
|
|
38
41
|
}, {
|
|
39
42
|
path: 'value',
|
|
40
43
|
// Legacy palette
|
|
@@ -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::f4b022d6e18730437f14e3f2a6430c5a>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -16,8 +16,8 @@ const tokens = [{
|
|
|
16
16
|
"group": "shape"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"name": "
|
|
20
|
-
"path": ["
|
|
19
|
+
"name": "radius.Radius02",
|
|
20
|
+
"path": ["radius", "Radius02"]
|
|
21
21
|
}, {
|
|
22
22
|
"value": "4px",
|
|
23
23
|
"attributes": {
|
|
@@ -31,8 +31,23 @@ const tokens = [{
|
|
|
31
31
|
"group": "shape"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"name": "
|
|
35
|
-
"path": ["
|
|
34
|
+
"name": "radius.Radius04",
|
|
35
|
+
"path": ["radius", "Radius04"]
|
|
36
|
+
}, {
|
|
37
|
+
"value": "6px",
|
|
38
|
+
"attributes": {
|
|
39
|
+
"group": "shape"
|
|
40
|
+
},
|
|
41
|
+
"filePath": "schema/palettes/shape-palette.tsx",
|
|
42
|
+
"isSource": true,
|
|
43
|
+
"original": {
|
|
44
|
+
"value": 6,
|
|
45
|
+
"attributes": {
|
|
46
|
+
"group": "shape"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"name": "radius.Radius06",
|
|
50
|
+
"path": ["radius", "Radius06"]
|
|
36
51
|
}, {
|
|
37
52
|
"value": "8px",
|
|
38
53
|
"attributes": {
|
|
@@ -46,8 +61,8 @@ const tokens = [{
|
|
|
46
61
|
"group": "shape"
|
|
47
62
|
}
|
|
48
63
|
},
|
|
49
|
-
"name": "
|
|
50
|
-
"path": ["
|
|
64
|
+
"name": "radius.Radius08",
|
|
65
|
+
"path": ["radius", "Radius08"]
|
|
51
66
|
}, {
|
|
52
67
|
"value": "12px",
|
|
53
68
|
"attributes": {
|
|
@@ -61,8 +76,8 @@ const tokens = [{
|
|
|
61
76
|
"group": "shape"
|
|
62
77
|
}
|
|
63
78
|
},
|
|
64
|
-
"name": "
|
|
65
|
-
"path": ["
|
|
79
|
+
"name": "radius.Radius12",
|
|
80
|
+
"path": ["radius", "Radius12"]
|
|
66
81
|
}, {
|
|
67
82
|
"value": "16px",
|
|
68
83
|
"attributes": {
|
|
@@ -76,38 +91,38 @@ const tokens = [{
|
|
|
76
91
|
"group": "shape"
|
|
77
92
|
}
|
|
78
93
|
},
|
|
79
|
-
"name": "
|
|
80
|
-
"path": ["
|
|
94
|
+
"name": "radius.Radius16",
|
|
95
|
+
"path": ["radius", "Radius16"]
|
|
81
96
|
}, {
|
|
82
|
-
"value": "
|
|
97
|
+
"value": "20px",
|
|
83
98
|
"attributes": {
|
|
84
99
|
"group": "shape"
|
|
85
100
|
},
|
|
86
101
|
"filePath": "schema/palettes/shape-palette.tsx",
|
|
87
102
|
"isSource": true,
|
|
88
103
|
"original": {
|
|
89
|
-
"value":
|
|
104
|
+
"value": 20,
|
|
90
105
|
"attributes": {
|
|
91
106
|
"group": "shape"
|
|
92
107
|
}
|
|
93
108
|
},
|
|
94
|
-
"name": "
|
|
95
|
-
"path": ["
|
|
109
|
+
"name": "radius.Radius20",
|
|
110
|
+
"path": ["radius", "Radius20"]
|
|
96
111
|
}, {
|
|
97
|
-
"value": "
|
|
112
|
+
"value": "9999px",
|
|
98
113
|
"attributes": {
|
|
99
114
|
"group": "shape"
|
|
100
115
|
},
|
|
101
116
|
"filePath": "schema/palettes/shape-palette.tsx",
|
|
102
117
|
"isSource": true,
|
|
103
118
|
"original": {
|
|
104
|
-
"value":
|
|
119
|
+
"value": 9999,
|
|
105
120
|
"attributes": {
|
|
106
121
|
"group": "shape"
|
|
107
122
|
}
|
|
108
123
|
},
|
|
109
|
-
"name": "
|
|
110
|
-
"path": ["
|
|
124
|
+
"name": "radius.Radius99",
|
|
125
|
+
"path": ["radius", "Radius99"]
|
|
111
126
|
}, {
|
|
112
127
|
"value": "1px",
|
|
113
128
|
"attributes": {
|
|
@@ -121,8 +136,8 @@ const tokens = [{
|
|
|
121
136
|
"group": "shape"
|
|
122
137
|
}
|
|
123
138
|
},
|
|
124
|
-
"name": "border.width.
|
|
125
|
-
"path": ["border", "width", "
|
|
139
|
+
"name": "border.width.BorderWidth1",
|
|
140
|
+
"path": ["border", "width", "BorderWidth1"]
|
|
126
141
|
}, {
|
|
127
142
|
"value": "2px",
|
|
128
143
|
"attributes": {
|
|
@@ -136,8 +151,23 @@ const tokens = [{
|
|
|
136
151
|
"group": "shape"
|
|
137
152
|
}
|
|
138
153
|
},
|
|
139
|
-
"name": "border.width.
|
|
140
|
-
"path": ["border", "width", "
|
|
154
|
+
"name": "border.width.BorderWidth2",
|
|
155
|
+
"path": ["border", "width", "BorderWidth2"]
|
|
156
|
+
}, {
|
|
157
|
+
"value": "0px",
|
|
158
|
+
"attributes": {
|
|
159
|
+
"group": "shape"
|
|
160
|
+
},
|
|
161
|
+
"filePath": "schema/palettes/shape-palette.tsx",
|
|
162
|
+
"isSource": true,
|
|
163
|
+
"original": {
|
|
164
|
+
"value": 0,
|
|
165
|
+
"attributes": {
|
|
166
|
+
"group": "shape"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"name": "border.width.Size0",
|
|
170
|
+
"path": ["border", "width", "Size0"]
|
|
141
171
|
}, {
|
|
142
172
|
"value": "3px",
|
|
143
173
|
"attributes": {
|
|
@@ -12,12 +12,39 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::7ca64db3c8d60ea8d78edec946e325bc>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
const replacementMapper = [{
|
|
20
|
+
"path": "border.radius.[default]",
|
|
21
|
+
"state": "deprecated"
|
|
22
|
+
}, {
|
|
23
|
+
"path": "border.radius.050",
|
|
24
|
+
"state": "deprecated"
|
|
25
|
+
}, {
|
|
26
|
+
"path": "border.radius.100",
|
|
27
|
+
"state": "deprecated"
|
|
28
|
+
}, {
|
|
29
|
+
"path": "border.radius.200",
|
|
30
|
+
"state": "deprecated"
|
|
31
|
+
}, {
|
|
32
|
+
"path": "border.radius.300",
|
|
33
|
+
"state": "deprecated"
|
|
34
|
+
}, {
|
|
35
|
+
"path": "border.radius.400",
|
|
36
|
+
"state": "deprecated"
|
|
37
|
+
}, {
|
|
38
|
+
"path": "border.radius.circle",
|
|
39
|
+
"state": "deprecated"
|
|
40
|
+
}, {
|
|
20
41
|
"path": "border.width.0",
|
|
21
|
-
"state": "
|
|
42
|
+
"state": "deprecated"
|
|
43
|
+
}, {
|
|
44
|
+
"path": "border.width.indicator",
|
|
45
|
+
"state": "deprecated"
|
|
46
|
+
}, {
|
|
47
|
+
"path": "border.width.outline",
|
|
48
|
+
"state": "deprecated"
|
|
22
49
|
}];
|
|
23
50
|
export default replacementMapper;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This allows users to compose their themes and only use the tokens that are requested.
|
|
7
7
|
* When a new theme is created, the import should automatically be added to the map
|
|
8
8
|
*
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::3db020c00d91d31fe8e413b082708618>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -35,6 +35,10 @@ const themeImportsMap = {
|
|
|
35
35
|
'./themes/atlassian-typography-adg3'),
|
|
36
36
|
'shape': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape" */
|
|
37
37
|
'./themes/atlassian-shape'),
|
|
38
|
+
'shape-rounder': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape-rounder" */
|
|
39
|
+
'./themes/atlassian-shape-rounder'),
|
|
40
|
+
'shape-roundest': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape-roundest" */
|
|
41
|
+
'./themes/atlassian-shape-roundest'),
|
|
38
42
|
'typography-modernized': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-modernized" */
|
|
39
43
|
'./themes/atlassian-typography-modernized'),
|
|
40
44
|
'typography-refreshed': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-refreshed" */
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b2f388559d723f17083d9711905b528f>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export default `
|
|
7
|
+
html[data-theme~="shape:shape-rounder"] {
|
|
8
|
+
--ds-radius-xsmall: 0.125rem;
|
|
9
|
+
--ds-radius-small: 0.25rem;
|
|
10
|
+
--ds-radius-medium: 0.375rem;
|
|
11
|
+
--ds-radius-large: 0.75rem;
|
|
12
|
+
--ds-radius-xlarge: 1rem;
|
|
13
|
+
--ds-radius-full: 624.9375rem;
|
|
14
|
+
--ds-border-radius: 0.25rem;
|
|
15
|
+
--ds-border-radius-050: 0.125rem;
|
|
16
|
+
--ds-border-radius-100: 0.25rem;
|
|
17
|
+
--ds-border-radius-200: 0.5rem;
|
|
18
|
+
--ds-border-radius-300: 0.75rem;
|
|
19
|
+
--ds-border-radius-400: 1rem;
|
|
20
|
+
--ds-border-radius-circle: 624.9375rem;
|
|
21
|
+
--ds-border-width: 0.0625rem;
|
|
22
|
+
--ds-border-width-0: 0rem;
|
|
23
|
+
--ds-border-width-indicator: 0.1875rem;
|
|
24
|
+
--ds-border-width-outline: 0.125rem;
|
|
25
|
+
--ds-border-width-selected: 0.125rem;
|
|
26
|
+
--ds-border-width-focused: 0.125rem;
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b1574d1a9deb339d6c42eb37e069a871>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export default `
|
|
7
|
+
html[data-theme~="shape:shape-roundest"] {
|
|
8
|
+
--ds-radius-xsmall: 0.125rem;
|
|
9
|
+
--ds-radius-small: 0.25rem;
|
|
10
|
+
--ds-radius-medium: 0.75rem;
|
|
11
|
+
--ds-radius-large: 1rem;
|
|
12
|
+
--ds-radius-xlarge: 1.25rem;
|
|
13
|
+
--ds-radius-full: 624.9375rem;
|
|
14
|
+
--ds-border-radius: 0.25rem;
|
|
15
|
+
--ds-border-radius-050: 0.125rem;
|
|
16
|
+
--ds-border-radius-100: 0.25rem;
|
|
17
|
+
--ds-border-radius-200: 0.5rem;
|
|
18
|
+
--ds-border-radius-300: 0.75rem;
|
|
19
|
+
--ds-border-radius-400: 1rem;
|
|
20
|
+
--ds-border-radius-circle: 624.9375rem;
|
|
21
|
+
--ds-border-width: 0.0625rem;
|
|
22
|
+
--ds-border-width-0: 0rem;
|
|
23
|
+
--ds-border-width-indicator: 0.1875rem;
|
|
24
|
+
--ds-border-width-outline: 0.125rem;
|
|
25
|
+
--ds-border-width-selected: 0.125rem;
|
|
26
|
+
--ds-border-width-focused: 0.125rem;
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::5fd7a2193acea84566a4f17a6f50d7b2>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
7
7
|
html[data-theme~="shape:shape"] {
|
|
8
|
-
--ds-
|
|
8
|
+
--ds-radius-xsmall: 0.125rem;
|
|
9
|
+
--ds-radius-small: 0.25rem;
|
|
10
|
+
--ds-radius-medium: 0.375rem;
|
|
11
|
+
--ds-radius-large: 0.5rem;
|
|
12
|
+
--ds-radius-xlarge: 0.75rem;
|
|
13
|
+
--ds-radius-full: 624.9375rem;
|
|
9
14
|
--ds-border-radius: 0.25rem;
|
|
15
|
+
--ds-border-radius-050: 0.125rem;
|
|
10
16
|
--ds-border-radius-100: 0.25rem;
|
|
11
17
|
--ds-border-radius-200: 0.5rem;
|
|
12
18
|
--ds-border-radius-300: 0.75rem;
|
|
13
19
|
--ds-border-radius-400: 1rem;
|
|
14
|
-
--ds-border-radius-circle:
|
|
20
|
+
--ds-border-radius-circle: 624.9375rem;
|
|
15
21
|
--ds-border-width: 0.0625rem;
|
|
16
22
|
--ds-border-width-0: 0rem;
|
|
17
23
|
--ds-border-width-indicator: 0.1875rem;
|
|
18
24
|
--ds-border-width-outline: 0.125rem;
|
|
25
|
+
--ds-border-width-selected: 0.125rem;
|
|
26
|
+
--ds-border-width-focused: 0.125rem;
|
|
19
27
|
}
|
|
20
28
|
`;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
8
8
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
9
9
|
*
|
|
10
|
-
* @codegen <<SignedSource::
|
|
10
|
+
* @codegen <<SignedSource::2992e1957578e92ec58e9b373bf9b813>>
|
|
11
11
|
* @codegenCommand yarn build tokens
|
|
12
12
|
*/
|
|
13
13
|
const defaultTokenValues = {
|
|
@@ -402,17 +402,6 @@ const defaultTokenValues = {
|
|
|
402
402
|
'utility.UNSAFE.textTransformUppercase': 'uppercase',
|
|
403
403
|
'utility.UNSAFE.transparent': 'transparent',
|
|
404
404
|
'utility.elevation.surface.current': '#FFFFFF',
|
|
405
|
-
'border.radius.050': '0.125rem',
|
|
406
|
-
'border.radius': '0.25rem',
|
|
407
|
-
'border.radius.100': '0.25rem',
|
|
408
|
-
'border.radius.200': '0.5rem',
|
|
409
|
-
'border.radius.300': '0.75rem',
|
|
410
|
-
'border.radius.400': '1rem',
|
|
411
|
-
'border.radius.circle': '2002rem',
|
|
412
|
-
'border.width': '0.0625rem',
|
|
413
|
-
'border.width.0': '0rem',
|
|
414
|
-
'border.width.indicator': '0.1875rem',
|
|
415
|
-
'border.width.outline': '0.125rem',
|
|
416
405
|
'space.0': '0rem',
|
|
417
406
|
'space.025': '0.125rem',
|
|
418
407
|
'space.050': '0.25rem',
|
|
@@ -459,6 +448,25 @@ const defaultTokenValues = {
|
|
|
459
448
|
'font.family.body': 'ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
460
449
|
'font.family.code': 'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
|
|
461
450
|
'font.family.brand.heading': '"Charlie Display", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
462
|
-
'font.family.brand.body': '"Charlie Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
|
|
451
|
+
'font.family.brand.body': '"Charlie Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
452
|
+
'radius.xsmall': '0.125rem',
|
|
453
|
+
'radius.small': '0.25rem',
|
|
454
|
+
'radius.medium': '0.375rem',
|
|
455
|
+
'radius.large': '0.5rem',
|
|
456
|
+
'radius.xlarge': '0.75rem',
|
|
457
|
+
'radius.full': '624.9375rem',
|
|
458
|
+
'border.radius': '0.25rem',
|
|
459
|
+
'border.radius.050': '0.125rem',
|
|
460
|
+
'border.radius.100': '0.25rem',
|
|
461
|
+
'border.radius.200': '0.5rem',
|
|
462
|
+
'border.radius.300': '0.75rem',
|
|
463
|
+
'border.radius.400': '1rem',
|
|
464
|
+
'border.radius.circle': '624.9375rem',
|
|
465
|
+
'border.width': '0.0625rem',
|
|
466
|
+
'border.width.0': '0rem',
|
|
467
|
+
'border.width.indicator': '0.1875rem',
|
|
468
|
+
'border.width.outline': '0.125rem',
|
|
469
|
+
'border.width.selected': '0.125rem',
|
|
470
|
+
'border.width.focused': '0.125rem'
|
|
463
471
|
};
|
|
464
472
|
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::
|
|
3
|
+
* @codegen <<SignedSource::06d7df9fd7562fac091fccfbf1704240>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -395,17 +395,6 @@ const tokens = {
|
|
|
395
395
|
'utility.UNSAFE.textTransformUppercase': '--ds-UNSAFE-textTransformUppercase',
|
|
396
396
|
'utility.UNSAFE.transparent': '--ds-UNSAFE-transparent',
|
|
397
397
|
'utility.elevation.surface.current': '--ds-elevation-surface-current',
|
|
398
|
-
'border.radius.050': '--ds-border-radius-050',
|
|
399
|
-
'border.radius': '--ds-border-radius',
|
|
400
|
-
'border.radius.100': '--ds-border-radius-100',
|
|
401
|
-
'border.radius.200': '--ds-border-radius-200',
|
|
402
|
-
'border.radius.300': '--ds-border-radius-300',
|
|
403
|
-
'border.radius.400': '--ds-border-radius-400',
|
|
404
|
-
'border.radius.circle': '--ds-border-radius-circle',
|
|
405
|
-
'border.width': '--ds-border-width',
|
|
406
|
-
'border.width.0': '--ds-border-width-0',
|
|
407
|
-
'border.width.indicator': '--ds-border-width-indicator',
|
|
408
|
-
'border.width.outline': '--ds-border-width-outline',
|
|
409
398
|
'space.0': '--ds-space-0',
|
|
410
399
|
'space.025': '--ds-space-025',
|
|
411
400
|
'space.050': '--ds-space-050',
|
|
@@ -452,6 +441,25 @@ const tokens = {
|
|
|
452
441
|
'font.family.body': '--ds-font-family-body',
|
|
453
442
|
'font.family.code': '--ds-font-family-code',
|
|
454
443
|
'font.family.brand.heading': '--ds-font-family-brand-heading',
|
|
455
|
-
'font.family.brand.body': '--ds-font-family-brand-body'
|
|
444
|
+
'font.family.brand.body': '--ds-font-family-brand-body',
|
|
445
|
+
'radius.xsmall': '--ds-radius-xsmall',
|
|
446
|
+
'radius.small': '--ds-radius-small',
|
|
447
|
+
'radius.medium': '--ds-radius-medium',
|
|
448
|
+
'radius.large': '--ds-radius-large',
|
|
449
|
+
'radius.xlarge': '--ds-radius-xlarge',
|
|
450
|
+
'radius.full': '--ds-radius-full',
|
|
451
|
+
'border.radius': '--ds-border-radius',
|
|
452
|
+
'border.radius.050': '--ds-border-radius-050',
|
|
453
|
+
'border.radius.100': '--ds-border-radius-100',
|
|
454
|
+
'border.radius.200': '--ds-border-radius-200',
|
|
455
|
+
'border.radius.300': '--ds-border-radius-300',
|
|
456
|
+
'border.radius.400': '--ds-border-radius-400',
|
|
457
|
+
'border.radius.circle': '--ds-border-radius-circle',
|
|
458
|
+
'border.width': '--ds-border-width',
|
|
459
|
+
'border.width.0': '--ds-border-width-0',
|
|
460
|
+
'border.width.indicator': '--ds-border-width-indicator',
|
|
461
|
+
'border.width.outline': '--ds-border-width-outline',
|
|
462
|
+
'border.width.selected': '--ds-border-width-selected',
|
|
463
|
+
'border.width.focused': '--ds-border-width-focused'
|
|
456
464
|
};
|
|
457
465
|
export default tokens;
|