@commmerce/tokens 0.0.0-stage → 1.0.0-rc.4
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/LICENSE.md +17 -0
- package/README.md +16 -2
- package/dist/fonts.css +2 -0
- package/dist/tokens.css +253 -0
- package/dist/tokens.d.ts +171 -0
- package/dist/tokens.js +88 -0
- package/dist/tokens.json +933 -0
- package/package.json +41 -4
package/dist/tokens.json
ADDED
|
@@ -0,0 +1,933 @@
|
|
|
1
|
+
{
|
|
2
|
+
"themes": [
|
|
3
|
+
"light",
|
|
4
|
+
"dark"
|
|
5
|
+
],
|
|
6
|
+
"tokens": [
|
|
7
|
+
{
|
|
8
|
+
"name": "bg-page",
|
|
9
|
+
"family": "color",
|
|
10
|
+
"cssVar": "--cm-bg-page",
|
|
11
|
+
"value": {
|
|
12
|
+
"light": "#f6f6f6",
|
|
13
|
+
"dark": "#111111"
|
|
14
|
+
},
|
|
15
|
+
"usage": "Page background behind cards. Text: text-default, text-tertiary."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "bg-surface",
|
|
19
|
+
"family": "color",
|
|
20
|
+
"cssVar": "--cm-bg-surface",
|
|
21
|
+
"value": {
|
|
22
|
+
"light": "#ffffff",
|
|
23
|
+
"dark": "#1b1b1b"
|
|
24
|
+
},
|
|
25
|
+
"usage": "Cards, header bar, save bar, inputs (Figma: Header Bg). Dark: Figma panel-header #1B1B1B."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "bg-flash-bar",
|
|
29
|
+
"family": "color",
|
|
30
|
+
"cssVar": "--cm-bg-flash-bar",
|
|
31
|
+
"value": {
|
|
32
|
+
"light": "#2e2a2a",
|
|
33
|
+
"dark": "#2e2a2a"
|
|
34
|
+
},
|
|
35
|
+
"usage": "Flash offer bar. Text on it: text-on-dark (14:1)."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "bg-dashboard",
|
|
39
|
+
"family": "color",
|
|
40
|
+
"cssVar": "--cm-bg-dashboard",
|
|
41
|
+
"value": {
|
|
42
|
+
"light": "#000000",
|
|
43
|
+
"dark": "#000000"
|
|
44
|
+
},
|
|
45
|
+
"usage": "Dashboard / side navigation background. Text on it: text-on-dark."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "bg-attention",
|
|
49
|
+
"family": "color",
|
|
50
|
+
"cssVar": "--cm-bg-attention",
|
|
51
|
+
"value": {
|
|
52
|
+
"light": "#e5f2ff",
|
|
53
|
+
"dark": "#132a40"
|
|
54
|
+
},
|
|
55
|
+
"usage": "Attention banners and callouts (light blue). Pair with text-attention."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "bg-information",
|
|
59
|
+
"family": "color",
|
|
60
|
+
"cssVar": "--cm-bg-information",
|
|
61
|
+
"value": {
|
|
62
|
+
"light": "#f1a953",
|
|
63
|
+
"dark": "#3a2a14"
|
|
64
|
+
},
|
|
65
|
+
"usage": "Informational banners (Figma orange, unchanged). Text on it: text-default only (10.5:1). Dark: tinted fill, text-default."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "bg-success",
|
|
69
|
+
"family": "color",
|
|
70
|
+
"cssVar": "--cm-bg-success",
|
|
71
|
+
"value": {
|
|
72
|
+
"light": "#81bb47",
|
|
73
|
+
"dark": "#1f2e12"
|
|
74
|
+
},
|
|
75
|
+
"usage": "Success banners (Figma green, unchanged). Text on it: text-default only (9.1:1). Dark: tinted fill, text-default."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "bg-critical",
|
|
79
|
+
"family": "color",
|
|
80
|
+
"cssVar": "--cm-bg-critical",
|
|
81
|
+
"value": {
|
|
82
|
+
"light": "#fff0f0",
|
|
83
|
+
"dark": "#3a1414"
|
|
84
|
+
},
|
|
85
|
+
"usage": "Critical / error banners. Pair with text-critical."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "bg-tag",
|
|
89
|
+
"family": "color",
|
|
90
|
+
"cssVar": "--cm-bg-tag",
|
|
91
|
+
"value": {
|
|
92
|
+
"light": "#f1f3fa",
|
|
93
|
+
"dark": "#2a2d36"
|
|
94
|
+
},
|
|
95
|
+
"usage": "Tag and chip fills."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "bg-icon",
|
|
99
|
+
"family": "color",
|
|
100
|
+
"cssVar": "--cm-bg-icon",
|
|
101
|
+
"value": {
|
|
102
|
+
"light": "#f7f7f7",
|
|
103
|
+
"dark": "#2a2a2a"
|
|
104
|
+
},
|
|
105
|
+
"usage": "Fill behind icon buttons (the 48px rounded header icons)."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "bg-hover",
|
|
109
|
+
"family": "color",
|
|
110
|
+
"cssVar": "--cm-bg-hover",
|
|
111
|
+
"value": {
|
|
112
|
+
"light": "#f7f7f7",
|
|
113
|
+
"dark": "#2a2a2a"
|
|
114
|
+
},
|
|
115
|
+
"usage": "Label bars, row hover, secondary button fill. The file's swatch draws #F6F6F6 but labels it #F7F7F7; the label is used."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "bg-error-bar",
|
|
119
|
+
"family": "color",
|
|
120
|
+
"cssVar": "--cm-bg-error-bar",
|
|
121
|
+
"value": {
|
|
122
|
+
"light": "#fff2f2",
|
|
123
|
+
"dark": "#3a1414"
|
|
124
|
+
},
|
|
125
|
+
"usage": "Bottom error bar."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "bg-offer-card",
|
|
129
|
+
"family": "color",
|
|
130
|
+
"cssVar": "--cm-bg-offer-card",
|
|
131
|
+
"value": {
|
|
132
|
+
"light": "#eef5ff",
|
|
133
|
+
"dark": "#132a40"
|
|
134
|
+
},
|
|
135
|
+
"usage": "Offer area on application cards."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "bg-inset",
|
|
139
|
+
"family": "color",
|
|
140
|
+
"cssVar": "--cm-bg-inset",
|
|
141
|
+
"value": {
|
|
142
|
+
"light": "#f9f9fc",
|
|
143
|
+
"dark": "#1e1e1e"
|
|
144
|
+
},
|
|
145
|
+
"usage": "Inside-card panels and table bodies (Borders page: Inside Card Color)."
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "bg-input-filled",
|
|
149
|
+
"family": "color",
|
|
150
|
+
"cssVar": "--cm-bg-input-filled",
|
|
151
|
+
"value": {
|
|
152
|
+
"light": "#f9f9f9",
|
|
153
|
+
"dark": "#232323"
|
|
154
|
+
},
|
|
155
|
+
"usage": "Filled or read-only input fill (Errors & Highlight page)."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "icon-default",
|
|
159
|
+
"family": "color",
|
|
160
|
+
"cssVar": "--cm-icon-default",
|
|
161
|
+
"value": {
|
|
162
|
+
"light": "#8b8b8b",
|
|
163
|
+
"dark": "#8b8b8b"
|
|
164
|
+
},
|
|
165
|
+
"usage": "Default icon colour. gray-600 from the Figma black scale: 3.4:1 on white (Figma swatch #9E9E9E was 2.5:1, under the 3:1 needed for meaningful icons)."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "icon-hover",
|
|
169
|
+
"family": "color",
|
|
170
|
+
"cssVar": "--cm-icon-hover",
|
|
171
|
+
"value": {
|
|
172
|
+
"light": "#ffffff",
|
|
173
|
+
"dark": "#ffffff"
|
|
174
|
+
},
|
|
175
|
+
"usage": "Icon color on hover, over a dark fill."
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "icon-selected",
|
|
179
|
+
"family": "color",
|
|
180
|
+
"cssVar": "--cm-icon-selected",
|
|
181
|
+
"value": {
|
|
182
|
+
"light": "#000000",
|
|
183
|
+
"dark": "#f4f4f4"
|
|
184
|
+
},
|
|
185
|
+
"usage": "Selected icon."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "icon-responsive-menu",
|
|
189
|
+
"family": "color",
|
|
190
|
+
"cssVar": "--cm-icon-responsive-menu",
|
|
191
|
+
"value": {
|
|
192
|
+
"light": "#696969",
|
|
193
|
+
"dark": "#9e9e9e"
|
|
194
|
+
},
|
|
195
|
+
"usage": "Icons in the responsive menu."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "icon-success",
|
|
199
|
+
"family": "color",
|
|
200
|
+
"cssVar": "--cm-icon-success",
|
|
201
|
+
"value": {
|
|
202
|
+
"light": "#749e48",
|
|
203
|
+
"dark": "#81bb47"
|
|
204
|
+
},
|
|
205
|
+
"usage": "Success icons. Figma #8FBE5F darkened to 3.1:1 on white; dark uses Figma success green."
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "icon-critical",
|
|
209
|
+
"family": "color",
|
|
210
|
+
"cssVar": "--cm-icon-critical",
|
|
211
|
+
"value": {
|
|
212
|
+
"light": "#ff0000",
|
|
213
|
+
"dark": "#ff3c2e"
|
|
214
|
+
},
|
|
215
|
+
"usage": "Caution and critical icons (4:1 on white)."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "icon-rating",
|
|
219
|
+
"family": "color",
|
|
220
|
+
"cssVar": "--cm-icon-rating",
|
|
221
|
+
"value": {
|
|
222
|
+
"light": "#ffc107",
|
|
223
|
+
"dark": "#ffc107"
|
|
224
|
+
},
|
|
225
|
+
"usage": "Rating stars."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "text-default",
|
|
229
|
+
"family": "color",
|
|
230
|
+
"cssVar": "--cm-text-default",
|
|
231
|
+
"value": {
|
|
232
|
+
"light": "#000000",
|
|
233
|
+
"dark": "#f4f4f4"
|
|
234
|
+
},
|
|
235
|
+
"usage": "Primary text on bg-surface and bg-page (19:1 light, 15.7:1 dark)."
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "text-secondary",
|
|
239
|
+
"family": "color",
|
|
240
|
+
"cssVar": "--cm-text-secondary",
|
|
241
|
+
"value": {
|
|
242
|
+
"light": "#9e9e9e",
|
|
243
|
+
"dark": "#707070"
|
|
244
|
+
},
|
|
245
|
+
"usage": "Disabled text ONLY (WCAG exempts disabled controls). Never for placeholders or copy: use text-tertiary."
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "text-tertiary",
|
|
249
|
+
"family": "color",
|
|
250
|
+
"cssVar": "--cm-text-tertiary",
|
|
251
|
+
"value": {
|
|
252
|
+
"light": "#707070",
|
|
253
|
+
"dark": "#9e9e9e"
|
|
254
|
+
},
|
|
255
|
+
"usage": "Help text, hints, breadcrumbs, placeholders (4.6:1 on bg-page; 6.4:1 dark)."
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "text-information",
|
|
259
|
+
"family": "color",
|
|
260
|
+
"cssVar": "--cm-text-information",
|
|
261
|
+
"value": {
|
|
262
|
+
"light": "#ad5500",
|
|
263
|
+
"dark": "#f1a953"
|
|
264
|
+
},
|
|
265
|
+
"usage": "Informational text. Figma #F18402 (2.3:1) darkened along its hue to 4.6:1 on its soft fill; dark uses Figma #F1A953."
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "text-critical",
|
|
269
|
+
"family": "color",
|
|
270
|
+
"cssVar": "--cm-text-critical",
|
|
271
|
+
"value": {
|
|
272
|
+
"light": "#de0000",
|
|
273
|
+
"dark": "#ff3c2e"
|
|
274
|
+
},
|
|
275
|
+
"usage": "Error messages. Figma #E50000 nudged to 4.6:1 on bg-critical."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "text-success",
|
|
279
|
+
"family": "color",
|
|
280
|
+
"cssVar": "--cm-text-success",
|
|
281
|
+
"value": {
|
|
282
|
+
"light": "#3c7c00",
|
|
283
|
+
"dark": "#81bb47"
|
|
284
|
+
},
|
|
285
|
+
"usage": "Success text. Figma #61AD14 (2.5:1) darkened to 4.7:1 on its soft fill; dark uses Figma #81BB47."
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "text-attention",
|
|
289
|
+
"family": "color",
|
|
290
|
+
"cssVar": "--cm-text-attention",
|
|
291
|
+
"value": {
|
|
292
|
+
"light": "#2e6faf",
|
|
293
|
+
"dark": "#5394d9"
|
|
294
|
+
},
|
|
295
|
+
"usage": "Attention text and links. Figma #3274B6 nudged to 4.6:1 on bg-attention."
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "text-on-dark",
|
|
299
|
+
"family": "color",
|
|
300
|
+
"cssVar": "--cm-text-on-dark",
|
|
301
|
+
"value": {
|
|
302
|
+
"light": "#ffffff",
|
|
303
|
+
"dark": "#ffffff"
|
|
304
|
+
},
|
|
305
|
+
"usage": "Text on bg-dashboard, bg-flash-bar and primary buttons (the file's Basic text)."
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "text-on-dark-secondary",
|
|
309
|
+
"family": "color",
|
|
310
|
+
"cssVar": "--cm-text-on-dark-secondary",
|
|
311
|
+
"value": {
|
|
312
|
+
"light": "#b5b5b5",
|
|
313
|
+
"dark": "#b5b5b5"
|
|
314
|
+
},
|
|
315
|
+
"usage": "Unselected items and secondary text on bg-dashboard and other dark grounds (side navigation). 10:1 on black, AA on nav-active."
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "text-speciality",
|
|
319
|
+
"family": "color",
|
|
320
|
+
"cssVar": "--cm-text-speciality",
|
|
321
|
+
"value": {
|
|
322
|
+
"light": "#008800",
|
|
323
|
+
"dark": "#1ec81a"
|
|
324
|
+
},
|
|
325
|
+
"usage": "Speciality highlights on light grounds. Figma #1EC81A (2.3:1) darkened to 4.6:1. On the flash bar use text-speciality-on-dark."
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "text-counter",
|
|
329
|
+
"family": "color",
|
|
330
|
+
"cssVar": "--cm-text-counter",
|
|
331
|
+
"value": {
|
|
332
|
+
"light": "#3b68f9",
|
|
333
|
+
"dark": "#4b7cff"
|
|
334
|
+
},
|
|
335
|
+
"usage": "Counters and badges. Figma #3E6CFF nudged to 4.6:1."
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "border-default",
|
|
339
|
+
"family": "color",
|
|
340
|
+
"cssVar": "--cm-border-default",
|
|
341
|
+
"value": {
|
|
342
|
+
"light": "#d6d6d6",
|
|
343
|
+
"dark": "#333333"
|
|
344
|
+
},
|
|
345
|
+
"usage": "Card and divider borders, 1px. Decorative only; form controls use border-input."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "border-strong",
|
|
349
|
+
"family": "color",
|
|
350
|
+
"cssVar": "--cm-border-strong",
|
|
351
|
+
"value": {
|
|
352
|
+
"light": "#000000",
|
|
353
|
+
"dark": "#f4f4f4"
|
|
354
|
+
},
|
|
355
|
+
"usage": "Focused or highlighted input, secondary button, checkbox and radio outlines, focus rings."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "border-input",
|
|
359
|
+
"family": "color",
|
|
360
|
+
"cssVar": "--cm-border-input",
|
|
361
|
+
"value": {
|
|
362
|
+
"light": "#8b8b8b",
|
|
363
|
+
"dark": "#6f6f6f"
|
|
364
|
+
},
|
|
365
|
+
"usage": "Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "action-primary",
|
|
369
|
+
"family": "color",
|
|
370
|
+
"cssVar": "--cm-action-primary",
|
|
371
|
+
"value": {
|
|
372
|
+
"light": "#000000",
|
|
373
|
+
"dark": "#f4f4f4"
|
|
374
|
+
},
|
|
375
|
+
"usage": "Primary button fill. Black is the brand; inverts in dark."
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "action-primary-hover",
|
|
379
|
+
"family": "color",
|
|
380
|
+
"cssVar": "--cm-action-primary-hover",
|
|
381
|
+
"value": {
|
|
382
|
+
"light": "#707070",
|
|
383
|
+
"dark": "#c9c9c9"
|
|
384
|
+
},
|
|
385
|
+
"usage": "Primary button hover (Figma gray-700 / gray-400). Text stays action-primary-text (4.9:1 / 12.7:1)."
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "action-primary-text",
|
|
389
|
+
"family": "color",
|
|
390
|
+
"cssVar": "--cm-action-primary-text",
|
|
391
|
+
"value": {
|
|
392
|
+
"light": "#ffffff",
|
|
393
|
+
"dark": "#000000"
|
|
394
|
+
},
|
|
395
|
+
"usage": "Label on action-primary."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "action-disabled",
|
|
399
|
+
"family": "color",
|
|
400
|
+
"cssVar": "--cm-action-disabled",
|
|
401
|
+
"value": {
|
|
402
|
+
"light": "#d6d6d6",
|
|
403
|
+
"dark": "#333333"
|
|
404
|
+
},
|
|
405
|
+
"usage": "Disabled button fill."
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "action-disabled-text",
|
|
409
|
+
"family": "color",
|
|
410
|
+
"cssVar": "--cm-action-disabled-text",
|
|
411
|
+
"value": {
|
|
412
|
+
"light": "#707070",
|
|
413
|
+
"dark": "#8b8b8b"
|
|
414
|
+
},
|
|
415
|
+
"usage": "Disabled button label."
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "text-speciality-on-dark",
|
|
419
|
+
"family": "color",
|
|
420
|
+
"cssVar": "--cm-text-speciality-on-dark",
|
|
421
|
+
"value": {
|
|
422
|
+
"light": "#1ec81a",
|
|
423
|
+
"dark": "#1ec81a"
|
|
424
|
+
},
|
|
425
|
+
"usage": "Figma speciality green, for the flash offer bar and other dark grounds (6.3:1 on bg-flash-bar)."
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "border-critical",
|
|
429
|
+
"family": "color",
|
|
430
|
+
"cssVar": "--cm-border-critical",
|
|
431
|
+
"value": {
|
|
432
|
+
"light": "#ff0000",
|
|
433
|
+
"dark": "#ff3c2e"
|
|
434
|
+
},
|
|
435
|
+
"usage": "Input in error."
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "border-card",
|
|
439
|
+
"family": "color",
|
|
440
|
+
"cssVar": "--cm-border-card",
|
|
441
|
+
"value": {
|
|
442
|
+
"light": "rgba(148, 148, 148, 0.3)",
|
|
443
|
+
"dark": "rgba(255, 255, 255, 0.12)"
|
|
444
|
+
},
|
|
445
|
+
"usage": "Hairline around section cards (as drawn on component boards: #949494 at 30%)."
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "gray-1000",
|
|
449
|
+
"family": "color",
|
|
450
|
+
"cssVar": "--cm-gray-1000",
|
|
451
|
+
"value": {
|
|
452
|
+
"light": "#000000"
|
|
453
|
+
},
|
|
454
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "gray-700",
|
|
458
|
+
"family": "color",
|
|
459
|
+
"cssVar": "--cm-gray-700",
|
|
460
|
+
"value": {
|
|
461
|
+
"light": "#707070"
|
|
462
|
+
},
|
|
463
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "gray-600",
|
|
467
|
+
"family": "color",
|
|
468
|
+
"cssVar": "--cm-gray-600",
|
|
469
|
+
"value": {
|
|
470
|
+
"light": "#8b8b8b"
|
|
471
|
+
},
|
|
472
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "gray-500",
|
|
476
|
+
"family": "color",
|
|
477
|
+
"cssVar": "--cm-gray-500",
|
|
478
|
+
"value": {
|
|
479
|
+
"light": "#9e9e9e"
|
|
480
|
+
},
|
|
481
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "gray-400",
|
|
485
|
+
"family": "color",
|
|
486
|
+
"cssVar": "--cm-gray-400",
|
|
487
|
+
"value": {
|
|
488
|
+
"light": "#c9c9c9"
|
|
489
|
+
},
|
|
490
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "gray-300",
|
|
494
|
+
"family": "color",
|
|
495
|
+
"cssVar": "--cm-gray-300",
|
|
496
|
+
"value": {
|
|
497
|
+
"light": "#d6d6d6"
|
|
498
|
+
},
|
|
499
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "gray-100",
|
|
503
|
+
"family": "color",
|
|
504
|
+
"cssVar": "--cm-gray-100",
|
|
505
|
+
"value": {
|
|
506
|
+
"light": "#f4f4f4"
|
|
507
|
+
},
|
|
508
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "gray-50",
|
|
512
|
+
"family": "color",
|
|
513
|
+
"cssVar": "--cm-gray-50",
|
|
514
|
+
"value": {
|
|
515
|
+
"light": "#f6f6f6"
|
|
516
|
+
},
|
|
517
|
+
"usage": "Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "gray-900",
|
|
521
|
+
"family": "color",
|
|
522
|
+
"cssVar": "--cm-gray-900",
|
|
523
|
+
"value": {
|
|
524
|
+
"light": "#1e1e1e"
|
|
525
|
+
},
|
|
526
|
+
"usage": "Dark tour banner on the Smart Tips card."
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "gray-800",
|
|
530
|
+
"family": "color",
|
|
531
|
+
"cssVar": "--cm-gray-800",
|
|
532
|
+
"value": {
|
|
533
|
+
"light": "#414141"
|
|
534
|
+
},
|
|
535
|
+
"usage": "Chip outline and list-row checkbox outline."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "bg-panel-header",
|
|
539
|
+
"family": "color",
|
|
540
|
+
"cssVar": "--cm-bg-panel-header",
|
|
541
|
+
"value": {
|
|
542
|
+
"light": "#1b1b1b",
|
|
543
|
+
"dark": "#000000"
|
|
544
|
+
},
|
|
545
|
+
"usage": "Header strip of the filter and notification panels. Text: text-on-dark."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "border-subtle",
|
|
549
|
+
"family": "color",
|
|
550
|
+
"cssVar": "--cm-border-subtle",
|
|
551
|
+
"value": {
|
|
552
|
+
"light": "#f1f1f1",
|
|
553
|
+
"dark": "#2a2a2a"
|
|
554
|
+
},
|
|
555
|
+
"usage": "Hairline around grey fills: search box, table header, pagination arrows, header icon buttons."
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "toggle-on",
|
|
559
|
+
"family": "color",
|
|
560
|
+
"cssVar": "--cm-toggle-on",
|
|
561
|
+
"value": {
|
|
562
|
+
"light": "#92cf8d",
|
|
563
|
+
"dark": "#92cf8d"
|
|
564
|
+
},
|
|
565
|
+
"usage": "Toggle track when on (List and Sub Tabs boards)."
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "toggle-off",
|
|
569
|
+
"family": "color",
|
|
570
|
+
"cssVar": "--cm-toggle-off",
|
|
571
|
+
"value": {
|
|
572
|
+
"light": "#d5d5d5",
|
|
573
|
+
"dark": "#4a4a4a"
|
|
574
|
+
},
|
|
575
|
+
"usage": "Toggle track when off."
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "avatar-bg",
|
|
579
|
+
"family": "color",
|
|
580
|
+
"cssVar": "--cm-avatar-bg",
|
|
581
|
+
"value": {
|
|
582
|
+
"light": "#c4e5cd",
|
|
583
|
+
"dark": "#2f4a37"
|
|
584
|
+
},
|
|
585
|
+
"usage": "Initial avatar circle in the header profile pill."
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "nav-active",
|
|
589
|
+
"family": "color",
|
|
590
|
+
"cssVar": "--cm-nav-active",
|
|
591
|
+
"value": {
|
|
592
|
+
"light": "#3b3b3b",
|
|
593
|
+
"dark": "#3b3b3b"
|
|
594
|
+
},
|
|
595
|
+
"usage": "Selected sub-item fill in the dark side navigation."
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "nav-divider",
|
|
599
|
+
"family": "color",
|
|
600
|
+
"cssVar": "--cm-nav-divider",
|
|
601
|
+
"value": {
|
|
602
|
+
"light": "#333333",
|
|
603
|
+
"dark": "#333333"
|
|
604
|
+
},
|
|
605
|
+
"usage": "Dividers inside the dark side navigation."
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "nav-badge",
|
|
609
|
+
"family": "color",
|
|
610
|
+
"cssVar": "--cm-nav-badge",
|
|
611
|
+
"value": {
|
|
612
|
+
"light": "#446beb",
|
|
613
|
+
"dark": "#446beb"
|
|
614
|
+
},
|
|
615
|
+
"usage": "Count pill in the side navigation. Figma #4B74F8 nudged so white text reaches 4.6:1."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "thumb-bg",
|
|
619
|
+
"family": "color",
|
|
620
|
+
"cssVar": "--cm-thumb-bg",
|
|
621
|
+
"value": {
|
|
622
|
+
"light": "#e7e7e7",
|
|
623
|
+
"dark": "#2a2a2a"
|
|
624
|
+
},
|
|
625
|
+
"usage": "Placeholder behind product thumbnails."
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "overlay",
|
|
629
|
+
"family": "color",
|
|
630
|
+
"cssVar": "--cm-overlay",
|
|
631
|
+
"value": {
|
|
632
|
+
"light": "rgba(0, 0, 0, 0.4)",
|
|
633
|
+
"dark": "rgba(0, 0, 0, 0.6)"
|
|
634
|
+
},
|
|
635
|
+
"usage": "Scrim behind side popups and popups."
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "bg-information-soft",
|
|
639
|
+
"family": "color",
|
|
640
|
+
"cssVar": "--cm-bg-information-soft",
|
|
641
|
+
"value": {
|
|
642
|
+
"light": "rgba(241, 169, 83, 0.16)",
|
|
643
|
+
"dark": "rgba(241, 169, 83, 0.16)"
|
|
644
|
+
},
|
|
645
|
+
"usage": "Information status pill fill (\"ORDER PLACED\"). Text: text-information."
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "bg-success-soft",
|
|
649
|
+
"family": "color",
|
|
650
|
+
"cssVar": "--cm-bg-success-soft",
|
|
651
|
+
"value": {
|
|
652
|
+
"light": "rgba(129, 187, 71, 0.16)",
|
|
653
|
+
"dark": "rgba(129, 187, 71, 0.16)"
|
|
654
|
+
},
|
|
655
|
+
"usage": "Success status pill fill (\"ACCEPTED\"). Text: text-success."
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "bg-attention-soft",
|
|
659
|
+
"family": "color",
|
|
660
|
+
"cssVar": "--cm-bg-attention-soft",
|
|
661
|
+
"value": {
|
|
662
|
+
"light": "#e8ebf5",
|
|
663
|
+
"dark": "#232838"
|
|
664
|
+
},
|
|
665
|
+
"usage": "Attention icon tile in notifications."
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "space-10",
|
|
669
|
+
"family": "spacing",
|
|
670
|
+
"cssVar": "--cm-space-10",
|
|
671
|
+
"value": "10px",
|
|
672
|
+
"usage": "Gap between cards; product image to name; tags and badges; mobile gap between buttons and mobile card padding."
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "space-12",
|
|
676
|
+
"family": "spacing",
|
|
677
|
+
"cssVar": "--cm-space-12",
|
|
678
|
+
"value": "12px",
|
|
679
|
+
"usage": "Mobile input top and bottom spacing."
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "space-15",
|
|
683
|
+
"family": "spacing",
|
|
684
|
+
"cssVar": "--cm-space-15",
|
|
685
|
+
"value": "15px",
|
|
686
|
+
"usage": "Gap between header icons on desktop; small button side padding; mobile header side padding."
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"name": "space-20",
|
|
690
|
+
"family": "spacing",
|
|
691
|
+
"cssVar": "--cm-space-20",
|
|
692
|
+
"value": "20px",
|
|
693
|
+
"usage": "Desktop gap between buttons, button to link, card padding, input top and bottom; mobile popup bottom."
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"name": "space-22",
|
|
697
|
+
"family": "spacing",
|
|
698
|
+
"cssVar": "--cm-space-22",
|
|
699
|
+
"value": "22px",
|
|
700
|
+
"usage": "Mobile gap between two input boxes."
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"name": "space-30",
|
|
704
|
+
"family": "spacing",
|
|
705
|
+
"cssVar": "--cm-space-30",
|
|
706
|
+
"value": "30px",
|
|
707
|
+
"usage": "Desktop gap between input boxes, between checkbox and radio rows, popup bottom; header side padding."
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "radius-xs",
|
|
711
|
+
"family": "radius",
|
|
712
|
+
"cssVar": "--cm-radius-xs",
|
|
713
|
+
"value": "2px",
|
|
714
|
+
"usage": "Checkboxes, black-bordered slots."
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"name": "radius-sm",
|
|
718
|
+
"family": "radius",
|
|
719
|
+
"cssVar": "--cm-radius-sm",
|
|
720
|
+
"value": "4px",
|
|
721
|
+
"usage": "Buttons and input boxes."
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "radius-md",
|
|
725
|
+
"family": "radius",
|
|
726
|
+
"cssVar": "--cm-radius-md",
|
|
727
|
+
"value": "6px",
|
|
728
|
+
"usage": "Cards."
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "radius-lg",
|
|
732
|
+
"family": "radius",
|
|
733
|
+
"cssVar": "--cm-radius-lg",
|
|
734
|
+
"value": "12px",
|
|
735
|
+
"usage": "48px icon buttons in the header."
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "radius-full",
|
|
739
|
+
"family": "radius",
|
|
740
|
+
"cssVar": "--cm-radius-full",
|
|
741
|
+
"value": "9999px",
|
|
742
|
+
"usage": "Tags/chips and circular icon buttons."
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "border-1",
|
|
746
|
+
"family": "borderWidth",
|
|
747
|
+
"cssVar": "--cm-border-1",
|
|
748
|
+
"value": "1px",
|
|
749
|
+
"usage": "Every border and separator in the file is 1px."
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "shadow-0",
|
|
753
|
+
"family": "shadow",
|
|
754
|
+
"cssVar": "--cm-shadow-0",
|
|
755
|
+
"value": "none",
|
|
756
|
+
"usage": "Default: cards sit flat with a border-default line."
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "shadow-100",
|
|
760
|
+
"family": "shadow",
|
|
761
|
+
"cssVar": "--cm-shadow-100",
|
|
762
|
+
"value": "12px -12px 44px 0px rgba(160, 160, 160, 0.14)",
|
|
763
|
+
"usage": "Raised surfaces: popups, side popups, dropdowns (#A0A0A0 at 14%, blur 44)."
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "tracking-caps",
|
|
767
|
+
"family": "letterSpacing",
|
|
768
|
+
"cssVar": "--cm-tracking-caps",
|
|
769
|
+
"value": "0.16em",
|
|
770
|
+
"usage": "Uppercase labels and text actions (UPGRADE, REMOVE, badges). Figma: 2.24px at 14px, 1.6px at 10px, Medium weight."
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "font-sans",
|
|
774
|
+
"family": "type",
|
|
775
|
+
"cssVar": "--cm-font-sans",
|
|
776
|
+
"value": "\"Poppins\", system-ui, sans-serif"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "type-heading-lg",
|
|
780
|
+
"family": "type",
|
|
781
|
+
"group": "Desktop",
|
|
782
|
+
"value": {
|
|
783
|
+
"fontSize": "26px",
|
|
784
|
+
"lineHeight": 1.5,
|
|
785
|
+
"fontWeight": 600
|
|
786
|
+
},
|
|
787
|
+
"usage": "Page titles (\"Add Product\")."
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "type-heading-sm",
|
|
791
|
+
"family": "type",
|
|
792
|
+
"group": "Desktop",
|
|
793
|
+
"value": {
|
|
794
|
+
"fontSize": "20px",
|
|
795
|
+
"lineHeight": 1.5,
|
|
796
|
+
"fontWeight": 500
|
|
797
|
+
},
|
|
798
|
+
"usage": "Card and section titles."
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"name": "type-body-lg",
|
|
802
|
+
"family": "type",
|
|
803
|
+
"group": "Desktop",
|
|
804
|
+
"value": {
|
|
805
|
+
"fontSize": "16px",
|
|
806
|
+
"lineHeight": 1.5,
|
|
807
|
+
"fontWeight": 400
|
|
808
|
+
},
|
|
809
|
+
"usage": "Field labels, checkbox and radio labels, list text."
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "type-body-md",
|
|
813
|
+
"family": "type",
|
|
814
|
+
"group": "Desktop",
|
|
815
|
+
"value": {
|
|
816
|
+
"fontSize": "14px",
|
|
817
|
+
"lineHeight": 1.5,
|
|
818
|
+
"fontWeight": 400
|
|
819
|
+
},
|
|
820
|
+
"usage": "Breadcrumbs, table text, secondary copy."
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "type-body-sm",
|
|
824
|
+
"family": "type",
|
|
825
|
+
"group": "Desktop",
|
|
826
|
+
"value": {
|
|
827
|
+
"fontSize": "12px",
|
|
828
|
+
"lineHeight": 1.5,
|
|
829
|
+
"fontWeight": 400
|
|
830
|
+
},
|
|
831
|
+
"usage": "Help text, hints, small buttons."
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "type-body-xs",
|
|
835
|
+
"family": "type",
|
|
836
|
+
"group": "Desktop",
|
|
837
|
+
"value": {
|
|
838
|
+
"fontSize": "10px",
|
|
839
|
+
"lineHeight": 1.5,
|
|
840
|
+
"fontWeight": 400
|
|
841
|
+
},
|
|
842
|
+
"usage": "Captions, slim buttons, badges."
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"name": "type-label",
|
|
846
|
+
"family": "type",
|
|
847
|
+
"group": "Desktop",
|
|
848
|
+
"value": {
|
|
849
|
+
"fontSize": "16px",
|
|
850
|
+
"lineHeight": 1.5,
|
|
851
|
+
"fontWeight": 400
|
|
852
|
+
},
|
|
853
|
+
"usage": "Form labels."
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "type-heading-lg-resp",
|
|
857
|
+
"family": "type",
|
|
858
|
+
"group": "Responsive",
|
|
859
|
+
"value": {
|
|
860
|
+
"fontSize": "24px",
|
|
861
|
+
"lineHeight": 1.5,
|
|
862
|
+
"fontWeight": 600
|
|
863
|
+
},
|
|
864
|
+
"usage": "Page titles on mobile."
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"name": "type-heading-sm-resp",
|
|
868
|
+
"family": "type",
|
|
869
|
+
"group": "Responsive",
|
|
870
|
+
"value": {
|
|
871
|
+
"fontSize": "18px",
|
|
872
|
+
"lineHeight": 1.5,
|
|
873
|
+
"fontWeight": 500
|
|
874
|
+
},
|
|
875
|
+
"usage": "Section titles on mobile."
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"name": "type-body-lg-resp",
|
|
879
|
+
"family": "type",
|
|
880
|
+
"group": "Responsive",
|
|
881
|
+
"value": {
|
|
882
|
+
"fontSize": "14px",
|
|
883
|
+
"lineHeight": 1.5,
|
|
884
|
+
"fontWeight": 400
|
|
885
|
+
},
|
|
886
|
+
"usage": "Labels and list text on mobile."
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "type-body-md-resp",
|
|
890
|
+
"family": "type",
|
|
891
|
+
"group": "Responsive",
|
|
892
|
+
"value": {
|
|
893
|
+
"fontSize": "12px",
|
|
894
|
+
"lineHeight": 1.5,
|
|
895
|
+
"fontWeight": 400
|
|
896
|
+
},
|
|
897
|
+
"usage": "Secondary copy on mobile."
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "type-body-sm-resp",
|
|
901
|
+
"family": "type",
|
|
902
|
+
"group": "Responsive",
|
|
903
|
+
"value": {
|
|
904
|
+
"fontSize": "10px",
|
|
905
|
+
"lineHeight": 1.5,
|
|
906
|
+
"fontWeight": 400
|
|
907
|
+
},
|
|
908
|
+
"usage": "Help text on mobile."
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"name": "type-body-xs-resp",
|
|
912
|
+
"family": "type",
|
|
913
|
+
"group": "Responsive",
|
|
914
|
+
"value": {
|
|
915
|
+
"fontSize": "10px",
|
|
916
|
+
"lineHeight": 1.5,
|
|
917
|
+
"fontWeight": 400
|
|
918
|
+
},
|
|
919
|
+
"usage": "Captions on mobile."
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "type-label-resp",
|
|
923
|
+
"family": "type",
|
|
924
|
+
"group": "Responsive",
|
|
925
|
+
"value": {
|
|
926
|
+
"fontSize": "12px",
|
|
927
|
+
"lineHeight": 1.5,
|
|
928
|
+
"fontWeight": 400
|
|
929
|
+
},
|
|
930
|
+
"usage": "Form labels on mobile."
|
|
931
|
+
}
|
|
932
|
+
]
|
|
933
|
+
}
|