@atlaskit/tokens 1.30.0 → 1.32.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 (46) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/css-type-schema/package.json +17 -0
  3. package/dist/cjs/artifacts/theme-import-map.js +13 -1
  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/entry-points/css-type-schema.codegen.js +5 -0
  9. package/dist/cjs/get-token-value.js +1 -1
  10. package/dist/cjs/get-token.js +1 -1
  11. package/dist/cjs/theme-config.js +21 -1
  12. package/dist/es2019/artifacts/theme-import-map.js +5 -1
  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/entry-points/css-type-schema.codegen.js +1 -0
  18. package/dist/es2019/get-token-value.js +1 -1
  19. package/dist/es2019/get-token.js +1 -1
  20. package/dist/es2019/theme-config.js +21 -1
  21. package/dist/esm/artifacts/theme-import-map.js +9 -1
  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/entry-points/css-type-schema.codegen.js +1 -0
  27. package/dist/esm/get-token-value.js +1 -1
  28. package/dist/esm/get-token.js +1 -1
  29. package/dist/esm/theme-config.js +21 -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/entry-points/css-type-schema.codegen.d.ts +145 -0
  36. package/dist/types/theme-config.d.ts +5 -5
  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/entry-points/css-type-schema.codegen.d.ts +145 -0
  43. package/dist/types-ts4.5/theme-config.d.ts +7 -3
  44. package/figma/atlassian-dark-future.json +15 -0
  45. package/figma/atlassian-light-future.json +15 -0
  46. package/package.json +3 -2
@@ -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;
@@ -0,0 +1,145 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Strict design token based typedef representing a subset of safe CSS properties.
5
+ *
6
+ * @codegen <<SignedSource::f2fc11bdb22ab9a7a28b7be9c69bac3d>>
7
+ * @codegenCommand yarn build tokens
8
+ */
9
+ export type BackgroundColor = 'var(--ds-background-accent-lime-subtlest)' | 'var(--ds-background-accent-lime-subtler)' | 'var(--ds-background-accent-lime-subtle)' | 'var(--ds-background-accent-lime-bolder)' | 'var(--ds-background-accent-red-subtlest)' | 'var(--ds-background-accent-red-subtler)' | 'var(--ds-background-accent-red-subtle)' | 'var(--ds-background-accent-red-bolder)' | 'var(--ds-background-accent-orange-subtlest)' | 'var(--ds-background-accent-orange-subtler)' | 'var(--ds-background-accent-orange-subtle)' | 'var(--ds-background-accent-orange-bolder)' | 'var(--ds-background-accent-yellow-subtlest)' | 'var(--ds-background-accent-yellow-subtler)' | 'var(--ds-background-accent-yellow-subtle)' | 'var(--ds-background-accent-yellow-bolder)' | 'var(--ds-background-accent-green-subtlest)' | 'var(--ds-background-accent-green-subtler)' | 'var(--ds-background-accent-green-subtle)' | 'var(--ds-background-accent-green-bolder)' | 'var(--ds-background-accent-teal-subtlest)' | 'var(--ds-background-accent-teal-subtler)' | 'var(--ds-background-accent-teal-subtle)' | 'var(--ds-background-accent-teal-bolder)' | 'var(--ds-background-accent-blue-subtlest)' | 'var(--ds-background-accent-blue-subtler)' | 'var(--ds-background-accent-blue-subtle)' | 'var(--ds-background-accent-blue-bolder)' | 'var(--ds-background-accent-purple-subtlest)' | 'var(--ds-background-accent-purple-subtler)' | 'var(--ds-background-accent-purple-subtle)' | 'var(--ds-background-accent-purple-bolder)' | 'var(--ds-background-accent-magenta-subtlest)' | 'var(--ds-background-accent-magenta-subtler)' | 'var(--ds-background-accent-magenta-subtle)' | 'var(--ds-background-accent-magenta-bolder)' | 'var(--ds-background-accent-gray-subtlest)' | 'var(--ds-background-accent-gray-subtler)' | 'var(--ds-background-accent-gray-subtle)' | 'var(--ds-background-accent-gray-bolder)' | 'var(--ds-background-disabled)' | 'var(--ds-background-input)' | 'var(--ds-background-inverse-subtle)' | 'var(--ds-background-neutral)' | 'var(--ds-background-neutral-subtle)' | 'var(--ds-background-neutral-bold)' | 'var(--ds-background-selected)' | 'var(--ds-background-selected-bold)' | 'var(--ds-background-brand-subtlest)' | 'var(--ds-background-brand-bold)' | 'var(--ds-background-brand-boldest)' | 'var(--ds-background-danger)' | 'var(--ds-background-danger-bold)' | 'var(--ds-background-warning)' | 'var(--ds-background-warning-bold)' | 'var(--ds-background-success)' | 'var(--ds-background-success-bold)' | 'var(--ds-background-discovery)' | 'var(--ds-background-discovery-bold)' | 'var(--ds-background-information)' | 'var(--ds-background-information-bold)' | 'var(--ds-surface)' | 'var(--ds-surface-overlay)' | 'var(--ds-surface-raised)' | 'var(--ds-surface-sunken)' | 'var(--ds-elevation-surface-current)';
10
+ export type BackgroundColorHovered = 'var(--ds-background-accent-lime-subtlest-hovered)' | 'var(--ds-background-accent-lime-subtler-hovered)' | 'var(--ds-background-accent-lime-subtle-hovered)' | 'var(--ds-background-accent-lime-bolder-hovered)' | 'var(--ds-background-accent-red-subtlest-hovered)' | 'var(--ds-background-accent-red-subtler-hovered)' | 'var(--ds-background-accent-red-subtle-hovered)' | 'var(--ds-background-accent-red-bolder-hovered)' | 'var(--ds-background-accent-orange-subtlest-hovered)' | 'var(--ds-background-accent-orange-subtler-hovered)' | 'var(--ds-background-accent-orange-subtle-hovered)' | 'var(--ds-background-accent-orange-bolder-hovered)' | 'var(--ds-background-accent-yellow-subtlest-hovered)' | 'var(--ds-background-accent-yellow-subtler-hovered)' | 'var(--ds-background-accent-yellow-subtle-hovered)' | 'var(--ds-background-accent-yellow-bolder-hovered)' | 'var(--ds-background-accent-green-subtlest-hovered)' | 'var(--ds-background-accent-green-subtler-hovered)' | 'var(--ds-background-accent-green-subtle-hovered)' | 'var(--ds-background-accent-green-bolder-hovered)' | 'var(--ds-background-accent-teal-subtlest-hovered)' | 'var(--ds-background-accent-teal-subtler-hovered)' | 'var(--ds-background-accent-teal-subtle-hovered)' | 'var(--ds-background-accent-teal-bolder-hovered)' | 'var(--ds-background-accent-blue-subtlest-hovered)' | 'var(--ds-background-accent-blue-subtler-hovered)' | 'var(--ds-background-accent-blue-subtle-hovered)' | 'var(--ds-background-accent-blue-bolder-hovered)' | 'var(--ds-background-accent-purple-subtlest-hovered)' | 'var(--ds-background-accent-purple-subtler-hovered)' | 'var(--ds-background-accent-purple-subtle-hovered)' | 'var(--ds-background-accent-purple-bolder-hovered)' | 'var(--ds-background-accent-magenta-subtlest-hovered)' | 'var(--ds-background-accent-magenta-subtler-hovered)' | 'var(--ds-background-accent-magenta-subtle-hovered)' | 'var(--ds-background-accent-magenta-bolder-hovered)' | 'var(--ds-background-accent-gray-subtlest-hovered)' | 'var(--ds-background-accent-gray-subtler-hovered)' | 'var(--ds-background-accent-gray-subtle-hovered)' | 'var(--ds-background-accent-gray-bolder-hovered)' | 'var(--ds-background-input-hovered)' | 'var(--ds-background-inverse-subtle-hovered)' | 'var(--ds-background-neutral-hovered)' | 'var(--ds-background-neutral-subtle-hovered)' | 'var(--ds-background-neutral-bold-hovered)' | 'var(--ds-background-selected-hovered)' | 'var(--ds-background-selected-bold-hovered)' | 'var(--ds-background-brand-subtlest-hovered)' | 'var(--ds-background-brand-bold-hovered)' | 'var(--ds-background-brand-boldest-hovered)' | 'var(--ds-background-danger-hovered)' | 'var(--ds-background-danger-bold-hovered)' | 'var(--ds-background-warning-hovered)' | 'var(--ds-background-warning-bold-hovered)' | 'var(--ds-background-success-hovered)' | 'var(--ds-background-success-bold-hovered)' | 'var(--ds-background-discovery-hovered)' | 'var(--ds-background-discovery-bold-hovered)' | 'var(--ds-background-information-hovered)' | 'var(--ds-background-information-bold-hovered)' | 'var(--ds-surface-hovered)' | 'var(--ds-surface-overlay-hovered)' | 'var(--ds-surface-raised-hovered)';
11
+ export type BackgroundColorPressed = 'var(--ds-background-accent-lime-subtlest-pressed)' | 'var(--ds-background-accent-lime-subtler-pressed)' | 'var(--ds-background-accent-lime-subtle-pressed)' | 'var(--ds-background-accent-lime-bolder-pressed)' | 'var(--ds-background-accent-red-subtlest-pressed)' | 'var(--ds-background-accent-red-subtler-pressed)' | 'var(--ds-background-accent-red-subtle-pressed)' | 'var(--ds-background-accent-red-bolder-pressed)' | 'var(--ds-background-accent-orange-subtlest-pressed)' | 'var(--ds-background-accent-orange-subtler-pressed)' | 'var(--ds-background-accent-orange-subtle-pressed)' | 'var(--ds-background-accent-orange-bolder-pressed)' | 'var(--ds-background-accent-yellow-subtlest-pressed)' | 'var(--ds-background-accent-yellow-subtler-pressed)' | 'var(--ds-background-accent-yellow-subtle-pressed)' | 'var(--ds-background-accent-yellow-bolder-pressed)' | 'var(--ds-background-accent-green-subtlest-pressed)' | 'var(--ds-background-accent-green-subtler-pressed)' | 'var(--ds-background-accent-green-subtle-pressed)' | 'var(--ds-background-accent-green-bolder-pressed)' | 'var(--ds-background-accent-teal-subtlest-pressed)' | 'var(--ds-background-accent-teal-subtler-pressed)' | 'var(--ds-background-accent-teal-subtle-pressed)' | 'var(--ds-background-accent-teal-bolder-pressed)' | 'var(--ds-background-accent-blue-subtlest-pressed)' | 'var(--ds-background-accent-blue-subtler-pressed)' | 'var(--ds-background-accent-blue-subtle-pressed)' | 'var(--ds-background-accent-blue-bolder-pressed)' | 'var(--ds-background-accent-purple-subtlest-pressed)' | 'var(--ds-background-accent-purple-subtler-pressed)' | 'var(--ds-background-accent-purple-subtle-pressed)' | 'var(--ds-background-accent-purple-bolder-pressed)' | 'var(--ds-background-accent-magenta-subtlest-pressed)' | 'var(--ds-background-accent-magenta-subtler-pressed)' | 'var(--ds-background-accent-magenta-subtle-pressed)' | 'var(--ds-background-accent-magenta-bolder-pressed)' | 'var(--ds-background-accent-gray-subtlest-pressed)' | 'var(--ds-background-accent-gray-subtler-pressed)' | 'var(--ds-background-accent-gray-subtle-pressed)' | 'var(--ds-background-accent-gray-bolder-pressed)' | 'var(--ds-background-input-pressed)' | 'var(--ds-background-inverse-subtle-pressed)' | 'var(--ds-background-neutral-pressed)' | 'var(--ds-background-neutral-subtle-pressed)' | 'var(--ds-background-neutral-bold-pressed)' | 'var(--ds-background-selected-pressed)' | 'var(--ds-background-selected-bold-pressed)' | 'var(--ds-background-brand-subtlest-pressed)' | 'var(--ds-background-brand-bold-pressed)' | 'var(--ds-background-brand-boldest-pressed)' | 'var(--ds-background-danger-pressed)' | 'var(--ds-background-danger-bold-pressed)' | 'var(--ds-background-warning-pressed)' | 'var(--ds-background-warning-bold-pressed)' | 'var(--ds-background-success-pressed)' | 'var(--ds-background-success-bold-pressed)' | 'var(--ds-background-discovery-pressed)' | 'var(--ds-background-discovery-bold-pressed)' | 'var(--ds-background-information-pressed)' | 'var(--ds-background-information-bold-pressed)' | 'var(--ds-surface-pressed)' | 'var(--ds-surface-overlay-pressed)' | 'var(--ds-surface-raised-pressed)';
12
+ export type Dimension = 'var(--ds-font-size-050)' | 'var(--ds-font-size-075)' | 'var(--ds-font-size-100)' | 'var(--ds-font-size-200)' | 'var(--ds-font-size-300)' | 'var(--ds-font-size-400)' | 'var(--ds-font-size-500)' | 'var(--ds-font-size-600)';
13
+ export type BorderColor = 'var(--ds-border)' | 'var(--ds-border-accent-lime)' | 'var(--ds-border-accent-red)' | 'var(--ds-border-accent-orange)' | 'var(--ds-border-accent-yellow)' | 'var(--ds-border-accent-green)' | 'var(--ds-border-accent-teal)' | 'var(--ds-border-accent-blue)' | 'var(--ds-border-accent-purple)' | 'var(--ds-border-accent-magenta)' | 'var(--ds-border-accent-gray)' | 'var(--ds-border-disabled)' | 'var(--ds-border-focused)' | 'var(--ds-border-input)' | 'var(--ds-border-inverse)' | 'var(--ds-border-selected)' | 'var(--ds-border-brand)' | 'var(--ds-border-danger)' | 'var(--ds-border-warning)' | 'var(--ds-border-success)' | 'var(--ds-border-discovery)' | 'var(--ds-border-information)' | 'var(--ds-border-bold)';
14
+ export type BorderWidth = 'var(--ds-border-width)' | 'var(--ds-border-width-indicator)' | 'var(--ds-border-width-outline)';
15
+ export type BorderRadius = 'var(--ds-border-radius-050)' | 'var(--ds-border-radius)' | 'var(--ds-border-radius-100)' | 'var(--ds-border-radius-200)' | 'var(--ds-border-radius-300)' | 'var(--ds-border-radius-400)' | 'var(--ds-border-radius-circle)';
16
+ export type Space = 'var(--ds-space-0)' | 'var(--ds-space-025)' | 'var(--ds-space-050)' | 'var(--ds-space-075)' | 'var(--ds-space-100)' | 'var(--ds-space-150)' | 'var(--ds-space-200)' | 'var(--ds-space-250)' | 'var(--ds-space-300)' | 'var(--ds-space-400)' | 'var(--ds-space-500)' | 'var(--ds-space-600)' | 'var(--ds-space-800)' | 'var(--ds-space-1000)' | 'var(--ds-space-negative-025)' | 'var(--ds-space-negative-050)' | 'var(--ds-space-negative-075)' | 'var(--ds-space-negative-100)' | 'var(--ds-space-negative-150)' | 'var(--ds-space-negative-200)' | 'var(--ds-space-negative-250)' | 'var(--ds-space-negative-300)' | 'var(--ds-space-negative-400)';
17
+ export type Shadow = 'var(--ds-shadow-overflow)' | 'var(--ds-shadow-overflow-perimeter)' | 'var(--ds-shadow-overflow-spread)' | 'var(--ds-shadow-overlay)' | 'var(--ds-shadow-raised)';
18
+ export type TextColor = 'var(--ds-text)' | 'var(--ds-text-accent-lime)' | 'var(--ds-text-accent-lime-bolder)' | 'var(--ds-text-accent-red)' | 'var(--ds-text-accent-red-bolder)' | 'var(--ds-text-accent-orange)' | 'var(--ds-text-accent-orange-bolder)' | 'var(--ds-text-accent-yellow)' | 'var(--ds-text-accent-yellow-bolder)' | 'var(--ds-text-accent-green)' | 'var(--ds-text-accent-green-bolder)' | 'var(--ds-text-accent-teal)' | 'var(--ds-text-accent-teal-bolder)' | 'var(--ds-text-accent-blue)' | 'var(--ds-text-accent-blue-bolder)' | 'var(--ds-text-accent-purple)' | 'var(--ds-text-accent-purple-bolder)' | 'var(--ds-text-accent-magenta)' | 'var(--ds-text-accent-magenta-bolder)' | 'var(--ds-text-accent-gray)' | 'var(--ds-text-accent-gray-bolder)' | 'var(--ds-text-disabled)' | 'var(--ds-text-inverse)' | 'var(--ds-text-selected)' | 'var(--ds-text-brand)' | 'var(--ds-text-danger)' | 'var(--ds-text-warning)' | 'var(--ds-text-warning-inverse)' | 'var(--ds-text-success)' | 'var(--ds-text-discovery)' | 'var(--ds-text-information)' | 'var(--ds-text-subtlest)' | 'var(--ds-text-subtle)' | 'var(--ds-link)' | 'var(--ds-link-pressed)' | 'var(--ds-link-visited)';
19
+ export type Opacity = 'var(--ds-opacity-disabled)' | 'var(--ds-opacity-loading)';
20
+ export interface TokenizedProps {
21
+ backgroundColor: BackgroundColor;
22
+ blockSize: Dimension;
23
+ borderBlockColor: BorderColor;
24
+ borderBlockEndColor: BorderColor;
25
+ borderBlockEndWidth: BorderWidth;
26
+ borderBlockStartColor: BorderColor;
27
+ borderBlockStartWidth: BorderWidth;
28
+ borderBlockWidth: BorderWidth;
29
+ borderBottomColor: BorderColor;
30
+ borderBottomLeftRadius: BorderRadius;
31
+ borderBottomRightRadius: BorderRadius;
32
+ borderBottomWidth: BorderWidth;
33
+ borderColor: BorderColor;
34
+ borderEndEndRadius: BorderRadius;
35
+ borderEndStartRadius: BorderRadius;
36
+ borderInlineColor: BorderColor;
37
+ borderInlineEndColor: BorderColor;
38
+ borderInlineEndWidth: BorderWidth;
39
+ borderInlineStartColor: BorderColor;
40
+ borderInlineStartWidth: BorderWidth;
41
+ borderInlineWidth: BorderWidth;
42
+ borderLeftColor: BorderColor;
43
+ borderLeftWidth: BorderWidth;
44
+ borderRadius: BorderRadius;
45
+ borderRightColor: BorderColor;
46
+ borderRightWidth: BorderWidth;
47
+ borderStartEndRadius: BorderRadius;
48
+ borderStartStartRadius: BorderRadius;
49
+ borderTopColor: BorderColor;
50
+ borderTopLeftRadius: BorderRadius;
51
+ borderTopRightRadius: BorderRadius;
52
+ borderTopWidth: BorderWidth;
53
+ borderWidth: BorderWidth;
54
+ bottom: Space;
55
+ boxShadow: Shadow;
56
+ color: TextColor;
57
+ columnGap: Space;
58
+ gap: Space;
59
+ height: Dimension;
60
+ inlineSize: Dimension;
61
+ inset: Space;
62
+ insetBlock: Space;
63
+ insetBlockEnd: Space;
64
+ insetBlockStart: Space;
65
+ insetInline: Space;
66
+ insetInlineEnd: Space;
67
+ insetInlineStart: Space;
68
+ left: Space;
69
+ margin: Space;
70
+ marginBlock: Space;
71
+ marginBlockEnd: Space;
72
+ marginBlockStart: Space;
73
+ marginBottom: Space;
74
+ marginInline: Space;
75
+ marginInlineEnd: Space;
76
+ marginInlineStart: Space;
77
+ marginLeft: Space;
78
+ marginRight: Space;
79
+ marginTop: Space;
80
+ maxBlockSize: Dimension;
81
+ maxHeight: Dimension;
82
+ maxInlineSize: Dimension;
83
+ maxWidth: Dimension;
84
+ minBlockSize: Dimension;
85
+ minHeight: Dimension;
86
+ minInlineSize: Dimension;
87
+ minWidth: Dimension;
88
+ opacity: Opacity;
89
+ outlineColor: BorderColor;
90
+ outlineOffset: Space;
91
+ outlineWidth: BorderWidth;
92
+ padding: Space;
93
+ paddingBlock: Space;
94
+ paddingBlockEnd: Space;
95
+ paddingBlockStart: Space;
96
+ paddingBottom: Space;
97
+ paddingInline: Space;
98
+ paddingInlineEnd: Space;
99
+ paddingInlineStart: Space;
100
+ paddingLeft: Space;
101
+ paddingRight: Space;
102
+ paddingTop: Space;
103
+ right: Space;
104
+ rowGap: Space;
105
+ top: Space;
106
+ width: Dimension;
107
+ zIndex: number;
108
+ }
109
+ export interface TokenizedPropsWithHovered extends Omit<TokenizedProps, 'backgroundColor'> {
110
+ backgroundColor: BackgroundColorHovered;
111
+ }
112
+ export interface TokenizedPropsWithPressed extends Omit<TokenizedProps, 'backgroundColor'> {
113
+ backgroundColor: BackgroundColorPressed;
114
+ }
115
+ export interface DesignTokenStyles extends TokenizedProps {
116
+ '&::after': TokenizedProps;
117
+ '&::before': TokenizedProps;
118
+ '&:active': TokenizedPropsWithPressed;
119
+ '&:any-link': TokenizedProps;
120
+ '&:autofill': TokenizedProps;
121
+ '&:blank': TokenizedProps;
122
+ '&:checked': TokenizedProps;
123
+ '&:default': TokenizedProps;
124
+ '&:disabled': TokenizedProps;
125
+ '&:enabled': TokenizedProps;
126
+ '&:focus-visible': TokenizedProps;
127
+ '&:focus-within': TokenizedProps;
128
+ '&:focus': TokenizedProps;
129
+ '&:hover': TokenizedPropsWithHovered;
130
+ '&:in-range': TokenizedProps;
131
+ '&:indeterminate': TokenizedProps;
132
+ '&:invalid': TokenizedProps;
133
+ '&:link': TokenizedProps;
134
+ '&:local-link': TokenizedProps;
135
+ '&:optional': TokenizedProps;
136
+ '&:out-of-range': TokenizedProps;
137
+ '&:placeholder-shown': TokenizedProps;
138
+ '&:read-only': TokenizedProps;
139
+ '&:read-write': TokenizedProps;
140
+ '&:required': TokenizedProps;
141
+ '&:user-invalid': TokenizedProps;
142
+ '&:user-valid': TokenizedProps;
143
+ '&:valid': TokenizedProps;
144
+ '&:visited': TokenizedProps;
145
+ }
@@ -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;
@@ -0,0 +1,145 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Strict design token based typedef representing a subset of safe CSS properties.
5
+ *
6
+ * @codegen <<SignedSource::f2fc11bdb22ab9a7a28b7be9c69bac3d>>
7
+ * @codegenCommand yarn build tokens
8
+ */
9
+ export type BackgroundColor = 'var(--ds-background-accent-lime-subtlest)' | 'var(--ds-background-accent-lime-subtler)' | 'var(--ds-background-accent-lime-subtle)' | 'var(--ds-background-accent-lime-bolder)' | 'var(--ds-background-accent-red-subtlest)' | 'var(--ds-background-accent-red-subtler)' | 'var(--ds-background-accent-red-subtle)' | 'var(--ds-background-accent-red-bolder)' | 'var(--ds-background-accent-orange-subtlest)' | 'var(--ds-background-accent-orange-subtler)' | 'var(--ds-background-accent-orange-subtle)' | 'var(--ds-background-accent-orange-bolder)' | 'var(--ds-background-accent-yellow-subtlest)' | 'var(--ds-background-accent-yellow-subtler)' | 'var(--ds-background-accent-yellow-subtle)' | 'var(--ds-background-accent-yellow-bolder)' | 'var(--ds-background-accent-green-subtlest)' | 'var(--ds-background-accent-green-subtler)' | 'var(--ds-background-accent-green-subtle)' | 'var(--ds-background-accent-green-bolder)' | 'var(--ds-background-accent-teal-subtlest)' | 'var(--ds-background-accent-teal-subtler)' | 'var(--ds-background-accent-teal-subtle)' | 'var(--ds-background-accent-teal-bolder)' | 'var(--ds-background-accent-blue-subtlest)' | 'var(--ds-background-accent-blue-subtler)' | 'var(--ds-background-accent-blue-subtle)' | 'var(--ds-background-accent-blue-bolder)' | 'var(--ds-background-accent-purple-subtlest)' | 'var(--ds-background-accent-purple-subtler)' | 'var(--ds-background-accent-purple-subtle)' | 'var(--ds-background-accent-purple-bolder)' | 'var(--ds-background-accent-magenta-subtlest)' | 'var(--ds-background-accent-magenta-subtler)' | 'var(--ds-background-accent-magenta-subtle)' | 'var(--ds-background-accent-magenta-bolder)' | 'var(--ds-background-accent-gray-subtlest)' | 'var(--ds-background-accent-gray-subtler)' | 'var(--ds-background-accent-gray-subtle)' | 'var(--ds-background-accent-gray-bolder)' | 'var(--ds-background-disabled)' | 'var(--ds-background-input)' | 'var(--ds-background-inverse-subtle)' | 'var(--ds-background-neutral)' | 'var(--ds-background-neutral-subtle)' | 'var(--ds-background-neutral-bold)' | 'var(--ds-background-selected)' | 'var(--ds-background-selected-bold)' | 'var(--ds-background-brand-subtlest)' | 'var(--ds-background-brand-bold)' | 'var(--ds-background-brand-boldest)' | 'var(--ds-background-danger)' | 'var(--ds-background-danger-bold)' | 'var(--ds-background-warning)' | 'var(--ds-background-warning-bold)' | 'var(--ds-background-success)' | 'var(--ds-background-success-bold)' | 'var(--ds-background-discovery)' | 'var(--ds-background-discovery-bold)' | 'var(--ds-background-information)' | 'var(--ds-background-information-bold)' | 'var(--ds-surface)' | 'var(--ds-surface-overlay)' | 'var(--ds-surface-raised)' | 'var(--ds-surface-sunken)' | 'var(--ds-elevation-surface-current)';
10
+ export type BackgroundColorHovered = 'var(--ds-background-accent-lime-subtlest-hovered)' | 'var(--ds-background-accent-lime-subtler-hovered)' | 'var(--ds-background-accent-lime-subtle-hovered)' | 'var(--ds-background-accent-lime-bolder-hovered)' | 'var(--ds-background-accent-red-subtlest-hovered)' | 'var(--ds-background-accent-red-subtler-hovered)' | 'var(--ds-background-accent-red-subtle-hovered)' | 'var(--ds-background-accent-red-bolder-hovered)' | 'var(--ds-background-accent-orange-subtlest-hovered)' | 'var(--ds-background-accent-orange-subtler-hovered)' | 'var(--ds-background-accent-orange-subtle-hovered)' | 'var(--ds-background-accent-orange-bolder-hovered)' | 'var(--ds-background-accent-yellow-subtlest-hovered)' | 'var(--ds-background-accent-yellow-subtler-hovered)' | 'var(--ds-background-accent-yellow-subtle-hovered)' | 'var(--ds-background-accent-yellow-bolder-hovered)' | 'var(--ds-background-accent-green-subtlest-hovered)' | 'var(--ds-background-accent-green-subtler-hovered)' | 'var(--ds-background-accent-green-subtle-hovered)' | 'var(--ds-background-accent-green-bolder-hovered)' | 'var(--ds-background-accent-teal-subtlest-hovered)' | 'var(--ds-background-accent-teal-subtler-hovered)' | 'var(--ds-background-accent-teal-subtle-hovered)' | 'var(--ds-background-accent-teal-bolder-hovered)' | 'var(--ds-background-accent-blue-subtlest-hovered)' | 'var(--ds-background-accent-blue-subtler-hovered)' | 'var(--ds-background-accent-blue-subtle-hovered)' | 'var(--ds-background-accent-blue-bolder-hovered)' | 'var(--ds-background-accent-purple-subtlest-hovered)' | 'var(--ds-background-accent-purple-subtler-hovered)' | 'var(--ds-background-accent-purple-subtle-hovered)' | 'var(--ds-background-accent-purple-bolder-hovered)' | 'var(--ds-background-accent-magenta-subtlest-hovered)' | 'var(--ds-background-accent-magenta-subtler-hovered)' | 'var(--ds-background-accent-magenta-subtle-hovered)' | 'var(--ds-background-accent-magenta-bolder-hovered)' | 'var(--ds-background-accent-gray-subtlest-hovered)' | 'var(--ds-background-accent-gray-subtler-hovered)' | 'var(--ds-background-accent-gray-subtle-hovered)' | 'var(--ds-background-accent-gray-bolder-hovered)' | 'var(--ds-background-input-hovered)' | 'var(--ds-background-inverse-subtle-hovered)' | 'var(--ds-background-neutral-hovered)' | 'var(--ds-background-neutral-subtle-hovered)' | 'var(--ds-background-neutral-bold-hovered)' | 'var(--ds-background-selected-hovered)' | 'var(--ds-background-selected-bold-hovered)' | 'var(--ds-background-brand-subtlest-hovered)' | 'var(--ds-background-brand-bold-hovered)' | 'var(--ds-background-brand-boldest-hovered)' | 'var(--ds-background-danger-hovered)' | 'var(--ds-background-danger-bold-hovered)' | 'var(--ds-background-warning-hovered)' | 'var(--ds-background-warning-bold-hovered)' | 'var(--ds-background-success-hovered)' | 'var(--ds-background-success-bold-hovered)' | 'var(--ds-background-discovery-hovered)' | 'var(--ds-background-discovery-bold-hovered)' | 'var(--ds-background-information-hovered)' | 'var(--ds-background-information-bold-hovered)' | 'var(--ds-surface-hovered)' | 'var(--ds-surface-overlay-hovered)' | 'var(--ds-surface-raised-hovered)';
11
+ export type BackgroundColorPressed = 'var(--ds-background-accent-lime-subtlest-pressed)' | 'var(--ds-background-accent-lime-subtler-pressed)' | 'var(--ds-background-accent-lime-subtle-pressed)' | 'var(--ds-background-accent-lime-bolder-pressed)' | 'var(--ds-background-accent-red-subtlest-pressed)' | 'var(--ds-background-accent-red-subtler-pressed)' | 'var(--ds-background-accent-red-subtle-pressed)' | 'var(--ds-background-accent-red-bolder-pressed)' | 'var(--ds-background-accent-orange-subtlest-pressed)' | 'var(--ds-background-accent-orange-subtler-pressed)' | 'var(--ds-background-accent-orange-subtle-pressed)' | 'var(--ds-background-accent-orange-bolder-pressed)' | 'var(--ds-background-accent-yellow-subtlest-pressed)' | 'var(--ds-background-accent-yellow-subtler-pressed)' | 'var(--ds-background-accent-yellow-subtle-pressed)' | 'var(--ds-background-accent-yellow-bolder-pressed)' | 'var(--ds-background-accent-green-subtlest-pressed)' | 'var(--ds-background-accent-green-subtler-pressed)' | 'var(--ds-background-accent-green-subtle-pressed)' | 'var(--ds-background-accent-green-bolder-pressed)' | 'var(--ds-background-accent-teal-subtlest-pressed)' | 'var(--ds-background-accent-teal-subtler-pressed)' | 'var(--ds-background-accent-teal-subtle-pressed)' | 'var(--ds-background-accent-teal-bolder-pressed)' | 'var(--ds-background-accent-blue-subtlest-pressed)' | 'var(--ds-background-accent-blue-subtler-pressed)' | 'var(--ds-background-accent-blue-subtle-pressed)' | 'var(--ds-background-accent-blue-bolder-pressed)' | 'var(--ds-background-accent-purple-subtlest-pressed)' | 'var(--ds-background-accent-purple-subtler-pressed)' | 'var(--ds-background-accent-purple-subtle-pressed)' | 'var(--ds-background-accent-purple-bolder-pressed)' | 'var(--ds-background-accent-magenta-subtlest-pressed)' | 'var(--ds-background-accent-magenta-subtler-pressed)' | 'var(--ds-background-accent-magenta-subtle-pressed)' | 'var(--ds-background-accent-magenta-bolder-pressed)' | 'var(--ds-background-accent-gray-subtlest-pressed)' | 'var(--ds-background-accent-gray-subtler-pressed)' | 'var(--ds-background-accent-gray-subtle-pressed)' | 'var(--ds-background-accent-gray-bolder-pressed)' | 'var(--ds-background-input-pressed)' | 'var(--ds-background-inverse-subtle-pressed)' | 'var(--ds-background-neutral-pressed)' | 'var(--ds-background-neutral-subtle-pressed)' | 'var(--ds-background-neutral-bold-pressed)' | 'var(--ds-background-selected-pressed)' | 'var(--ds-background-selected-bold-pressed)' | 'var(--ds-background-brand-subtlest-pressed)' | 'var(--ds-background-brand-bold-pressed)' | 'var(--ds-background-brand-boldest-pressed)' | 'var(--ds-background-danger-pressed)' | 'var(--ds-background-danger-bold-pressed)' | 'var(--ds-background-warning-pressed)' | 'var(--ds-background-warning-bold-pressed)' | 'var(--ds-background-success-pressed)' | 'var(--ds-background-success-bold-pressed)' | 'var(--ds-background-discovery-pressed)' | 'var(--ds-background-discovery-bold-pressed)' | 'var(--ds-background-information-pressed)' | 'var(--ds-background-information-bold-pressed)' | 'var(--ds-surface-pressed)' | 'var(--ds-surface-overlay-pressed)' | 'var(--ds-surface-raised-pressed)';
12
+ export type Dimension = 'var(--ds-font-size-050)' | 'var(--ds-font-size-075)' | 'var(--ds-font-size-100)' | 'var(--ds-font-size-200)' | 'var(--ds-font-size-300)' | 'var(--ds-font-size-400)' | 'var(--ds-font-size-500)' | 'var(--ds-font-size-600)';
13
+ export type BorderColor = 'var(--ds-border)' | 'var(--ds-border-accent-lime)' | 'var(--ds-border-accent-red)' | 'var(--ds-border-accent-orange)' | 'var(--ds-border-accent-yellow)' | 'var(--ds-border-accent-green)' | 'var(--ds-border-accent-teal)' | 'var(--ds-border-accent-blue)' | 'var(--ds-border-accent-purple)' | 'var(--ds-border-accent-magenta)' | 'var(--ds-border-accent-gray)' | 'var(--ds-border-disabled)' | 'var(--ds-border-focused)' | 'var(--ds-border-input)' | 'var(--ds-border-inverse)' | 'var(--ds-border-selected)' | 'var(--ds-border-brand)' | 'var(--ds-border-danger)' | 'var(--ds-border-warning)' | 'var(--ds-border-success)' | 'var(--ds-border-discovery)' | 'var(--ds-border-information)' | 'var(--ds-border-bold)';
14
+ export type BorderWidth = 'var(--ds-border-width)' | 'var(--ds-border-width-indicator)' | 'var(--ds-border-width-outline)';
15
+ export type BorderRadius = 'var(--ds-border-radius-050)' | 'var(--ds-border-radius)' | 'var(--ds-border-radius-100)' | 'var(--ds-border-radius-200)' | 'var(--ds-border-radius-300)' | 'var(--ds-border-radius-400)' | 'var(--ds-border-radius-circle)';
16
+ export type Space = 'var(--ds-space-0)' | 'var(--ds-space-025)' | 'var(--ds-space-050)' | 'var(--ds-space-075)' | 'var(--ds-space-100)' | 'var(--ds-space-150)' | 'var(--ds-space-200)' | 'var(--ds-space-250)' | 'var(--ds-space-300)' | 'var(--ds-space-400)' | 'var(--ds-space-500)' | 'var(--ds-space-600)' | 'var(--ds-space-800)' | 'var(--ds-space-1000)' | 'var(--ds-space-negative-025)' | 'var(--ds-space-negative-050)' | 'var(--ds-space-negative-075)' | 'var(--ds-space-negative-100)' | 'var(--ds-space-negative-150)' | 'var(--ds-space-negative-200)' | 'var(--ds-space-negative-250)' | 'var(--ds-space-negative-300)' | 'var(--ds-space-negative-400)';
17
+ export type Shadow = 'var(--ds-shadow-overflow)' | 'var(--ds-shadow-overflow-perimeter)' | 'var(--ds-shadow-overflow-spread)' | 'var(--ds-shadow-overlay)' | 'var(--ds-shadow-raised)';
18
+ export type TextColor = 'var(--ds-text)' | 'var(--ds-text-accent-lime)' | 'var(--ds-text-accent-lime-bolder)' | 'var(--ds-text-accent-red)' | 'var(--ds-text-accent-red-bolder)' | 'var(--ds-text-accent-orange)' | 'var(--ds-text-accent-orange-bolder)' | 'var(--ds-text-accent-yellow)' | 'var(--ds-text-accent-yellow-bolder)' | 'var(--ds-text-accent-green)' | 'var(--ds-text-accent-green-bolder)' | 'var(--ds-text-accent-teal)' | 'var(--ds-text-accent-teal-bolder)' | 'var(--ds-text-accent-blue)' | 'var(--ds-text-accent-blue-bolder)' | 'var(--ds-text-accent-purple)' | 'var(--ds-text-accent-purple-bolder)' | 'var(--ds-text-accent-magenta)' | 'var(--ds-text-accent-magenta-bolder)' | 'var(--ds-text-accent-gray)' | 'var(--ds-text-accent-gray-bolder)' | 'var(--ds-text-disabled)' | 'var(--ds-text-inverse)' | 'var(--ds-text-selected)' | 'var(--ds-text-brand)' | 'var(--ds-text-danger)' | 'var(--ds-text-warning)' | 'var(--ds-text-warning-inverse)' | 'var(--ds-text-success)' | 'var(--ds-text-discovery)' | 'var(--ds-text-information)' | 'var(--ds-text-subtlest)' | 'var(--ds-text-subtle)' | 'var(--ds-link)' | 'var(--ds-link-pressed)' | 'var(--ds-link-visited)';
19
+ export type Opacity = 'var(--ds-opacity-disabled)' | 'var(--ds-opacity-loading)';
20
+ export interface TokenizedProps {
21
+ backgroundColor: BackgroundColor;
22
+ blockSize: Dimension;
23
+ borderBlockColor: BorderColor;
24
+ borderBlockEndColor: BorderColor;
25
+ borderBlockEndWidth: BorderWidth;
26
+ borderBlockStartColor: BorderColor;
27
+ borderBlockStartWidth: BorderWidth;
28
+ borderBlockWidth: BorderWidth;
29
+ borderBottomColor: BorderColor;
30
+ borderBottomLeftRadius: BorderRadius;
31
+ borderBottomRightRadius: BorderRadius;
32
+ borderBottomWidth: BorderWidth;
33
+ borderColor: BorderColor;
34
+ borderEndEndRadius: BorderRadius;
35
+ borderEndStartRadius: BorderRadius;
36
+ borderInlineColor: BorderColor;
37
+ borderInlineEndColor: BorderColor;
38
+ borderInlineEndWidth: BorderWidth;
39
+ borderInlineStartColor: BorderColor;
40
+ borderInlineStartWidth: BorderWidth;
41
+ borderInlineWidth: BorderWidth;
42
+ borderLeftColor: BorderColor;
43
+ borderLeftWidth: BorderWidth;
44
+ borderRadius: BorderRadius;
45
+ borderRightColor: BorderColor;
46
+ borderRightWidth: BorderWidth;
47
+ borderStartEndRadius: BorderRadius;
48
+ borderStartStartRadius: BorderRadius;
49
+ borderTopColor: BorderColor;
50
+ borderTopLeftRadius: BorderRadius;
51
+ borderTopRightRadius: BorderRadius;
52
+ borderTopWidth: BorderWidth;
53
+ borderWidth: BorderWidth;
54
+ bottom: Space;
55
+ boxShadow: Shadow;
56
+ color: TextColor;
57
+ columnGap: Space;
58
+ gap: Space;
59
+ height: Dimension;
60
+ inlineSize: Dimension;
61
+ inset: Space;
62
+ insetBlock: Space;
63
+ insetBlockEnd: Space;
64
+ insetBlockStart: Space;
65
+ insetInline: Space;
66
+ insetInlineEnd: Space;
67
+ insetInlineStart: Space;
68
+ left: Space;
69
+ margin: Space;
70
+ marginBlock: Space;
71
+ marginBlockEnd: Space;
72
+ marginBlockStart: Space;
73
+ marginBottom: Space;
74
+ marginInline: Space;
75
+ marginInlineEnd: Space;
76
+ marginInlineStart: Space;
77
+ marginLeft: Space;
78
+ marginRight: Space;
79
+ marginTop: Space;
80
+ maxBlockSize: Dimension;
81
+ maxHeight: Dimension;
82
+ maxInlineSize: Dimension;
83
+ maxWidth: Dimension;
84
+ minBlockSize: Dimension;
85
+ minHeight: Dimension;
86
+ minInlineSize: Dimension;
87
+ minWidth: Dimension;
88
+ opacity: Opacity;
89
+ outlineColor: BorderColor;
90
+ outlineOffset: Space;
91
+ outlineWidth: BorderWidth;
92
+ padding: Space;
93
+ paddingBlock: Space;
94
+ paddingBlockEnd: Space;
95
+ paddingBlockStart: Space;
96
+ paddingBottom: Space;
97
+ paddingInline: Space;
98
+ paddingInlineEnd: Space;
99
+ paddingInlineStart: Space;
100
+ paddingLeft: Space;
101
+ paddingRight: Space;
102
+ paddingTop: Space;
103
+ right: Space;
104
+ rowGap: Space;
105
+ top: Space;
106
+ width: Dimension;
107
+ zIndex: number;
108
+ }
109
+ export interface TokenizedPropsWithHovered extends Omit<TokenizedProps, 'backgroundColor'> {
110
+ backgroundColor: BackgroundColorHovered;
111
+ }
112
+ export interface TokenizedPropsWithPressed extends Omit<TokenizedProps, 'backgroundColor'> {
113
+ backgroundColor: BackgroundColorPressed;
114
+ }
115
+ export interface DesignTokenStyles extends TokenizedProps {
116
+ '&::after': TokenizedProps;
117
+ '&::before': TokenizedProps;
118
+ '&:active': TokenizedPropsWithPressed;
119
+ '&:any-link': TokenizedProps;
120
+ '&:autofill': TokenizedProps;
121
+ '&:blank': TokenizedProps;
122
+ '&:checked': TokenizedProps;
123
+ '&:default': TokenizedProps;
124
+ '&:disabled': TokenizedProps;
125
+ '&:enabled': TokenizedProps;
126
+ '&:focus-visible': TokenizedProps;
127
+ '&:focus-within': TokenizedProps;
128
+ '&:focus': TokenizedProps;
129
+ '&:hover': TokenizedPropsWithHovered;
130
+ '&:in-range': TokenizedProps;
131
+ '&:indeterminate': TokenizedProps;
132
+ '&:invalid': TokenizedProps;
133
+ '&:link': TokenizedProps;
134
+ '&:local-link': TokenizedProps;
135
+ '&:optional': TokenizedProps;
136
+ '&:out-of-range': TokenizedProps;
137
+ '&:placeholder-shown': TokenizedProps;
138
+ '&:read-only': TokenizedProps;
139
+ '&:read-write': TokenizedProps;
140
+ '&:required': TokenizedProps;
141
+ '&:user-invalid': TokenizedProps;
142
+ '&:user-valid': TokenizedProps;
143
+ '&:valid': TokenizedProps;
144
+ '&:visited': TokenizedProps;
145
+ }
@@ -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.32.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/"
@@ -106,7 +106,8 @@
106
106
  "./token-order": "./src/entry-points/token-order.tsx",
107
107
  "./token-default-values": "./src/entry-points/token-default-values.tsx",
108
108
  "./rename-mapping": "./src/entry-points/rename-mapping.tsx",
109
- "./babel-plugin": "./src/entry-points/babel-plugin.tsx"
109
+ "./babel-plugin": "./src/entry-points/babel-plugin.tsx",
110
+ "./css-type-schema": "./src/entry-points/css-type-schema.codegen.tsx"
110
111
  },
111
112
  "platform-feature-flags": {
112
113
  "platform.design-system-team.border-checkbox_nyoiu": {