@servicetitan/hammer-token 2.1.0 → 2.2.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/.turbo/turbo-build.log +4 -1
- package/CHANGELOG.md +20 -0
- package/build/web/core/component-variables.scss +139 -0
- package/build/web/core/component.js +645 -0
- package/build/web/core/component.scss +69 -0
- package/build/web/core/css-utils/border.css +46 -28
- package/build/web/core/css-utils/color.css +220 -102
- package/build/web/core/css-utils/font.css +46 -42
- package/build/web/core/css-utils/spacing.css +72 -0
- package/build/web/core/css-utils/utils.css +563 -367
- package/build/web/core/index.js +2 -1
- package/build/web/core/raw.js +28 -24
- package/build/web/core/semantic-variables.scss +28 -24
- package/build/web/core/semantic.js +44 -24
- package/build/web/core/semantic.scss +13 -11
- package/config.js +98 -22
- package/package.json +3 -2
- package/src/global/primitive/breakpoint.js +19 -0
- package/src/global/primitive/color.js +231 -0
- package/src/global/primitive/duration.js +16 -0
- package/src/global/primitive/font.js +60 -0
- package/src/global/primitive/radius.js +31 -0
- package/src/global/primitive/size.js +55 -0
- package/src/global/primitive/transition.js +16 -0
- package/src/theme/core/background.js +148 -0
- package/src/theme/core/border.js +93 -0
- package/src/theme/core/component/button.js +708 -0
- package/src/theme/core/component/checkbox.js +405 -0
- package/src/theme/core/focus.js +35 -0
- package/src/theme/core/foreground.js +148 -0
- package/src/theme/core/overlay.js +137 -0
- package/src/theme/core/shadow.js +29 -0
- package/src/theme/core/status.js +49 -0
- package/src/theme/core/typography.js +82 -0
- package/src/utils/css-utils-format-utils.js +105 -33
- package/type/types.ts +75 -0
- package/src/global/primitive/breakpoint.json +0 -19
- package/src/global/primitive/color.json +0 -231
- package/src/global/primitive/duration.json +0 -16
- package/src/global/primitive/font.json +0 -60
- package/src/global/primitive/radius.json +0 -31
- package/src/global/primitive/size.json +0 -55
- package/src/global/primitive/transition.json +0 -16
- package/src/theme/core/background.json +0 -144
- package/src/theme/core/border.json +0 -87
- package/src/theme/core/focus.json +0 -31
- package/src/theme/core/foreground.json +0 -132
- package/src/theme/core/overlay.json +0 -134
- package/src/theme/core/shadow.json +0 -25
- package/src/theme/core/status.json +0 -46
- package/src/theme/core/typography.json +0 -79
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
const { color } = require("../../global/primitive/color");
|
|
3
|
+
const { size } = require("../../global/primitive/size");
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
shadow: {
|
|
7
|
+
color: {
|
|
8
|
+
value: `${color.neutral["400"].value}14`,
|
|
9
|
+
attributes: {
|
|
10
|
+
appearance: {
|
|
11
|
+
dark: {
|
|
12
|
+
value: `${color.neutral["0"].value}14`,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
flat: {
|
|
19
|
+
value: `${size["0"].value} ${size["0"].value} ${size["0"].value}`,
|
|
20
|
+
},
|
|
21
|
+
float: {
|
|
22
|
+
value: `${size["0"].value} ${size.half.value} ${size["2"].value}`,
|
|
23
|
+
},
|
|
24
|
+
overlay: {
|
|
25
|
+
value: `${size["0"].value} ${size["2"].value} ${size["6"].value}`,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
const { color } = require("../../global/primitive/color");
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
status: {
|
|
6
|
+
color: {
|
|
7
|
+
info: {
|
|
8
|
+
value: color.blue["500"].value,
|
|
9
|
+
attributes: {
|
|
10
|
+
appearance: {
|
|
11
|
+
dark: {
|
|
12
|
+
value: color.blue["300"].value,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
danger: {
|
|
18
|
+
value: color.red["500"].value,
|
|
19
|
+
attributes: {
|
|
20
|
+
appearance: {
|
|
21
|
+
dark: {
|
|
22
|
+
value: color.red["300"].value,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
success: {
|
|
28
|
+
value: color.green["500"].value,
|
|
29
|
+
attributes: {
|
|
30
|
+
appearance: {
|
|
31
|
+
dark: {
|
|
32
|
+
value: color.green["300"].value,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
warning: {
|
|
38
|
+
value: color.yellow["500"].value,
|
|
39
|
+
attributes: {
|
|
40
|
+
appearance: {
|
|
41
|
+
dark: {
|
|
42
|
+
value: color.yellow["300"].value,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
const { font } = require("../../global/primitive/font");
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
typography: {
|
|
6
|
+
paragraph: {
|
|
7
|
+
size: {
|
|
8
|
+
xsmall: {
|
|
9
|
+
value: font.size["200"].value,
|
|
10
|
+
},
|
|
11
|
+
small: {
|
|
12
|
+
value: font.size["300"].value,
|
|
13
|
+
},
|
|
14
|
+
default: {
|
|
15
|
+
value: font.size["400"].value,
|
|
16
|
+
},
|
|
17
|
+
large: {
|
|
18
|
+
value: font.size["500"].value,
|
|
19
|
+
},
|
|
20
|
+
xlarge: {
|
|
21
|
+
value: font.size["600"].value,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
"font-weight": {
|
|
25
|
+
value: font.weight.normal.value,
|
|
26
|
+
},
|
|
27
|
+
"font-family": {
|
|
28
|
+
value: font.family.base.value,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
heading: {
|
|
32
|
+
size: {
|
|
33
|
+
xsmall: {
|
|
34
|
+
value: font.size["300"].value,
|
|
35
|
+
},
|
|
36
|
+
small: {
|
|
37
|
+
value: font.size["400"].value,
|
|
38
|
+
},
|
|
39
|
+
default: {
|
|
40
|
+
value: font.size["500"].value,
|
|
41
|
+
},
|
|
42
|
+
large: {
|
|
43
|
+
value: font.size["600"].value,
|
|
44
|
+
},
|
|
45
|
+
xlarge: {
|
|
46
|
+
value: font.size["800"].value,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
"font-weight": {
|
|
50
|
+
value: font.weight.bold.value,
|
|
51
|
+
},
|
|
52
|
+
"font-family": {
|
|
53
|
+
value: font.family.display.value,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
label: {
|
|
57
|
+
size: {
|
|
58
|
+
xsmall: {
|
|
59
|
+
value: font.size["100"].value,
|
|
60
|
+
},
|
|
61
|
+
small: {
|
|
62
|
+
value: font.size["200"].value,
|
|
63
|
+
},
|
|
64
|
+
default: {
|
|
65
|
+
value: font.size["300"].value,
|
|
66
|
+
},
|
|
67
|
+
large: {
|
|
68
|
+
value: font.size["400"].value,
|
|
69
|
+
},
|
|
70
|
+
xlarge: {
|
|
71
|
+
value: font.size["500"].value,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
"font-weight": {
|
|
75
|
+
value: font.weight.semibold.value,
|
|
76
|
+
},
|
|
77
|
+
"font-family": {
|
|
78
|
+
value: font.family.base.value,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
const cssUtilsFormatter = (dictionary, generateFn, hasDarkValues) => {
|
|
2
2
|
const result = dictionary.allTokens
|
|
3
|
+
.filter((token) => token.name.includes("color"))
|
|
3
4
|
.map((token) => {
|
|
4
5
|
let value = getVarValue(dictionary, token);
|
|
5
6
|
const name = `${token.name.replace("Default", "")}`;
|
|
7
|
+
|
|
6
8
|
if (hasDarkValues && token.attributes.appearance) {
|
|
7
9
|
const darkValue = getVarValue(dictionary, token, true);
|
|
8
10
|
return generateFn(name, value, darkValue);
|
|
@@ -14,10 +16,37 @@ const cssUtilsFormatter = (dictionary, generateFn, hasDarkValues) => {
|
|
|
14
16
|
.sort((a, b) => a.localeCompare(b))
|
|
15
17
|
.join(`\n`);
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
const fallback = dictionary.allTokens
|
|
20
|
+
.map((token) => {
|
|
21
|
+
let value = getVarValue(dictionary, token);
|
|
22
|
+
const name = `${token.name.replace("Default", "")}`;
|
|
23
|
+
return generateFn(name, value);
|
|
24
|
+
})
|
|
25
|
+
.flat()
|
|
26
|
+
.map((t) => `${t}`)
|
|
27
|
+
.sort((a, b) => a.localeCompare(b))
|
|
28
|
+
.join(`\n`);
|
|
18
29
|
|
|
19
|
-
|
|
30
|
+
return `@layer starter, reset, base, state, application;
|
|
31
|
+
|
|
32
|
+
${fallback}
|
|
33
|
+
${
|
|
34
|
+
result.length > 0
|
|
35
|
+
? `\n@supports (color: light-dark(#fff, #000)) {
|
|
20
36
|
${result.replaceAll("\n", "\n ")}
|
|
37
|
+
}`
|
|
38
|
+
: ""
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@layer application {
|
|
42
|
+
${fallback.replaceAll("\n", "\n ")}
|
|
43
|
+
${
|
|
44
|
+
result.length > 0
|
|
45
|
+
? `\n @supports (color: light-dark(#fff, #000)) {
|
|
46
|
+
${result.replaceAll("\n", "\n ")}
|
|
47
|
+
}`
|
|
48
|
+
: ""
|
|
49
|
+
}
|
|
21
50
|
}`;
|
|
22
51
|
};
|
|
23
52
|
|
|
@@ -74,53 +103,94 @@ const getVarValue = (dictionary, token, isDarkValue) => {
|
|
|
74
103
|
return value.replaceAll('"', "");
|
|
75
104
|
};
|
|
76
105
|
|
|
106
|
+
const removeDefaultFromName = (name) => {
|
|
107
|
+
return name.replace("-default", "");
|
|
108
|
+
};
|
|
109
|
+
|
|
77
110
|
const generateBorderClasses = (name, value, darkValue) => {
|
|
78
111
|
const classes = [];
|
|
79
112
|
|
|
80
113
|
if (name.startsWith("border-radius")) {
|
|
81
|
-
classes.push(
|
|
114
|
+
classes.push(
|
|
115
|
+
`.${name} {border-radius: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
116
|
+
);
|
|
82
117
|
} else if (name.startsWith("border-width")) {
|
|
83
|
-
classes.push(
|
|
118
|
+
classes.push(
|
|
119
|
+
`.${name} {border-width: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
120
|
+
);
|
|
84
121
|
} else if (name.startsWith("border-color")) {
|
|
85
|
-
|
|
122
|
+
if (darkValue) {
|
|
123
|
+
classes.push(
|
|
124
|
+
`.${name} {border-color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
125
|
+
);
|
|
126
|
+
} else {
|
|
127
|
+
classes.push(
|
|
128
|
+
`.${name} {border-color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
86
131
|
}
|
|
87
|
-
|
|
88
132
|
return classes;
|
|
89
133
|
};
|
|
90
134
|
|
|
91
135
|
const generateColorClasses = (name, value, darkValue) => {
|
|
92
136
|
const classes = [];
|
|
93
137
|
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (
|
|
138
|
+
if (darkValue) {
|
|
139
|
+
if (name.startsWith("background-color")) {
|
|
140
|
+
classes.push(
|
|
141
|
+
`.${name.replace("background-color", "bg")} {background-color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
142
|
+
);
|
|
143
|
+
} else if (name.startsWith("foreground-color")) {
|
|
144
|
+
classes.push(
|
|
145
|
+
`.${name.replace("foreground-color", "c")} {color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
146
|
+
);
|
|
147
|
+
} else if (name.startsWith("overlay-color")) {
|
|
148
|
+
classes.push(
|
|
149
|
+
`.${name.replace("overlay-color", "bg-overlay")} {background-color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
150
|
+
);
|
|
151
|
+
} else if (name.startsWith("status-color")) {
|
|
152
|
+
classes.push(
|
|
153
|
+
`.${name.replace("status-color", "c-status")} {color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
154
|
+
`.${name.replace("status-color", "bg-status")} {background-color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
155
|
+
);
|
|
156
|
+
if (!name.includes("danger")) {
|
|
157
|
+
classes.push(
|
|
158
|
+
`.${name.replace("status-color", "border-color-status")} {border-color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
} else if (name.startsWith("border-color")) {
|
|
118
162
|
classes.push(
|
|
119
|
-
`.${name
|
|
163
|
+
`.${name} {border-color: var(--${removeDefaultFromName(name)}, light-dark(${value}, ${darkValue}))}`,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
} else {
|
|
167
|
+
if (name.startsWith("background-color")) {
|
|
168
|
+
classes.push(
|
|
169
|
+
`.${name.replace("background-color", "bg")} {background-color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
170
|
+
);
|
|
171
|
+
} else if (name.startsWith("foreground-color")) {
|
|
172
|
+
classes.push(
|
|
173
|
+
`.${name.replace("foreground-color", "c")} {color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
174
|
+
);
|
|
175
|
+
} else if (name.startsWith("overlay-color")) {
|
|
176
|
+
classes.push(
|
|
177
|
+
`.${name.replace("overlay-color", "bg-overlay")} {background-color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
178
|
+
);
|
|
179
|
+
} else if (name.startsWith("status-color")) {
|
|
180
|
+
classes.push(
|
|
181
|
+
`.${name.replace("status-color", "c-status")} {color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
182
|
+
`.${name.replace("status-color", "bg-status")} {background-color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
183
|
+
);
|
|
184
|
+
if (!name.includes("danger")) {
|
|
185
|
+
classes.push(
|
|
186
|
+
`.${name.replace("status-color", "border-color-status")} {border-color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
} else if (name.startsWith("border-color")) {
|
|
190
|
+
classes.push(
|
|
191
|
+
`.${name} {border-color: var(--${removeDefaultFromName(name)}, ${value})}`,
|
|
120
192
|
);
|
|
121
193
|
}
|
|
122
|
-
} else if (name.startsWith("border-color")) {
|
|
123
|
-
classes.push(`.${name} {border-color: light-dark(${value}, ${darkValue})}`);
|
|
124
194
|
}
|
|
125
195
|
|
|
126
196
|
return classes;
|
|
@@ -169,6 +239,8 @@ const generateSpacingClasses = (name, value) => {
|
|
|
169
239
|
`.p-${direction}${nameWithoutPrefix} {padding-${direction}: var(--${name}, ${value})}`,
|
|
170
240
|
);
|
|
171
241
|
});
|
|
242
|
+
classes.push(`.m${nameWithoutPrefix} {margin: var(--${name}, ${value})}`);
|
|
243
|
+
classes.push(`.p${nameWithoutPrefix} {padding: var(--${name}, ${value})}`);
|
|
172
244
|
|
|
173
245
|
return classes;
|
|
174
246
|
};
|
package/type/types.ts
CHANGED
|
@@ -206,9 +206,84 @@ export type Semantic = {
|
|
|
206
206
|
TypographyLabelFontFamily: TokenObj;
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
+
type Component = {
|
|
210
|
+
// Button
|
|
211
|
+
ButtonPrimaryForegroundColor: TokenObj;
|
|
212
|
+
ButtonPrimaryForegroundColorHover: TokenObj;
|
|
213
|
+
ButtonPrimaryForegroundColorActive: TokenObj;
|
|
214
|
+
ButtonPrimaryBackgroundColor: TokenObj;
|
|
215
|
+
ButtonPrimaryBackgroundColorHover: TokenObj;
|
|
216
|
+
ButtonPrimaryBackgroundColorActive: TokenObj;
|
|
217
|
+
ButtonPrimaryBorderColor: TokenObj;
|
|
218
|
+
ButtonPrimaryFocusRingColor: TokenObj;
|
|
219
|
+
ButtonSecondaryForegroundColor: TokenObj;
|
|
220
|
+
ButtonSecondaryForegroundColorHover: TokenObj;
|
|
221
|
+
ButtonSecondaryForegroundColorActive: TokenObj;
|
|
222
|
+
ButtonSecondaryBackgroundColor: TokenObj;
|
|
223
|
+
ButtonSecondaryBackgroundColorHover: TokenObj;
|
|
224
|
+
ButtonSecondaryBackgroundColorActive: TokenObj;
|
|
225
|
+
ButtonSecondaryBorderColor: TokenObj;
|
|
226
|
+
ButtonSecondaryFocusRingColor: TokenObj;
|
|
227
|
+
ButtonGhostForegroundColor: TokenObj;
|
|
228
|
+
ButtonGhostForegroundColorHover: TokenObj;
|
|
229
|
+
ButtonGhostForegroundColorActive: TokenObj;
|
|
230
|
+
ButtonGhostBackgroundColor: TokenObj;
|
|
231
|
+
ButtonGhostBackgroundColorHover: TokenObj;
|
|
232
|
+
ButtonGhostBackgroundColorActive: TokenObj;
|
|
233
|
+
ButtonGhostBorderColor: TokenObj;
|
|
234
|
+
ButtonGhostFocusRingColor: TokenObj;
|
|
235
|
+
ButtonDangerPrimaryForegroundColor: TokenObj;
|
|
236
|
+
ButtonDangerPrimaryForegroundColorHover: TokenObj;
|
|
237
|
+
ButtonDangerPrimaryForegroundColorActive: TokenObj;
|
|
238
|
+
ButtonDangerPrimaryBackgroundColor: TokenObj;
|
|
239
|
+
ButtonDangerPrimaryBackgroundColorHover: TokenObj;
|
|
240
|
+
ButtonDangerPrimaryBackgroundColorActive: TokenObj;
|
|
241
|
+
ButtonDangerPrimaryBorderColor: TokenObj;
|
|
242
|
+
ButtonDangerPrimaryFocusRingColor: TokenObj;
|
|
243
|
+
ButtonDangerSecondaryForegroundColor: TokenObj;
|
|
244
|
+
ButtonDangerSecondaryForegroundColorHover: TokenObj;
|
|
245
|
+
ButtonDangerSecondaryForegroundColorActive: TokenObj;
|
|
246
|
+
ButtonDangerSecondaryBackgroundColor: TokenObj;
|
|
247
|
+
ButtonDangerSecondaryBackgroundColorHover: TokenObj;
|
|
248
|
+
ButtonDangerSecondaryBackgroundColorActive: TokenObj;
|
|
249
|
+
ButtonDangerSecondaryBorderColor: TokenObj;
|
|
250
|
+
ButtonDangerSecondaryFocusRingColor: TokenObj;
|
|
251
|
+
ButtonPrimaryBorderRadius: TokenObj;
|
|
252
|
+
ButtonSecondaryBorderRadius: TokenObj;
|
|
253
|
+
ButtonGhostBorderRadius: TokenObj;
|
|
254
|
+
ButtonDangerPrimaryBorderRadius: TokenObj;
|
|
255
|
+
ButtonDangerSecondaryBorderRadius: TokenObj;
|
|
256
|
+
|
|
257
|
+
// Checkbox
|
|
258
|
+
CheckboxUncheckedFillColor: TokenObj;
|
|
259
|
+
CheckboxUncheckedFillColorHover: TokenObj;
|
|
260
|
+
CheckboxUncheckedFillColorActive: TokenObj;
|
|
261
|
+
CheckboxUncheckedBackgroundColor: TokenObj;
|
|
262
|
+
CheckboxUncheckedBackgroundColorHover: TokenObj;
|
|
263
|
+
CheckboxUncheckedBackgroundColorActive: TokenObj;
|
|
264
|
+
CheckboxCheckedFillColor: TokenObj;
|
|
265
|
+
CheckboxCheckedFillColorHover: TokenObj;
|
|
266
|
+
CheckboxCheckedFillColorActive: TokenObj;
|
|
267
|
+
CheckboxCheckedBackgroundColor: TokenObj;
|
|
268
|
+
CheckboxCheckedBackgroundColorHover: TokenObj;
|
|
269
|
+
CheckboxCheckedBackgroundColorActive: TokenObj;
|
|
270
|
+
CheckboxUncheckedErrorFillColor: TokenObj;
|
|
271
|
+
CheckboxUncheckedErrorFillColorHover: TokenObj;
|
|
272
|
+
CheckboxUncheckedErrorFillColorActive: TokenObj;
|
|
273
|
+
CheckboxUncheckedErrorBackgroundColor: TokenObj;
|
|
274
|
+
CheckboxUncheckedErrorBackgroundColorHover: TokenObj;
|
|
275
|
+
CheckboxUncheckedErrorBackgroundColorActive: TokenObj;
|
|
276
|
+
CheckboxCheckedErrorFillColor: TokenObj;
|
|
277
|
+
CheckboxCheckedErrorFillColorHover: TokenObj;
|
|
278
|
+
CheckboxCheckedErrorFillColorActive: TokenObj;
|
|
279
|
+
CheckboxCheckedErrorBackgroundColor: TokenObj;
|
|
280
|
+
CheckboxCheckedErrorBackgroundColorHover: TokenObj;
|
|
281
|
+
CheckboxCheckedErrorBackgroundColorActive: TokenObj;
|
|
282
|
+
};
|
|
209
283
|
type Token = {
|
|
210
284
|
primitive: Primitive;
|
|
211
285
|
semantic: Semantic;
|
|
286
|
+
component: Component;
|
|
212
287
|
name: string;
|
|
213
288
|
};
|
|
214
289
|
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"color": {
|
|
3
|
-
"blue": {
|
|
4
|
-
"100": {
|
|
5
|
-
"value": "#E0F2FF"
|
|
6
|
-
},
|
|
7
|
-
"200": {
|
|
8
|
-
"value": "#B5DEFF"
|
|
9
|
-
},
|
|
10
|
-
"300": {
|
|
11
|
-
"value": "#78BBFA"
|
|
12
|
-
},
|
|
13
|
-
"400": {
|
|
14
|
-
"value": "#3892F3"
|
|
15
|
-
},
|
|
16
|
-
"500": {
|
|
17
|
-
"value": "#0265DC"
|
|
18
|
-
},
|
|
19
|
-
"600": {
|
|
20
|
-
"value": "#004491"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"neutral": {
|
|
24
|
-
"0": {
|
|
25
|
-
"value": "#ffffff"
|
|
26
|
-
},
|
|
27
|
-
"10": {
|
|
28
|
-
"value": "#fcfcfc"
|
|
29
|
-
},
|
|
30
|
-
"20": {
|
|
31
|
-
"value": "#fafafa"
|
|
32
|
-
},
|
|
33
|
-
"30": {
|
|
34
|
-
"value": "#f7f7f7"
|
|
35
|
-
},
|
|
36
|
-
"40": {
|
|
37
|
-
"value": "#f5f5f5"
|
|
38
|
-
},
|
|
39
|
-
"50": {
|
|
40
|
-
"value": "#eeeeee"
|
|
41
|
-
},
|
|
42
|
-
"60": {
|
|
43
|
-
"value": "#dfe0e1"
|
|
44
|
-
},
|
|
45
|
-
"70": {
|
|
46
|
-
"value": "#bcbcbd"
|
|
47
|
-
},
|
|
48
|
-
"80": {
|
|
49
|
-
"value": "#949596"
|
|
50
|
-
},
|
|
51
|
-
"90": {
|
|
52
|
-
"value": "#737475"
|
|
53
|
-
},
|
|
54
|
-
"100": {
|
|
55
|
-
"value": "#606162"
|
|
56
|
-
},
|
|
57
|
-
"200": {
|
|
58
|
-
"value": "#444445"
|
|
59
|
-
},
|
|
60
|
-
"300": {
|
|
61
|
-
"value": "#2d2e31"
|
|
62
|
-
},
|
|
63
|
-
"400": {
|
|
64
|
-
"value": "#141414"
|
|
65
|
-
},
|
|
66
|
-
"500": {
|
|
67
|
-
"value": "#040404"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"blue-grey": {
|
|
71
|
-
"100": {
|
|
72
|
-
"value": "#eaeff2"
|
|
73
|
-
},
|
|
74
|
-
"200": {
|
|
75
|
-
"value": "#d0d8dd"
|
|
76
|
-
},
|
|
77
|
-
"300": {
|
|
78
|
-
"value": "#b4c1c8"
|
|
79
|
-
},
|
|
80
|
-
"400": {
|
|
81
|
-
"value": "#8c9ca5"
|
|
82
|
-
},
|
|
83
|
-
"500": {
|
|
84
|
-
"value": "#6a7a85"
|
|
85
|
-
},
|
|
86
|
-
"600": {
|
|
87
|
-
"value": "#576671"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"orange": {
|
|
91
|
-
"100": {
|
|
92
|
-
"value": "#ffeccc"
|
|
93
|
-
},
|
|
94
|
-
"200": {
|
|
95
|
-
"value": "#fdd291"
|
|
96
|
-
},
|
|
97
|
-
"300": {
|
|
98
|
-
"value": "#ffa037"
|
|
99
|
-
},
|
|
100
|
-
"400": {
|
|
101
|
-
"value": "#e46f00"
|
|
102
|
-
},
|
|
103
|
-
"500": {
|
|
104
|
-
"value": "#b14c00"
|
|
105
|
-
},
|
|
106
|
-
"600": {
|
|
107
|
-
"value": "#7a2f00"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"yellow": {
|
|
111
|
-
"100": {
|
|
112
|
-
"value": "#fff9e2"
|
|
113
|
-
},
|
|
114
|
-
"200": {
|
|
115
|
-
"value": "#fff0b1"
|
|
116
|
-
},
|
|
117
|
-
"300": {
|
|
118
|
-
"value": "#ffe278"
|
|
119
|
-
},
|
|
120
|
-
"400": {
|
|
121
|
-
"value": "#ffc902"
|
|
122
|
-
},
|
|
123
|
-
"500": {
|
|
124
|
-
"value": "#ffbe00"
|
|
125
|
-
},
|
|
126
|
-
"600": {
|
|
127
|
-
"value": "#de9500"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"green": {
|
|
131
|
-
"100": {
|
|
132
|
-
"value": "#CEF8E0"
|
|
133
|
-
},
|
|
134
|
-
"200": {
|
|
135
|
-
"value": "#89ECBC"
|
|
136
|
-
},
|
|
137
|
-
"300": {
|
|
138
|
-
"value": "#49CC93"
|
|
139
|
-
},
|
|
140
|
-
"400": {
|
|
141
|
-
"value": "#15A46E"
|
|
142
|
-
},
|
|
143
|
-
"500": {
|
|
144
|
-
"value": "#007A4D"
|
|
145
|
-
},
|
|
146
|
-
"600": {
|
|
147
|
-
"value": "#005132"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"cyan": {
|
|
151
|
-
"100": {
|
|
152
|
-
"value": "#e3fcff"
|
|
153
|
-
},
|
|
154
|
-
"200": {
|
|
155
|
-
"value": "#b1f3fa"
|
|
156
|
-
},
|
|
157
|
-
"300": {
|
|
158
|
-
"value": "#13ceea"
|
|
159
|
-
},
|
|
160
|
-
"400": {
|
|
161
|
-
"value": "#08bfdf"
|
|
162
|
-
},
|
|
163
|
-
"500": {
|
|
164
|
-
"value": "#0ca5c0"
|
|
165
|
-
},
|
|
166
|
-
"600": {
|
|
167
|
-
"value": "#038299"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"purple": {
|
|
171
|
-
"100": {
|
|
172
|
-
"value": "#f1edff"
|
|
173
|
-
},
|
|
174
|
-
"200": {
|
|
175
|
-
"value": "#c1b6f2"
|
|
176
|
-
},
|
|
177
|
-
"300": {
|
|
178
|
-
"value": "#8772e5"
|
|
179
|
-
},
|
|
180
|
-
"400": {
|
|
181
|
-
"value": "#6954c0"
|
|
182
|
-
},
|
|
183
|
-
"500": {
|
|
184
|
-
"value": "#4f3a9e"
|
|
185
|
-
},
|
|
186
|
-
"600": {
|
|
187
|
-
"value": "#422799"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"red": {
|
|
191
|
-
"100": {
|
|
192
|
-
"value": "#ffece9"
|
|
193
|
-
},
|
|
194
|
-
"200": {
|
|
195
|
-
"value": "#ffb2a0"
|
|
196
|
-
},
|
|
197
|
-
"300": {
|
|
198
|
-
"value": "#ff745f"
|
|
199
|
-
},
|
|
200
|
-
"400": {
|
|
201
|
-
"value": "#f94d32"
|
|
202
|
-
},
|
|
203
|
-
"500": {
|
|
204
|
-
"value": "#e13212"
|
|
205
|
-
},
|
|
206
|
-
"600": {
|
|
207
|
-
"value": "#bf2a00"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"magenta": {
|
|
211
|
-
"100": {
|
|
212
|
-
"value": "#fbeaf5"
|
|
213
|
-
},
|
|
214
|
-
"200": {
|
|
215
|
-
"value": "#faafe2"
|
|
216
|
-
},
|
|
217
|
-
"300": {
|
|
218
|
-
"value": "#d949a9"
|
|
219
|
-
},
|
|
220
|
-
"400": {
|
|
221
|
-
"value": "#b52d88"
|
|
222
|
-
},
|
|
223
|
-
"500": {
|
|
224
|
-
"value": "#982071"
|
|
225
|
-
},
|
|
226
|
-
"600": {
|
|
227
|
-
"value": "#7d165b"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|