@synergy-design-system/tokens 1.0.0-main.1 → 1.0.0-main.11
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/CHANGELOG.md +70 -0
- package/LICENSE +28 -0
- package/README.md +126 -31
- package/dist/js/index.js +934 -0
- package/dist/scss/_tokens.scss +190 -0
- package/dist/themes/dark.css +251 -0
- package/dist/themes/light.css +251 -0
- package/package.json +23 -8
- package/src/figma-tokens/$metadata.json +13 -0
- package/src/figma-tokens/$themes.json +334 -0
- package/src/figma-tokens/_docs.json +1256 -0
- package/src/figma-tokens/color/dark.json +286 -0
- package/src/figma-tokens/color/light.json +286 -0
- package/src/figma-tokens/color/primitives.json +292 -0
- package/src/figma-tokens/globals.json +415 -0
- package/src/figma-tokens/semantic/button.json +18 -0
- package/src/figma-tokens/semantic/focus-ring.json +16 -0
- package/src/figma-tokens/semantic/input.json +266 -0
- package/src/figma-tokens/semantic/toggle.json +18 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"button": {
|
|
3
|
+
"font-size": {
|
|
4
|
+
"small": {
|
|
5
|
+
"value": "{font-size.x-small}",
|
|
6
|
+
"type": "fontSizes"
|
|
7
|
+
},
|
|
8
|
+
"medium": {
|
|
9
|
+
"value": "{font-size.medium}",
|
|
10
|
+
"type": "fontSizes"
|
|
11
|
+
},
|
|
12
|
+
"large": {
|
|
13
|
+
"value": "{font-size.large}",
|
|
14
|
+
"type": "fontSizes"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
{
|
|
2
|
+
"input": {
|
|
3
|
+
"color": {
|
|
4
|
+
"value": "{neutral.950}",
|
|
5
|
+
"type": "color"
|
|
6
|
+
},
|
|
7
|
+
"color-hover": {
|
|
8
|
+
"value": "{neutral.950}",
|
|
9
|
+
"type": "color"
|
|
10
|
+
},
|
|
11
|
+
"color-focus": {
|
|
12
|
+
"value": "{neutral.950}",
|
|
13
|
+
"type": "color"
|
|
14
|
+
},
|
|
15
|
+
"color-disabled": {
|
|
16
|
+
"value": "{neutral.950}",
|
|
17
|
+
"type": "color"
|
|
18
|
+
},
|
|
19
|
+
"background": {
|
|
20
|
+
"color": {
|
|
21
|
+
"value": "{neutral.0}",
|
|
22
|
+
"type": "color"
|
|
23
|
+
},
|
|
24
|
+
"color-hover": {
|
|
25
|
+
"value": "{input.background.color}",
|
|
26
|
+
"type": "color"
|
|
27
|
+
},
|
|
28
|
+
"color-focus": {
|
|
29
|
+
"value": "{input.background.color}",
|
|
30
|
+
"type": "color"
|
|
31
|
+
},
|
|
32
|
+
"color-disabled": {
|
|
33
|
+
"value": "{input.background.color}",
|
|
34
|
+
"type": "color"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"border": {
|
|
38
|
+
"color": {
|
|
39
|
+
"value": "{neutral.700}",
|
|
40
|
+
"type": "color"
|
|
41
|
+
},
|
|
42
|
+
"color-hover": {
|
|
43
|
+
"value": "{neutral.950}",
|
|
44
|
+
"type": "color"
|
|
45
|
+
},
|
|
46
|
+
"color-focus": {
|
|
47
|
+
"value": "{neutral.950}",
|
|
48
|
+
"type": "color"
|
|
49
|
+
},
|
|
50
|
+
"color-disables": {
|
|
51
|
+
"value": "{neutral.700}",
|
|
52
|
+
"type": "color"
|
|
53
|
+
},
|
|
54
|
+
"radius-small": {
|
|
55
|
+
"value": "{border-radius.none}",
|
|
56
|
+
"type": "borderRadius"
|
|
57
|
+
},
|
|
58
|
+
"radius-medium": {
|
|
59
|
+
"value": "{border-radius.none}",
|
|
60
|
+
"type": "borderRadius"
|
|
61
|
+
},
|
|
62
|
+
"radius-large": {
|
|
63
|
+
"value": "{border-radius.none}",
|
|
64
|
+
"type": "borderRadius"
|
|
65
|
+
},
|
|
66
|
+
"color-focus-error": {
|
|
67
|
+
"value": "{error.700}",
|
|
68
|
+
"type": "color"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"width": {
|
|
72
|
+
"value": "{border-width.small}",
|
|
73
|
+
"type": "borderWidth"
|
|
74
|
+
},
|
|
75
|
+
"icon": {
|
|
76
|
+
"color": {
|
|
77
|
+
"value": "{neutral.800}",
|
|
78
|
+
"type": "color"
|
|
79
|
+
},
|
|
80
|
+
"color-hover": {
|
|
81
|
+
"value": "{neutral.800}",
|
|
82
|
+
"type": "color"
|
|
83
|
+
},
|
|
84
|
+
"color-focus": {
|
|
85
|
+
"value": "{neutral.800}",
|
|
86
|
+
"type": "color"
|
|
87
|
+
},
|
|
88
|
+
"icon-clearable": {
|
|
89
|
+
"color": {
|
|
90
|
+
"value": "{gray.500}",
|
|
91
|
+
"type": "color"
|
|
92
|
+
},
|
|
93
|
+
"color-hover": {
|
|
94
|
+
"value": "{gray.500}",
|
|
95
|
+
"type": "color"
|
|
96
|
+
},
|
|
97
|
+
"color-focus": {
|
|
98
|
+
"value": "{gray.500}",
|
|
99
|
+
"type": "color"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"placeholder": {
|
|
104
|
+
"color": {
|
|
105
|
+
"value": "{neutral.500}",
|
|
106
|
+
"type": "color"
|
|
107
|
+
},
|
|
108
|
+
"color-disabled": {
|
|
109
|
+
"value": "{neutral.500}",
|
|
110
|
+
"type": "color"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required-content": {
|
|
114
|
+
"value": "*",
|
|
115
|
+
"type": "text",
|
|
116
|
+
"color": {
|
|
117
|
+
"value": "{input.label.color}",
|
|
118
|
+
"type": "color"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required-content-offset": {
|
|
122
|
+
"value": "-2px",
|
|
123
|
+
"type": "spacing"
|
|
124
|
+
},
|
|
125
|
+
"label": {
|
|
126
|
+
"color": {
|
|
127
|
+
"value": "{neutral.950}",
|
|
128
|
+
"type": "color"
|
|
129
|
+
},
|
|
130
|
+
"font-size": {
|
|
131
|
+
"small": {
|
|
132
|
+
"value": "{font-size.small}",
|
|
133
|
+
"type": "fontSizes"
|
|
134
|
+
},
|
|
135
|
+
"medium": {
|
|
136
|
+
"value": "{font-size.medium}",
|
|
137
|
+
"type": "fontSizes"
|
|
138
|
+
},
|
|
139
|
+
"large": {
|
|
140
|
+
"value": "{font-size.large}",
|
|
141
|
+
"type": "fontSizes"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"spacing": {
|
|
146
|
+
"small": {
|
|
147
|
+
"value": "{spacing.small}",
|
|
148
|
+
"type": "spacing"
|
|
149
|
+
},
|
|
150
|
+
"medium": {
|
|
151
|
+
"value": "{spacing.medium}",
|
|
152
|
+
"type": "spacing"
|
|
153
|
+
},
|
|
154
|
+
"large": {
|
|
155
|
+
"value": "{spacing.large}",
|
|
156
|
+
"type": "spacing"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"focus-ring": {
|
|
160
|
+
"color": {
|
|
161
|
+
"value": "{primary.400}",
|
|
162
|
+
"type": "color"
|
|
163
|
+
},
|
|
164
|
+
"offset": {
|
|
165
|
+
"value": "0",
|
|
166
|
+
"type": "spacing"
|
|
167
|
+
},
|
|
168
|
+
"error": {
|
|
169
|
+
"value": "{error.400}",
|
|
170
|
+
"type": "color"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"disabled-opacity": {
|
|
174
|
+
"value": "50%",
|
|
175
|
+
"type": "opacity"
|
|
176
|
+
},
|
|
177
|
+
"readonly-background": {
|
|
178
|
+
"color": {
|
|
179
|
+
"value": "{neutral.50}",
|
|
180
|
+
"type": "color"
|
|
181
|
+
},
|
|
182
|
+
"color-hover": {
|
|
183
|
+
"value": "{neutral.50}",
|
|
184
|
+
"type": "color"
|
|
185
|
+
},
|
|
186
|
+
"color-focus": {
|
|
187
|
+
"value": "{neutral.50}",
|
|
188
|
+
"type": "color"
|
|
189
|
+
},
|
|
190
|
+
"color-disabled": {
|
|
191
|
+
"value": "{neutral.50}",
|
|
192
|
+
"type": "color"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"help-text": {
|
|
196
|
+
"color": {
|
|
197
|
+
"value": "{neutral.800}",
|
|
198
|
+
"type": "color"
|
|
199
|
+
},
|
|
200
|
+
"color-error": {
|
|
201
|
+
"value": "{error.700}",
|
|
202
|
+
"type": "color"
|
|
203
|
+
},
|
|
204
|
+
"font-size": {
|
|
205
|
+
"small": {
|
|
206
|
+
"value": "{font-size.x-small}",
|
|
207
|
+
"type": "fontSizes"
|
|
208
|
+
},
|
|
209
|
+
"medium": {
|
|
210
|
+
"value": "{font-size.small}",
|
|
211
|
+
"type": "fontSizes"
|
|
212
|
+
},
|
|
213
|
+
"large": {
|
|
214
|
+
"value": "{font-size.medium}",
|
|
215
|
+
"type": "fontSizes"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"height": {
|
|
220
|
+
"small": {
|
|
221
|
+
"value": "{spacing.x-large}",
|
|
222
|
+
"type": "spacing"
|
|
223
|
+
},
|
|
224
|
+
"medium": {
|
|
225
|
+
"value": "{spacing.2x-large}",
|
|
226
|
+
"type": "spacing"
|
|
227
|
+
},
|
|
228
|
+
"large": {
|
|
229
|
+
"value": "{spacing.3x-large}",
|
|
230
|
+
"type": "spacing"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"readonly": {
|
|
234
|
+
"color": {
|
|
235
|
+
"value": "{neutral.800}",
|
|
236
|
+
"type": "color"
|
|
237
|
+
},
|
|
238
|
+
"color-disabled": {
|
|
239
|
+
"value": "{neutral.800}",
|
|
240
|
+
"type": "color"
|
|
241
|
+
},
|
|
242
|
+
"color-hover": {
|
|
243
|
+
"value": "{neutral.950}",
|
|
244
|
+
"type": "color"
|
|
245
|
+
},
|
|
246
|
+
"color-focus": {
|
|
247
|
+
"value": "{neutral.950}",
|
|
248
|
+
"type": "color"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"font-size": {
|
|
252
|
+
"small": {
|
|
253
|
+
"value": "{font-size.small}",
|
|
254
|
+
"type": "fontSizes"
|
|
255
|
+
},
|
|
256
|
+
"medium": {
|
|
257
|
+
"value": "{font-size.medium}",
|
|
258
|
+
"type": "fontSizes"
|
|
259
|
+
},
|
|
260
|
+
"large": {
|
|
261
|
+
"value": "{font-size.large}",
|
|
262
|
+
"type": "fontSizes"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|