@atlaskit/forge-react-types 0.53.0 → 0.55.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 (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/components/__generated__/BoxProps.codegen.js +12 -2
  3. package/dist/cjs/components/__generated__/tokens.codegen.js +666 -0
  4. package/dist/cjs/components/charts/PieChartProps.js +5 -1
  5. package/dist/es2019/components/__generated__/BoxProps.codegen.js +12 -2
  6. package/dist/es2019/components/__generated__/tokens.codegen.js +662 -0
  7. package/dist/es2019/components/charts/PieChartProps.js +1 -0
  8. package/dist/esm/components/__generated__/BoxProps.codegen.js +12 -2
  9. package/dist/esm/components/__generated__/tokens.codegen.js +667 -0
  10. package/dist/esm/components/charts/PieChartProps.js +1 -0
  11. package/dist/types/components/__generated__/BoxProps.codegen.d.ts +65 -51
  12. package/dist/types/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -4
  13. package/dist/types/components/__generated__/IconProps.codegen.d.ts +1 -1
  14. package/dist/types/components/__generated__/PressableProps.codegen.d.ts +32 -32
  15. package/dist/types/components/__generated__/tokens.codegen.d.ts +1766 -0
  16. package/dist/types/components/charts/BarChartProps.d.ts +7 -0
  17. package/dist/types/components/charts/LineChartProps.d.ts +7 -0
  18. package/dist/types/components/charts/PieChartProps.d.ts +7 -0
  19. package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +65 -51
  20. package/dist/types-ts4.5/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -4
  21. package/dist/types-ts4.5/components/__generated__/IconProps.codegen.d.ts +1 -1
  22. package/dist/types-ts4.5/components/__generated__/PressableProps.codegen.d.ts +32 -32
  23. package/dist/types-ts4.5/components/__generated__/tokens.codegen.d.ts +1766 -0
  24. package/dist/types-ts4.5/components/charts/BarChartProps.d.ts +7 -0
  25. package/dist/types-ts4.5/components/charts/LineChartProps.d.ts +7 -0
  26. package/dist/types-ts4.5/components/charts/PieChartProps.d.ts +7 -0
  27. package/package.json +12 -10
  28. package/scripts/codegen/codeGenerator.ts +176 -30
  29. package/scripts/codegen/componentPropTypes.ts +26 -0
  30. package/src/components/__generated__/BoxProps.codegen.tsx +38 -24
  31. package/src/components/__generated__/ButtonGroupProps.codegen.tsx +3 -4
  32. package/src/components/__generated__/IconProps.codegen.tsx +2 -2
  33. package/src/components/__generated__/tokens.codegen.tsx +1664 -0
  34. package/src/components/charts/BarChartProps.tsx +7 -0
  35. package/src/components/charts/LineChartProps.tsx +7 -0
  36. package/src/components/charts/PieChartProps.tsx +8 -0
@@ -0,0 +1,1664 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Shared tokens file for UI Kit components. Contains design token maps for xcss support. Source: `packages/forge/forge-ui/src/components/UIKit/tokens.partial.tsx`
5
+ *
6
+ * @codegen <<SignedSource::df459397a72b58ebfabef3aae39cb9cc>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/tokens.partial.tsx <<SignedSource::bef0e14a479afe48a4826d95974a80cf>>
9
+ */
10
+ /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 */
11
+ /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766 */
12
+
13
+ /**
14
+ * Token maps and utilities for Forge UI Kit
15
+ *
16
+ * This file contains both:
17
+ * 1. Auto-generated design token maps (between @codegen markers) from @atlaskit/primitives
18
+ * 2. Manually maintained utility functions for working with these tokens
19
+ *
20
+ * @see https://developer.atlassian.com/platform/forge/ui-kit/components/xcss/
21
+ */
22
+
23
+ import { token, CURRENT_SURFACE_CSS_VAR } from '@atlaskit/tokens';
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
+ import { css } from '@emotion/react';
26
+ import type { SerializedStyles } from '@emotion/serialize';
27
+
28
+ /**
29
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
30
+ * @codegen <<SignedSource::7fdf1ca659cb6ab8a47bc1b32c5d97e0>>
31
+ * @codegenId forge-tokens
32
+ * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
33
+ * @codegenDependency ../../../../../design-system/primitives/scripts/codegen-file-templates/dimensions.tsx <<SignedSource::cc9b3f12104c6ede803da6a42daac0b0>>
34
+ * @codegenDependency ../../../../../design-system/primitives/scripts/codegen-file-templates/layer.tsx <<SignedSource::92793ca02dbfdad66e53ffbe9f0baa0a>>
35
+ * @codegenDependency ../../../../../design-system/tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::6ba535fc3d46f6c8a7b6384ed59ec8d6>>
36
+ * @codegenDependency ../../../../../design-system/tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::07b9c29f8d9f95e43d59a7b7ad4ce7a2>>
37
+ * @codegenDependency ../../../../../design-system/tokens/src/artifacts/tokens-raw/atlassian-shape.tsx <<SignedSource::6683952932c4ad145144ebc086a2548e>>
38
+ */
39
+ /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
40
+ export const dimensionMap = {
41
+ '100%': '100%',
42
+ 'size.100': '1rem',
43
+ 'size.200': '1.5rem',
44
+ 'size.300': '2rem',
45
+ 'size.400': '2.5rem',
46
+ 'size.500': '3rem',
47
+ 'size.600': '6rem',
48
+ 'size.1000': '12rem',
49
+ } as const;
50
+ export type Dimension = keyof typeof dimensionMap;
51
+
52
+
53
+ export const positiveSpaceMap: {
54
+ 'space.0': 'var(--ds-space-0)';
55
+ 'space.025': 'var(--ds-space-025)';
56
+ 'space.050': 'var(--ds-space-050)';
57
+ 'space.075': 'var(--ds-space-075)';
58
+ 'space.100': 'var(--ds-space-100)';
59
+ 'space.150': 'var(--ds-space-150)';
60
+ 'space.200': 'var(--ds-space-200)';
61
+ 'space.250': 'var(--ds-space-250)';
62
+ 'space.300': 'var(--ds-space-300)';
63
+ 'space.400': 'var(--ds-space-400)';
64
+ 'space.500': 'var(--ds-space-500)';
65
+ 'space.600': 'var(--ds-space-600)';
66
+ 'space.800': 'var(--ds-space-800)';
67
+ 'space.1000': 'var(--ds-space-1000)';
68
+ } = {
69
+ 'space.0': token('space.0', '0px'),
70
+ 'space.025': token('space.025', '2px'),
71
+ 'space.050': token('space.050', '4px'),
72
+ 'space.075': token('space.075', '6px'),
73
+ 'space.100': token('space.100', '8px'),
74
+ 'space.150': token('space.150', '12px'),
75
+ 'space.200': token('space.200', '16px'),
76
+ 'space.250': token('space.250', '20px'),
77
+ 'space.300': token('space.300', '24px'),
78
+ 'space.400': token('space.400', '32px'),
79
+ 'space.500': token('space.500', '40px'),
80
+ 'space.600': token('space.600', '48px'),
81
+ 'space.800': token('space.800', '64px'),
82
+ 'space.1000': token('space.1000', '80px'),
83
+ };
84
+ export type Space = keyof typeof positiveSpaceMap;
85
+
86
+ export const negativeSpaceMap: {
87
+ 'space.negative.025': 'var(--ds-space-negative-025)';
88
+ 'space.negative.050': 'var(--ds-space-negative-050)';
89
+ 'space.negative.075': 'var(--ds-space-negative-075)';
90
+ 'space.negative.100': 'var(--ds-space-negative-100)';
91
+ 'space.negative.150': 'var(--ds-space-negative-150)';
92
+ 'space.negative.200': 'var(--ds-space-negative-200)';
93
+ 'space.negative.250': 'var(--ds-space-negative-250)';
94
+ 'space.negative.300': 'var(--ds-space-negative-300)';
95
+ 'space.negative.400': 'var(--ds-space-negative-400)';
96
+ } = {
97
+ 'space.negative.025': token('space.negative.025', '-2px'),
98
+ 'space.negative.050': token('space.negative.050', '-4px'),
99
+ 'space.negative.075': token('space.negative.075', '-6px'),
100
+ 'space.negative.100': token('space.negative.100', '-8px'),
101
+ 'space.negative.150': token('space.negative.150', '-12px'),
102
+ 'space.negative.200': token('space.negative.200', '-16px'),
103
+ 'space.negative.250': token('space.negative.250', '-20px'),
104
+ 'space.negative.300': token('space.negative.300', '-24px'),
105
+ 'space.negative.400': token('space.negative.400', '-32px'),
106
+ };
107
+ export type NegativeSpace = keyof typeof negativeSpaceMap;
108
+
109
+ export const allSpaceMap: {
110
+ 'space.0': 'var(--ds-space-0)';
111
+ 'space.025': 'var(--ds-space-025)';
112
+ 'space.050': 'var(--ds-space-050)';
113
+ 'space.075': 'var(--ds-space-075)';
114
+ 'space.100': 'var(--ds-space-100)';
115
+ 'space.150': 'var(--ds-space-150)';
116
+ 'space.200': 'var(--ds-space-200)';
117
+ 'space.250': 'var(--ds-space-250)';
118
+ 'space.300': 'var(--ds-space-300)';
119
+ 'space.400': 'var(--ds-space-400)';
120
+ 'space.500': 'var(--ds-space-500)';
121
+ 'space.600': 'var(--ds-space-600)';
122
+ 'space.800': 'var(--ds-space-800)';
123
+ 'space.1000': 'var(--ds-space-1000)';
124
+ 'space.negative.025': 'var(--ds-space-negative-025)';
125
+ 'space.negative.050': 'var(--ds-space-negative-050)';
126
+ 'space.negative.075': 'var(--ds-space-negative-075)';
127
+ 'space.negative.100': 'var(--ds-space-negative-100)';
128
+ 'space.negative.150': 'var(--ds-space-negative-150)';
129
+ 'space.negative.200': 'var(--ds-space-negative-200)';
130
+ 'space.negative.250': 'var(--ds-space-negative-250)';
131
+ 'space.negative.300': 'var(--ds-space-negative-300)';
132
+ 'space.negative.400': 'var(--ds-space-negative-400)';
133
+ } = { ...positiveSpaceMap, ...negativeSpaceMap };
134
+
135
+ export type AllSpace = keyof typeof allSpaceMap;
136
+
137
+
138
+ export const textColorMap: {
139
+ 'color.text': 'var(--ds-text)';
140
+ 'color.text.accent.lime': 'var(--ds-text-accent-lime)';
141
+ 'color.text.accent.lime.bolder': 'var(--ds-text-accent-lime-bolder)';
142
+ 'color.text.accent.red': 'var(--ds-text-accent-red)';
143
+ 'color.text.accent.red.bolder': 'var(--ds-text-accent-red-bolder)';
144
+ 'color.text.accent.orange': 'var(--ds-text-accent-orange)';
145
+ 'color.text.accent.orange.bolder': 'var(--ds-text-accent-orange-bolder)';
146
+ 'color.text.accent.yellow': 'var(--ds-text-accent-yellow)';
147
+ 'color.text.accent.yellow.bolder': 'var(--ds-text-accent-yellow-bolder)';
148
+ 'color.text.accent.green': 'var(--ds-text-accent-green)';
149
+ 'color.text.accent.green.bolder': 'var(--ds-text-accent-green-bolder)';
150
+ 'color.text.accent.teal': 'var(--ds-text-accent-teal)';
151
+ 'color.text.accent.teal.bolder': 'var(--ds-text-accent-teal-bolder)';
152
+ 'color.text.accent.blue': 'var(--ds-text-accent-blue)';
153
+ 'color.text.accent.blue.bolder': 'var(--ds-text-accent-blue-bolder)';
154
+ 'color.text.accent.purple': 'var(--ds-text-accent-purple)';
155
+ 'color.text.accent.purple.bolder': 'var(--ds-text-accent-purple-bolder)';
156
+ 'color.text.accent.magenta': 'var(--ds-text-accent-magenta)';
157
+ 'color.text.accent.magenta.bolder': 'var(--ds-text-accent-magenta-bolder)';
158
+ 'color.text.accent.gray': 'var(--ds-text-accent-gray)';
159
+ 'color.text.accent.gray.bolder': 'var(--ds-text-accent-gray-bolder)';
160
+ 'color.text.disabled': 'var(--ds-text-disabled)';
161
+ 'color.text.inverse': 'var(--ds-text-inverse)';
162
+ 'color.text.selected': 'var(--ds-text-selected)';
163
+ 'color.text.brand': 'var(--ds-text-brand)';
164
+ 'color.text.danger': 'var(--ds-text-danger)';
165
+ 'color.text.danger.bolder': 'var(--ds-text-danger-bolder)';
166
+ 'color.text.warning': 'var(--ds-text-warning)';
167
+ 'color.text.warning.inverse': 'var(--ds-text-warning-inverse)';
168
+ 'color.text.warning.bolder': 'var(--ds-text-warning-bolder)';
169
+ 'color.text.success': 'var(--ds-text-success)';
170
+ 'color.text.success.bolder': 'var(--ds-text-success-bolder)';
171
+ 'color.text.discovery': 'var(--ds-text-discovery)';
172
+ 'color.text.discovery.bolder': 'var(--ds-text-discovery-bolder)';
173
+ 'color.text.information': 'var(--ds-text-information)';
174
+ 'color.text.information.bolder': 'var(--ds-text-information-bolder)';
175
+ 'color.text.subtlest': 'var(--ds-text-subtlest)';
176
+ 'color.text.subtle': 'var(--ds-text-subtle)';
177
+ 'color.link': 'var(--ds-link)';
178
+ 'color.link.pressed': 'var(--ds-link-pressed)';
179
+ 'color.link.visited': 'var(--ds-link-visited)';
180
+ 'color.link.visited.pressed': 'var(--ds-link-visited-pressed)';
181
+ } = {
182
+ 'color.text': token('color.text', '#172B4D'),
183
+ 'color.text.accent.lime': token('color.text.accent.lime', '#4C6B1F'),
184
+ 'color.text.accent.lime.bolder': token('color.text.accent.lime.bolder', '#37471F'),
185
+ 'color.text.accent.red': token('color.text.accent.red', '#DE350B'),
186
+ 'color.text.accent.red.bolder': token('color.text.accent.red.bolder', '#BF2600'),
187
+ 'color.text.accent.orange': token('color.text.accent.orange', '#F18D13'),
188
+ 'color.text.accent.orange.bolder': token('color.text.accent.orange.bolder', '#B65C02'),
189
+ 'color.text.accent.yellow': token('color.text.accent.yellow', '#FF991F'),
190
+ 'color.text.accent.yellow.bolder': token('color.text.accent.yellow.bolder', '#FF8B00'),
191
+ 'color.text.accent.green': token('color.text.accent.green', '#00875A'),
192
+ 'color.text.accent.green.bolder': token('color.text.accent.green.bolder', '#006644'),
193
+ 'color.text.accent.teal': token('color.text.accent.teal', '#00A3BF'),
194
+ 'color.text.accent.teal.bolder': token('color.text.accent.teal.bolder', '#008DA6'),
195
+ 'color.text.accent.blue': token('color.text.accent.blue', '#0052CC'),
196
+ 'color.text.accent.blue.bolder': token('color.text.accent.blue.bolder', '#0747A6'),
197
+ 'color.text.accent.purple': token('color.text.accent.purple', '#5243AA'),
198
+ 'color.text.accent.purple.bolder': token('color.text.accent.purple.bolder', '#403294'),
199
+ 'color.text.accent.magenta': token('color.text.accent.magenta', '#E774BB'),
200
+ 'color.text.accent.magenta.bolder': token('color.text.accent.magenta.bolder', '#DA62AC'),
201
+ 'color.text.accent.gray': token('color.text.accent.gray', '#505F79'),
202
+ 'color.text.accent.gray.bolder': token('color.text.accent.gray.bolder', '#172B4D'),
203
+ 'color.text.disabled': token('color.text.disabled', '#A5ADBA'),
204
+ 'color.text.inverse': token('color.text.inverse', '#FFFFFF'),
205
+ 'color.text.selected': token('color.text.selected', '#0052CC'),
206
+ 'color.text.brand': token('color.text.brand', '#0065FF'),
207
+ 'color.text.danger': token('color.text.danger', '#DE350B'),
208
+ 'color.text.danger.bolder': token('color.text.danger.bolder', '#BF2600'),
209
+ 'color.text.warning': token('color.text.warning', '#974F0C'),
210
+ 'color.text.warning.inverse': token('color.text.warning.inverse', '#172B4D'),
211
+ 'color.text.warning.bolder': token('color.text.warning.bolder', '#974F0C'),
212
+ 'color.text.success': token('color.text.success', '#006644'),
213
+ 'color.text.success.bolder': token('color.text.success.bolder', '#006644'),
214
+ 'color.text.discovery': token('color.text.discovery', '#403294'),
215
+ 'color.text.discovery.bolder': token('color.text.discovery.bolder', '#403294'),
216
+ 'color.text.information': token('color.text.information', '#0052CC'),
217
+ 'color.text.information.bolder': token('color.text.information.bolder', '#0747A6'),
218
+ 'color.text.subtlest': token('color.text.subtlest', '#7A869A'),
219
+ 'color.text.subtle': token('color.text.subtle', '#42526E'),
220
+ 'color.link': token('color.link', '#0052CC'),
221
+ 'color.link.pressed': token('color.link.pressed', '#0747A6'),
222
+ 'color.link.visited': token('color.link.visited', '#403294'),
223
+ 'color.link.visited.pressed': token('color.link.visited.pressed', '#403294'),
224
+ } as const;
225
+
226
+ export type TextColor = keyof typeof textColorMap;
227
+
228
+ export const backgroundColorMap: {
229
+ 'color.background.accent.lime.subtlest': 'var(--ds-background-accent-lime-subtlest)';
230
+ 'color.background.accent.lime.subtlest.hovered': 'var(--ds-background-accent-lime-subtlest-hovered)';
231
+ 'color.background.accent.lime.subtlest.pressed': 'var(--ds-background-accent-lime-subtlest-pressed)';
232
+ 'color.background.accent.lime.subtler': 'var(--ds-background-accent-lime-subtler)';
233
+ 'color.background.accent.lime.subtler.hovered': 'var(--ds-background-accent-lime-subtler-hovered)';
234
+ 'color.background.accent.lime.subtler.pressed': 'var(--ds-background-accent-lime-subtler-pressed)';
235
+ 'color.background.accent.lime.subtle': 'var(--ds-background-accent-lime-subtle)';
236
+ 'color.background.accent.lime.subtle.hovered': 'var(--ds-background-accent-lime-subtle-hovered)';
237
+ 'color.background.accent.lime.subtle.pressed': 'var(--ds-background-accent-lime-subtle-pressed)';
238
+ 'color.background.accent.lime.bolder': 'var(--ds-background-accent-lime-bolder)';
239
+ 'color.background.accent.lime.bolder.hovered': 'var(--ds-background-accent-lime-bolder-hovered)';
240
+ 'color.background.accent.lime.bolder.pressed': 'var(--ds-background-accent-lime-bolder-pressed)';
241
+ 'color.background.accent.red.subtlest': 'var(--ds-background-accent-red-subtlest)';
242
+ 'color.background.accent.red.subtlest.hovered': 'var(--ds-background-accent-red-subtlest-hovered)';
243
+ 'color.background.accent.red.subtlest.pressed': 'var(--ds-background-accent-red-subtlest-pressed)';
244
+ 'color.background.accent.red.subtler': 'var(--ds-background-accent-red-subtler)';
245
+ 'color.background.accent.red.subtler.hovered': 'var(--ds-background-accent-red-subtler-hovered)';
246
+ 'color.background.accent.red.subtler.pressed': 'var(--ds-background-accent-red-subtler-pressed)';
247
+ 'color.background.accent.red.subtle': 'var(--ds-background-accent-red-subtle)';
248
+ 'color.background.accent.red.subtle.hovered': 'var(--ds-background-accent-red-subtle-hovered)';
249
+ 'color.background.accent.red.subtle.pressed': 'var(--ds-background-accent-red-subtle-pressed)';
250
+ 'color.background.accent.red.bolder': 'var(--ds-background-accent-red-bolder)';
251
+ 'color.background.accent.red.bolder.hovered': 'var(--ds-background-accent-red-bolder-hovered)';
252
+ 'color.background.accent.red.bolder.pressed': 'var(--ds-background-accent-red-bolder-pressed)';
253
+ 'color.background.accent.orange.subtlest': 'var(--ds-background-accent-orange-subtlest)';
254
+ 'color.background.accent.orange.subtlest.hovered': 'var(--ds-background-accent-orange-subtlest-hovered)';
255
+ 'color.background.accent.orange.subtlest.pressed': 'var(--ds-background-accent-orange-subtlest-pressed)';
256
+ 'color.background.accent.orange.subtler': 'var(--ds-background-accent-orange-subtler)';
257
+ 'color.background.accent.orange.subtler.hovered': 'var(--ds-background-accent-orange-subtler-hovered)';
258
+ 'color.background.accent.orange.subtler.pressed': 'var(--ds-background-accent-orange-subtler-pressed)';
259
+ 'color.background.accent.orange.subtle': 'var(--ds-background-accent-orange-subtle)';
260
+ 'color.background.accent.orange.subtle.hovered': 'var(--ds-background-accent-orange-subtle-hovered)';
261
+ 'color.background.accent.orange.subtle.pressed': 'var(--ds-background-accent-orange-subtle-pressed)';
262
+ 'color.background.accent.orange.bolder': 'var(--ds-background-accent-orange-bolder)';
263
+ 'color.background.accent.orange.bolder.hovered': 'var(--ds-background-accent-orange-bolder-hovered)';
264
+ 'color.background.accent.orange.bolder.pressed': 'var(--ds-background-accent-orange-bolder-pressed)';
265
+ 'color.background.accent.yellow.subtlest': 'var(--ds-background-accent-yellow-subtlest)';
266
+ 'color.background.accent.yellow.subtlest.hovered': 'var(--ds-background-accent-yellow-subtlest-hovered)';
267
+ 'color.background.accent.yellow.subtlest.pressed': 'var(--ds-background-accent-yellow-subtlest-pressed)';
268
+ 'color.background.accent.yellow.subtler': 'var(--ds-background-accent-yellow-subtler)';
269
+ 'color.background.accent.yellow.subtler.hovered': 'var(--ds-background-accent-yellow-subtler-hovered)';
270
+ 'color.background.accent.yellow.subtler.pressed': 'var(--ds-background-accent-yellow-subtler-pressed)';
271
+ 'color.background.accent.yellow.subtle': 'var(--ds-background-accent-yellow-subtle)';
272
+ 'color.background.accent.yellow.subtle.hovered': 'var(--ds-background-accent-yellow-subtle-hovered)';
273
+ 'color.background.accent.yellow.subtle.pressed': 'var(--ds-background-accent-yellow-subtle-pressed)';
274
+ 'color.background.accent.yellow.bolder': 'var(--ds-background-accent-yellow-bolder)';
275
+ 'color.background.accent.yellow.bolder.hovered': 'var(--ds-background-accent-yellow-bolder-hovered)';
276
+ 'color.background.accent.yellow.bolder.pressed': 'var(--ds-background-accent-yellow-bolder-pressed)';
277
+ 'color.background.accent.green.subtlest': 'var(--ds-background-accent-green-subtlest)';
278
+ 'color.background.accent.green.subtlest.hovered': 'var(--ds-background-accent-green-subtlest-hovered)';
279
+ 'color.background.accent.green.subtlest.pressed': 'var(--ds-background-accent-green-subtlest-pressed)';
280
+ 'color.background.accent.green.subtler': 'var(--ds-background-accent-green-subtler)';
281
+ 'color.background.accent.green.subtler.hovered': 'var(--ds-background-accent-green-subtler-hovered)';
282
+ 'color.background.accent.green.subtler.pressed': 'var(--ds-background-accent-green-subtler-pressed)';
283
+ 'color.background.accent.green.subtle': 'var(--ds-background-accent-green-subtle)';
284
+ 'color.background.accent.green.subtle.hovered': 'var(--ds-background-accent-green-subtle-hovered)';
285
+ 'color.background.accent.green.subtle.pressed': 'var(--ds-background-accent-green-subtle-pressed)';
286
+ 'color.background.accent.green.bolder': 'var(--ds-background-accent-green-bolder)';
287
+ 'color.background.accent.green.bolder.hovered': 'var(--ds-background-accent-green-bolder-hovered)';
288
+ 'color.background.accent.green.bolder.pressed': 'var(--ds-background-accent-green-bolder-pressed)';
289
+ 'color.background.accent.teal.subtlest': 'var(--ds-background-accent-teal-subtlest)';
290
+ 'color.background.accent.teal.subtlest.hovered': 'var(--ds-background-accent-teal-subtlest-hovered)';
291
+ 'color.background.accent.teal.subtlest.pressed': 'var(--ds-background-accent-teal-subtlest-pressed)';
292
+ 'color.background.accent.teal.subtler': 'var(--ds-background-accent-teal-subtler)';
293
+ 'color.background.accent.teal.subtler.hovered': 'var(--ds-background-accent-teal-subtler-hovered)';
294
+ 'color.background.accent.teal.subtler.pressed': 'var(--ds-background-accent-teal-subtler-pressed)';
295
+ 'color.background.accent.teal.subtle': 'var(--ds-background-accent-teal-subtle)';
296
+ 'color.background.accent.teal.subtle.hovered': 'var(--ds-background-accent-teal-subtle-hovered)';
297
+ 'color.background.accent.teal.subtle.pressed': 'var(--ds-background-accent-teal-subtle-pressed)';
298
+ 'color.background.accent.teal.bolder': 'var(--ds-background-accent-teal-bolder)';
299
+ 'color.background.accent.teal.bolder.hovered': 'var(--ds-background-accent-teal-bolder-hovered)';
300
+ 'color.background.accent.teal.bolder.pressed': 'var(--ds-background-accent-teal-bolder-pressed)';
301
+ 'color.background.accent.blue.subtlest': 'var(--ds-background-accent-blue-subtlest)';
302
+ 'color.background.accent.blue.subtlest.hovered': 'var(--ds-background-accent-blue-subtlest-hovered)';
303
+ 'color.background.accent.blue.subtlest.pressed': 'var(--ds-background-accent-blue-subtlest-pressed)';
304
+ 'color.background.accent.blue.subtler': 'var(--ds-background-accent-blue-subtler)';
305
+ 'color.background.accent.blue.subtler.hovered': 'var(--ds-background-accent-blue-subtler-hovered)';
306
+ 'color.background.accent.blue.subtler.pressed': 'var(--ds-background-accent-blue-subtler-pressed)';
307
+ 'color.background.accent.blue.subtle': 'var(--ds-background-accent-blue-subtle)';
308
+ 'color.background.accent.blue.subtle.hovered': 'var(--ds-background-accent-blue-subtle-hovered)';
309
+ 'color.background.accent.blue.subtle.pressed': 'var(--ds-background-accent-blue-subtle-pressed)';
310
+ 'color.background.accent.blue.bolder': 'var(--ds-background-accent-blue-bolder)';
311
+ 'color.background.accent.blue.bolder.hovered': 'var(--ds-background-accent-blue-bolder-hovered)';
312
+ 'color.background.accent.blue.bolder.pressed': 'var(--ds-background-accent-blue-bolder-pressed)';
313
+ 'color.background.accent.purple.subtlest': 'var(--ds-background-accent-purple-subtlest)';
314
+ 'color.background.accent.purple.subtlest.hovered': 'var(--ds-background-accent-purple-subtlest-hovered)';
315
+ 'color.background.accent.purple.subtlest.pressed': 'var(--ds-background-accent-purple-subtlest-pressed)';
316
+ 'color.background.accent.purple.subtler': 'var(--ds-background-accent-purple-subtler)';
317
+ 'color.background.accent.purple.subtler.hovered': 'var(--ds-background-accent-purple-subtler-hovered)';
318
+ 'color.background.accent.purple.subtler.pressed': 'var(--ds-background-accent-purple-subtler-pressed)';
319
+ 'color.background.accent.purple.subtle': 'var(--ds-background-accent-purple-subtle)';
320
+ 'color.background.accent.purple.subtle.hovered': 'var(--ds-background-accent-purple-subtle-hovered)';
321
+ 'color.background.accent.purple.subtle.pressed': 'var(--ds-background-accent-purple-subtle-pressed)';
322
+ 'color.background.accent.purple.bolder': 'var(--ds-background-accent-purple-bolder)';
323
+ 'color.background.accent.purple.bolder.hovered': 'var(--ds-background-accent-purple-bolder-hovered)';
324
+ 'color.background.accent.purple.bolder.pressed': 'var(--ds-background-accent-purple-bolder-pressed)';
325
+ 'color.background.accent.magenta.subtlest': 'var(--ds-background-accent-magenta-subtlest)';
326
+ 'color.background.accent.magenta.subtlest.hovered': 'var(--ds-background-accent-magenta-subtlest-hovered)';
327
+ 'color.background.accent.magenta.subtlest.pressed': 'var(--ds-background-accent-magenta-subtlest-pressed)';
328
+ 'color.background.accent.magenta.subtler': 'var(--ds-background-accent-magenta-subtler)';
329
+ 'color.background.accent.magenta.subtler.hovered': 'var(--ds-background-accent-magenta-subtler-hovered)';
330
+ 'color.background.accent.magenta.subtler.pressed': 'var(--ds-background-accent-magenta-subtler-pressed)';
331
+ 'color.background.accent.magenta.subtle': 'var(--ds-background-accent-magenta-subtle)';
332
+ 'color.background.accent.magenta.subtle.hovered': 'var(--ds-background-accent-magenta-subtle-hovered)';
333
+ 'color.background.accent.magenta.subtle.pressed': 'var(--ds-background-accent-magenta-subtle-pressed)';
334
+ 'color.background.accent.magenta.bolder': 'var(--ds-background-accent-magenta-bolder)';
335
+ 'color.background.accent.magenta.bolder.hovered': 'var(--ds-background-accent-magenta-bolder-hovered)';
336
+ 'color.background.accent.magenta.bolder.pressed': 'var(--ds-background-accent-magenta-bolder-pressed)';
337
+ 'color.background.accent.gray.subtlest': 'var(--ds-background-accent-gray-subtlest)';
338
+ 'color.background.accent.gray.subtlest.hovered': 'var(--ds-background-accent-gray-subtlest-hovered)';
339
+ 'color.background.accent.gray.subtlest.pressed': 'var(--ds-background-accent-gray-subtlest-pressed)';
340
+ 'color.background.accent.gray.subtler': 'var(--ds-background-accent-gray-subtler)';
341
+ 'color.background.accent.gray.subtler.hovered': 'var(--ds-background-accent-gray-subtler-hovered)';
342
+ 'color.background.accent.gray.subtler.pressed': 'var(--ds-background-accent-gray-subtler-pressed)';
343
+ 'color.background.accent.gray.subtle': 'var(--ds-background-accent-gray-subtle)';
344
+ 'color.background.accent.gray.subtle.hovered': 'var(--ds-background-accent-gray-subtle-hovered)';
345
+ 'color.background.accent.gray.subtle.pressed': 'var(--ds-background-accent-gray-subtle-pressed)';
346
+ 'color.background.accent.gray.bolder': 'var(--ds-background-accent-gray-bolder)';
347
+ 'color.background.accent.gray.bolder.hovered': 'var(--ds-background-accent-gray-bolder-hovered)';
348
+ 'color.background.accent.gray.bolder.pressed': 'var(--ds-background-accent-gray-bolder-pressed)';
349
+ 'color.background.disabled': 'var(--ds-background-disabled)';
350
+ 'color.background.input': 'var(--ds-background-input)';
351
+ 'color.background.input.hovered': 'var(--ds-background-input-hovered)';
352
+ 'color.background.input.pressed': 'var(--ds-background-input-pressed)';
353
+ 'color.background.inverse.subtle': 'var(--ds-background-inverse-subtle)';
354
+ 'color.background.inverse.subtle.hovered': 'var(--ds-background-inverse-subtle-hovered)';
355
+ 'color.background.inverse.subtle.pressed': 'var(--ds-background-inverse-subtle-pressed)';
356
+ 'color.background.neutral': 'var(--ds-background-neutral)';
357
+ 'color.background.neutral.hovered': 'var(--ds-background-neutral-hovered)';
358
+ 'color.background.neutral.pressed': 'var(--ds-background-neutral-pressed)';
359
+ 'color.background.neutral.subtle': 'var(--ds-background-neutral-subtle)';
360
+ 'color.background.neutral.subtle.hovered': 'var(--ds-background-neutral-subtle-hovered)';
361
+ 'color.background.neutral.subtle.pressed': 'var(--ds-background-neutral-subtle-pressed)';
362
+ 'color.background.neutral.bold': 'var(--ds-background-neutral-bold)';
363
+ 'color.background.neutral.bold.hovered': 'var(--ds-background-neutral-bold-hovered)';
364
+ 'color.background.neutral.bold.pressed': 'var(--ds-background-neutral-bold-pressed)';
365
+ 'color.background.selected': 'var(--ds-background-selected)';
366
+ 'color.background.selected.hovered': 'var(--ds-background-selected-hovered)';
367
+ 'color.background.selected.pressed': 'var(--ds-background-selected-pressed)';
368
+ 'color.background.selected.bold': 'var(--ds-background-selected-bold)';
369
+ 'color.background.selected.bold.hovered': 'var(--ds-background-selected-bold-hovered)';
370
+ 'color.background.selected.bold.pressed': 'var(--ds-background-selected-bold-pressed)';
371
+ 'color.background.brand.subtlest': 'var(--ds-background-brand-subtlest)';
372
+ 'color.background.brand.subtlest.hovered': 'var(--ds-background-brand-subtlest-hovered)';
373
+ 'color.background.brand.subtlest.pressed': 'var(--ds-background-brand-subtlest-pressed)';
374
+ 'color.background.brand.bold': 'var(--ds-background-brand-bold)';
375
+ 'color.background.brand.bold.hovered': 'var(--ds-background-brand-bold-hovered)';
376
+ 'color.background.brand.bold.pressed': 'var(--ds-background-brand-bold-pressed)';
377
+ 'color.background.brand.boldest': 'var(--ds-background-brand-boldest)';
378
+ 'color.background.brand.boldest.hovered': 'var(--ds-background-brand-boldest-hovered)';
379
+ 'color.background.brand.boldest.pressed': 'var(--ds-background-brand-boldest-pressed)';
380
+ 'color.background.danger': 'var(--ds-background-danger)';
381
+ 'color.background.danger.hovered': 'var(--ds-background-danger-hovered)';
382
+ 'color.background.danger.pressed': 'var(--ds-background-danger-pressed)';
383
+ 'color.background.danger.subtler': 'var(--ds-background-danger-subtler)';
384
+ 'color.background.danger.subtler.hovered': 'var(--ds-background-danger-subtler-hovered)';
385
+ 'color.background.danger.subtler.pressed': 'var(--ds-background-danger-subtler-pressed)';
386
+ 'color.background.danger.bold': 'var(--ds-background-danger-bold)';
387
+ 'color.background.danger.bold.hovered': 'var(--ds-background-danger-bold-hovered)';
388
+ 'color.background.danger.bold.pressed': 'var(--ds-background-danger-bold-pressed)';
389
+ 'color.background.warning': 'var(--ds-background-warning)';
390
+ 'color.background.warning.hovered': 'var(--ds-background-warning-hovered)';
391
+ 'color.background.warning.pressed': 'var(--ds-background-warning-pressed)';
392
+ 'color.background.warning.subtler': 'var(--ds-background-warning-subtler)';
393
+ 'color.background.warning.subtler.hovered': 'var(--ds-background-warning-subtler-hovered)';
394
+ 'color.background.warning.subtler.pressed': 'var(--ds-background-warning-subtler-pressed)';
395
+ 'color.background.warning.bold': 'var(--ds-background-warning-bold)';
396
+ 'color.background.warning.bold.hovered': 'var(--ds-background-warning-bold-hovered)';
397
+ 'color.background.warning.bold.pressed': 'var(--ds-background-warning-bold-pressed)';
398
+ 'color.background.success': 'var(--ds-background-success)';
399
+ 'color.background.success.hovered': 'var(--ds-background-success-hovered)';
400
+ 'color.background.success.pressed': 'var(--ds-background-success-pressed)';
401
+ 'color.background.success.subtler': 'var(--ds-background-success-subtler)';
402
+ 'color.background.success.subtler.hovered': 'var(--ds-background-success-subtler-hovered)';
403
+ 'color.background.success.subtler.pressed': 'var(--ds-background-success-subtler-pressed)';
404
+ 'color.background.success.bold': 'var(--ds-background-success-bold)';
405
+ 'color.background.success.bold.hovered': 'var(--ds-background-success-bold-hovered)';
406
+ 'color.background.success.bold.pressed': 'var(--ds-background-success-bold-pressed)';
407
+ 'color.background.discovery': 'var(--ds-background-discovery)';
408
+ 'color.background.discovery.hovered': 'var(--ds-background-discovery-hovered)';
409
+ 'color.background.discovery.pressed': 'var(--ds-background-discovery-pressed)';
410
+ 'color.background.discovery.subtler': 'var(--ds-background-discovery-subtler)';
411
+ 'color.background.discovery.subtler.hovered': 'var(--ds-background-discovery-subtler-hovered)';
412
+ 'color.background.discovery.subtler.pressed': 'var(--ds-background-discovery-subtler-pressed)';
413
+ 'color.background.discovery.bold': 'var(--ds-background-discovery-bold)';
414
+ 'color.background.discovery.bold.hovered': 'var(--ds-background-discovery-bold-hovered)';
415
+ 'color.background.discovery.bold.pressed': 'var(--ds-background-discovery-bold-pressed)';
416
+ 'color.background.information': 'var(--ds-background-information)';
417
+ 'color.background.information.hovered': 'var(--ds-background-information-hovered)';
418
+ 'color.background.information.pressed': 'var(--ds-background-information-pressed)';
419
+ 'color.background.information.subtler': 'var(--ds-background-information-subtler)';
420
+ 'color.background.information.subtler.hovered': 'var(--ds-background-information-subtler-hovered)';
421
+ 'color.background.information.subtler.pressed': 'var(--ds-background-information-subtler-pressed)';
422
+ 'color.background.information.bold': 'var(--ds-background-information-bold)';
423
+ 'color.background.information.bold.hovered': 'var(--ds-background-information-bold-hovered)';
424
+ 'color.background.information.bold.pressed': 'var(--ds-background-information-bold-pressed)';
425
+ 'color.blanket': 'var(--ds-blanket)';
426
+ 'color.blanket.selected': 'var(--ds-blanket-selected)';
427
+ 'color.blanket.danger': 'var(--ds-blanket-danger)';
428
+ 'color.skeleton': 'var(--ds-skeleton)';
429
+ 'color.skeleton.subtle': 'var(--ds-skeleton-subtle)';
430
+ 'elevation.surface': 'var(--ds-surface)';
431
+ 'elevation.surface.hovered': 'var(--ds-surface-hovered)';
432
+ 'elevation.surface.pressed': 'var(--ds-surface-pressed)';
433
+ 'elevation.surface.overlay': 'var(--ds-surface-overlay)';
434
+ 'elevation.surface.overlay.hovered': 'var(--ds-surface-overlay-hovered)';
435
+ 'elevation.surface.overlay.pressed': 'var(--ds-surface-overlay-pressed)';
436
+ 'elevation.surface.raised': 'var(--ds-surface-raised)';
437
+ 'elevation.surface.raised.hovered': 'var(--ds-surface-raised-hovered)';
438
+ 'elevation.surface.raised.pressed': 'var(--ds-surface-raised-pressed)';
439
+ 'elevation.surface.sunken': 'var(--ds-surface-sunken)';
440
+ 'utility.elevation.surface.current': 'var(--ds-elevation-surface-current)';
441
+ } = {
442
+ 'color.background.accent.lime.subtlest': token(
443
+ 'color.background.accent.lime.subtlest',
444
+ '#EEFBDA',
445
+ ),
446
+ 'color.background.accent.lime.subtlest.hovered': token(
447
+ 'color.background.accent.lime.subtlest.hovered',
448
+ '#D3F1A7',
449
+ ),
450
+ 'color.background.accent.lime.subtlest.pressed': token(
451
+ 'color.background.accent.lime.subtlest.pressed',
452
+ '#B3DF72',
453
+ ),
454
+ 'color.background.accent.lime.subtler': token('color.background.accent.lime.subtler', '#D3F1A7'),
455
+ 'color.background.accent.lime.subtler.hovered': token(
456
+ 'color.background.accent.lime.subtler.hovered',
457
+ '#B3DF72',
458
+ ),
459
+ 'color.background.accent.lime.subtler.pressed': token(
460
+ 'color.background.accent.lime.subtler.pressed',
461
+ '#94C748',
462
+ ),
463
+ 'color.background.accent.lime.subtle': token('color.background.accent.lime.subtle', '#94C748'),
464
+ 'color.background.accent.lime.subtle.hovered': token(
465
+ 'color.background.accent.lime.subtle.hovered',
466
+ '#B3DF72',
467
+ ),
468
+ 'color.background.accent.lime.subtle.pressed': token(
469
+ 'color.background.accent.lime.subtle.pressed',
470
+ '#D3F1A7',
471
+ ),
472
+ 'color.background.accent.lime.bolder': token('color.background.accent.lime.bolder', '#5B7F24'),
473
+ 'color.background.accent.lime.bolder.hovered': token(
474
+ 'color.background.accent.lime.bolder.hovered',
475
+ '#37471F',
476
+ ),
477
+ 'color.background.accent.lime.bolder.pressed': token(
478
+ 'color.background.accent.lime.bolder.pressed',
479
+ '#37471F',
480
+ ),
481
+ 'color.background.accent.red.subtlest': token('color.background.accent.red.subtlest', '#FF8F73'),
482
+ 'color.background.accent.red.subtlest.hovered': token(
483
+ 'color.background.accent.red.subtlest.hovered',
484
+ '#FF7452',
485
+ ),
486
+ 'color.background.accent.red.subtlest.pressed': token(
487
+ 'color.background.accent.red.subtlest.pressed',
488
+ '#FF5630',
489
+ ),
490
+ 'color.background.accent.red.subtler': token('color.background.accent.red.subtler', '#FF7452'),
491
+ 'color.background.accent.red.subtler.hovered': token(
492
+ 'color.background.accent.red.subtler.hovered',
493
+ '#FF5630',
494
+ ),
495
+ 'color.background.accent.red.subtler.pressed': token(
496
+ 'color.background.accent.red.subtler.pressed',
497
+ '#DE350B',
498
+ ),
499
+ 'color.background.accent.red.subtle': token('color.background.accent.red.subtle', '#DE350B'),
500
+ 'color.background.accent.red.subtle.hovered': token(
501
+ 'color.background.accent.red.subtle.hovered',
502
+ '#FF5630',
503
+ ),
504
+ 'color.background.accent.red.subtle.pressed': token(
505
+ 'color.background.accent.red.subtle.pressed',
506
+ '#FF7452',
507
+ ),
508
+ 'color.background.accent.red.bolder': token('color.background.accent.red.bolder', '#DE350B'),
509
+ 'color.background.accent.red.bolder.hovered': token(
510
+ 'color.background.accent.red.bolder.hovered',
511
+ '#FF5630',
512
+ ),
513
+ 'color.background.accent.red.bolder.pressed': token(
514
+ 'color.background.accent.red.bolder.pressed',
515
+ '#FF7452',
516
+ ),
517
+ 'color.background.accent.orange.subtlest': token(
518
+ 'color.background.accent.orange.subtlest',
519
+ '#F18D13',
520
+ ),
521
+ 'color.background.accent.orange.subtlest.hovered': token(
522
+ 'color.background.accent.orange.subtlest.hovered',
523
+ '#FEC57B',
524
+ ),
525
+ 'color.background.accent.orange.subtlest.pressed': token(
526
+ 'color.background.accent.orange.subtlest.pressed',
527
+ '#FFE2BD',
528
+ ),
529
+ 'color.background.accent.orange.subtler': token(
530
+ 'color.background.accent.orange.subtler',
531
+ '#B65C02',
532
+ ),
533
+ 'color.background.accent.orange.subtler.hovered': token(
534
+ 'color.background.accent.orange.subtler.hovered',
535
+ '#F18D13',
536
+ ),
537
+ 'color.background.accent.orange.subtler.pressed': token(
538
+ 'color.background.accent.orange.subtler.pressed',
539
+ '#FEC57B',
540
+ ),
541
+ 'color.background.accent.orange.subtle': token(
542
+ 'color.background.accent.orange.subtle',
543
+ '#5F3811',
544
+ ),
545
+ 'color.background.accent.orange.subtle.hovered': token(
546
+ 'color.background.accent.orange.subtle.hovered',
547
+ '#974F0C',
548
+ ),
549
+ 'color.background.accent.orange.subtle.pressed': token(
550
+ 'color.background.accent.orange.subtle.pressed',
551
+ '#B65C02',
552
+ ),
553
+ 'color.background.accent.orange.bolder': token(
554
+ 'color.background.accent.orange.bolder',
555
+ '#43290F',
556
+ ),
557
+ 'color.background.accent.orange.bolder.hovered': token(
558
+ 'color.background.accent.orange.bolder.hovered',
559
+ '#5F3811',
560
+ ),
561
+ 'color.background.accent.orange.bolder.pressed': token(
562
+ 'color.background.accent.orange.bolder.pressed',
563
+ '#974F0C',
564
+ ),
565
+ 'color.background.accent.yellow.subtlest': token(
566
+ 'color.background.accent.yellow.subtlest',
567
+ '#FFE380',
568
+ ),
569
+ 'color.background.accent.yellow.subtlest.hovered': token(
570
+ 'color.background.accent.yellow.subtlest.hovered',
571
+ '#FFC400',
572
+ ),
573
+ 'color.background.accent.yellow.subtlest.pressed': token(
574
+ 'color.background.accent.yellow.subtlest.pressed',
575
+ '#FFAB00',
576
+ ),
577
+ 'color.background.accent.yellow.subtler': token(
578
+ 'color.background.accent.yellow.subtler',
579
+ '#FFC400',
580
+ ),
581
+ 'color.background.accent.yellow.subtler.hovered': token(
582
+ 'color.background.accent.yellow.subtler.hovered',
583
+ '#FFAB00',
584
+ ),
585
+ 'color.background.accent.yellow.subtler.pressed': token(
586
+ 'color.background.accent.yellow.subtler.pressed',
587
+ '#FF991F',
588
+ ),
589
+ 'color.background.accent.yellow.subtle': token(
590
+ 'color.background.accent.yellow.subtle',
591
+ '#FF991F',
592
+ ),
593
+ 'color.background.accent.yellow.subtle.hovered': token(
594
+ 'color.background.accent.yellow.subtle.hovered',
595
+ '#FFAB00',
596
+ ),
597
+ 'color.background.accent.yellow.subtle.pressed': token(
598
+ 'color.background.accent.yellow.subtle.pressed',
599
+ '#FFC400',
600
+ ),
601
+ 'color.background.accent.yellow.bolder': token(
602
+ 'color.background.accent.yellow.bolder',
603
+ '#FF991F',
604
+ ),
605
+ 'color.background.accent.yellow.bolder.hovered': token(
606
+ 'color.background.accent.yellow.bolder.hovered',
607
+ '#FFAB00',
608
+ ),
609
+ 'color.background.accent.yellow.bolder.pressed': token(
610
+ 'color.background.accent.yellow.bolder.pressed',
611
+ '#FFC400',
612
+ ),
613
+ 'color.background.accent.green.subtlest': token(
614
+ 'color.background.accent.green.subtlest',
615
+ '#79F2C0',
616
+ ),
617
+ 'color.background.accent.green.subtlest.hovered': token(
618
+ 'color.background.accent.green.subtlest.hovered',
619
+ '#57D9A3',
620
+ ),
621
+ 'color.background.accent.green.subtlest.pressed': token(
622
+ 'color.background.accent.green.subtlest.pressed',
623
+ '#36B37E',
624
+ ),
625
+ 'color.background.accent.green.subtler': token(
626
+ 'color.background.accent.green.subtler',
627
+ '#57D9A3',
628
+ ),
629
+ 'color.background.accent.green.subtler.hovered': token(
630
+ 'color.background.accent.green.subtler.hovered',
631
+ '#36B37E',
632
+ ),
633
+ 'color.background.accent.green.subtler.pressed': token(
634
+ 'color.background.accent.green.subtler.pressed',
635
+ '#00875A',
636
+ ),
637
+ 'color.background.accent.green.subtle': token('color.background.accent.green.subtle', '#00875A'),
638
+ 'color.background.accent.green.subtle.hovered': token(
639
+ 'color.background.accent.green.subtle.hovered',
640
+ '#36B37E',
641
+ ),
642
+ 'color.background.accent.green.subtle.pressed': token(
643
+ 'color.background.accent.green.subtle.pressed',
644
+ '#57D9A3',
645
+ ),
646
+ 'color.background.accent.green.bolder': token('color.background.accent.green.bolder', '#00875A'),
647
+ 'color.background.accent.green.bolder.hovered': token(
648
+ 'color.background.accent.green.bolder.hovered',
649
+ '#36B37E',
650
+ ),
651
+ 'color.background.accent.green.bolder.pressed': token(
652
+ 'color.background.accent.green.bolder.pressed',
653
+ '#57D9A3',
654
+ ),
655
+ 'color.background.accent.teal.subtlest': token(
656
+ 'color.background.accent.teal.subtlest',
657
+ '#79E2F2',
658
+ ),
659
+ 'color.background.accent.teal.subtlest.hovered': token(
660
+ 'color.background.accent.teal.subtlest.hovered',
661
+ '#00C7E6',
662
+ ),
663
+ 'color.background.accent.teal.subtlest.pressed': token(
664
+ 'color.background.accent.teal.subtlest.pressed',
665
+ '#00B8D9',
666
+ ),
667
+ 'color.background.accent.teal.subtler': token('color.background.accent.teal.subtler', '#00C7E6'),
668
+ 'color.background.accent.teal.subtler.hovered': token(
669
+ 'color.background.accent.teal.subtler.hovered',
670
+ '#00B8D9',
671
+ ),
672
+ 'color.background.accent.teal.subtler.pressed': token(
673
+ 'color.background.accent.teal.subtler.pressed',
674
+ '#00A3BF',
675
+ ),
676
+ 'color.background.accent.teal.subtle': token('color.background.accent.teal.subtle', '#00A3BF'),
677
+ 'color.background.accent.teal.subtle.hovered': token(
678
+ 'color.background.accent.teal.subtle.hovered',
679
+ '#00B8D9',
680
+ ),
681
+ 'color.background.accent.teal.subtle.pressed': token(
682
+ 'color.background.accent.teal.subtle.pressed',
683
+ '#00C7E6',
684
+ ),
685
+ 'color.background.accent.teal.bolder': token('color.background.accent.teal.bolder', '#00A3BF'),
686
+ 'color.background.accent.teal.bolder.hovered': token(
687
+ 'color.background.accent.teal.bolder.hovered',
688
+ '#00B8D9',
689
+ ),
690
+ 'color.background.accent.teal.bolder.pressed': token(
691
+ 'color.background.accent.teal.bolder.pressed',
692
+ '#00C7E6',
693
+ ),
694
+ 'color.background.accent.blue.subtlest': token(
695
+ 'color.background.accent.blue.subtlest',
696
+ '#4C9AFF',
697
+ ),
698
+ 'color.background.accent.blue.subtlest.hovered': token(
699
+ 'color.background.accent.blue.subtlest.hovered',
700
+ '#2684FF',
701
+ ),
702
+ 'color.background.accent.blue.subtlest.pressed': token(
703
+ 'color.background.accent.blue.subtlest.pressed',
704
+ '#0065FF',
705
+ ),
706
+ 'color.background.accent.blue.subtler': token('color.background.accent.blue.subtler', '#2684FF'),
707
+ 'color.background.accent.blue.subtler.hovered': token(
708
+ 'color.background.accent.blue.subtler.hovered',
709
+ '#0065FF',
710
+ ),
711
+ 'color.background.accent.blue.subtler.pressed': token(
712
+ 'color.background.accent.blue.subtler.pressed',
713
+ '#0052CC',
714
+ ),
715
+ 'color.background.accent.blue.subtle': token('color.background.accent.blue.subtle', '#0052CC'),
716
+ 'color.background.accent.blue.subtle.hovered': token(
717
+ 'color.background.accent.blue.subtle.hovered',
718
+ '#0065FF',
719
+ ),
720
+ 'color.background.accent.blue.subtle.pressed': token(
721
+ 'color.background.accent.blue.subtle.pressed',
722
+ '#2684FF',
723
+ ),
724
+ 'color.background.accent.blue.bolder': token('color.background.accent.blue.bolder', '#0052CC'),
725
+ 'color.background.accent.blue.bolder.hovered': token(
726
+ 'color.background.accent.blue.bolder.hovered',
727
+ '#0065FF',
728
+ ),
729
+ 'color.background.accent.blue.bolder.pressed': token(
730
+ 'color.background.accent.blue.bolder.pressed',
731
+ '#2684FF',
732
+ ),
733
+ 'color.background.accent.purple.subtlest': token(
734
+ 'color.background.accent.purple.subtlest',
735
+ '#998DD9',
736
+ ),
737
+ 'color.background.accent.purple.subtlest.hovered': token(
738
+ 'color.background.accent.purple.subtlest.hovered',
739
+ '#8777D9',
740
+ ),
741
+ 'color.background.accent.purple.subtlest.pressed': token(
742
+ 'color.background.accent.purple.subtlest.pressed',
743
+ '#6554C0',
744
+ ),
745
+ 'color.background.accent.purple.subtler': token(
746
+ 'color.background.accent.purple.subtler',
747
+ '#8777D9',
748
+ ),
749
+ 'color.background.accent.purple.subtler.hovered': token(
750
+ 'color.background.accent.purple.subtler.hovered',
751
+ '#6554C0',
752
+ ),
753
+ 'color.background.accent.purple.subtler.pressed': token(
754
+ 'color.background.accent.purple.subtler.pressed',
755
+ '#5243AA',
756
+ ),
757
+ 'color.background.accent.purple.subtle': token(
758
+ 'color.background.accent.purple.subtle',
759
+ '#5243AA',
760
+ ),
761
+ 'color.background.accent.purple.subtle.hovered': token(
762
+ 'color.background.accent.purple.subtle.hovered',
763
+ '#6554C0',
764
+ ),
765
+ 'color.background.accent.purple.subtle.pressed': token(
766
+ 'color.background.accent.purple.subtle.pressed',
767
+ '#8777D9',
768
+ ),
769
+ 'color.background.accent.purple.bolder': token(
770
+ 'color.background.accent.purple.bolder',
771
+ '#5243AA',
772
+ ),
773
+ 'color.background.accent.purple.bolder.hovered': token(
774
+ 'color.background.accent.purple.bolder.hovered',
775
+ '#6554C0',
776
+ ),
777
+ 'color.background.accent.purple.bolder.pressed': token(
778
+ 'color.background.accent.purple.bolder.pressed',
779
+ '#8777D9',
780
+ ),
781
+ 'color.background.accent.magenta.subtlest': token(
782
+ 'color.background.accent.magenta.subtlest',
783
+ '#FFECF8',
784
+ ),
785
+ 'color.background.accent.magenta.subtlest.hovered': token(
786
+ 'color.background.accent.magenta.subtlest.hovered',
787
+ '#FDD0EC',
788
+ ),
789
+ 'color.background.accent.magenta.subtlest.pressed': token(
790
+ 'color.background.accent.magenta.subtlest.pressed',
791
+ '#F797D2',
792
+ ),
793
+ 'color.background.accent.magenta.subtler': token(
794
+ 'color.background.accent.magenta.subtler',
795
+ '#FDD0EC',
796
+ ),
797
+ 'color.background.accent.magenta.subtler.hovered': token(
798
+ 'color.background.accent.magenta.subtler.hovered',
799
+ '#F797D2',
800
+ ),
801
+ 'color.background.accent.magenta.subtler.pressed': token(
802
+ 'color.background.accent.magenta.subtler.pressed',
803
+ '#E774BB',
804
+ ),
805
+ 'color.background.accent.magenta.subtle': token(
806
+ 'color.background.accent.magenta.subtle',
807
+ '#E774BB',
808
+ ),
809
+ 'color.background.accent.magenta.subtle.hovered': token(
810
+ 'color.background.accent.magenta.subtle.hovered',
811
+ '#F797D2',
812
+ ),
813
+ 'color.background.accent.magenta.subtle.pressed': token(
814
+ 'color.background.accent.magenta.subtle.pressed',
815
+ '#FDD0EC',
816
+ ),
817
+ 'color.background.accent.magenta.bolder': token(
818
+ 'color.background.accent.magenta.bolder',
819
+ '#AE4787',
820
+ ),
821
+ 'color.background.accent.magenta.bolder.hovered': token(
822
+ 'color.background.accent.magenta.bolder.hovered',
823
+ '#943D73',
824
+ ),
825
+ 'color.background.accent.magenta.bolder.pressed': token(
826
+ 'color.background.accent.magenta.bolder.pressed',
827
+ '#50253F',
828
+ ),
829
+ 'color.background.accent.gray.subtlest': token(
830
+ 'color.background.accent.gray.subtlest',
831
+ '#6B778C',
832
+ ),
833
+ 'color.background.accent.gray.subtlest.hovered': token(
834
+ 'color.background.accent.gray.subtlest.hovered',
835
+ '#5E6C84',
836
+ ),
837
+ 'color.background.accent.gray.subtlest.pressed': token(
838
+ 'color.background.accent.gray.subtlest.pressed',
839
+ '#505F79',
840
+ ),
841
+ 'color.background.accent.gray.subtler': token('color.background.accent.gray.subtler', '#5E6C84'),
842
+ 'color.background.accent.gray.subtler.hovered': token(
843
+ 'color.background.accent.gray.subtler.hovered',
844
+ '#505F79',
845
+ ),
846
+ 'color.background.accent.gray.subtler.pressed': token(
847
+ 'color.background.accent.gray.subtler.pressed',
848
+ '#42526E',
849
+ ),
850
+ 'color.background.accent.gray.subtle': token('color.background.accent.gray.subtle', '#505F79'),
851
+ 'color.background.accent.gray.subtle.hovered': token(
852
+ 'color.background.accent.gray.subtle.hovered',
853
+ '#5E6C84',
854
+ ),
855
+ 'color.background.accent.gray.subtle.pressed': token(
856
+ 'color.background.accent.gray.subtle.pressed',
857
+ '#6B778C',
858
+ ),
859
+ 'color.background.accent.gray.bolder': token('color.background.accent.gray.bolder', '#42526E'),
860
+ 'color.background.accent.gray.bolder.hovered': token(
861
+ 'color.background.accent.gray.bolder.hovered',
862
+ '#344563',
863
+ ),
864
+ 'color.background.accent.gray.bolder.pressed': token(
865
+ 'color.background.accent.gray.bolder.pressed',
866
+ '#253858',
867
+ ),
868
+ 'color.background.disabled': token('color.background.disabled', '#091e4289'),
869
+ 'color.background.input': token('color.background.input', '#FAFBFC'),
870
+ 'color.background.input.hovered': token('color.background.input.hovered', '#EBECF0'),
871
+ 'color.background.input.pressed': token('color.background.input.pressed', '#FFFFFF'),
872
+ 'color.background.inverse.subtle': token('color.background.inverse.subtle', '#00000029'),
873
+ 'color.background.inverse.subtle.hovered': token(
874
+ 'color.background.inverse.subtle.hovered',
875
+ '#0000003D',
876
+ ),
877
+ 'color.background.inverse.subtle.pressed': token(
878
+ 'color.background.inverse.subtle.pressed',
879
+ '#00000052',
880
+ ),
881
+ 'color.background.neutral': token('color.background.neutral', '#DFE1E6'),
882
+ 'color.background.neutral.hovered': token('color.background.neutral.hovered', '#091e4214'),
883
+ 'color.background.neutral.pressed': token('color.background.neutral.pressed', '#B3D4FF'),
884
+ 'color.background.neutral.subtle': token('color.background.neutral.subtle', 'transparent'),
885
+ 'color.background.neutral.subtle.hovered': token(
886
+ 'color.background.neutral.subtle.hovered',
887
+ '#091e4214',
888
+ ),
889
+ 'color.background.neutral.subtle.pressed': token(
890
+ 'color.background.neutral.subtle.pressed',
891
+ '#B3D4FF',
892
+ ),
893
+ 'color.background.neutral.bold': token('color.background.neutral.bold', '#42526E'),
894
+ 'color.background.neutral.bold.hovered': token(
895
+ 'color.background.neutral.bold.hovered',
896
+ '#505F79',
897
+ ),
898
+ 'color.background.neutral.bold.pressed': token(
899
+ 'color.background.neutral.bold.pressed',
900
+ '#344563',
901
+ ),
902
+ 'color.background.selected': token('color.background.selected', '#DEEBFF'),
903
+ 'color.background.selected.hovered': token('color.background.selected.hovered', '#B3D4FF'),
904
+ 'color.background.selected.pressed': token('color.background.selected.pressed', '#4C9AFF'),
905
+ 'color.background.selected.bold': token('color.background.selected.bold', '#0052CC'),
906
+ 'color.background.selected.bold.hovered': token(
907
+ 'color.background.selected.bold.hovered',
908
+ '#2684FF',
909
+ ),
910
+ 'color.background.selected.bold.pressed': token(
911
+ 'color.background.selected.bold.pressed',
912
+ '#0052CC',
913
+ ),
914
+ 'color.background.brand.subtlest': token('color.background.brand.subtlest', '#B3D4FF'),
915
+ 'color.background.brand.subtlest.hovered': token(
916
+ 'color.background.brand.subtlest.hovered',
917
+ '#DEEBFF',
918
+ ),
919
+ 'color.background.brand.subtlest.pressed': token(
920
+ 'color.background.brand.subtlest.pressed',
921
+ '#4C9AFF',
922
+ ),
923
+ 'color.background.brand.bold': token('color.background.brand.bold', '#0052CC'),
924
+ 'color.background.brand.bold.hovered': token('color.background.brand.bold.hovered', '#0065FF'),
925
+ 'color.background.brand.bold.pressed': token('color.background.brand.bold.pressed', '#0747A6'),
926
+ 'color.background.brand.boldest': token('color.background.brand.boldest', '#0747A6'),
927
+ 'color.background.brand.boldest.hovered': token(
928
+ 'color.background.brand.boldest.hovered',
929
+ '#0052CC',
930
+ ),
931
+ 'color.background.brand.boldest.pressed': token(
932
+ 'color.background.brand.boldest.pressed',
933
+ '#0747A6',
934
+ ),
935
+ 'color.background.danger': token('color.background.danger', '#FFEBE6'),
936
+ 'color.background.danger.hovered': token('color.background.danger.hovered', '#FFBDAD'),
937
+ 'color.background.danger.pressed': token('color.background.danger.pressed', '#FF8F73'),
938
+ 'color.background.danger.subtler': token('color.background.danger.subtler', '#FFBDAD'),
939
+ 'color.background.danger.subtler.hovered': token(
940
+ 'color.background.danger.subtler.hovered',
941
+ '#FF8F73',
942
+ ),
943
+ 'color.background.danger.subtler.pressed': token(
944
+ 'color.background.danger.subtler.pressed',
945
+ '#FF7452',
946
+ ),
947
+ 'color.background.danger.bold': token('color.background.danger.bold', '#DE350B'),
948
+ 'color.background.danger.bold.hovered': token('color.background.danger.bold.hovered', '#FF5630'),
949
+ 'color.background.danger.bold.pressed': token('color.background.danger.bold.pressed', '#BF2600'),
950
+ 'color.background.warning': token('color.background.warning', '#FFFAE6'),
951
+ 'color.background.warning.hovered': token('color.background.warning.hovered', '#FFF0B3'),
952
+ 'color.background.warning.pressed': token('color.background.warning.pressed', '#FFE380'),
953
+ 'color.background.warning.subtler': token('color.background.warning.subtler', '#FFF0B3'),
954
+ 'color.background.warning.subtler.hovered': token(
955
+ 'color.background.warning.subtler.hovered',
956
+ '#FFE380',
957
+ ),
958
+ 'color.background.warning.subtler.pressed': token(
959
+ 'color.background.warning.subtler.pressed',
960
+ '#FFC400',
961
+ ),
962
+ 'color.background.warning.bold': token('color.background.warning.bold', '#FFAB00'),
963
+ 'color.background.warning.bold.hovered': token(
964
+ 'color.background.warning.bold.hovered',
965
+ '#FFC400',
966
+ ),
967
+ 'color.background.warning.bold.pressed': token(
968
+ 'color.background.warning.bold.pressed',
969
+ '#FF991F',
970
+ ),
971
+ 'color.background.success': token('color.background.success', '#E3FCEF'),
972
+ 'color.background.success.hovered': token('color.background.success.hovered', '#ABF5D1'),
973
+ 'color.background.success.pressed': token('color.background.success.pressed', '#79F2C0'),
974
+ 'color.background.success.subtler': token('color.background.success.subtler', '#ABF5D1'),
975
+ 'color.background.success.subtler.hovered': token(
976
+ 'color.background.success.subtler.hovered',
977
+ '#79F2C0',
978
+ ),
979
+ 'color.background.success.subtler.pressed': token(
980
+ 'color.background.success.subtler.pressed',
981
+ '#57D9A3',
982
+ ),
983
+ 'color.background.success.bold': token('color.background.success.bold', '#00875A'),
984
+ 'color.background.success.bold.hovered': token(
985
+ 'color.background.success.bold.hovered',
986
+ '#57D9A3',
987
+ ),
988
+ 'color.background.success.bold.pressed': token(
989
+ 'color.background.success.bold.pressed',
990
+ '#00875A',
991
+ ),
992
+ 'color.background.discovery': token('color.background.discovery', '#EAE6FF'),
993
+ 'color.background.discovery.hovered': token('color.background.discovery.hovered', '#C0B6F2'),
994
+ 'color.background.discovery.pressed': token('color.background.discovery.pressed', '#998DD9'),
995
+ 'color.background.discovery.subtler': token('color.background.discovery.subtler', '#C0B6F2'),
996
+ 'color.background.discovery.subtler.hovered': token(
997
+ 'color.background.discovery.subtler.hovered',
998
+ '#998DD9',
999
+ ),
1000
+ 'color.background.discovery.subtler.pressed': token(
1001
+ 'color.background.discovery.subtler.pressed',
1002
+ '#8777D9',
1003
+ ),
1004
+ 'color.background.discovery.bold': token('color.background.discovery.bold', '#5243AA'),
1005
+ 'color.background.discovery.bold.hovered': token(
1006
+ 'color.background.discovery.bold.hovered',
1007
+ '#8777D9',
1008
+ ),
1009
+ 'color.background.discovery.bold.pressed': token(
1010
+ 'color.background.discovery.bold.pressed',
1011
+ '#5243AA',
1012
+ ),
1013
+ 'color.background.information': token('color.background.information', '#DEEBFF'),
1014
+ 'color.background.information.hovered': token('color.background.information.hovered', '#B3D4FF'),
1015
+ 'color.background.information.pressed': token('color.background.information.pressed', '#4C9AFF'),
1016
+ 'color.background.information.subtler': token('color.background.information.subtler', '#B3D4FF'),
1017
+ 'color.background.information.subtler.hovered': token(
1018
+ 'color.background.information.subtler.hovered',
1019
+ '#4C9AFF',
1020
+ ),
1021
+ 'color.background.information.subtler.pressed': token(
1022
+ 'color.background.information.subtler.pressed',
1023
+ '#2684FF',
1024
+ ),
1025
+ 'color.background.information.bold': token('color.background.information.bold', '#0052CC'),
1026
+ 'color.background.information.bold.hovered': token(
1027
+ 'color.background.information.bold.hovered',
1028
+ '#2684FF',
1029
+ ),
1030
+ 'color.background.information.bold.pressed': token(
1031
+ 'color.background.information.bold.pressed',
1032
+ '#0052CC',
1033
+ ),
1034
+ 'color.blanket': token('color.blanket', '#091e4289'),
1035
+ 'color.blanket.selected': token('color.blanket.selected', '#388BFF14'),
1036
+ 'color.blanket.danger': token('color.blanket.danger', '#EF5C4814'),
1037
+ 'color.skeleton': token('color.skeleton', '#F4F5F7'),
1038
+ 'color.skeleton.subtle': token('color.skeleton.subtle', '#091e420a'),
1039
+ 'elevation.surface': token('elevation.surface', '#FFFFFF'),
1040
+ 'elevation.surface.hovered': token('elevation.surface.hovered', '#FAFBFC'),
1041
+ 'elevation.surface.pressed': token('elevation.surface.pressed', '#F4F5F7'),
1042
+ 'elevation.surface.overlay': token('elevation.surface.overlay', '#FFFFFF'),
1043
+ 'elevation.surface.overlay.hovered': token('elevation.surface.overlay.hovered', '#FAFBFC'),
1044
+ 'elevation.surface.overlay.pressed': token('elevation.surface.overlay.pressed', '#F4F5F7'),
1045
+ 'elevation.surface.raised': token('elevation.surface.raised', '#FFFFFF'),
1046
+ 'elevation.surface.raised.hovered': token('elevation.surface.raised.hovered', '#FAFBFC'),
1047
+ 'elevation.surface.raised.pressed': token('elevation.surface.raised.pressed', '#F4F5F7'),
1048
+ 'elevation.surface.sunken': token('elevation.surface.sunken', '#F4F5F7'),
1049
+ 'utility.elevation.surface.current': token('utility.elevation.surface.current', '#FFFFFF'),
1050
+ } as const;
1051
+
1052
+ export type BackgroundColor = keyof typeof backgroundColorMap;
1053
+
1054
+ export const borderColorMap: {
1055
+ 'color.border': 'var(--ds-border)';
1056
+ 'color.border.accent.lime': 'var(--ds-border-accent-lime)';
1057
+ 'color.border.accent.red': 'var(--ds-border-accent-red)';
1058
+ 'color.border.accent.orange': 'var(--ds-border-accent-orange)';
1059
+ 'color.border.accent.yellow': 'var(--ds-border-accent-yellow)';
1060
+ 'color.border.accent.green': 'var(--ds-border-accent-green)';
1061
+ 'color.border.accent.teal': 'var(--ds-border-accent-teal)';
1062
+ 'color.border.accent.blue': 'var(--ds-border-accent-blue)';
1063
+ 'color.border.accent.purple': 'var(--ds-border-accent-purple)';
1064
+ 'color.border.accent.magenta': 'var(--ds-border-accent-magenta)';
1065
+ 'color.border.accent.gray': 'var(--ds-border-accent-gray)';
1066
+ 'color.border.disabled': 'var(--ds-border-disabled)';
1067
+ 'color.border.focused': 'var(--ds-border-focused)';
1068
+ 'color.border.input': 'var(--ds-border-input)';
1069
+ 'color.border.inverse': 'var(--ds-border-inverse)';
1070
+ 'color.border.selected': 'var(--ds-border-selected)';
1071
+ 'color.border.brand': 'var(--ds-border-brand)';
1072
+ 'color.border.danger': 'var(--ds-border-danger)';
1073
+ 'color.border.warning': 'var(--ds-border-warning)';
1074
+ 'color.border.success': 'var(--ds-border-success)';
1075
+ 'color.border.discovery': 'var(--ds-border-discovery)';
1076
+ 'color.border.information': 'var(--ds-border-information)';
1077
+ 'color.border.bold': 'var(--ds-border-bold)';
1078
+ } = {
1079
+ 'color.border': token('color.border', '#091e4221'),
1080
+ 'color.border.accent.lime': token('color.border.accent.lime', '#6A9A23'),
1081
+ 'color.border.accent.red': token('color.border.accent.red', '#FF5630'),
1082
+ 'color.border.accent.orange': token('color.border.accent.orange', '#D94008'),
1083
+ 'color.border.accent.yellow': token('color.border.accent.yellow', '#FFAB00'),
1084
+ 'color.border.accent.green': token('color.border.accent.green', '#36B37E'),
1085
+ 'color.border.accent.teal': token('color.border.accent.teal', '#00B8D9'),
1086
+ 'color.border.accent.blue': token('color.border.accent.blue', '#0065FF'),
1087
+ 'color.border.accent.purple': token('color.border.accent.purple', '#6554C0'),
1088
+ 'color.border.accent.magenta': token('color.border.accent.magenta', '#CD519D'),
1089
+ 'color.border.accent.gray': token('color.border.accent.gray', '#5E6C84'),
1090
+ 'color.border.disabled': token('color.border.disabled', '#FAFBFC'),
1091
+ 'color.border.focused': token('color.border.focused', '#2684FF'),
1092
+ 'color.border.input': token('color.border.input', '#FAFBFC'),
1093
+ 'color.border.inverse': token('color.border.inverse', '#FFFFFF'),
1094
+ 'color.border.selected': token('color.border.selected', '#0052CC'),
1095
+ 'color.border.brand': token('color.border.brand', '#0052CC'),
1096
+ 'color.border.danger': token('color.border.danger', '#FF5630'),
1097
+ 'color.border.warning': token('color.border.warning', '#FFC400'),
1098
+ 'color.border.success': token('color.border.success', '#00875A'),
1099
+ 'color.border.discovery': token('color.border.discovery', '#998DD9'),
1100
+ 'color.border.information': token('color.border.information', '#0065FF'),
1101
+ 'color.border.bold': token('color.border.bold', '#344563'),
1102
+ } as const;
1103
+
1104
+ export type BorderColor = keyof typeof borderColorMap;
1105
+
1106
+
1107
+ export const inverseColorMap: {
1108
+ 'color.background.neutral.bold': 'color.text.inverse';
1109
+ 'color.background.neutral.bold.hovered': 'color.text.inverse';
1110
+ 'color.background.neutral.bold.pressed': 'color.text.inverse';
1111
+ 'color.background.selected.bold': 'color.text.inverse';
1112
+ 'color.background.selected.bold.hovered': 'color.text.inverse';
1113
+ 'color.background.selected.bold.pressed': 'color.text.inverse';
1114
+ 'color.background.brand.bold': 'color.text.inverse';
1115
+ 'color.background.brand.bold.hovered': 'color.text.inverse';
1116
+ 'color.background.brand.bold.pressed': 'color.text.inverse';
1117
+ 'color.background.brand.boldest': 'color.text.inverse';
1118
+ 'color.background.brand.boldest.hovered': 'color.text.inverse';
1119
+ 'color.background.brand.boldest.pressed': 'color.text.inverse';
1120
+ 'color.background.danger.bold': 'color.text.inverse';
1121
+ 'color.background.danger.bold.hovered': 'color.text.inverse';
1122
+ 'color.background.danger.bold.pressed': 'color.text.inverse';
1123
+ 'color.background.warning.bold': 'color.text.warning.inverse';
1124
+ 'color.background.warning.bold.hovered': 'color.text.warning.inverse';
1125
+ 'color.background.warning.bold.pressed': 'color.text.warning.inverse';
1126
+ 'color.background.success.bold': 'color.text.inverse';
1127
+ 'color.background.success.bold.hovered': 'color.text.inverse';
1128
+ 'color.background.success.bold.pressed': 'color.text.inverse';
1129
+ 'color.background.discovery.bold': 'color.text.inverse';
1130
+ 'color.background.discovery.bold.hovered': 'color.text.inverse';
1131
+ 'color.background.discovery.bold.pressed': 'color.text.inverse';
1132
+ 'color.background.information.bold': 'color.text.inverse';
1133
+ 'color.background.information.bold.hovered': 'color.text.inverse';
1134
+ 'color.background.information.bold.pressed': 'color.text.inverse';
1135
+ } = {
1136
+ 'color.background.neutral.bold': 'color.text.inverse',
1137
+ 'color.background.neutral.bold.hovered': 'color.text.inverse',
1138
+ 'color.background.neutral.bold.pressed': 'color.text.inverse',
1139
+ 'color.background.selected.bold': 'color.text.inverse',
1140
+ 'color.background.selected.bold.hovered': 'color.text.inverse',
1141
+ 'color.background.selected.bold.pressed': 'color.text.inverse',
1142
+ 'color.background.brand.bold': 'color.text.inverse',
1143
+ 'color.background.brand.bold.hovered': 'color.text.inverse',
1144
+ 'color.background.brand.bold.pressed': 'color.text.inverse',
1145
+ 'color.background.brand.boldest': 'color.text.inverse',
1146
+ 'color.background.brand.boldest.hovered': 'color.text.inverse',
1147
+ 'color.background.brand.boldest.pressed': 'color.text.inverse',
1148
+ 'color.background.danger.bold': 'color.text.inverse',
1149
+ 'color.background.danger.bold.hovered': 'color.text.inverse',
1150
+ 'color.background.danger.bold.pressed': 'color.text.inverse',
1151
+ 'color.background.warning.bold': 'color.text.warning.inverse',
1152
+ 'color.background.warning.bold.hovered': 'color.text.warning.inverse',
1153
+ 'color.background.warning.bold.pressed': 'color.text.warning.inverse',
1154
+ 'color.background.success.bold': 'color.text.inverse',
1155
+ 'color.background.success.bold.hovered': 'color.text.inverse',
1156
+ 'color.background.success.bold.pressed': 'color.text.inverse',
1157
+ 'color.background.discovery.bold': 'color.text.inverse',
1158
+ 'color.background.discovery.bold.hovered': 'color.text.inverse',
1159
+ 'color.background.discovery.bold.pressed': 'color.text.inverse',
1160
+ 'color.background.information.bold': 'color.text.inverse',
1161
+ 'color.background.information.bold.hovered': 'color.text.inverse',
1162
+ 'color.background.information.bold.pressed': 'color.text.inverse',
1163
+ } as const;
1164
+
1165
+
1166
+ export const opacityMap: {
1167
+ 'opacity.disabled': 'var(--ds-opacity-disabled)';
1168
+ 'opacity.loading': 'var(--ds-opacity-loading)';
1169
+ } = {
1170
+ 'opacity.disabled': token('opacity.disabled', '0.4'),
1171
+ 'opacity.loading': token('opacity.loading', '0.2'),
1172
+ } as const;
1173
+
1174
+ export type Opacity = keyof typeof opacityMap;
1175
+
1176
+ export const shadowMap: {
1177
+ 'elevation.shadow.overflow': 'var(--ds-shadow-overflow)';
1178
+ 'elevation.shadow.overflow.perimeter': 'var(--ds-shadow-overflow-perimeter)';
1179
+ 'elevation.shadow.overflow.spread': 'var(--ds-shadow-overflow-spread)';
1180
+ 'elevation.shadow.overlay': 'var(--ds-shadow-overlay)';
1181
+ 'elevation.shadow.raised': 'var(--ds-shadow-raised)';
1182
+ } = {
1183
+ 'elevation.shadow.overflow': token(
1184
+ 'elevation.shadow.overflow',
1185
+ '0px 0px 8px #091e423f, 0px 0px 1px #091e424f',
1186
+ ),
1187
+ 'elevation.shadow.overflow.perimeter': token('elevation.shadow.overflow.perimeter', '#091e421f'),
1188
+ 'elevation.shadow.overflow.spread': token('elevation.shadow.overflow.spread', '#091e4229'),
1189
+ 'elevation.shadow.overlay': token(
1190
+ 'elevation.shadow.overlay',
1191
+ '0px 8px 12px #091e423f, 0px 0px 1px #091e424f',
1192
+ ),
1193
+ 'elevation.shadow.raised': token(
1194
+ 'elevation.shadow.raised',
1195
+ '0px 1px 1px #091e423f, 0px 0px 1px #091e4221',
1196
+ ),
1197
+ } as const;
1198
+
1199
+ export type Shadow = keyof typeof shadowMap;
1200
+
1201
+ export const surfaceColorMap: {
1202
+ 'elevation.surface': 'var(--ds-surface)';
1203
+ 'elevation.surface.hovered': 'var(--ds-surface-hovered)';
1204
+ 'elevation.surface.pressed': 'var(--ds-surface-pressed)';
1205
+ 'elevation.surface.overlay': 'var(--ds-surface-overlay)';
1206
+ 'elevation.surface.overlay.hovered': 'var(--ds-surface-overlay-hovered)';
1207
+ 'elevation.surface.overlay.pressed': 'var(--ds-surface-overlay-pressed)';
1208
+ 'elevation.surface.raised': 'var(--ds-surface-raised)';
1209
+ 'elevation.surface.raised.hovered': 'var(--ds-surface-raised-hovered)';
1210
+ 'elevation.surface.raised.pressed': 'var(--ds-surface-raised-pressed)';
1211
+ 'elevation.surface.sunken': 'var(--ds-surface-sunken)';
1212
+ } = {
1213
+ 'elevation.surface': token('elevation.surface', '#FFFFFF'),
1214
+ 'elevation.surface.hovered': token('elevation.surface.hovered', '#FAFBFC'),
1215
+ 'elevation.surface.pressed': token('elevation.surface.pressed', '#F4F5F7'),
1216
+ 'elevation.surface.overlay': token('elevation.surface.overlay', '#FFFFFF'),
1217
+ 'elevation.surface.overlay.hovered': token('elevation.surface.overlay.hovered', '#FAFBFC'),
1218
+ 'elevation.surface.overlay.pressed': token('elevation.surface.overlay.pressed', '#F4F5F7'),
1219
+ 'elevation.surface.raised': token('elevation.surface.raised', '#FFFFFF'),
1220
+ 'elevation.surface.raised.hovered': token('elevation.surface.raised.hovered', '#FAFBFC'),
1221
+ 'elevation.surface.raised.pressed': token('elevation.surface.raised.pressed', '#F4F5F7'),
1222
+ 'elevation.surface.sunken': token('elevation.surface.sunken', '#F4F5F7'),
1223
+ } as const;
1224
+
1225
+ export type SurfaceColor = keyof typeof surfaceColorMap;
1226
+
1227
+
1228
+ export const borderWidthMap: {
1229
+ 'border.width': 'var(--ds-border-width)';
1230
+ 'border.width.selected': 'var(--ds-border-width-selected)';
1231
+ 'border.width.focused': 'var(--ds-border-width-focused)';
1232
+ } = {
1233
+ 'border.width': token('border.width', '1px'),
1234
+ 'border.width.selected': token('border.width.selected', '2px'),
1235
+ 'border.width.focused': token('border.width.focused', '2px'),
1236
+ };
1237
+
1238
+ export type BorderWidth = keyof typeof borderWidthMap;
1239
+
1240
+ export const borderRadiusMap: {
1241
+ 'radius.xsmall': 'var(--ds-radius-xsmall)';
1242
+ 'radius.small': 'var(--ds-radius-small)';
1243
+ 'radius.medium': 'var(--ds-radius-medium)';
1244
+ 'radius.large': 'var(--ds-radius-large)';
1245
+ 'radius.xlarge': 'var(--ds-radius-xlarge)';
1246
+ 'radius.xxlarge': 'var(--ds-radius-xxlarge)';
1247
+ 'radius.full': 'var(--ds-radius-full)';
1248
+ 'radius.tile': 'var(--ds-radius-tile)';
1249
+ } = {
1250
+ 'radius.xsmall': token('radius.xsmall', '2px'),
1251
+ 'radius.small': token('radius.small', '3px'),
1252
+ 'radius.medium': token('radius.medium', '6px'),
1253
+ 'radius.large': token('radius.large', '8px'),
1254
+ 'radius.xlarge': token('radius.xlarge', '12px'),
1255
+ 'radius.xxlarge': token('radius.xxlarge', '16px'),
1256
+ 'radius.full': token('radius.full', '9999px'),
1257
+ 'radius.tile': token('radius.tile', '25%'),
1258
+ };
1259
+
1260
+ export type BorderRadius = keyof typeof borderRadiusMap;
1261
+
1262
+
1263
+ export const layerMap = {
1264
+ '1': 1,
1265
+ card: 100,
1266
+ navigation: 200,
1267
+ dialog: 300,
1268
+ layer: 400,
1269
+ blanket: 500,
1270
+ modal: 510,
1271
+ flag: 600,
1272
+ spotlight: 700,
1273
+ tooltip: 800,
1274
+ } as const;
1275
+
1276
+ export type Layer = keyof typeof layerMap;
1277
+
1278
+
1279
+ export const fontMap: {
1280
+ 'font.body': 'var(--ds-font-body)';
1281
+ 'font.body.UNSAFE_small': 'var(--ds-font-body-UNSAFE_small)';
1282
+ 'font.body.large': 'var(--ds-font-body-large)';
1283
+ 'font.body.small': 'var(--ds-font-body-small)';
1284
+ 'font.code': 'var(--ds-font-code)';
1285
+ 'font.heading.large': 'var(--ds-font-heading-large)';
1286
+ 'font.heading.medium': 'var(--ds-font-heading-medium)';
1287
+ 'font.heading.small': 'var(--ds-font-heading-small)';
1288
+ 'font.heading.xlarge': 'var(--ds-font-heading-xlarge)';
1289
+ 'font.heading.xsmall': 'var(--ds-font-heading-xsmall)';
1290
+ 'font.heading.xxlarge': 'var(--ds-font-heading-xxlarge)';
1291
+ 'font.heading.xxsmall': 'var(--ds-font-heading-xxsmall)';
1292
+ 'font.metric.large': 'var(--ds-font-metric-large)';
1293
+ 'font.metric.medium': 'var(--ds-font-metric-medium)';
1294
+ 'font.metric.small': 'var(--ds-font-metric-small)';
1295
+ } = {
1296
+ 'font.body': token(
1297
+ 'font.body',
1298
+ 'normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1299
+ ),
1300
+ 'font.body.UNSAFE_small': token(
1301
+ 'font.body.UNSAFE_small',
1302
+ 'normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1303
+ ),
1304
+ 'font.body.large': token(
1305
+ 'font.body.large',
1306
+ 'normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1307
+ ),
1308
+ 'font.body.small': token(
1309
+ 'font.body.small',
1310
+ 'normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1311
+ ),
1312
+ 'font.code': token(
1313
+ 'font.code',
1314
+ 'normal 400 0.875em/1 ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
1315
+ ),
1316
+ 'font.heading.large': token(
1317
+ 'font.heading.large',
1318
+ 'normal 500 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1319
+ ),
1320
+ 'font.heading.medium': token(
1321
+ 'font.heading.medium',
1322
+ 'normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1323
+ ),
1324
+ 'font.heading.small': token(
1325
+ 'font.heading.small',
1326
+ 'normal 600 16px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1327
+ ),
1328
+ 'font.heading.xlarge': token(
1329
+ 'font.heading.xlarge',
1330
+ 'normal 600 29px/32px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1331
+ ),
1332
+ 'font.heading.xsmall': token(
1333
+ 'font.heading.xsmall',
1334
+ 'normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1335
+ ),
1336
+ 'font.heading.xxlarge': token(
1337
+ 'font.heading.xxlarge',
1338
+ 'normal 500 35px/40px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1339
+ ),
1340
+ 'font.heading.xxsmall': token(
1341
+ 'font.heading.xxsmall',
1342
+ 'normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1343
+ ),
1344
+ 'font.metric.large': token(
1345
+ 'font.metric.large',
1346
+ 'normal 653 28px/32px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1347
+ ),
1348
+ 'font.metric.medium': token(
1349
+ 'font.metric.medium',
1350
+ 'normal 653 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1351
+ ),
1352
+ 'font.metric.small': token(
1353
+ 'font.metric.small',
1354
+ 'normal 653 16px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1355
+ ),
1356
+ };
1357
+
1358
+ export type Font = keyof typeof fontMap;
1359
+
1360
+ export const fontWeightMap: {
1361
+ 'font.weight.bold': 'var(--ds-font-weight-bold)';
1362
+ 'font.weight.medium': 'var(--ds-font-weight-medium)';
1363
+ 'font.weight.regular': 'var(--ds-font-weight-regular)';
1364
+ 'font.weight.semibold': 'var(--ds-font-weight-semibold)';
1365
+ } = {
1366
+ 'font.weight.bold': token('font.weight.bold', '700'),
1367
+ 'font.weight.medium': token('font.weight.medium', '500'),
1368
+ 'font.weight.regular': token('font.weight.regular', '400'),
1369
+ 'font.weight.semibold': token('font.weight.semibold', '600'),
1370
+ };
1371
+
1372
+ export type FontWeight = keyof typeof fontWeightMap;
1373
+
1374
+ export const fontFamilyMap: {
1375
+ 'font.family.body': 'var(--ds-font-family-body)';
1376
+ 'font.family.brand.body': 'var(--ds-font-family-brand-body)';
1377
+ 'font.family.brand.heading': 'var(--ds-font-family-brand-heading)';
1378
+ 'font.family.code': 'var(--ds-font-family-code)';
1379
+ 'font.family.heading': 'var(--ds-font-family-heading)';
1380
+ } = {
1381
+ 'font.family.body': token(
1382
+ 'font.family.body',
1383
+ 'ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1384
+ ),
1385
+ 'font.family.brand.body': token(
1386
+ 'font.family.brand.body',
1387
+ '"Charlie Text", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1388
+ ),
1389
+ 'font.family.brand.heading': token(
1390
+ 'font.family.brand.heading',
1391
+ '"Charlie Display", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1392
+ ),
1393
+ 'font.family.code': token(
1394
+ 'font.family.code',
1395
+ 'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
1396
+ ),
1397
+ 'font.family.heading': token(
1398
+ 'font.family.heading',
1399
+ 'ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1400
+ ),
1401
+ };
1402
+
1403
+ export type FontFamily = keyof typeof fontFamilyMap;
1404
+
1405
+
1406
+ export const textSizeMap: {
1407
+ medium: 'var(--ds-font-body)';
1408
+ UNSAFE_small: 'var(--ds-font-body-UNSAFE_small)';
1409
+ large: 'var(--ds-font-body-large)';
1410
+ small: 'var(--ds-font-body-small)';
1411
+ } = {
1412
+ medium: token(
1413
+ 'font.body',
1414
+ 'normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1415
+ ),
1416
+ UNSAFE_small: token(
1417
+ 'font.body.UNSAFE_small',
1418
+ 'normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1419
+ ),
1420
+ large: token(
1421
+ 'font.body.large',
1422
+ 'normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1423
+ ),
1424
+ small: token(
1425
+ 'font.body.small',
1426
+ 'normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1427
+ ),
1428
+ };
1429
+
1430
+ export type TextSize = keyof typeof textSizeMap;
1431
+
1432
+ export const textWeightMap: {
1433
+ bold: 'var(--ds-font-weight-bold)';
1434
+ medium: 'var(--ds-font-weight-medium)';
1435
+ regular: 'var(--ds-font-weight-regular)';
1436
+ semibold: 'var(--ds-font-weight-semibold)';
1437
+ } = {
1438
+ bold: token('font.weight.bold', '700'),
1439
+ medium: token('font.weight.medium', '500'),
1440
+ regular: token('font.weight.regular', '400'),
1441
+ semibold: token('font.weight.semibold', '600'),
1442
+ };
1443
+
1444
+ export type TextWeight = keyof typeof textWeightMap;
1445
+
1446
+ export const metricTextSizeMap: {
1447
+ large: 'var(--ds-font-metric-large)';
1448
+ medium: 'var(--ds-font-metric-medium)';
1449
+ small: 'var(--ds-font-metric-small)';
1450
+ } = {
1451
+ large: token(
1452
+ 'font.metric.large',
1453
+ 'normal 653 28px/32px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1454
+ ),
1455
+ medium: token(
1456
+ 'font.metric.medium',
1457
+ 'normal 653 24px/28px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1458
+ ),
1459
+ small: token(
1460
+ 'font.metric.small',
1461
+ 'normal 653 16px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
1462
+ ),
1463
+ };
1464
+
1465
+ export type MetricTextSize = keyof typeof metricTextSizeMap;
1466
+
1467
+ /**
1468
+ * @codegenEnd
1469
+ */
1470
+
1471
+ /**
1472
+ * Token utility functions for Forge UI Kit
1473
+ * These utilities work with the codegen'd token maps above
1474
+ */
1475
+
1476
+ export const isSurfaceColorToken = (color: unknown): color is SurfaceColor =>
1477
+ surfaceColorMap[color as SurfaceColor] !== undefined;
1478
+
1479
+ export const getSerializedStylesMap = <T extends string>(
1480
+ cssProperty: string,
1481
+ tokenMap: Record<T, string>,
1482
+ ): Record<T, SerializedStyles> => {
1483
+ return Object.keys(tokenMap).reduce(
1484
+ (emotionMap, token) => {
1485
+ emotionMap[token as T] = css({
1486
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
1487
+ [cssProperty]: tokenMap[token as T],
1488
+ });
1489
+ return emotionMap;
1490
+ },
1491
+ {} as Record<T, SerializedStyles>,
1492
+ );
1493
+ };
1494
+
1495
+ export const backgroundColorStylesMap = getSerializedStylesMap('backgroundColor', backgroundColorMap);
1496
+ export const surfaceColorStylesMap = getSerializedStylesMap(CURRENT_SURFACE_CSS_VAR, surfaceColorMap);
1497
+
1498
+ export const paddingStylesMap = {
1499
+ padding: getSerializedStylesMap('padding', positiveSpaceMap),
1500
+ paddingBlock: getSerializedStylesMap('paddingBlock', positiveSpaceMap),
1501
+ paddingBlockStart: getSerializedStylesMap('paddingBlockStart', positiveSpaceMap),
1502
+ paddingBlockEnd: getSerializedStylesMap('paddingBlockEnd', positiveSpaceMap),
1503
+ paddingInline: getSerializedStylesMap('paddingInline', positiveSpaceMap),
1504
+ paddingInlineStart: getSerializedStylesMap('paddingInlineStart', positiveSpaceMap),
1505
+ paddingInlineEnd: getSerializedStylesMap('paddingInlineEnd', positiveSpaceMap),
1506
+ };
1507
+
1508
+ /**
1509
+ * Tokens map for xcss prop support.
1510
+ * Maps CSS properties to their corresponding token maps for runtime resolution.
1511
+ * Includes all properties from the Forge XCSS specification:
1512
+ * https://developer.atlassian.com/platform/forge/ui-kit/components/xcss/
1513
+ */
1514
+ export const tokensMap = {
1515
+ // Background
1516
+ backgroundColor: backgroundColorMap,
1517
+
1518
+ // Text color
1519
+ color: textColorMap,
1520
+
1521
+ // Opacity
1522
+ opacity: opacityMap,
1523
+
1524
+ // Shadow
1525
+ boxShadow: shadowMap,
1526
+
1527
+ // Border Color
1528
+ borderColor: borderColorMap,
1529
+ borderBlockColor: borderColorMap,
1530
+ borderBlockEndColor: borderColorMap,
1531
+ borderBlockStartColor: borderColorMap,
1532
+ borderBottomColor: borderColorMap,
1533
+ borderInlineColor: borderColorMap,
1534
+ borderInlineEndColor: borderColorMap,
1535
+ borderInlineStartColor: borderColorMap,
1536
+ borderLeftColor: borderColorMap,
1537
+ borderRightColor: borderColorMap,
1538
+ borderTopColor: borderColorMap,
1539
+
1540
+ // Border Radius
1541
+ borderRadius: borderRadiusMap,
1542
+ borderBottomLeftRadius: borderRadiusMap,
1543
+ borderBottomRightRadius: borderRadiusMap,
1544
+ borderTopLeftRadius: borderRadiusMap,
1545
+ borderTopRightRadius: borderRadiusMap,
1546
+ borderEndEndRadius: borderRadiusMap,
1547
+ borderEndStartRadius: borderRadiusMap,
1548
+ borderStartEndRadius: borderRadiusMap,
1549
+ borderStartStartRadius: borderRadiusMap,
1550
+
1551
+ // Border Width
1552
+ borderWidth: borderWidthMap,
1553
+ borderBlockWidth: borderWidthMap,
1554
+ borderBlockEndWidth: borderWidthMap,
1555
+ borderBlockStartWidth: borderWidthMap,
1556
+ borderBottomWidth: borderWidthMap,
1557
+ borderInlineWidth: borderWidthMap,
1558
+ borderInlineEndWidth: borderWidthMap,
1559
+ borderInlineStartWidth: borderWidthMap,
1560
+ borderLeftWidth: borderWidthMap,
1561
+ borderRightWidth: borderWidthMap,
1562
+ borderTopWidth: borderWidthMap,
1563
+
1564
+ // Padding
1565
+ padding: positiveSpaceMap,
1566
+ paddingBlock: positiveSpaceMap,
1567
+ paddingBlockStart: positiveSpaceMap,
1568
+ paddingBlockEnd: positiveSpaceMap,
1569
+ paddingBottom: positiveSpaceMap,
1570
+ paddingInline: positiveSpaceMap,
1571
+ paddingInlineEnd: positiveSpaceMap,
1572
+ paddingInlineStart: positiveSpaceMap,
1573
+ paddingLeft: positiveSpaceMap,
1574
+ paddingRight: positiveSpaceMap,
1575
+ paddingTop: positiveSpaceMap,
1576
+
1577
+ // Margin (can be negative)
1578
+ margin: allSpaceMap,
1579
+ marginBlock: allSpaceMap,
1580
+ marginBlockEnd: allSpaceMap,
1581
+ marginBlockStart: allSpaceMap,
1582
+ marginBottom: allSpaceMap,
1583
+ marginInline: allSpaceMap,
1584
+ marginInlineEnd: allSpaceMap,
1585
+ marginInlineStart: allSpaceMap,
1586
+ marginLeft: allSpaceMap,
1587
+ marginRight: allSpaceMap,
1588
+ marginTop: allSpaceMap,
1589
+
1590
+ // Dimensions
1591
+ width: dimensionMap,
1592
+ height: dimensionMap,
1593
+ minWidth: dimensionMap,
1594
+ maxWidth: dimensionMap,
1595
+ minHeight: dimensionMap,
1596
+ maxHeight: dimensionMap,
1597
+
1598
+ // Note: display, flexGrow, overflow are NOT token-based and don't need entries here. They accept raw CSS values.
1599
+ };
1600
+
1601
+ /**
1602
+ * Resolves design token strings in an xcss object to their actual CSS values.
1603
+ * This is necessary because the xcssValidator validates token strings but doesn't resolve them.
1604
+ */
1605
+ export const resolveTokens = (styleObj: any): any => {
1606
+ if (!styleObj || typeof styleObj !== 'object') {
1607
+ return styleObj;
1608
+ }
1609
+
1610
+ const resolved: any = {};
1611
+ for (const [key, value] of Object.entries(styleObj)) {
1612
+ if (typeof value === 'string') {
1613
+ // Only try to resolve if it looks like a token (contains a dot and starts with a letter)
1614
+ // This matches @atlaskit/primitives behavior of accepting both tokens and raw CSS
1615
+ const looksLikeToken = value.includes('.') && /^[a-z]/.test(value);
1616
+
1617
+ if (looksLikeToken) {
1618
+ // Try to resolve as a token
1619
+ const tokenMapForProp = (tokensMap as any)[key];
1620
+ if (tokenMapForProp && tokenMapForProp[value]) {
1621
+ resolved[key] = tokenMapForProp[value];
1622
+ } else {
1623
+ // Token not found - pass through as-is (matches @atlaskit/primitives behavior)
1624
+ // The xcssValidator will catch invalid values if needed
1625
+ resolved[key] = value;
1626
+ }
1627
+ } else {
1628
+ // Raw CSS value - pass through (matches @atlaskit/primitives behavior)
1629
+ resolved[key] = value;
1630
+ }
1631
+ } else if (typeof value === 'object' && value !== null) {
1632
+ // Recursively resolve nested objects
1633
+ resolved[key] = resolveTokens(value);
1634
+ } else {
1635
+ // Numbers and other primitives - pass through (e.g. flexGrow: 1)
1636
+ resolved[key] = value;
1637
+ }
1638
+ }
1639
+ return resolved;
1640
+ };
1641
+ /**
1642
+ * Media query helpers for responsive styles.
1643
+ * Based on @atlaskit/primitives/src/responsive/media-helper.tsx
1644
+ */
1645
+ export const media = {
1646
+ above: {
1647
+ xxs: '@media all',
1648
+ xs: '@media (min-width: 30rem)',
1649
+ sm: '@media (min-width: 48rem)',
1650
+ md: '@media (min-width: 64rem)',
1651
+ lg: '@media (min-width: 90rem)',
1652
+ xl: '@media (min-width: 110.5rem)',
1653
+ } as const,
1654
+ };
1655
+
1656
+ /**
1657
+ * Breakpoint type for responsive styles.
1658
+ */
1659
+ export type Breakpoint = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
1660
+
1661
+ /**
1662
+ * All supported media queries for use as keys in xcss.
1663
+ */
1664
+ export type MediaQuery = (typeof media.above)[Breakpoint];