@atlaskit/tokens 1.30.0 → 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.
Files changed (40) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/artifacts/theme-import-map.js +13 -1
  3. package/dist/cjs/artifacts/themes/atlassian-dark-future.js +12 -0
  4. package/dist/cjs/artifacts/themes/atlassian-light-future.js +12 -0
  5. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +35 -0
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +35 -0
  7. package/dist/cjs/get-token-value.js +1 -1
  8. package/dist/cjs/get-token.js +1 -1
  9. package/dist/cjs/theme-config.js +21 -1
  10. package/dist/es2019/artifacts/theme-import-map.js +5 -1
  11. package/dist/es2019/artifacts/themes/atlassian-dark-future.js +12 -0
  12. package/dist/es2019/artifacts/themes/atlassian-light-future.js +12 -0
  13. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +29 -0
  14. package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +29 -0
  15. package/dist/es2019/get-token-value.js +1 -1
  16. package/dist/es2019/get-token.js +1 -1
  17. package/dist/es2019/theme-config.js +21 -1
  18. package/dist/esm/artifacts/theme-import-map.js +9 -1
  19. package/dist/esm/artifacts/themes/atlassian-dark-future.js +6 -0
  20. package/dist/esm/artifacts/themes/atlassian-light-future.js +6 -0
  21. package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +29 -0
  22. package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +29 -0
  23. package/dist/esm/get-token-value.js +1 -1
  24. package/dist/esm/get-token.js +1 -1
  25. package/dist/esm/theme-config.js +21 -1
  26. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  27. package/dist/types/artifacts/themes/atlassian-dark-future.d.ts +7 -0
  28. package/dist/types/artifacts/themes/atlassian-light-future.d.ts +7 -0
  29. package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +29 -0
  30. package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +29 -0
  31. package/dist/types/theme-config.d.ts +5 -5
  32. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  33. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-future.d.ts +7 -0
  34. package/dist/types-ts4.5/artifacts/themes/atlassian-light-future.d.ts +7 -0
  35. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +29 -0
  36. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +29 -0
  37. package/dist/types-ts4.5/theme-config.d.ts +7 -3
  38. package/figma/atlassian-dark-future.json +15 -0
  39. package/figma/atlassian-light-future.json +15 -0
  40. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 1.30.0
4
10
 
5
11
  ### Minor Changes
@@ -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::da31df0b9dea8584d4ae7e0ad251f3dd>>
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" */
@@ -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.30.0";
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.
@@ -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.30.0";
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.
@@ -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', 'shape', 'typography-adg3', 'typography-minor3'];
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)',
@@ -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::da31df0b9dea8584d4ae7e0ad251f3dd>>
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" */
@@ -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.30.0";
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.
@@ -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.30.0";
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', 'shape', 'typography-adg3', 'typography-minor3'];
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)',
@@ -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::da31df0b9dea8584d4ae7e0ad251f3dd>>
9
+ * @codegen <<SignedSource::6c438d052bfcec2f42bfb917a01beef9>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
 
@@ -15,6 +15,10 @@ var themeImportsMap = {
15
15
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-light" */
16
16
  './themes/atlassian-light');
17
17
  },
18
+ 'light-future': function lightFuture() {
19
+ return import( /* webpackChunkName: "@atlaskit-internal_atlassian-light-future" */
20
+ './themes/atlassian-light-future');
21
+ },
18
22
  'light-increased-contrast': function lightIncreasedContrast() {
19
23
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-light-increased-contrast" */
20
24
  './themes/atlassian-light-increased-contrast');
@@ -23,6 +27,10 @@ var themeImportsMap = {
23
27
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark" */
24
28
  './themes/atlassian-dark');
25
29
  },
30
+ 'dark-future': function darkFuture() {
31
+ return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-future" */
32
+ './themes/atlassian-dark-future');
33
+ },
26
34
  'dark-increased-contrast': function darkIncreasedContrast() {
27
35
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-increased-contrast" */
28
36
  './themes/atlassian-dark-increased-contrast');
@@ -0,0 +1,6 @@
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 "\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,6 @@
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 "\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,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
+ var 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
+ var 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
  var name = "@atlaskit/tokens";
4
- var version = "1.30.0";
4
+ var 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.
@@ -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
  var name = "@atlaskit/tokens";
5
- var version = "1.30.0";
5
+ var 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 var themeContrastModes = ['more', 'no-preference', 'auto'];
38
38
  *
39
39
  * These ids must be kebab case
40
40
  */
41
- export var themeIds = ['light-increased-contrast', 'light', 'dark', 'dark-increased-contrast', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography-adg3', 'typography-minor3'];
41
+ export var 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 @@ var 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 @@ var 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)',
@@ -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::da31df0b9dea8584d4ae7e0ad251f3dd>>
9
+ * @codegen <<SignedSource::6c438d052bfcec2f42bfb917a01beef9>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  import { ThemeIds, ThemeOverrideIds } from '../theme-config';
@@ -0,0 +1,7 @@
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
+ declare const _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";
7
+ export default _default;
@@ -0,0 +1,7 @@
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
+ declare const _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";
7
+ export default _default;
@@ -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
+ declare const tokens: {
7
+ attributes: {
8
+ group: string;
9
+ state: string;
10
+ introduced: string;
11
+ description: string;
12
+ };
13
+ value: string;
14
+ filePath: string;
15
+ isSource: boolean;
16
+ original: {
17
+ attributes: {
18
+ group: string;
19
+ state: string;
20
+ introduced: string;
21
+ description: string;
22
+ };
23
+ value: string;
24
+ };
25
+ name: string;
26
+ path: string[];
27
+ cleanName: string;
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
+ declare const tokens: {
7
+ attributes: {
8
+ group: string;
9
+ state: string;
10
+ introduced: string;
11
+ description: string;
12
+ };
13
+ value: string;
14
+ filePath: string;
15
+ isSource: boolean;
16
+ original: {
17
+ attributes: {
18
+ group: string;
19
+ state: string;
20
+ introduced: string;
21
+ description: string;
22
+ };
23
+ value: string;
24
+ };
25
+ name: string;
26
+ path: string[];
27
+ cleanName: string;
28
+ }[];
29
+ export default tokens;
@@ -6,7 +6,7 @@
6
6
  * These ids are what the actual theme files/folders are called.
7
7
  * style-dictionary will attempt to locate these in the file-system.
8
8
  */
9
- export type Themes = 'atlassian-light' | 'atlassian-light-increased-contrast' | 'atlassian-dark' | 'atlassian-dark-increased-contrast' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-minor3' | 'atlassian-typography-adg3';
9
+ export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-minor3' | 'atlassian-typography-adg3';
10
10
  export type ThemeFileNames = Themes;
11
11
  /**
12
12
  * ThemeOverrides: The internal identifier of a theme override. Which are themes that contain
@@ -42,7 +42,7 @@ export type DataContrastModes = 'more' | 'no-preference' | 'auto';
42
42
  *
43
43
  * These ids must be kebab case
44
44
  */
45
- export declare const themeIds: readonly ["light-increased-contrast", "light", "dark", "dark-increased-contrast", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-minor3"];
45
+ export declare const themeIds: readonly ["light-increased-contrast", "light", "light-future", "dark", "dark-future", "dark-increased-contrast", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-minor3"];
46
46
  export type ThemeIds = (typeof themeIds)[number];
47
47
  /**
48
48
  * Theme override ids: the equivalent of themeIds for theme overrides.
@@ -50,7 +50,7 @@ export type ThemeIds = (typeof themeIds)[number];
50
50
  */
51
51
  export declare const themeOverrideIds: readonly ["light-new-input-border", "dark-new-input-border"];
52
52
  export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
53
- export declare const themeIdsWithOverrides: readonly ["light-increased-contrast", "light", "dark", "dark-increased-contrast", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border"];
53
+ export declare const themeIdsWithOverrides: readonly ["light-increased-contrast", "light", "light-future", "dark", "dark-future", "dark-increased-contrast", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border"];
54
54
  export type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
55
55
  /**
56
56
  * Theme to use a base. This will create the theme as
@@ -115,8 +115,8 @@ export interface ThemeOptionsSchema {
115
115
  * ThemeState: the standard representation of an app's current theme and preferences
116
116
  */
117
117
  export interface ThemeState {
118
- light: Extract<ThemeIds, 'light' | 'dark' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
119
- dark: Extract<ThemeIds, 'light' | 'dark' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
118
+ light: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
119
+ dark: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
120
120
  colorMode: ThemeColorModes;
121
121
  contrastMode: ThemeContrastModes;
122
122
  shape?: Extract<ThemeIds, 'shape'>;
@@ -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::da31df0b9dea8584d4ae7e0ad251f3dd>>
9
+ * @codegen <<SignedSource::6c438d052bfcec2f42bfb917a01beef9>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  import { ThemeIds, ThemeOverrideIds } from '../theme-config';
@@ -0,0 +1,7 @@
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
+ declare const _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";
7
+ export default _default;
@@ -0,0 +1,7 @@
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
+ declare const _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";
7
+ export default _default;
@@ -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
+ declare const tokens: {
7
+ attributes: {
8
+ group: string;
9
+ state: string;
10
+ introduced: string;
11
+ description: string;
12
+ };
13
+ value: string;
14
+ filePath: string;
15
+ isSource: boolean;
16
+ original: {
17
+ attributes: {
18
+ group: string;
19
+ state: string;
20
+ introduced: string;
21
+ description: string;
22
+ };
23
+ value: string;
24
+ };
25
+ name: string;
26
+ path: string[];
27
+ cleanName: string;
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
+ declare const tokens: {
7
+ attributes: {
8
+ group: string;
9
+ state: string;
10
+ introduced: string;
11
+ description: string;
12
+ };
13
+ value: string;
14
+ filePath: string;
15
+ isSource: boolean;
16
+ original: {
17
+ attributes: {
18
+ group: string;
19
+ state: string;
20
+ introduced: string;
21
+ description: string;
22
+ };
23
+ value: string;
24
+ };
25
+ name: string;
26
+ path: string[];
27
+ cleanName: string;
28
+ }[];
29
+ export default tokens;
@@ -6,7 +6,7 @@
6
6
  * These ids are what the actual theme files/folders are called.
7
7
  * style-dictionary will attempt to locate these in the file-system.
8
8
  */
9
- export type Themes = 'atlassian-light' | 'atlassian-light-increased-contrast' | 'atlassian-dark' | 'atlassian-dark-increased-contrast' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-minor3' | 'atlassian-typography-adg3';
9
+ export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-minor3' | 'atlassian-typography-adg3';
10
10
  export type ThemeFileNames = Themes;
11
11
  /**
12
12
  * ThemeOverrides: The internal identifier of a theme override. Which are themes that contain
@@ -53,7 +53,9 @@ export type DataContrastModes = 'more' | 'no-preference' | 'auto';
53
53
  export declare const themeIds: readonly [
54
54
  "light-increased-contrast",
55
55
  "light",
56
+ "light-future",
56
57
  "dark",
58
+ "dark-future",
57
59
  "dark-increased-contrast",
58
60
  "legacy-light",
59
61
  "legacy-dark",
@@ -75,7 +77,9 @@ export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
75
77
  export declare const themeIdsWithOverrides: readonly [
76
78
  "light-increased-contrast",
77
79
  "light",
80
+ "light-future",
78
81
  "dark",
82
+ "dark-future",
79
83
  "dark-increased-contrast",
80
84
  "legacy-light",
81
85
  "legacy-dark",
@@ -150,8 +154,8 @@ export interface ThemeOptionsSchema {
150
154
  * ThemeState: the standard representation of an app's current theme and preferences
151
155
  */
152
156
  export interface ThemeState {
153
- light: Extract<ThemeIds, 'light' | 'dark' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
154
- dark: Extract<ThemeIds, 'light' | 'dark' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
157
+ light: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
158
+ dark: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
155
159
  colorMode: ThemeColorModes;
156
160
  contrastMode: ThemeContrastModes;
157
161
  shape?: Extract<ThemeIds, 'shape'>;
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "Dark future",
3
+ "tokens": {
4
+ "Dark future/color.background.disabled": {
5
+ "attributes": {
6
+ "group": "paint",
7
+ "state": "active",
8
+ "introduced": "0.0.15",
9
+ "description": "Use for backgrounds of elements in a disabled state."
10
+ },
11
+ "value": "#B3DF72"
12
+ }
13
+ },
14
+ "renameMap": {}
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "Light future",
3
+ "tokens": {
4
+ "Light future/color.background.disabled": {
5
+ "attributes": {
6
+ "group": "paint",
7
+ "state": "active",
8
+ "introduced": "0.0.15",
9
+ "description": "Use for backgrounds of elements in a disabled state."
10
+ },
11
+ "value": "#28311B"
12
+ }
13
+ },
14
+ "renameMap": {}
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.30.0",
3
+ "version": "1.31.0",
4
4
  "description": "Design tokens are the single source of truth to name and store design decisions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"