@atlaskit/tokens 1.29.2 → 1.31.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 +12 -0
- package/dist/cjs/artifacts/replacement-mapping.js +83 -5
- package/dist/cjs/artifacts/theme-import-map.js +13 -7
- package/dist/cjs/artifacts/themes/atlassian-dark-future.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-light-future.js +12 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +35 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +35 -0
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/theme-config.js +21 -9
- package/dist/es2019/artifacts/replacement-mapping.js +83 -5
- package/dist/es2019/artifacts/theme-import-map.js +5 -3
- package/dist/es2019/artifacts/themes/atlassian-dark-future.js +12 -0
- package/dist/es2019/artifacts/themes/atlassian-light-future.js +12 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +29 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +29 -0
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/theme-config.js +21 -9
- package/dist/esm/artifacts/replacement-mapping.js +83 -5
- package/dist/esm/artifacts/theme-import-map.js +9 -5
- package/dist/esm/artifacts/themes/atlassian-dark-future.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-light-future.js +6 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +29 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +29 -0
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/theme-config.js +21 -9
- 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-dark-future.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-light-future.d.ts +7 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +29 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +29 -0
- package/dist/types/theme-config.d.ts +5 -5
- 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-dark-future.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-future.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +29 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +29 -0
- package/dist/types-ts4.5/theme-config.d.ts +7 -5
- package/figma/atlassian-dark-future.json +15 -0
- package/figma/atlassian-light-future.json +15 -0
- package/package.json +1 -1
- package/dist/cjs/artifacts/themes/atlassian-typography.js +0 -12
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +0 -662
- package/dist/es2019/artifacts/themes/atlassian-typography.js +0 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +0 -656
- package/dist/esm/artifacts/themes/atlassian-typography.js +0 -6
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +0 -656
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +0 -7
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +0 -99
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +0 -99
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 1.31.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#62155](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62155) [`d88ffee39278`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d88ffee39278) - Added new themes for ads-vision-lab
|
|
8
|
+
|
|
9
|
+
## 1.30.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#59752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59752) [`df0bbb7c4cc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/df0bbb7c4cc1) - Removed minor-second typography theme: `typography`. ADG3 and Minor third themes remain as the two typography themes.
|
|
14
|
+
|
|
3
15
|
## 1.29.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -18,7 +18,7 @@ exports.default = void 0;
|
|
|
18
18
|
* These changes will then be picked up by our tooling which will attempt to
|
|
19
19
|
* migrate as many of these renames as possible.
|
|
20
20
|
*
|
|
21
|
-
* @codegen <<SignedSource::
|
|
21
|
+
* @codegen <<SignedSource::21692c7f910850540ebe583c659e4d10>>
|
|
22
22
|
* @codegenCommand yarn build tokens
|
|
23
23
|
*/
|
|
24
24
|
|
|
@@ -58,6 +58,21 @@ var replacementMapper = [{
|
|
|
58
58
|
}, {
|
|
59
59
|
"path": "font.heading.xxsmall",
|
|
60
60
|
"state": "experimental"
|
|
61
|
+
}, {
|
|
62
|
+
"path": "font.letterSpacing.0",
|
|
63
|
+
"state": "deprecated"
|
|
64
|
+
}, {
|
|
65
|
+
"path": "font.letterSpacing.100",
|
|
66
|
+
"state": "deprecated"
|
|
67
|
+
}, {
|
|
68
|
+
"path": "font.letterSpacing.200",
|
|
69
|
+
"state": "deprecated"
|
|
70
|
+
}, {
|
|
71
|
+
"path": "font.letterSpacing.300",
|
|
72
|
+
"state": "deprecated"
|
|
73
|
+
}, {
|
|
74
|
+
"path": "font.letterSpacing.400",
|
|
75
|
+
"state": "deprecated"
|
|
61
76
|
}, {
|
|
62
77
|
"path": "font.ui.[default]",
|
|
63
78
|
"state": "experimental"
|
|
@@ -66,15 +81,78 @@ var replacementMapper = [{
|
|
|
66
81
|
"state": "experimental"
|
|
67
82
|
}, {
|
|
68
83
|
"path": "font.family.body",
|
|
69
|
-
"state": "
|
|
84
|
+
"state": "deprecated"
|
|
70
85
|
}, {
|
|
71
86
|
"path": "font.family.code",
|
|
72
|
-
"state": "
|
|
87
|
+
"state": "deprecated"
|
|
73
88
|
}, {
|
|
74
89
|
"path": "font.family.heading",
|
|
75
|
-
"state": "
|
|
90
|
+
"state": "deprecated"
|
|
91
|
+
}, {
|
|
92
|
+
"path": "font.family.monospace",
|
|
93
|
+
"state": "deprecated"
|
|
94
|
+
}, {
|
|
95
|
+
"path": "font.family.sans",
|
|
96
|
+
"state": "deprecated"
|
|
76
97
|
}, {
|
|
77
98
|
"path": "font.family.brand",
|
|
78
|
-
"state": "
|
|
99
|
+
"state": "deprecated"
|
|
100
|
+
}, {
|
|
101
|
+
"path": "font.size.050",
|
|
102
|
+
"state": "deprecated"
|
|
103
|
+
}, {
|
|
104
|
+
"path": "font.size.075",
|
|
105
|
+
"state": "deprecated"
|
|
106
|
+
}, {
|
|
107
|
+
"path": "font.size.100",
|
|
108
|
+
"state": "deprecated"
|
|
109
|
+
}, {
|
|
110
|
+
"path": "font.size.200",
|
|
111
|
+
"state": "deprecated"
|
|
112
|
+
}, {
|
|
113
|
+
"path": "font.size.300",
|
|
114
|
+
"state": "deprecated"
|
|
115
|
+
}, {
|
|
116
|
+
"path": "font.size.400",
|
|
117
|
+
"state": "deprecated"
|
|
118
|
+
}, {
|
|
119
|
+
"path": "font.size.500",
|
|
120
|
+
"state": "deprecated"
|
|
121
|
+
}, {
|
|
122
|
+
"path": "font.size.600",
|
|
123
|
+
"state": "deprecated"
|
|
124
|
+
}, {
|
|
125
|
+
"path": "font.weight.bold",
|
|
126
|
+
"state": "deprecated"
|
|
127
|
+
}, {
|
|
128
|
+
"path": "font.weight.medium",
|
|
129
|
+
"state": "deprecated"
|
|
130
|
+
}, {
|
|
131
|
+
"path": "font.weight.regular",
|
|
132
|
+
"state": "deprecated"
|
|
133
|
+
}, {
|
|
134
|
+
"path": "font.weight.semibold",
|
|
135
|
+
"state": "deprecated"
|
|
136
|
+
}, {
|
|
137
|
+
"path": "font.lineHeight.1",
|
|
138
|
+
"state": "deprecated"
|
|
139
|
+
}, {
|
|
140
|
+
"path": "font.lineHeight.100",
|
|
141
|
+
"state": "deprecated"
|
|
142
|
+
}, {
|
|
143
|
+
"path": "font.lineHeight.200",
|
|
144
|
+
"state": "deprecated"
|
|
145
|
+
}, {
|
|
146
|
+
"path": "font.lineHeight.300",
|
|
147
|
+
"state": "deprecated"
|
|
148
|
+
}, {
|
|
149
|
+
"path": "font.lineHeight.400",
|
|
150
|
+
"state": "deprecated"
|
|
151
|
+
}, {
|
|
152
|
+
"path": "font.lineHeight.500",
|
|
153
|
+
"state": "deprecated"
|
|
154
|
+
}, {
|
|
155
|
+
"path": "font.lineHeight.600",
|
|
156
|
+
"state": "deprecated"
|
|
79
157
|
}];
|
|
80
158
|
var _default = exports.default = replacementMapper;
|
|
@@ -16,7 +16,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
16
16
|
* This allows users to compose their themes and only use the tokens that are requested.
|
|
17
17
|
* When a new theme is created, the import should automatically be added to the map
|
|
18
18
|
*
|
|
19
|
-
* @codegen <<SignedSource::
|
|
19
|
+
* @codegen <<SignedSource::6c438d052bfcec2f42bfb917a01beef9>>
|
|
20
20
|
* @codegenCommand yarn build tokens
|
|
21
21
|
*/
|
|
22
22
|
|
|
@@ -27,6 +27,12 @@ var themeImportsMap = {
|
|
|
27
27
|
'./themes/atlassian-light'));
|
|
28
28
|
});
|
|
29
29
|
},
|
|
30
|
+
'light-future': function lightFuture() {
|
|
31
|
+
return Promise.resolve().then(function () {
|
|
32
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_atlassian-light-future" */
|
|
33
|
+
'./themes/atlassian-light-future'));
|
|
34
|
+
});
|
|
35
|
+
},
|
|
30
36
|
'light-increased-contrast': function lightIncreasedContrast() {
|
|
31
37
|
return Promise.resolve().then(function () {
|
|
32
38
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_atlassian-light-increased-contrast" */
|
|
@@ -39,6 +45,12 @@ var themeImportsMap = {
|
|
|
39
45
|
'./themes/atlassian-dark'));
|
|
40
46
|
});
|
|
41
47
|
},
|
|
48
|
+
'dark-future': function darkFuture() {
|
|
49
|
+
return Promise.resolve().then(function () {
|
|
50
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-future" */
|
|
51
|
+
'./themes/atlassian-dark-future'));
|
|
52
|
+
});
|
|
53
|
+
},
|
|
42
54
|
'dark-increased-contrast': function darkIncreasedContrast() {
|
|
43
55
|
return Promise.resolve().then(function () {
|
|
44
56
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-increased-contrast" */
|
|
@@ -87,12 +99,6 @@ var themeImportsMap = {
|
|
|
87
99
|
'./themes/atlassian-dark-new-input-border'));
|
|
88
100
|
});
|
|
89
101
|
},
|
|
90
|
-
'typography': function typography() {
|
|
91
|
-
return Promise.resolve().then(function () {
|
|
92
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_atlassian-typography" */
|
|
93
|
-
'./themes/atlassian-typography'));
|
|
94
|
-
});
|
|
95
|
-
},
|
|
96
102
|
'typography-minor3': function typographyMinor3() {
|
|
97
103
|
return Promise.resolve().then(function () {
|
|
98
104
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-minor3" */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
+
* @codegen <<SignedSource::d075fc63f2fcbc4c48f9221541c1d067>>
|
|
10
|
+
* @codegenCommand yarn build tokens
|
|
11
|
+
*/
|
|
12
|
+
var _default = exports.default = "\nhtml[data-color-mode=\"light\"][data-theme~=\"light:light\"],\nhtml[data-color-mode=\"dark\"][data-theme~=\"dark:light\"] {\n color-scheme: dark;\n --ds-background-disabled: #B3DF72;\n}\n";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
+
* @codegen <<SignedSource::b66f003f52ebad6767e95eaeb646085b>>
|
|
10
|
+
* @codegenCommand yarn build tokens
|
|
11
|
+
*/
|
|
12
|
+
var _default = exports.default = "\nhtml[data-color-mode=\"light\"][data-theme~=\"light:light\"],\nhtml[data-color-mode=\"dark\"][data-theme~=\"dark:light\"] {\n color-scheme: light;\n --ds-background-disabled: #28311B;\n}\n";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
+
* @codegen <<SignedSource::ab55c164418ef8725d43715108841276>>
|
|
10
|
+
* @codegenCommand yarn build tokens
|
|
11
|
+
*/
|
|
12
|
+
var tokens = [{
|
|
13
|
+
"attributes": {
|
|
14
|
+
"group": "paint",
|
|
15
|
+
"state": "active",
|
|
16
|
+
"introduced": "0.0.15",
|
|
17
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
18
|
+
},
|
|
19
|
+
"value": "#B3DF72",
|
|
20
|
+
"filePath": "schema/themes/atlassian-dark-future/color/background.tsx",
|
|
21
|
+
"isSource": true,
|
|
22
|
+
"original": {
|
|
23
|
+
"attributes": {
|
|
24
|
+
"group": "paint",
|
|
25
|
+
"state": "active",
|
|
26
|
+
"introduced": "0.0.15",
|
|
27
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
28
|
+
},
|
|
29
|
+
"value": "Lime300"
|
|
30
|
+
},
|
|
31
|
+
"name": "color.background.disabled",
|
|
32
|
+
"path": ["color", "background", "disabled"],
|
|
33
|
+
"cleanName": "color.background.disabled"
|
|
34
|
+
}];
|
|
35
|
+
var _default = exports.default = tokens;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
+
* @codegen <<SignedSource::940fbbe091341b7f246528cfc921961d>>
|
|
10
|
+
* @codegenCommand yarn build tokens
|
|
11
|
+
*/
|
|
12
|
+
var tokens = [{
|
|
13
|
+
"attributes": {
|
|
14
|
+
"group": "paint",
|
|
15
|
+
"state": "active",
|
|
16
|
+
"introduced": "0.0.15",
|
|
17
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
18
|
+
},
|
|
19
|
+
"value": "#28311B",
|
|
20
|
+
"filePath": "schema/themes/atlassian-light-future/color/background.tsx",
|
|
21
|
+
"isSource": true,
|
|
22
|
+
"original": {
|
|
23
|
+
"attributes": {
|
|
24
|
+
"group": "paint",
|
|
25
|
+
"state": "active",
|
|
26
|
+
"introduced": "0.0.15",
|
|
27
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
28
|
+
},
|
|
29
|
+
"value": "Lime1000"
|
|
30
|
+
},
|
|
31
|
+
"name": "color.background.disabled",
|
|
32
|
+
"path": ["color", "background", "disabled"],
|
|
33
|
+
"cleanName": "color.background.disabled"
|
|
34
|
+
}];
|
|
35
|
+
var _default = exports.default = tokens;
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var name = "@atlaskit/tokens";
|
|
11
|
-
var version = "1.
|
|
11
|
+
var version = "1.31.0";
|
|
12
12
|
/**
|
|
13
13
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
14
14
|
* resulting CSS Custom Property.
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var name = "@atlaskit/tokens";
|
|
12
|
-
var version = "1.
|
|
12
|
+
var version = "1.31.0";
|
|
13
13
|
/**
|
|
14
14
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
15
15
|
* This should be used to implement design decisions throughout your application.
|
package/dist/cjs/theme-config.js
CHANGED
|
@@ -44,7 +44,7 @@ var themeContrastModes = exports.themeContrastModes = ['more', 'no-preference',
|
|
|
44
44
|
*
|
|
45
45
|
* These ids must be kebab case
|
|
46
46
|
*/
|
|
47
|
-
var themeIds = exports.themeIds = ['light-increased-contrast', 'light', 'dark', 'dark-increased-contrast', 'legacy-light', 'legacy-dark', 'spacing', '
|
|
47
|
+
var themeIds = exports.themeIds = ['light-increased-contrast', 'light', 'light-future', 'dark', 'dark-future', 'dark-increased-contrast', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography-adg3', 'typography-minor3'];
|
|
48
48
|
/**
|
|
49
49
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
50
50
|
* Theme overrides are temporary and there may not be any defined at times.
|
|
@@ -79,6 +79,16 @@ var themeConfig = {
|
|
|
79
79
|
mode: 'light'
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
+
'atlassian-light-future': {
|
|
83
|
+
id: 'light-future',
|
|
84
|
+
displayName: 'Future Light Theme',
|
|
85
|
+
palette: 'defaultPalette',
|
|
86
|
+
attributes: {
|
|
87
|
+
type: 'color',
|
|
88
|
+
mode: 'light'
|
|
89
|
+
},
|
|
90
|
+
override: 'light'
|
|
91
|
+
},
|
|
82
92
|
'atlassian-light-increased-contrast': {
|
|
83
93
|
id: 'light-increased-contrast',
|
|
84
94
|
displayName: 'Light Theme (increased contrast)',
|
|
@@ -99,6 +109,16 @@ var themeConfig = {
|
|
|
99
109
|
mode: 'dark'
|
|
100
110
|
}
|
|
101
111
|
},
|
|
112
|
+
'atlassian-dark-future': {
|
|
113
|
+
id: 'dark-future',
|
|
114
|
+
displayName: 'Future Dark Theme',
|
|
115
|
+
palette: 'defaultPalette',
|
|
116
|
+
attributes: {
|
|
117
|
+
type: 'color',
|
|
118
|
+
mode: 'dark'
|
|
119
|
+
},
|
|
120
|
+
override: 'light'
|
|
121
|
+
},
|
|
102
122
|
'atlassian-dark-increased-contrast': {
|
|
103
123
|
id: 'dark-increased-contrast',
|
|
104
124
|
displayName: 'Dark Theme (increased contrast)',
|
|
@@ -172,14 +192,6 @@ var themeConfig = {
|
|
|
172
192
|
mode: 'dark'
|
|
173
193
|
}
|
|
174
194
|
},
|
|
175
|
-
'atlassian-typography': {
|
|
176
|
-
id: 'typography',
|
|
177
|
-
displayName: 'Atlassian Typography (Minor Second)',
|
|
178
|
-
palette: 'typographyPalette',
|
|
179
|
-
attributes: {
|
|
180
|
-
type: 'typography'
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
195
|
'atlassian-typography-minor3': {
|
|
184
196
|
id: 'typography-minor3',
|
|
185
197
|
displayName: 'Atlassian Typography (Minor Third)',
|
|
@@ -12,7 +12,7 @@
|
|
|
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::21692c7f910850540ebe583c659e4d10>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
|
|
@@ -52,6 +52,21 @@ const replacementMapper = [{
|
|
|
52
52
|
}, {
|
|
53
53
|
"path": "font.heading.xxsmall",
|
|
54
54
|
"state": "experimental"
|
|
55
|
+
}, {
|
|
56
|
+
"path": "font.letterSpacing.0",
|
|
57
|
+
"state": "deprecated"
|
|
58
|
+
}, {
|
|
59
|
+
"path": "font.letterSpacing.100",
|
|
60
|
+
"state": "deprecated"
|
|
61
|
+
}, {
|
|
62
|
+
"path": "font.letterSpacing.200",
|
|
63
|
+
"state": "deprecated"
|
|
64
|
+
}, {
|
|
65
|
+
"path": "font.letterSpacing.300",
|
|
66
|
+
"state": "deprecated"
|
|
67
|
+
}, {
|
|
68
|
+
"path": "font.letterSpacing.400",
|
|
69
|
+
"state": "deprecated"
|
|
55
70
|
}, {
|
|
56
71
|
"path": "font.ui.[default]",
|
|
57
72
|
"state": "experimental"
|
|
@@ -60,15 +75,78 @@ const replacementMapper = [{
|
|
|
60
75
|
"state": "experimental"
|
|
61
76
|
}, {
|
|
62
77
|
"path": "font.family.body",
|
|
63
|
-
"state": "
|
|
78
|
+
"state": "deprecated"
|
|
64
79
|
}, {
|
|
65
80
|
"path": "font.family.code",
|
|
66
|
-
"state": "
|
|
81
|
+
"state": "deprecated"
|
|
67
82
|
}, {
|
|
68
83
|
"path": "font.family.heading",
|
|
69
|
-
"state": "
|
|
84
|
+
"state": "deprecated"
|
|
85
|
+
}, {
|
|
86
|
+
"path": "font.family.monospace",
|
|
87
|
+
"state": "deprecated"
|
|
88
|
+
}, {
|
|
89
|
+
"path": "font.family.sans",
|
|
90
|
+
"state": "deprecated"
|
|
70
91
|
}, {
|
|
71
92
|
"path": "font.family.brand",
|
|
72
|
-
"state": "
|
|
93
|
+
"state": "deprecated"
|
|
94
|
+
}, {
|
|
95
|
+
"path": "font.size.050",
|
|
96
|
+
"state": "deprecated"
|
|
97
|
+
}, {
|
|
98
|
+
"path": "font.size.075",
|
|
99
|
+
"state": "deprecated"
|
|
100
|
+
}, {
|
|
101
|
+
"path": "font.size.100",
|
|
102
|
+
"state": "deprecated"
|
|
103
|
+
}, {
|
|
104
|
+
"path": "font.size.200",
|
|
105
|
+
"state": "deprecated"
|
|
106
|
+
}, {
|
|
107
|
+
"path": "font.size.300",
|
|
108
|
+
"state": "deprecated"
|
|
109
|
+
}, {
|
|
110
|
+
"path": "font.size.400",
|
|
111
|
+
"state": "deprecated"
|
|
112
|
+
}, {
|
|
113
|
+
"path": "font.size.500",
|
|
114
|
+
"state": "deprecated"
|
|
115
|
+
}, {
|
|
116
|
+
"path": "font.size.600",
|
|
117
|
+
"state": "deprecated"
|
|
118
|
+
}, {
|
|
119
|
+
"path": "font.weight.bold",
|
|
120
|
+
"state": "deprecated"
|
|
121
|
+
}, {
|
|
122
|
+
"path": "font.weight.medium",
|
|
123
|
+
"state": "deprecated"
|
|
124
|
+
}, {
|
|
125
|
+
"path": "font.weight.regular",
|
|
126
|
+
"state": "deprecated"
|
|
127
|
+
}, {
|
|
128
|
+
"path": "font.weight.semibold",
|
|
129
|
+
"state": "deprecated"
|
|
130
|
+
}, {
|
|
131
|
+
"path": "font.lineHeight.1",
|
|
132
|
+
"state": "deprecated"
|
|
133
|
+
}, {
|
|
134
|
+
"path": "font.lineHeight.100",
|
|
135
|
+
"state": "deprecated"
|
|
136
|
+
}, {
|
|
137
|
+
"path": "font.lineHeight.200",
|
|
138
|
+
"state": "deprecated"
|
|
139
|
+
}, {
|
|
140
|
+
"path": "font.lineHeight.300",
|
|
141
|
+
"state": "deprecated"
|
|
142
|
+
}, {
|
|
143
|
+
"path": "font.lineHeight.400",
|
|
144
|
+
"state": "deprecated"
|
|
145
|
+
}, {
|
|
146
|
+
"path": "font.lineHeight.500",
|
|
147
|
+
"state": "deprecated"
|
|
148
|
+
}, {
|
|
149
|
+
"path": "font.lineHeight.600",
|
|
150
|
+
"state": "deprecated"
|
|
73
151
|
}];
|
|
74
152
|
export default replacementMapper;
|
|
@@ -6,17 +6,21 @@
|
|
|
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::6c438d052bfcec2f42bfb917a01beef9>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
const themeImportsMap = {
|
|
14
14
|
'light': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-light" */
|
|
15
15
|
'./themes/atlassian-light'),
|
|
16
|
+
'light-future': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-light-future" */
|
|
17
|
+
'./themes/atlassian-light-future'),
|
|
16
18
|
'light-increased-contrast': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-light-increased-contrast" */
|
|
17
19
|
'./themes/atlassian-light-increased-contrast'),
|
|
18
20
|
'dark': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark" */
|
|
19
21
|
'./themes/atlassian-dark'),
|
|
22
|
+
'dark-future': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-future" */
|
|
23
|
+
'./themes/atlassian-dark-future'),
|
|
20
24
|
'dark-increased-contrast': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-increased-contrast" */
|
|
21
25
|
'./themes/atlassian-dark-increased-contrast'),
|
|
22
26
|
'legacy-light': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-legacy-light" */
|
|
@@ -33,8 +37,6 @@ const themeImportsMap = {
|
|
|
33
37
|
'./themes/atlassian-light-new-input-border'),
|
|
34
38
|
'dark-new-input-border': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-new-input-border" */
|
|
35
39
|
'./themes/atlassian-dark-new-input-border'),
|
|
36
|
-
'typography': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography" */
|
|
37
|
-
'./themes/atlassian-typography'),
|
|
38
40
|
'typography-minor3': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-minor3" */
|
|
39
41
|
'./themes/atlassian-typography-minor3')
|
|
40
42
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::d075fc63f2fcbc4c48f9221541c1d067>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export default `
|
|
7
|
+
html[data-color-mode="light"][data-theme~="light:light"],
|
|
8
|
+
html[data-color-mode="dark"][data-theme~="dark:light"] {
|
|
9
|
+
color-scheme: dark;
|
|
10
|
+
--ds-background-disabled: #B3DF72;
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b66f003f52ebad6767e95eaeb646085b>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export default `
|
|
7
|
+
html[data-color-mode="light"][data-theme~="light:light"],
|
|
8
|
+
html[data-color-mode="dark"][data-theme~="dark:light"] {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
--ds-background-disabled: #28311B;
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::ab55c164418ef8725d43715108841276>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
const tokens = [{
|
|
7
|
+
"attributes": {
|
|
8
|
+
"group": "paint",
|
|
9
|
+
"state": "active",
|
|
10
|
+
"introduced": "0.0.15",
|
|
11
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
12
|
+
},
|
|
13
|
+
"value": "#B3DF72",
|
|
14
|
+
"filePath": "schema/themes/atlassian-dark-future/color/background.tsx",
|
|
15
|
+
"isSource": true,
|
|
16
|
+
"original": {
|
|
17
|
+
"attributes": {
|
|
18
|
+
"group": "paint",
|
|
19
|
+
"state": "active",
|
|
20
|
+
"introduced": "0.0.15",
|
|
21
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
22
|
+
},
|
|
23
|
+
"value": "Lime300"
|
|
24
|
+
},
|
|
25
|
+
"name": "color.background.disabled",
|
|
26
|
+
"path": ["color", "background", "disabled"],
|
|
27
|
+
"cleanName": "color.background.disabled"
|
|
28
|
+
}];
|
|
29
|
+
export default tokens;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::940fbbe091341b7f246528cfc921961d>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
const tokens = [{
|
|
7
|
+
"attributes": {
|
|
8
|
+
"group": "paint",
|
|
9
|
+
"state": "active",
|
|
10
|
+
"introduced": "0.0.15",
|
|
11
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
12
|
+
},
|
|
13
|
+
"value": "#28311B",
|
|
14
|
+
"filePath": "schema/themes/atlassian-light-future/color/background.tsx",
|
|
15
|
+
"isSource": true,
|
|
16
|
+
"original": {
|
|
17
|
+
"attributes": {
|
|
18
|
+
"group": "paint",
|
|
19
|
+
"state": "active",
|
|
20
|
+
"introduced": "0.0.15",
|
|
21
|
+
"description": "Use for backgrounds of elements in a disabled state."
|
|
22
|
+
},
|
|
23
|
+
"value": "Lime1000"
|
|
24
|
+
},
|
|
25
|
+
"name": "color.background.disabled",
|
|
26
|
+
"path": ["color", "background", "disabled"],
|
|
27
|
+
"cleanName": "color.background.disabled"
|
|
28
|
+
}];
|
|
29
|
+
export default tokens;
|
|
@@ -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
|
+
const version = "1.31.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.
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -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
|
+
const version = "1.31.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.
|
|
@@ -38,7 +38,7 @@ export const themeContrastModes = ['more', 'no-preference', 'auto'];
|
|
|
38
38
|
*
|
|
39
39
|
* These ids must be kebab case
|
|
40
40
|
*/
|
|
41
|
-
export const themeIds = ['light-increased-contrast', 'light', 'dark', 'dark-increased-contrast', 'legacy-light', 'legacy-dark', 'spacing', '
|
|
41
|
+
export const themeIds = ['light-increased-contrast', 'light', 'light-future', 'dark', 'dark-future', 'dark-increased-contrast', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography-adg3', 'typography-minor3'];
|
|
42
42
|
/**
|
|
43
43
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
44
44
|
* Theme overrides are temporary and there may not be any defined at times.
|
|
@@ -73,6 +73,16 @@ const themeConfig = {
|
|
|
73
73
|
mode: 'light'
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
+
'atlassian-light-future': {
|
|
77
|
+
id: 'light-future',
|
|
78
|
+
displayName: 'Future Light Theme',
|
|
79
|
+
palette: 'defaultPalette',
|
|
80
|
+
attributes: {
|
|
81
|
+
type: 'color',
|
|
82
|
+
mode: 'light'
|
|
83
|
+
},
|
|
84
|
+
override: 'light'
|
|
85
|
+
},
|
|
76
86
|
'atlassian-light-increased-contrast': {
|
|
77
87
|
id: 'light-increased-contrast',
|
|
78
88
|
displayName: 'Light Theme (increased contrast)',
|
|
@@ -93,6 +103,16 @@ const themeConfig = {
|
|
|
93
103
|
mode: 'dark'
|
|
94
104
|
}
|
|
95
105
|
},
|
|
106
|
+
'atlassian-dark-future': {
|
|
107
|
+
id: 'dark-future',
|
|
108
|
+
displayName: 'Future Dark Theme',
|
|
109
|
+
palette: 'defaultPalette',
|
|
110
|
+
attributes: {
|
|
111
|
+
type: 'color',
|
|
112
|
+
mode: 'dark'
|
|
113
|
+
},
|
|
114
|
+
override: 'light'
|
|
115
|
+
},
|
|
96
116
|
'atlassian-dark-increased-contrast': {
|
|
97
117
|
id: 'dark-increased-contrast',
|
|
98
118
|
displayName: 'Dark Theme (increased contrast)',
|
|
@@ -166,14 +186,6 @@ const themeConfig = {
|
|
|
166
186
|
mode: 'dark'
|
|
167
187
|
}
|
|
168
188
|
},
|
|
169
|
-
'atlassian-typography': {
|
|
170
|
-
id: 'typography',
|
|
171
|
-
displayName: 'Atlassian Typography (Minor Second)',
|
|
172
|
-
palette: 'typographyPalette',
|
|
173
|
-
attributes: {
|
|
174
|
-
type: 'typography'
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
189
|
'atlassian-typography-minor3': {
|
|
178
190
|
id: 'typography-minor3',
|
|
179
191
|
displayName: 'Atlassian Typography (Minor Third)',
|