@govbr-ds/tokens 4.0.0-next.11 → 4.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/css/component/button.css +57 -0
  2. package/dist/css/component/icon.css +35 -0
  3. package/dist/css/component/text.css +17 -0
  4. package/dist/css/themes/dark.css +10 -10
  5. package/dist/css/themes/light.css +10 -10
  6. package/dist/css/tokens.css +111 -25
  7. package/dist/js/component/button.js +56 -0
  8. package/dist/js/component/icon.js +33 -0
  9. package/dist/js/component/text.js +15 -0
  10. package/dist/js/themes/dark.js +10 -10
  11. package/dist/js/themes/light.js +10 -10
  12. package/dist/js/tokens.js +101 -15
  13. package/dist/json/component/button.json +1447 -0
  14. package/dist/json/component/icon.json +911 -0
  15. package/dist/json/component/text.json +455 -0
  16. package/dist/json/themes/dark.json +170 -170
  17. package/dist/json/themes/light.json +168 -168
  18. package/dist/json/tokens.json +3055 -215
  19. package/dist/scss/component/button.scss +55 -0
  20. package/dist/scss/component/icon.scss +33 -0
  21. package/dist/scss/component/text.scss +15 -0
  22. package/dist/scss/themes/dark.scss +10 -10
  23. package/dist/scss/themes/light.scss +10 -10
  24. package/dist/scss/tokens.scss +111 -25
  25. package/dist/tokens-studio/tokens.json +853 -79
  26. package/package.json +1 -1
  27. package/src/figma/component/base14.json +64 -0
  28. package/src/figma/component/button.json +266 -0
  29. package/src/figma/component/icon.json +142 -0
  30. package/src/figma/component/manifest.json +12 -2
  31. package/src/figma/component/text.json +22 -12
  32. package/src/figma/dark.json +2 -2
  33. package/src/figma/iconography.json +335 -1
  34. package/src/figma/light.json +2 -2
  35. package/src/figma/manifest.json +19 -4
  36. package/src/figma/state.json +30 -2
  37. package/src/temp/component.json +479 -67
  38. package/src/temp/core.json +371 -9
  39. package/src/temp/dark.json +1 -1
  40. package/src/temp/light.json +1 -1
  41. package/src/tokens.json +853 -79
@@ -1,22 +1,48 @@
1
1
  {
2
2
  "text": {
3
3
  "color": {
4
- "$type": "color",
5
- "$value": "{color.read.main.base}"
6
- },
7
- "fontFamily": {
8
- "$type": "fontFamilies",
9
- "$value": "{typography.fontFamily.primary}"
10
- },
11
- "fontWeight": {
12
- "$type": "fontWeights",
13
- "$value": "{typography.fontWeight.semiBold}"
4
+ "main": {
5
+ "base": {
6
+ "$type": "color",
7
+ "$value": "{color.read.main.base}"
8
+ },
9
+ "alternative": {
10
+ "$type": "color",
11
+ "$value": "{color.read.main.alternative}"
12
+ }
13
+ },
14
+ "contrast": {
15
+ "base": {
16
+ "$type": "color",
17
+ "$value": "{color.read.contrast.base}"
18
+ },
19
+ "alternative": {
20
+ "$type": "color",
21
+ "$value": "{color.read.contrast.alternative}"
22
+ }
23
+ }
14
24
  },
15
- "lineHeights": {
16
- "$type": "lineHeights",
17
- "$value": "{typography.lineHeight.medium}"
25
+ "fontStyle": {
26
+ "label": {
27
+ "$type": "typography",
28
+ "$value": {
29
+ "fontFamily": "{typography.fontFamily.primary}",
30
+ "fontWeight": "{typography.fontWeight.semiBold}",
31
+ "fontSize": "{text.fontSize.label.medium}",
32
+ "lineHeight": "{text.density.regular}"
33
+ }
34
+ },
35
+ "title": {
36
+ "$type": "typography",
37
+ "$value": {
38
+ "fontFamily": "{typography.fontFamily.primary}",
39
+ "fontWeight": "{typography.fontWeight.semiBold}",
40
+ "fontSize": "{text.fontSize.title.medium}",
41
+ "lineHeight": "{text.density.regular}"
42
+ }
43
+ }
18
44
  },
19
- "size": {
45
+ "fontSize": {
20
46
  "label": {
21
47
  "small": {
22
48
  "$type": "fontSizes",
@@ -45,96 +71,482 @@
45
71
  "$value": "{typography.fontSize.up.02}"
46
72
  }
47
73
  }
74
+ },
75
+ "density": {
76
+ "compact": {
77
+ "$type": "lineHeights",
78
+ "$value": "{typography.lineHeight.small}"
79
+ },
80
+ "regular": {
81
+ "$type": "lineHeights",
82
+ "$value": "{typography.lineHeight.medium}"
83
+ },
84
+ "spacious": {
85
+ "$type": "lineHeights",
86
+ "$value": "{typography.lineHeight.xlarge}"
87
+ }
48
88
  }
49
89
  },
50
- "button": {
90
+ "icon": {
91
+ "color": {
92
+ "main": {
93
+ "base": {
94
+ "$type": "color",
95
+ "$value": "{color.read.main.base}"
96
+ },
97
+ "alternative": {
98
+ "$type": "color",
99
+ "$value": "{color.read.main.alternative}"
100
+ }
101
+ },
102
+ "contrast": {
103
+ "base": {
104
+ "$type": "color",
105
+ "$value": "{color.read.contrast.base}"
106
+ },
107
+ "alternative": {
108
+ "$type": "color",
109
+ "$value": "{color.read.contrast.alternative}"
110
+ }
111
+ }
112
+ },
51
113
  "iconStyle": {
52
- "$type": "typography",
53
- "$value": "{iconography.iconStyle.solid}"
114
+ "solid": {
115
+ "$type": "typography",
116
+ "$value": {
117
+ "fontFamily": "{iconography.fontFamily.primary}",
118
+ "fontSize": "{icon.fontSize.default}",
119
+ "fontWeight": "Solid",
120
+ "lineHeight": "{typography.lineHeight.xsmall}"
121
+ }
122
+ },
123
+ "brand": {
124
+ "$type": "typography",
125
+ "$value": {
126
+ "fontFamily": "{iconography.fontFamily.secondary}",
127
+ "fontSize": "{icon.fontSize.default}",
128
+ "fontWeight": "{typography.fontWeight.regular}",
129
+ "lineHeight": "{typography.lineHeight.xsmall}"
130
+ }
131
+ }
54
132
  },
133
+ "fontSize": {
134
+ "default": {
135
+ "$type": "fontSizes",
136
+ "$value": "{typography.fontSize.default}"
137
+ },
138
+ "up": {
139
+ "01": {
140
+ "$type": "fontSizes",
141
+ "$value": "{typography.fontSize.up.01}"
142
+ },
143
+ "02": {
144
+ "$type": "fontSizes",
145
+ "$value": "{typography.fontSize.up.02}"
146
+ },
147
+ "03": {
148
+ "$type": "fontSizes",
149
+ "$value": "{typography.fontSize.up.03}"
150
+ },
151
+ "04": {
152
+ "$type": "fontSizes",
153
+ "$value": "{typography.fontSize.up.04}"
154
+ },
155
+ "05": {
156
+ "$type": "fontSizes",
157
+ "$value": "{typography.fontSize.up.05}"
158
+ },
159
+ "06": {
160
+ "$type": "fontSizes",
161
+ "$value": "{typography.fontSize.up.06}"
162
+ },
163
+ "07": {
164
+ "$type": "fontSizes",
165
+ "$value": "{typography.fontSize.up.07}"
166
+ },
167
+ "08": {
168
+ "$type": "fontSizes",
169
+ "$value": "{typography.fontSize.up.08}"
170
+ }
171
+ },
172
+ "down": {
173
+ "01": {
174
+ "$type": "fontSizes",
175
+ "$value": "{typography.fontSize.down.01}"
176
+ },
177
+ "02": {
178
+ "$type": "fontSizes",
179
+ "$value": "{typography.fontSize.down.02}"
180
+ },
181
+ "03": {
182
+ "$type": "fontSizes",
183
+ "$value": "{typography.fontSize.down.03}"
184
+ },
185
+ "04": {
186
+ "$type": "fontSizes",
187
+ "$value": "{typography.fontSize.down.04}"
188
+ }
189
+ }
190
+ },
191
+ "ratio": {
192
+ "$type": "config",
193
+ "$value": "1.25"
194
+ },
195
+ "size": {
196
+ "default": {
197
+ "$type": "dimension",
198
+ "$value": "{icon.fontSize.default} * {icon.ratio}"
199
+ },
200
+ "up": {
201
+ "01": {
202
+ "$type": "dimension",
203
+ "$value": "{icon.fontSize.up.01} * {icon.ratio}"
204
+ },
205
+ "02": {
206
+ "$type": "dimension",
207
+ "$value": "{icon.fontSize.up.02} * {icon.ratio}"
208
+ },
209
+ "03": {
210
+ "$type": "dimension",
211
+ "$value": "{icon.fontSize.up.03} * {icon.ratio}"
212
+ },
213
+ "04": {
214
+ "$type": "dimension",
215
+ "$value": "{icon.fontSize.up.04} * {icon.ratio}"
216
+ },
217
+ "05": {
218
+ "$type": "dimension",
219
+ "$value": "{icon.fontSize.up.05} * {icon.ratio}"
220
+ },
221
+ "06": {
222
+ "$type": "dimension",
223
+ "$value": "{icon.fontSize.up.06} * {icon.ratio}"
224
+ },
225
+ "07": {
226
+ "$type": "dimension",
227
+ "$value": "{icon.fontSize.up.07} * {icon.ratio}"
228
+ },
229
+ "08": {
230
+ "$type": "dimension",
231
+ "$value": "{icon.fontSize.up.08} * {icon.ratio}"
232
+ }
233
+ },
234
+ "down": {
235
+ "01": {
236
+ "$type": "dimension",
237
+ "$value": "{icon.fontSize.down.01} * {icon.ratio}"
238
+ },
239
+ "02": {
240
+ "$type": "dimension",
241
+ "$value": "{icon.fontSize.down.02} * {icon.ratio}"
242
+ },
243
+ "03": {
244
+ "$type": "dimension",
245
+ "$value": "{icon.fontSize.down.03} * {icon.ratio}"
246
+ },
247
+ "04": {
248
+ "$type": "dimension",
249
+ "$value": "{icon.fontSize.down.04} * {icon.ratio}"
250
+ }
251
+ }
252
+ }
253
+ },
254
+ "button": {
55
255
  "rounder": {
56
256
  "$type": "borderRadius",
57
257
  "$value": "{surface.rounder.full}"
58
258
  },
59
- "gap": {
60
- "$type": "spacing",
61
- "$value": "{spacing.layout.01}"
259
+ "spacing": {
260
+ "gap": {
261
+ "$type": "spacing",
262
+ "$value": "{spacing.layout.01}"
263
+ },
264
+ "padding": {
265
+ "$type": "spacing",
266
+ "$value": "{spacing.layout.02}"
267
+ }
62
268
  },
63
- "dimension": {
64
- "icon": {
65
- "$type": "dimension",
66
- "$value": "20"
269
+ "density": {
270
+ "compact": {
271
+ "$type": "spacing",
272
+ "$value": "{spacing.adjust.01}"
273
+ },
274
+ "regular": {
275
+ "$type": "spacing",
276
+ "$value": "{spacing.layout.01}"
277
+ },
278
+ "spacious": {
279
+ "$type": "spacing",
280
+ "$value": "{spacing.adjust.02}"
281
+ }
282
+ },
283
+ "color": {
284
+ "read": {
285
+ "main": {
286
+ "primary": {
287
+ "$type": "color",
288
+ "$value": "{state.interactive.color.read.main}"
289
+ },
290
+ "secondary": {
291
+ "$type": "color",
292
+ "$value": "{state.interactive.color.main}"
293
+ },
294
+ "tertiary": {
295
+ "$type": "color",
296
+ "$value": "{state.interactive.color.main}"
297
+ }
298
+ },
299
+ "contrast": {
300
+ "primary": {
301
+ "$type": "color",
302
+ "$value": "{state.interactive.color.read.contrast}"
303
+ },
304
+ "secondary": {
305
+ "$type": "color",
306
+ "$value": "{state.interactive.color.contrast}"
307
+ },
308
+ "tertiary": {
309
+ "$type": "color",
310
+ "$value": "{state.interactive.color.contrast}"
311
+ }
312
+ }
313
+ },
314
+ "surface": {
315
+ "main": {
316
+ "primary": {
317
+ "$type": "color",
318
+ "$value": "{state.interactive.color.main}"
319
+ },
320
+ "secondary": {
321
+ "$type": "color",
322
+ "$value": "transparent"
323
+ },
324
+ "tertiary": {
325
+ "$type": "color",
326
+ "$value": "transparent"
327
+ }
328
+ },
329
+ "contrast": {
330
+ "primary": {
331
+ "$type": "color",
332
+ "$value": "{state.interactive.color.contrast}"
333
+ },
334
+ "secondary": {
335
+ "$type": "color",
336
+ "$value": "transparent"
337
+ },
338
+ "tertiary": {
339
+ "$type": "color",
340
+ "$value": "transparent"
341
+ }
342
+ }
343
+ }
344
+ },
345
+ "borderStyle": {
346
+ "main": {
347
+ "secondary": {
348
+ "$type": "border",
349
+ "$value": {
350
+ "color": "{button.color.read.main.secondary}",
351
+ "width": "{surface.borderWidth.small}",
352
+ "style": "solid"
353
+ }
354
+ }
355
+ },
356
+ "contrast": {
357
+ "secondary": {
358
+ "$type": "border",
359
+ "$value": {
360
+ "color": "{button.color.read.contrast.secondary}",
361
+ "width": "{surface.borderWidth.small}",
362
+ "style": "solid"
363
+ }
364
+ }
67
365
  }
68
366
  },
69
- "primary": {
367
+ "cta": {
70
368
  "color": {
71
- "read": {
369
+ "main": {
72
370
  "$type": "color",
73
- "$value": "{state.interactive.color.read.main}"
371
+ "$value": "{state.cta.color.main}"
74
372
  },
75
- "surface": {
373
+ "contrast": {
76
374
  "$type": "color",
77
- "$value": "{state.interactive.color.main}"
375
+ "$value": "{state.cta.color.contrast}"
376
+ },
377
+ "read": {
378
+ "main": {
379
+ "$type": "color",
380
+ "$value": "{state.cta.color.read.main}"
381
+ },
382
+ "contrast": {
383
+ "$type": "color",
384
+ "$value": "{state.cta.color.read.contrast}"
385
+ }
78
386
  }
79
387
  }
80
388
  },
81
- "secondary": {
389
+ "disabled": {
82
390
  "color": {
83
- "read": {
391
+ "main": {
392
+ "$type": "color",
393
+ "$value": "{state.disabled.color.main}"
394
+ },
395
+ "contrast": {
84
396
  "$type": "color",
85
- "$value": "{state.interactive.color.main}"
397
+ "$value": "{state.disabled.color.contrast}"
86
398
  }
87
399
  },
88
- "borderStyle": {
89
- "$type": "border",
90
- "$value": {
91
- "color": "{state.interactive.color.main}",
92
- "width": "{surface.borderWidth.small}",
93
- "style": "solid"
94
- }
400
+ "opacity": {
401
+ "$type": "opacity",
402
+ "$value": "{state.disabled.opacity}"
95
403
  }
96
404
  },
97
- "tertiary": {
405
+ "hover": {
98
406
  "color": {
99
- "read": {
100
- "$type": "color",
101
- "$value": "{state.interactive.color.main}"
407
+ "main": {
408
+ "surface": {
409
+ "$type": "color",
410
+ "$value": "{state.hover.color.main.surface}"
411
+ },
412
+ "read": {
413
+ "$type": "color",
414
+ "$value": "{state.hover.color.main.read}"
415
+ }
416
+ },
417
+ "contrast": {
418
+ "surface": {
419
+ "$type": "color",
420
+ "$value": "{state.hover.color.contrast.surface}"
421
+ },
422
+ "read": {
423
+ "$type": "color",
424
+ "$value": "{state.hover.color.contrast.read}"
425
+ }
426
+ }
427
+ },
428
+ "easing": {
429
+ "in": {
430
+ "$type": "easing",
431
+ "$value": "{state.hover.easing.in}"
432
+ },
433
+ "out": {
434
+ "$type": "easing",
435
+ "$value": "{state.hover.easing.out}"
436
+ }
437
+ },
438
+ "duration": {
439
+ "in": {
440
+ "$type": "duration",
441
+ "$value": "{state.hover.duration.in}"
442
+ },
443
+ "out": {
444
+ "$type": "duration",
445
+ "$value": "{state.hover.duration.out}"
102
446
  }
103
447
  }
104
448
  },
105
- "density": {
106
- "regular": {
107
- "$type": "spacing",
108
- "$value": "{spacing.layout.01}"
449
+ "pressed": {
450
+ "shadowStyle": {
451
+ "$type": "boxShadow",
452
+ "$value": "{state.pressed.shadowStyle}"
109
453
  },
110
- "compact": {
111
- "$type": "spacing",
112
- "$value": "{spacing.adjust.01}"
454
+ "easing": {
455
+ "in": {
456
+ "$type": "easing",
457
+ "$value": "{state.pressed.easing.in}"
458
+ },
459
+ "out": {
460
+ "$type": "easing",
461
+ "$value": "{state.pressed.easing.out}"
462
+ }
113
463
  },
114
- "spaced": {
464
+ "duration": {
465
+ "in": {
466
+ "$type": "duration",
467
+ "$value": "{state.pressed.duration.in}"
468
+ },
469
+ "out": {
470
+ "$type": "duration",
471
+ "$value": "{state.pressed.duration.out}"
472
+ }
473
+ }
474
+ },
475
+ "focus": {
476
+ "spacing": {
115
477
  "$type": "spacing",
116
- "$value": "{spacing.layout.02}"
478
+ "$value": "{state.focus.spacing}"
479
+ },
480
+ "borderStyle": {
481
+ "main": {
482
+ "$type": "border",
483
+ "$value": "{state.focus.borderStyle.high.main}"
484
+ },
485
+ "contrast": {
486
+ "$type": "border",
487
+ "$value": "{state.focus.borderStyle.high.contrast}"
488
+ }
489
+ },
490
+ "easing": {
491
+ "in": {
492
+ "$type": "easing",
493
+ "$value": "{state.focus.easing.in}"
494
+ },
495
+ "out": {
496
+ "$type": "easing",
497
+ "$value": "{state.focus.easing.out}"
498
+ }
499
+ },
500
+ "duration": {
501
+ "in": {
502
+ "$type": "duration",
503
+ "$value": "{state.focus.duration.in}"
504
+ },
505
+ "out": {
506
+ "$type": "duration",
507
+ "$value": "{state.focus.duration.out}"
508
+ }
117
509
  }
118
510
  },
119
- "padding": {
120
- "textual": {
121
- "vertical": {
122
- "$type": "spacing",
123
- "$value": "{button.density.regular}"
511
+ "active": {
512
+ "color": {
513
+ "main": {
514
+ "$type": "color",
515
+ "$value": "{state.active.color.main}"
516
+ },
517
+ "contrast": {
518
+ "$type": "color",
519
+ "$value": "{state.active.color.contrast}"
520
+ },
521
+ "read": {
522
+ "main": {
523
+ "$type": "color",
524
+ "$value": "{state.active.color.read.main}"
525
+ },
526
+ "contrast": {
527
+ "$type": "color",
528
+ "$value": "{state.active.color.read.contrast}"
529
+ }
530
+ }
531
+ },
532
+ "easing": {
533
+ "in": {
534
+ "$type": "easing",
535
+ "$value": "{state.active.easing.in}"
124
536
  },
125
- "horizontal": {
126
- "$type": "spacing",
127
- "$value": "{spacing.layout.02}"
537
+ "out": {
538
+ "$type": "easing",
539
+ "$value": "{state.active.easing.out}"
128
540
  }
129
541
  },
130
- "iconic": {
131
- "vertical": {
132
- "$type": "spacing",
133
- "$value": "{button.density.regular}"
542
+ "duration": {
543
+ "in": {
544
+ "$type": "duration",
545
+ "$value": "{state.active.duration.in}"
134
546
  },
135
- "horizontal": {
136
- "$type": "spacing",
137
- "$value": "{button.density.regular}"
547
+ "out": {
548
+ "$type": "duration",
549
+ "$value": "{state.active.duration.out}"
138
550
  }
139
551
  }
140
552
  }