@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/artifacts/replacement-mapping.js +83 -5
  3. package/dist/cjs/artifacts/theme-import-map.js +13 -7
  4. package/dist/cjs/artifacts/themes/atlassian-dark-future.js +12 -0
  5. package/dist/cjs/artifacts/themes/atlassian-light-future.js +12 -0
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +35 -0
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +35 -0
  8. package/dist/cjs/get-token-value.js +1 -1
  9. package/dist/cjs/get-token.js +1 -1
  10. package/dist/cjs/theme-config.js +21 -9
  11. package/dist/es2019/artifacts/replacement-mapping.js +83 -5
  12. package/dist/es2019/artifacts/theme-import-map.js +5 -3
  13. package/dist/es2019/artifacts/themes/atlassian-dark-future.js +12 -0
  14. package/dist/es2019/artifacts/themes/atlassian-light-future.js +12 -0
  15. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +29 -0
  16. package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +29 -0
  17. package/dist/es2019/get-token-value.js +1 -1
  18. package/dist/es2019/get-token.js +1 -1
  19. package/dist/es2019/theme-config.js +21 -9
  20. package/dist/esm/artifacts/replacement-mapping.js +83 -5
  21. package/dist/esm/artifacts/theme-import-map.js +9 -5
  22. package/dist/esm/artifacts/themes/atlassian-dark-future.js +6 -0
  23. package/dist/esm/artifacts/themes/atlassian-light-future.js +6 -0
  24. package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +29 -0
  25. package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +29 -0
  26. package/dist/esm/get-token-value.js +1 -1
  27. package/dist/esm/get-token.js +1 -1
  28. package/dist/esm/theme-config.js +21 -9
  29. package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
  30. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  31. package/dist/types/artifacts/themes/atlassian-dark-future.d.ts +7 -0
  32. package/dist/types/artifacts/themes/atlassian-light-future.d.ts +7 -0
  33. package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +29 -0
  34. package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +29 -0
  35. package/dist/types/theme-config.d.ts +5 -5
  36. package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +1 -1
  37. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  38. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-future.d.ts +7 -0
  39. package/dist/types-ts4.5/artifacts/themes/atlassian-light-future.d.ts +7 -0
  40. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +29 -0
  41. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +29 -0
  42. package/dist/types-ts4.5/theme-config.d.ts +7 -5
  43. package/figma/atlassian-dark-future.json +15 -0
  44. package/figma/atlassian-light-future.json +15 -0
  45. package/package.json +1 -1
  46. package/dist/cjs/artifacts/themes/atlassian-typography.js +0 -12
  47. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +0 -662
  48. package/dist/es2019/artifacts/themes/atlassian-typography.js +0 -33
  49. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +0 -656
  50. package/dist/esm/artifacts/themes/atlassian-typography.js +0 -6
  51. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +0 -656
  52. package/dist/types/artifacts/themes/atlassian-typography.d.ts +0 -7
  53. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +0 -99
  54. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +0 -7
  55. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +0 -99
@@ -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::97a5e3ceb873d28e0118b88f5dc3e800>>
15
+ * @codegen <<SignedSource::21692c7f910850540ebe583c659e4d10>>
16
16
  * @codegenCommand yarn build tokens
17
17
  */
18
18
 
@@ -52,6 +52,21 @@ var 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 @@ var replacementMapper = [{
60
75
  "state": "experimental"
61
76
  }, {
62
77
  "path": "font.family.body",
63
- "state": "experimental"
78
+ "state": "deprecated"
64
79
  }, {
65
80
  "path": "font.family.code",
66
- "state": "experimental"
81
+ "state": "deprecated"
67
82
  }, {
68
83
  "path": "font.family.heading",
69
- "state": "experimental"
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": "experimental"
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,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::a21941d8f8cea58425b92ce9b8bfcd4e>>
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');
@@ -55,10 +63,6 @@ var themeImportsMap = {
55
63
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-new-input-border" */
56
64
  './themes/atlassian-dark-new-input-border');
57
65
  },
58
- 'typography': function typography() {
59
- return import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography" */
60
- './themes/atlassian-typography');
61
- },
62
66
  'typography-minor3': function typographyMinor3() {
63
67
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-minor3" */
64
68
  './themes/atlassian-typography-minor3');
@@ -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.29.2";
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.29.2";
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', 'typography', '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)',
@@ -166,14 +186,6 @@ var 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)',
@@ -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::97a5e3ceb873d28e0118b88f5dc3e800>>
15
+ * @codegen <<SignedSource::21692c7f910850540ebe583c659e4d10>>
16
16
  * @codegenCommand yarn build tokens
17
17
  */
18
18
  import tokens from './token-names';
@@ -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::a21941d8f8cea58425b92ce9b8bfcd4e>>
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' | '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", "typography", "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", "typography", "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'>;
@@ -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::97a5e3ceb873d28e0118b88f5dc3e800>>
15
+ * @codegen <<SignedSource::21692c7f910850540ebe583c659e4d10>>
16
16
  * @codegenCommand yarn build tokens
17
17
  */
18
18
  import tokens from './token-names';
@@ -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::a21941d8f8cea58425b92ce9b8bfcd4e>>
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' | '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,12 +53,13 @@ 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",
60
62
  "spacing",
61
- "typography",
62
63
  "shape",
63
64
  "typography-adg3",
64
65
  "typography-minor3"
@@ -76,12 +77,13 @@ export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
76
77
  export declare const themeIdsWithOverrides: readonly [
77
78
  "light-increased-contrast",
78
79
  "light",
80
+ "light-future",
79
81
  "dark",
82
+ "dark-future",
80
83
  "dark-increased-contrast",
81
84
  "legacy-light",
82
85
  "legacy-dark",
83
86
  "spacing",
84
- "typography",
85
87
  "shape",
86
88
  "typography-adg3",
87
89
  "typography-minor3",
@@ -152,8 +154,8 @@ export interface ThemeOptionsSchema {
152
154
  * ThemeState: the standard representation of an app's current theme and preferences
153
155
  */
154
156
  export interface ThemeState {
155
- light: Extract<ThemeIds, 'light' | 'dark' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
156
- 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'>;
157
159
  colorMode: ThemeColorModes;
158
160
  contrastMode: ThemeContrastModes;
159
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.29.2",
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/"