unholy-design-tokens 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/lint-format-build.yml +35 -0
- package/.github/workflows/publish_release.yml +18 -0
- package/.prettierrc +9 -0
- package/ANALOGY_HOUSE.md +139 -0
- package/ANALOGY_I18NEXT.md +160 -0
- package/LICENSE +201 -0
- package/README.md +90 -0
- package/WHY_THIS_EXISTS.md +74 -0
- package/bin/build-tokens.ts +34 -0
- package/build/css/bg/bg.css +60 -0
- package/build/css/border/border.css +51 -0
- package/build/css/colors.css +204 -0
- package/build/css/conditional.css +8 -0
- package/build/css/cube/cube.block.css +18 -0
- package/build/css/cube/cube.composition.css +16 -0
- package/build/css/cube/cube.utility.css +185 -0
- package/build/css/font/font.css +24 -0
- package/build/css/space.css +20 -0
- package/build/css/text/text.css +48 -0
- package/build/css/themes/private-theme.css +228 -0
- package/build/css/themes/public-theme.css +228 -0
- package/build/css/variant/variant.css +42 -0
- package/build/css/variants.css +167 -0
- package/build/types/theme.d.ts +932 -0
- package/build/types/tokens.ts +653 -0
- package/dist/bin/build-tokens.js +27 -0
- package/dist/scripts/build-style-dictionary.js +32 -0
- package/dist/scripts/generate-typography-tokens.js +125 -0
- package/dist/src/colors/color.config.js +45 -0
- package/dist/src/colors/color.filter.js +19 -0
- package/dist/src/colors/color.formatter.js +25 -0
- package/dist/src/colors/index.js +2 -0
- package/dist/src/cube-css/cube.config.js +42 -0
- package/dist/src/cube-css/cube.formatter.js +89 -0
- package/dist/src/style-dictionary.config.js +143 -0
- package/dist/src/type-declarations/type-declarations.config.js +29 -0
- package/dist/src/type-declarations/type-declarations.formatter.js +111 -0
- package/dist/src/utils/helpers.js +9 -0
- package/dist/src/utils/index.js +4 -0
- package/dist/src/utils/template.js +83 -0
- package/dist/src/utils/tokens.js +80 -0
- package/dist/src/utils/utopia.js +19 -0
- package/eslint.config.js +67 -0
- package/package.json +60 -0
- package/scripts/build-style-dictionary.ts +44 -0
- package/scripts/generate-typography-tokens.ts +138 -0
- package/src/LICENSE +201 -0
- package/src/README.md +88 -0
- package/src/colors/color.config.ts +48 -0
- package/src/colors/color.filter.ts +28 -0
- package/src/colors/color.formatter.ts +43 -0
- package/src/colors/index.ts +6 -0
- package/src/cube-css/cube.config.ts +50 -0
- package/src/cube-css/cube.formatter.ts +104 -0
- package/src/formatters/spacing.js +95 -0
- package/src/style-dictionary.config.ts +151 -0
- package/src/theme/README.md +256 -0
- package/src/theme/cube-theme-addon.js +44 -0
- package/src/theme/helper.js +38 -0
- package/src/theme/index.js +6 -0
- package/src/theme/theme.config.js +42 -0
- package/src/theme/theme.filter.js +42 -0
- package/src/theme/theme.formatter.js +71 -0
- package/src/tokens/1 - primitives/README.md +58 -0
- package/src/tokens/1 - primitives/border.json +54 -0
- package/src/tokens/1 - primitives/breakpoint.json +10 -0
- package/src/tokens/1 - primitives/color-pool.json +266 -0
- package/src/tokens/1 - primitives/color.json +266 -0
- package/src/tokens/1 - primitives/font-scale.json +27 -0
- package/src/tokens/1 - primitives/font.json +23 -0
- package/src/tokens/1 - primitives/shadow.json +26 -0
- package/src/tokens/1 - primitives/space.json +27 -0
- package/src/tokens/2 - semantic/README.md +49 -0
- package/src/tokens/2 - semantic/border.json +27 -0
- package/src/tokens/2 - semantic/color.json +263 -0
- package/src/tokens/2 - semantic/details.md +1 -0
- package/src/tokens/2 - semantic/layout.json +52 -0
- package/src/tokens/2 - semantic/radius.json +13 -0
- package/src/tokens/2 - semantic/shadow.json +19 -0
- package/src/tokens/2 - semantic/spacing.json +25 -0
- package/src/tokens/3 - intent/README.md +43 -0
- package/src/tokens/3 - intent/background.json +135 -0
- package/src/tokens/3 - intent/color.json +265 -0
- package/src/tokens/3 - intent/font.json +61 -0
- package/src/tokens/3 - intent/text +67 -0
- package/src/tokens/README.md +176 -0
- package/src/tokens/color/brand.json +316 -0
- package/src/tokens/component/theming.json +69 -0
- package/src/tokens/conditional.json +40 -0
- package/src/tokens/custom/4 - (OPTIONAL) cube css/README.md +38 -0
- package/src/tokens/custom/4 - (OPTIONAL) cube css/block.json +24 -0
- package/src/tokens/custom/4 - (OPTIONAL) cube css/composition.json +26 -0
- package/src/tokens/custom/4 - (OPTIONAL) cube css/global.json +15 -0
- package/src/tokens/custom/4 - (OPTIONAL) cube css/utility.json +224 -0
- package/src/tokens/custom/OKlch/color.json +61 -0
- package/src/tokens/custom/OKlch/state.json +107 -0
- package/src/tokens/custom/OKlch/theme-color.json +34 -0
- package/src/tokens/custom/OKlch/variant.json +67 -0
- package/src/tokens/custom/components/highlighted.json +16 -0
- package/src/tokens/state.js +29 -0
- package/src/tokens/theme-color.json +34 -0
- package/src/type-declarations/type-declarations.config.ts +34 -0
- package/src/type-declarations/type-declarations.formatter.ts +122 -0
- package/src/utils/helpers.ts +11 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/template.ts +110 -0
- package/src/utils/tokens.ts +95 -0
- package/src/utils/utopia.ts +36 -0
- package/tailwind.md +720 -0
- package/tsconfig.json +19 -0
- package/turbowatch.ts +14 -0
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
export interface YThemeToken {
|
|
2
|
+
'border-width-base': string;
|
|
3
|
+
'border-width-scale': string;
|
|
4
|
+
'border-width-default': string;
|
|
5
|
+
'border-width-xsmall': string;
|
|
6
|
+
'border-width-small': string;
|
|
7
|
+
'border-width-medium': string;
|
|
8
|
+
'border-width-large': string;
|
|
9
|
+
'border-style-solid': string;
|
|
10
|
+
'border-style-dashed': string;
|
|
11
|
+
'border-style-dotted': string;
|
|
12
|
+
'border-style-double': string;
|
|
13
|
+
'border-style-none': string;
|
|
14
|
+
'border-style-default': string;
|
|
15
|
+
'border-radius-1': string;
|
|
16
|
+
'border-radius-2': string;
|
|
17
|
+
'border-radius-4': string;
|
|
18
|
+
'border-radius-base': string;
|
|
19
|
+
'border-radius-0-5': string;
|
|
20
|
+
'border-radius-scale': string;
|
|
21
|
+
'breakpoint-xs': string;
|
|
22
|
+
'breakpoint-sm': string;
|
|
23
|
+
'breakpoint-md': string;
|
|
24
|
+
'breakpoint-lg': string;
|
|
25
|
+
'breakpoint-xl': string;
|
|
26
|
+
'breakpoint-xxl': string;
|
|
27
|
+
'color-pool-straw-gold-100': string;
|
|
28
|
+
'color-pool-straw-gold-200': string;
|
|
29
|
+
'color-pool-straw-gold-300': string;
|
|
30
|
+
'color-pool-straw-gold-400': string;
|
|
31
|
+
'color-pool-straw-gold-500': string;
|
|
32
|
+
'color-pool-straw-gold-600': string;
|
|
33
|
+
'color-pool-straw-gold-700': string;
|
|
34
|
+
'color-pool-straw-gold-800': string;
|
|
35
|
+
'color-pool-straw-gold-900': string;
|
|
36
|
+
'color-pool-straw-gold-base': string;
|
|
37
|
+
'color-pool-graphite-100': string;
|
|
38
|
+
'color-pool-graphite-200': string;
|
|
39
|
+
'color-pool-graphite-300': string;
|
|
40
|
+
'color-pool-graphite-400': string;
|
|
41
|
+
'color-pool-graphite-500': string;
|
|
42
|
+
'color-pool-graphite-600': string;
|
|
43
|
+
'color-pool-graphite-700': string;
|
|
44
|
+
'color-pool-graphite-800': string;
|
|
45
|
+
'color-pool-graphite-900': string;
|
|
46
|
+
'color-pool-graphite-base': string;
|
|
47
|
+
'color-pool-intense-cherry-100': string;
|
|
48
|
+
'color-pool-intense-cherry-200': string;
|
|
49
|
+
'color-pool-intense-cherry-300': string;
|
|
50
|
+
'color-pool-intense-cherry-400': string;
|
|
51
|
+
'color-pool-intense-cherry-500': string;
|
|
52
|
+
'color-pool-intense-cherry-600': string;
|
|
53
|
+
'color-pool-intense-cherry-700': string;
|
|
54
|
+
'color-pool-intense-cherry-800': string;
|
|
55
|
+
'color-pool-intense-cherry-900': string;
|
|
56
|
+
'color-pool-intense-cherry-base': string;
|
|
57
|
+
'color-pool-vanilla-custard-100': string;
|
|
58
|
+
'color-pool-vanilla-custard-200': string;
|
|
59
|
+
'color-pool-vanilla-custard-300': string;
|
|
60
|
+
'color-pool-vanilla-custard-400': string;
|
|
61
|
+
'color-pool-vanilla-custard-500': string;
|
|
62
|
+
'color-pool-vanilla-custard-600': string;
|
|
63
|
+
'color-pool-vanilla-custard-700': string;
|
|
64
|
+
'color-pool-vanilla-custard-800': string;
|
|
65
|
+
'color-pool-vanilla-custard-900': string;
|
|
66
|
+
'color-pool-vanilla-custard-base': string;
|
|
67
|
+
'color-pool-vanilla-cream-100': string;
|
|
68
|
+
'color-pool-vanilla-cream-200': string;
|
|
69
|
+
'color-pool-vanilla-cream-300': string;
|
|
70
|
+
'color-pool-vanilla-cream-400': string;
|
|
71
|
+
'color-pool-vanilla-cream-500': string;
|
|
72
|
+
'color-pool-vanilla-cream-600': string;
|
|
73
|
+
'color-pool-vanilla-cream-700': string;
|
|
74
|
+
'color-pool-vanilla-cream-800': string;
|
|
75
|
+
'color-pool-vanilla-cream-900': string;
|
|
76
|
+
'color-pool-vanilla-cream-base': string;
|
|
77
|
+
'color-yellow-100': string;
|
|
78
|
+
'color-yellow-200': string;
|
|
79
|
+
'color-yellow-300': string;
|
|
80
|
+
'color-yellow-400': string;
|
|
81
|
+
'color-yellow-500': string;
|
|
82
|
+
'color-yellow-600': string;
|
|
83
|
+
'color-yellow-700': string;
|
|
84
|
+
'color-yellow-800': string;
|
|
85
|
+
'color-yellow-900': string;
|
|
86
|
+
'color-yellow-base': string;
|
|
87
|
+
'color-graphite-100': string;
|
|
88
|
+
'color-graphite-200': string;
|
|
89
|
+
'color-graphite-300': string;
|
|
90
|
+
'color-graphite-400': string;
|
|
91
|
+
'color-graphite-500': string;
|
|
92
|
+
'color-graphite-600': string;
|
|
93
|
+
'color-graphite-700': string;
|
|
94
|
+
'color-graphite-800': string;
|
|
95
|
+
'color-graphite-900': string;
|
|
96
|
+
'color-graphite-base': string;
|
|
97
|
+
'color-intense-cherry-100': string;
|
|
98
|
+
'color-intense-cherry-200': string;
|
|
99
|
+
'color-intense-cherry-300': string;
|
|
100
|
+
'color-intense-cherry-400': string;
|
|
101
|
+
'color-intense-cherry-500': string;
|
|
102
|
+
'color-intense-cherry-600': string;
|
|
103
|
+
'color-intense-cherry-700': string;
|
|
104
|
+
'color-intense-cherry-800': string;
|
|
105
|
+
'color-intense-cherry-900': string;
|
|
106
|
+
'color-intense-cherry-base': string;
|
|
107
|
+
'color-vanilla-custard-100': string;
|
|
108
|
+
'color-vanilla-custard-200': string;
|
|
109
|
+
'color-vanilla-custard-300': string;
|
|
110
|
+
'color-vanilla-custard-400': string;
|
|
111
|
+
'color-vanilla-custard-500': string;
|
|
112
|
+
'color-vanilla-custard-600': string;
|
|
113
|
+
'color-vanilla-custard-700': string;
|
|
114
|
+
'color-vanilla-custard-800': string;
|
|
115
|
+
'color-vanilla-custard-900': string;
|
|
116
|
+
'color-vanilla-custard-base': string;
|
|
117
|
+
'color-vanilla-cream-100': string;
|
|
118
|
+
'color-vanilla-cream-200': string;
|
|
119
|
+
'color-vanilla-cream-300': string;
|
|
120
|
+
'color-vanilla-cream-400': string;
|
|
121
|
+
'color-vanilla-cream-500': string;
|
|
122
|
+
'color-vanilla-cream-600': string;
|
|
123
|
+
'color-vanilla-cream-700': string;
|
|
124
|
+
'color-vanilla-cream-800': string;
|
|
125
|
+
'color-vanilla-cream-900': string;
|
|
126
|
+
'color-vanilla-cream-base': string;
|
|
127
|
+
'color-primary-100': string;
|
|
128
|
+
'color-primary-200': string;
|
|
129
|
+
'color-primary-300': string;
|
|
130
|
+
'color-primary-400': string;
|
|
131
|
+
'color-primary-500': string;
|
|
132
|
+
'color-primary-600': string;
|
|
133
|
+
'color-primary-700': string;
|
|
134
|
+
'color-primary-800': string;
|
|
135
|
+
'color-primary-900': string;
|
|
136
|
+
'color-primary-base': string;
|
|
137
|
+
'color-primary-bg-hue': string;
|
|
138
|
+
'color-primary-bg-lightness': string;
|
|
139
|
+
'color-primary-bg-opacity': string;
|
|
140
|
+
'color-primary-border-hue': string;
|
|
141
|
+
'color-primary-border-lightness': string;
|
|
142
|
+
'color-primary-border-opacity': string;
|
|
143
|
+
'color-primary-text-hue': string;
|
|
144
|
+
'color-primary-text-lightness': string;
|
|
145
|
+
'color-primary-text-opacity': string;
|
|
146
|
+
'color-secondary-100': string;
|
|
147
|
+
'color-secondary-200': string;
|
|
148
|
+
'color-secondary-300': string;
|
|
149
|
+
'color-secondary-400': string;
|
|
150
|
+
'color-secondary-500': string;
|
|
151
|
+
'color-secondary-600': string;
|
|
152
|
+
'color-secondary-700': string;
|
|
153
|
+
'color-secondary-800': string;
|
|
154
|
+
'color-secondary-900': string;
|
|
155
|
+
'color-secondary-base': string;
|
|
156
|
+
'color-secondary-bg-hue': string;
|
|
157
|
+
'color-secondary-bg-lightness': string;
|
|
158
|
+
'color-secondary-bg-opacity': string;
|
|
159
|
+
'color-secondary-border-hue': string;
|
|
160
|
+
'color-secondary-border-lightness': string;
|
|
161
|
+
'color-secondary-border-opacity': string;
|
|
162
|
+
'color-secondary-text-hue': string;
|
|
163
|
+
'color-secondary-text-lightness': string;
|
|
164
|
+
'color-secondary-text-opacity': string;
|
|
165
|
+
'color-accent-100': string;
|
|
166
|
+
'color-accent-200': string;
|
|
167
|
+
'color-accent-300': string;
|
|
168
|
+
'color-accent-400': string;
|
|
169
|
+
'color-accent-500': string;
|
|
170
|
+
'color-accent-600': string;
|
|
171
|
+
'color-accent-700': string;
|
|
172
|
+
'color-accent-800': string;
|
|
173
|
+
'color-accent-900': string;
|
|
174
|
+
'color-accent-base': string;
|
|
175
|
+
'color-neutral-100': string;
|
|
176
|
+
'color-neutral-200': string;
|
|
177
|
+
'color-neutral-300': string;
|
|
178
|
+
'color-neutral-400': string;
|
|
179
|
+
'color-neutral-500': string;
|
|
180
|
+
'color-neutral-600': string;
|
|
181
|
+
'color-neutral-700': string;
|
|
182
|
+
'color-neutral-800': string;
|
|
183
|
+
'color-neutral-900': string;
|
|
184
|
+
'color-neutral-base': string;
|
|
185
|
+
'color-info-100': string;
|
|
186
|
+
'color-info-200': string;
|
|
187
|
+
'color-info-300': string;
|
|
188
|
+
'color-info-400': string;
|
|
189
|
+
'color-info-500': string;
|
|
190
|
+
'color-info-600': string;
|
|
191
|
+
'color-info-700': string;
|
|
192
|
+
'color-info-800': string;
|
|
193
|
+
'color-info-900': string;
|
|
194
|
+
'color-bg-page': string;
|
|
195
|
+
'color-bg-subtle': string;
|
|
196
|
+
'color-bg-elevated': string;
|
|
197
|
+
'color-bg-inset': string;
|
|
198
|
+
'color-bg-primary': string;
|
|
199
|
+
'color-bg-primary-hover': string;
|
|
200
|
+
'color-bg-primary-active': string;
|
|
201
|
+
'color-bg-primary-subtle': string;
|
|
202
|
+
'color-bg-accent': string;
|
|
203
|
+
'color-bg-accent-hover': string;
|
|
204
|
+
'color-bg-accent-subtle': string;
|
|
205
|
+
'color-bg-neutral': string;
|
|
206
|
+
'color-bg-neutral-strong': string;
|
|
207
|
+
'color-bg-info': string;
|
|
208
|
+
'color-bg-warning': string;
|
|
209
|
+
'color-bg-success': string;
|
|
210
|
+
'color-bg-secondary-lightness': string;
|
|
211
|
+
'color-bg-secondary-chroma': string;
|
|
212
|
+
'color-bg-secondary-hue': string;
|
|
213
|
+
'color-bg-secondary-opacity': string;
|
|
214
|
+
'color-bg-secondary': string;
|
|
215
|
+
'color-bg-danger-lightness': string;
|
|
216
|
+
'color-bg-danger-chroma': string;
|
|
217
|
+
'color-bg-danger-hue': string;
|
|
218
|
+
'color-bg-danger-opacity': string;
|
|
219
|
+
'color-bg-danger': string;
|
|
220
|
+
'color-bg-hue': string;
|
|
221
|
+
'color-bg-h': string;
|
|
222
|
+
'color-bg-lightness': string;
|
|
223
|
+
'color-bg-l': string;
|
|
224
|
+
'color-bg-opacity': string;
|
|
225
|
+
'color-bg-o': string;
|
|
226
|
+
'color-text-primary': string;
|
|
227
|
+
'color-text-secondary': string;
|
|
228
|
+
'color-text-muted': string;
|
|
229
|
+
'color-text-subtle': string;
|
|
230
|
+
'color-text-link': string;
|
|
231
|
+
'color-text-link-hover': string;
|
|
232
|
+
'color-text-info': string;
|
|
233
|
+
'color-text-warning': string;
|
|
234
|
+
'color-text-success': string;
|
|
235
|
+
'color-text-danger-lightness': string;
|
|
236
|
+
'color-text-danger-chroma': string;
|
|
237
|
+
'color-text-danger-hue': string;
|
|
238
|
+
'color-text-danger-opacity': string;
|
|
239
|
+
'color-text-danger': string;
|
|
240
|
+
'color-text-hue': string;
|
|
241
|
+
'color-text-lightness': string;
|
|
242
|
+
'color-text-opacity': string;
|
|
243
|
+
'color-border-subtle': string;
|
|
244
|
+
'color-border-default': string;
|
|
245
|
+
'color-border-strong': string;
|
|
246
|
+
'color-border-primary': string;
|
|
247
|
+
'color-border-focus': string;
|
|
248
|
+
'color-border-info': string;
|
|
249
|
+
'color-border-warning': string;
|
|
250
|
+
'color-border-success': string;
|
|
251
|
+
'color-border-neutral': string;
|
|
252
|
+
'color-border-secondary-lightness': string;
|
|
253
|
+
'color-border-secondary-chroma': string;
|
|
254
|
+
'color-border-secondary-hue': string;
|
|
255
|
+
'color-border-secondary-opacity': string;
|
|
256
|
+
'color-border-secondary': string;
|
|
257
|
+
'color-border-danger-lightness': string;
|
|
258
|
+
'color-border-danger-chroma': string;
|
|
259
|
+
'color-border-danger-hue': string;
|
|
260
|
+
'color-border-danger-opacity': string;
|
|
261
|
+
'color-border-danger': string;
|
|
262
|
+
'color-border-hue': string;
|
|
263
|
+
'color-border-lightness': string;
|
|
264
|
+
'color-border-opacity': string;
|
|
265
|
+
'color-feedback-error': string;
|
|
266
|
+
'color-danger-bg-hue': string;
|
|
267
|
+
'color-danger-bg-lightness': string;
|
|
268
|
+
'color-danger-bg-opacity': string;
|
|
269
|
+
'color-danger-border-hue': string;
|
|
270
|
+
'color-danger-border-lightness': string;
|
|
271
|
+
'color-danger-border-opacity': string;
|
|
272
|
+
'color-danger-text-hue': string;
|
|
273
|
+
'color-danger-text-lightness': string;
|
|
274
|
+
'color-danger-text-opacity': string;
|
|
275
|
+
'font-scale-0': string;
|
|
276
|
+
'font-scale-1': string;
|
|
277
|
+
'font-scale-2': string;
|
|
278
|
+
'font-scale-3': string;
|
|
279
|
+
'font-scale-4': string;
|
|
280
|
+
'font-scale-5': string;
|
|
281
|
+
'font-scale-6': string;
|
|
282
|
+
'font-min-font': string;
|
|
283
|
+
'font-max-font': string;
|
|
284
|
+
'font-min-viewport': string;
|
|
285
|
+
'font-max-viewport': string;
|
|
286
|
+
'font-scale-min': string;
|
|
287
|
+
'font-scale-max': string;
|
|
288
|
+
'font-steps': string;
|
|
289
|
+
'font-weight-light': string;
|
|
290
|
+
'font-weight-normal': string;
|
|
291
|
+
'font-weight-medium': string;
|
|
292
|
+
'font-weight-bold': string;
|
|
293
|
+
'shadow-base': string;
|
|
294
|
+
'shadow-scale': string;
|
|
295
|
+
'shadow-xs': string;
|
|
296
|
+
'shadow-sm': string;
|
|
297
|
+
'shadow-md': string;
|
|
298
|
+
'shadow-lg': string;
|
|
299
|
+
'shadow-xl': string;
|
|
300
|
+
'space-fluid-min': string;
|
|
301
|
+
'space-fluid-max': string;
|
|
302
|
+
'space-fluid-min-viewport': string;
|
|
303
|
+
'space-fluid-max-viewport': string;
|
|
304
|
+
'space-unit-default': string;
|
|
305
|
+
'space-unit-fluid': string;
|
|
306
|
+
'space-multiplier-unit': string;
|
|
307
|
+
'space-multiplier-xxs': string;
|
|
308
|
+
'space-multiplier-xs': string;
|
|
309
|
+
'space-multiplier-sm': string;
|
|
310
|
+
'space-multiplier-md': string;
|
|
311
|
+
'space-multiplier-lg': string;
|
|
312
|
+
'space-multiplier-xl': string;
|
|
313
|
+
'space-multiplier-xxl': string;
|
|
314
|
+
'layout-break-at': string;
|
|
315
|
+
'layout-gutter-sm': string;
|
|
316
|
+
'layout-gutter-md': string;
|
|
317
|
+
'layout-gutter-lg': string;
|
|
318
|
+
'layout-gutter-xl': string;
|
|
319
|
+
'layout-direction': string;
|
|
320
|
+
'layout-align-start': string;
|
|
321
|
+
'layout-align-center': string;
|
|
322
|
+
'layout-align-end': string;
|
|
323
|
+
'layout-justify-start': string;
|
|
324
|
+
'layout-justify-center': string;
|
|
325
|
+
'layout-justify-end': string;
|
|
326
|
+
'layout-justify-between': string;
|
|
327
|
+
'layout-gap-xs': string;
|
|
328
|
+
'layout-gap-sm': string;
|
|
329
|
+
'layout-gap-md': string;
|
|
330
|
+
'layout-gap-lg': string;
|
|
331
|
+
'layout-gap-xl': string;
|
|
332
|
+
'layout-overlay-z-index': string;
|
|
333
|
+
'layout-overlay-opacity': string;
|
|
334
|
+
'layout-overlay-blur': string;
|
|
335
|
+
'layout-space-unit': string;
|
|
336
|
+
'layout-depth-base': string;
|
|
337
|
+
'layout-mobile-padding': string;
|
|
338
|
+
'radius-light': string;
|
|
339
|
+
'radius-medium': string;
|
|
340
|
+
'radius-heavy': string;
|
|
341
|
+
'spacing-xxs': string;
|
|
342
|
+
'spacing-xs': string;
|
|
343
|
+
'spacing-sm': string;
|
|
344
|
+
'spacing-md': string;
|
|
345
|
+
'spacing-lg': string;
|
|
346
|
+
'spacing-xl': string;
|
|
347
|
+
'spacing-xxl': string;
|
|
348
|
+
'bg-primary': string;
|
|
349
|
+
'bg-primary-hover': string;
|
|
350
|
+
'bg-primary-active': string;
|
|
351
|
+
'bg-primary-focus': string;
|
|
352
|
+
'bg-primary-disable': string;
|
|
353
|
+
'bg-accent': string;
|
|
354
|
+
'bg-accent-hover': string;
|
|
355
|
+
'bg-accent-active': string;
|
|
356
|
+
'bg-accent-focus': string;
|
|
357
|
+
'bg-accent-disable': string;
|
|
358
|
+
'bg-neutral': string;
|
|
359
|
+
'bg-neutral-hover': string;
|
|
360
|
+
'bg-neutral-active': string;
|
|
361
|
+
'bg-neutral-focus': string;
|
|
362
|
+
'bg-neutral-disable': string;
|
|
363
|
+
'bg-info': string;
|
|
364
|
+
'bg-warning': string;
|
|
365
|
+
'bg-success': string;
|
|
366
|
+
'text-body-size': string;
|
|
367
|
+
'text-body-line-height': string;
|
|
368
|
+
'text-body-weight': string;
|
|
369
|
+
'text-caption-size': string;
|
|
370
|
+
'text-caption-line-height': string;
|
|
371
|
+
'text-caption-weight': string;
|
|
372
|
+
'text-small-size': string;
|
|
373
|
+
'text-small-line-height': string;
|
|
374
|
+
'text-small-weight': string;
|
|
375
|
+
'heading-h1-size': string;
|
|
376
|
+
'heading-h1-line-height': string;
|
|
377
|
+
'heading-h1-weight': string;
|
|
378
|
+
'heading-h2-size': string;
|
|
379
|
+
'heading-h2-line-height': string;
|
|
380
|
+
'heading-h2-weight': string;
|
|
381
|
+
'component-bg-lightness': string;
|
|
382
|
+
'component-bg-chroma': string;
|
|
383
|
+
'component-bg-hue': string;
|
|
384
|
+
'component-bg-opacity': string;
|
|
385
|
+
'component-border-lightness': string;
|
|
386
|
+
'component-border-chroma': string;
|
|
387
|
+
'component-border-hue': string;
|
|
388
|
+
'component-border-opacity': string;
|
|
389
|
+
'component-text-lightness': string;
|
|
390
|
+
'component-text-chroma': string;
|
|
391
|
+
'component-text-hue': string;
|
|
392
|
+
'component-text-opacity': string;
|
|
393
|
+
'component-opacity-bg': string;
|
|
394
|
+
'component-opacity-border': string;
|
|
395
|
+
'component-opacity-text': string;
|
|
396
|
+
'conditional-not-primary': string;
|
|
397
|
+
'conditional-not-secondary': string;
|
|
398
|
+
'conditional-not-danger': string;
|
|
399
|
+
'conditional-light': string;
|
|
400
|
+
'conditional-threshold': string;
|
|
401
|
+
'conditional-switch': string;
|
|
402
|
+
'cube-block-card-bg': string;
|
|
403
|
+
'cube-block-card-border': string;
|
|
404
|
+
'cube-block-card-radius': string;
|
|
405
|
+
'cube-block-card-padding': string;
|
|
406
|
+
'cube-block-button-padding-x': string;
|
|
407
|
+
'cube-block-button-padding-y': string;
|
|
408
|
+
'cube-block-button-radius': string;
|
|
409
|
+
'cube-block-button-text': string;
|
|
410
|
+
'cube-block-button-bg': string;
|
|
411
|
+
'cube-block-button-bg-hover': string;
|
|
412
|
+
'cube-block-checkbox-bg': string;
|
|
413
|
+
'cube-block-checkbox-padding': string;
|
|
414
|
+
'cube-composition-flow-space': string;
|
|
415
|
+
'cube-composition-stack-gap': string;
|
|
416
|
+
'cube-composition-stack-align': string;
|
|
417
|
+
'cube-composition-stack-direction': string;
|
|
418
|
+
'cube-composition-cluster-gap': string;
|
|
419
|
+
'cube-composition-cluster-align': string;
|
|
420
|
+
'cube-composition-center-max-width': string;
|
|
421
|
+
'cube-composition-center-padding-inline': string;
|
|
422
|
+
'cube-composition-switcher-modifier': string;
|
|
423
|
+
'cube-composition-switcher-gap': string;
|
|
424
|
+
'cube-global-gutter': string;
|
|
425
|
+
'cube-global-on': string;
|
|
426
|
+
'cube-global-off': string;
|
|
427
|
+
'cube-utility-margin-t-0': string;
|
|
428
|
+
'cube-utility-margin-t-xs': string;
|
|
429
|
+
'cube-utility-margin-t-sm': string;
|
|
430
|
+
'cube-utility-margin-t-md': string;
|
|
431
|
+
'cube-utility-margin-t-lg': string;
|
|
432
|
+
'cube-utility-margin-t-xl': string;
|
|
433
|
+
'cube-utility-margin-b-0': string;
|
|
434
|
+
'cube-utility-margin-b-xs': string;
|
|
435
|
+
'cube-utility-margin-b-sm': string;
|
|
436
|
+
'cube-utility-margin-b-md': string;
|
|
437
|
+
'cube-utility-margin-b-lg': string;
|
|
438
|
+
'cube-utility-margin-b-xl': string;
|
|
439
|
+
'cube-utility-margin-auto': string;
|
|
440
|
+
'cube-utility-position-relative': string;
|
|
441
|
+
'cube-utility-position-absolute': string;
|
|
442
|
+
'cube-utility-position-fixed': string;
|
|
443
|
+
'cube-utility-position-top-0': string;
|
|
444
|
+
'cube-utility-position-right-0': string;
|
|
445
|
+
'cube-utility-position-bottom-0': string;
|
|
446
|
+
'cube-utility-position-left-0': string;
|
|
447
|
+
'cube-utility-display-none': string;
|
|
448
|
+
'cube-utility-display-block': string;
|
|
449
|
+
'cube-utility-display-inline-block': string;
|
|
450
|
+
'cube-utility-display-grid': string;
|
|
451
|
+
'cube-utility-display-flex': string;
|
|
452
|
+
'cube-utility-display-sticky': string;
|
|
453
|
+
'cube-utility-align-start': string;
|
|
454
|
+
'cube-utility-align-end': string;
|
|
455
|
+
'cube-utility-align-center': string;
|
|
456
|
+
'cube-utility-justify-start': string;
|
|
457
|
+
'cube-utility-justify-end': string;
|
|
458
|
+
'cube-utility-justify-center': string;
|
|
459
|
+
'cube-utility-justify-between': string;
|
|
460
|
+
'cube-utility-flex-column': string;
|
|
461
|
+
'cube-utility-flex-row': string;
|
|
462
|
+
'cube-utility-flex-wrap': string;
|
|
463
|
+
'cube-utility-gap-xs': string;
|
|
464
|
+
'cube-utility-gap-sm': string;
|
|
465
|
+
'cube-utility-gap-md': string;
|
|
466
|
+
'cube-utility-gap-lg': string;
|
|
467
|
+
'cube-utility-gap-xl': string;
|
|
468
|
+
'cube-utility-padding-xs': string;
|
|
469
|
+
'cube-utility-padding-sm': string;
|
|
470
|
+
'cube-utility-padding-md': string;
|
|
471
|
+
'cube-utility-padding-lg': string;
|
|
472
|
+
'cube-utility-padding-xl': string;
|
|
473
|
+
'cube-utility-padding-x-0': string;
|
|
474
|
+
'cube-utility-padding-x-xs': string;
|
|
475
|
+
'cube-utility-padding-x-sm': string;
|
|
476
|
+
'cube-utility-padding-x-md': string;
|
|
477
|
+
'cube-utility-padding-x-lg': string;
|
|
478
|
+
'cube-utility-padding-x-xl': string;
|
|
479
|
+
'cube-utility-padding-y-0': string;
|
|
480
|
+
'cube-utility-padding-y-xs': string;
|
|
481
|
+
'cube-utility-padding-y-sm': string;
|
|
482
|
+
'cube-utility-padding-y-md': string;
|
|
483
|
+
'cube-utility-padding-y-lg': string;
|
|
484
|
+
'cube-utility-padding-y-xl': string;
|
|
485
|
+
'cube-utility-padding-auto': string;
|
|
486
|
+
'cube-utility-padding-top-0': string;
|
|
487
|
+
'cube-utility-padding-top-xs': string;
|
|
488
|
+
'cube-utility-padding-top-sm': string;
|
|
489
|
+
'cube-utility-padding-top-md': string;
|
|
490
|
+
'cube-utility-padding-top-lg': string;
|
|
491
|
+
'cube-utility-padding-top-xl': string;
|
|
492
|
+
'cube-utility-padding-bottom-0': string;
|
|
493
|
+
'cube-utility-text-center': string;
|
|
494
|
+
'cube-utility-text-dim': string;
|
|
495
|
+
'cube-utility-border-solid': string;
|
|
496
|
+
'cube-utility-border-dashed': string;
|
|
497
|
+
'cube-utility-border-dotted': string;
|
|
498
|
+
'cube-utility-border-none': string;
|
|
499
|
+
'cube-utility-border-primary': string;
|
|
500
|
+
'cube-utility-border-secondary': string;
|
|
501
|
+
'cube-utility-border-accent': string;
|
|
502
|
+
'cube-utility-border-neutral': string;
|
|
503
|
+
'cube-utility-border-info': string;
|
|
504
|
+
'cube-utility-border-success': string;
|
|
505
|
+
'cube-utility-border-top': string;
|
|
506
|
+
'cube-utility-border-bottom': string;
|
|
507
|
+
'cube-utility-border-left': string;
|
|
508
|
+
'cube-utility-border-right': string;
|
|
509
|
+
'cube-utility-border-all': string;
|
|
510
|
+
'cube-utility-border-theme-10': string;
|
|
511
|
+
'cube-utility-border-theme-25': string;
|
|
512
|
+
'cube-utility-border-theme-50': string;
|
|
513
|
+
'cube-utility-border-theme-75': string;
|
|
514
|
+
'cube-utility-border-theme-100': string;
|
|
515
|
+
'cube-utility-border-theme-light': string;
|
|
516
|
+
'cube-utility-border-theme-medium': string;
|
|
517
|
+
'cube-utility-border-theme-large': string;
|
|
518
|
+
'cube-utility-border-width-xsmall': string;
|
|
519
|
+
'cube-utility-border-width-small': string;
|
|
520
|
+
'cube-utility-border-width-medium': string;
|
|
521
|
+
'cube-utility-border-width-large': string;
|
|
522
|
+
'cube-utility-radius-light': string;
|
|
523
|
+
'cube-utility-radius-medium': string;
|
|
524
|
+
'cube-utility-radius-heavy': string;
|
|
525
|
+
'cube-utility-height-auto': string;
|
|
526
|
+
'cube-utility-height-full': string;
|
|
527
|
+
'cube-utility-height-half': string;
|
|
528
|
+
'cube-utility-height-quarter': string;
|
|
529
|
+
'cube-utility-height-screen': string;
|
|
530
|
+
'cube-utility-width-auto': string;
|
|
531
|
+
'cube-utility-width-full': string;
|
|
532
|
+
'cube-utility-width-half': string;
|
|
533
|
+
'cube-utility-width-quarter': string;
|
|
534
|
+
'cube-utility-width-screen': string;
|
|
535
|
+
'cube-utility-overflow-auto': string;
|
|
536
|
+
'cube-utility-overflow-hidden': string;
|
|
537
|
+
'cube-utility-overflow-scroll': string;
|
|
538
|
+
'cube-utility-overflow-visible': string;
|
|
539
|
+
'cube-utility-overflow-x-hidden': string;
|
|
540
|
+
'cube-utility-overflow-y-hidden': string;
|
|
541
|
+
'cube-utility-bg-primary': string;
|
|
542
|
+
'cube-utility-bg-secondary': string;
|
|
543
|
+
'cube-utility-bg-accent': string;
|
|
544
|
+
'cube-utility-bg-accent-subtle': string;
|
|
545
|
+
'cube-utility-bg-neutral': string;
|
|
546
|
+
'cube-utility-bg-page': string;
|
|
547
|
+
'cube-utility-bg-subtle': string;
|
|
548
|
+
'cube-utility-bg-elevated': string;
|
|
549
|
+
'cube-utility-bg-inset': string;
|
|
550
|
+
'cube-utility-bg-info': string;
|
|
551
|
+
'cube-utility-bg-success': string;
|
|
552
|
+
'state-base-bg-lightness': string;
|
|
553
|
+
'state-base-bg-chroma': string;
|
|
554
|
+
'state-base-bg-hue': string;
|
|
555
|
+
'state-base-bg-opacity': string;
|
|
556
|
+
'state-base-border-lightness': string;
|
|
557
|
+
'state-base-border-chroma': string;
|
|
558
|
+
'state-base-border-hue': string;
|
|
559
|
+
'state-base-border-opacity': string;
|
|
560
|
+
'state-base-text-lightness': string;
|
|
561
|
+
'state-base-text-chroma': string;
|
|
562
|
+
'state-base-text-hue': string;
|
|
563
|
+
'state-base-text-opacity': string;
|
|
564
|
+
'state-hover-bg-lightness': string;
|
|
565
|
+
'state-hover-bg-chroma': string;
|
|
566
|
+
'state-hover-bg-hue': string;
|
|
567
|
+
'state-hover-bg-opacity': string;
|
|
568
|
+
'state-hover-border-lightness': string;
|
|
569
|
+
'state-hover-border-chroma': string;
|
|
570
|
+
'state-hover-border-hue': string;
|
|
571
|
+
'state-hover-border-opacity': string;
|
|
572
|
+
'state-hover-text-lightness': string;
|
|
573
|
+
'state-hover-text-chroma': string;
|
|
574
|
+
'state-hover-text-hue': string;
|
|
575
|
+
'state-hover-text-opacity': string;
|
|
576
|
+
'state-active-bg-lightness': string;
|
|
577
|
+
'state-active-bg-chroma': string;
|
|
578
|
+
'state-active-bg-hue': string;
|
|
579
|
+
'state-active-bg-opacity': string;
|
|
580
|
+
'state-active-border-lightness': string;
|
|
581
|
+
'state-active-border-chroma': string;
|
|
582
|
+
'state-active-border-hue': string;
|
|
583
|
+
'state-active-border-opacity': string;
|
|
584
|
+
'state-active-text-lightness': string;
|
|
585
|
+
'state-active-text-chroma': string;
|
|
586
|
+
'state-active-text-hue': string;
|
|
587
|
+
'state-active-text-opacity': string;
|
|
588
|
+
'state-focus-bg-lightness': string;
|
|
589
|
+
'state-focus-bg-chroma': string;
|
|
590
|
+
'state-focus-bg-hue': string;
|
|
591
|
+
'state-focus-bg-opacity': string;
|
|
592
|
+
'state-focus-border-lightness': string;
|
|
593
|
+
'state-focus-border-chroma': string;
|
|
594
|
+
'state-focus-border-hue': string;
|
|
595
|
+
'state-focus-border-opacity': string;
|
|
596
|
+
'state-focus-text-lightness': string;
|
|
597
|
+
'state-focus-text-chroma': string;
|
|
598
|
+
'state-focus-text-hue': string;
|
|
599
|
+
'state-focus-text-opacity': string;
|
|
600
|
+
'state-disabled-bg-lightness': string;
|
|
601
|
+
'state-disabled-bg-chroma': string;
|
|
602
|
+
'state-disabled-bg-hue': string;
|
|
603
|
+
'state-disabled-bg-opacity': string;
|
|
604
|
+
'state-disabled-border-lightness': string;
|
|
605
|
+
'state-disabled-border-chroma': string;
|
|
606
|
+
'state-disabled-border-hue': string;
|
|
607
|
+
'state-disabled-border-opacity': string;
|
|
608
|
+
'state-disabled-text-lightness': string;
|
|
609
|
+
'state-disabled-text-chroma': string;
|
|
610
|
+
'state-disabled-text-hue': string;
|
|
611
|
+
'state-disabled-text-opacity': string;
|
|
612
|
+
'variant-contained-bg-lightness': string;
|
|
613
|
+
'variant-contained-bg-chroma': string;
|
|
614
|
+
'variant-contained-bg-hue': string;
|
|
615
|
+
'variant-contained-bg-opacity': string;
|
|
616
|
+
'variant-contained-border-lightness': string;
|
|
617
|
+
'variant-contained-border-chroma': string;
|
|
618
|
+
'variant-contained-border-hue': string;
|
|
619
|
+
'variant-contained-border-opacity': string;
|
|
620
|
+
'variant-contained-text-lightness': string;
|
|
621
|
+
'variant-contained-text-chroma': string;
|
|
622
|
+
'variant-contained-text-hue': string;
|
|
623
|
+
'variant-contained-text-opacity': string;
|
|
624
|
+
'variant-outlined-bg-lightness': string;
|
|
625
|
+
'variant-outlined-bg-chroma': string;
|
|
626
|
+
'variant-outlined-bg-hue': string;
|
|
627
|
+
'variant-outlined-bg-opacity': string;
|
|
628
|
+
'variant-outlined-border-lightness': string;
|
|
629
|
+
'variant-outlined-border-chroma': string;
|
|
630
|
+
'variant-outlined-border-hue': string;
|
|
631
|
+
'variant-outlined-border-opacity': string;
|
|
632
|
+
'variant-outlined-text-lightness': string;
|
|
633
|
+
'variant-outlined-text-chroma': string;
|
|
634
|
+
'variant-outlined-text-hue': string;
|
|
635
|
+
'variant-outlined-text-opacity': string;
|
|
636
|
+
'variant-text-bg-lightness': string;
|
|
637
|
+
'variant-text-bg-chroma': string;
|
|
638
|
+
'variant-text-bg-hue': string;
|
|
639
|
+
'variant-text-bg-opacity': string;
|
|
640
|
+
'variant-text-border-lightness': string;
|
|
641
|
+
'variant-text-border-chroma': string;
|
|
642
|
+
'variant-text-border-hue': string;
|
|
643
|
+
'variant-text-border-opacity': string;
|
|
644
|
+
'variant-text-text-lightness': string;
|
|
645
|
+
'variant-text-text-chroma': string;
|
|
646
|
+
'variant-text-text-hue': string;
|
|
647
|
+
'variant-text-text-opacity': string;
|
|
648
|
+
'highlighted-text-gap-min': string;
|
|
649
|
+
'highlighted-text-gap-max': string;
|
|
650
|
+
'highlighted-text-gap-scaler': string;
|
|
651
|
+
'highlighted-text-gap-left': string;
|
|
652
|
+
|
|
653
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { program } from 'commander';
|
|
3
|
+
import fs from 'node:fs/promises';
|
|
4
|
+
import os from 'node:os';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { buildStyleDictionary } from '../scripts/build-style-dictionary';
|
|
7
|
+
program
|
|
8
|
+
.name('build-tokens')
|
|
9
|
+
.description('Build and copy tokens to the destination folder.')
|
|
10
|
+
.argument('[dir]', 'target directory', './build/')
|
|
11
|
+
.option('-f, --force', 'overwrite existing files')
|
|
12
|
+
.action(async (dir, options) => {
|
|
13
|
+
const targetDir = path.resolve(process.cwd(), dir);
|
|
14
|
+
// 1) temp dir
|
|
15
|
+
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'tokens-'));
|
|
16
|
+
// 2) build Style Dictionary into temp
|
|
17
|
+
await buildStyleDictionary(tmpDir);
|
|
18
|
+
// 3) copy result to target
|
|
19
|
+
await fs.mkdir(targetDir, { recursive: true });
|
|
20
|
+
await fs.cp(tmpDir, targetDir, {
|
|
21
|
+
recursive: true,
|
|
22
|
+
force: options.force ?? true,
|
|
23
|
+
});
|
|
24
|
+
// 4) cleanup
|
|
25
|
+
await fs.rm(tmpDir, { recursive: true, force: true });
|
|
26
|
+
});
|
|
27
|
+
program.parse();
|