@govbr-ds/tokens 4.0.0-next.2 → 4.0.0-next.21

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 (112) hide show
  1. package/README.md +69 -106
  2. package/dist/css/component/avatar.css +37 -0
  3. package/dist/css/component/button.css +57 -0
  4. package/dist/css/component/checkbox.css +46 -0
  5. package/dist/css/component/checkboxGroup.css +7 -0
  6. package/dist/css/component/divider.css +12 -0
  7. package/dist/css/component/formlabel.css +6 -0
  8. package/dist/css/component/icon.css +35 -0
  9. package/dist/css/component/input.css +37 -0
  10. package/dist/css/component/list.css +54 -0
  11. package/dist/css/component/message.css +17 -0
  12. package/dist/css/component/radioGroup.css +39 -0
  13. package/dist/css/component/select.css +9 -0
  14. package/dist/css/component/text.css +17 -0
  15. package/dist/css/themes/dark.css +69 -52
  16. package/dist/css/themes/light.css +69 -52
  17. package/dist/css/tokens.css +676 -516
  18. package/dist/js/component/avatar.js +36 -0
  19. package/dist/js/component/button.js +56 -0
  20. package/dist/js/component/checkbox.js +45 -0
  21. package/dist/js/component/checkboxGroup.js +5 -0
  22. package/dist/js/component/divider.js +10 -0
  23. package/dist/js/component/formlabel.js +4 -0
  24. package/dist/js/component/icon.js +33 -0
  25. package/dist/js/component/input.js +35 -0
  26. package/dist/js/component/list.js +52 -0
  27. package/dist/js/component/message.js +17 -0
  28. package/dist/js/component/radioGroup.js +38 -0
  29. package/dist/js/component/select.js +8 -0
  30. package/dist/js/component/text.js +15 -0
  31. package/dist/js/themes/dark.js +77 -52
  32. package/dist/js/themes/light.js +77 -52
  33. package/dist/js/tokens.js +700 -531
  34. package/dist/json/component/avatar.json +907 -0
  35. package/dist/json/component/button.json +1447 -0
  36. package/dist/json/component/checkbox.json +1132 -0
  37. package/dist/json/component/checkboxGroup.json +169 -0
  38. package/dist/json/component/divider.json +302 -0
  39. package/dist/json/component/formlabel.json +117 -0
  40. package/dist/json/component/icon.json +911 -0
  41. package/dist/json/component/input.json +907 -0
  42. package/dist/json/component/list.json +1394 -0
  43. package/dist/json/component/message.json +441 -0
  44. package/dist/json/component/radioGroup.json +963 -0
  45. package/dist/json/component/select.json +207 -0
  46. package/dist/json/component/text.json +455 -0
  47. package/dist/json/themes/dark.json +1597 -856
  48. package/dist/json/themes/light.json +1597 -856
  49. package/dist/json/tokens.json +13699 -5459
  50. package/dist/scss/component/avatar.scss +35 -0
  51. package/dist/scss/component/button.scss +55 -0
  52. package/dist/scss/component/checkbox.scss +44 -0
  53. package/dist/scss/component/checkboxGroup.scss +5 -0
  54. package/dist/scss/component/divider.scss +10 -0
  55. package/dist/scss/component/formlabel.scss +4 -0
  56. package/dist/scss/component/icon.scss +33 -0
  57. package/dist/scss/component/input.scss +35 -0
  58. package/dist/scss/component/list.scss +52 -0
  59. package/dist/scss/component/message.scss +15 -0
  60. package/dist/scss/component/radioGroup.scss +37 -0
  61. package/dist/scss/component/select.scss +7 -0
  62. package/dist/scss/component/text.scss +15 -0
  63. package/dist/scss/themes/dark.scss +69 -0
  64. package/dist/scss/themes/light.scss +69 -0
  65. package/dist/scss/tokens.scss +817 -0
  66. package/dist/tokens-studio/tokens.json +6554 -0
  67. package/package.json +15 -12
  68. package/src/figma/base14.json +62 -0
  69. package/src/figma/{variables/color.json → color.json} +1 -1
  70. package/src/figma/component/avatar.json +156 -0
  71. package/src/figma/component/base14.json +94 -0
  72. package/src/figma/component/button.json +266 -0
  73. package/src/figma/component/divider.json +24 -0
  74. package/src/figma/component/formlabel.json +24 -0
  75. package/src/figma/component/icon.json +142 -0
  76. package/src/figma/component/input.json +156 -0
  77. package/src/figma/component/manifest.json +30 -0
  78. package/src/figma/component/message.json +70 -0
  79. package/src/figma/component/text.json +56 -0
  80. package/src/figma/dark.json +352 -0
  81. package/src/figma/elevation.json +234 -0
  82. package/src/figma/{variables/grid.json → grid.json} +29 -29
  83. package/src/figma/guideline/componente.json +24 -0
  84. package/src/figma/guideline/fundamento.json +24 -0
  85. package/src/figma/guideline/geral.json +20 -0
  86. package/src/figma/guideline/manifest.json +12 -0
  87. package/src/figma/guideline/padrao.json +24 -0
  88. package/src/figma/iconography.json +352 -0
  89. package/src/figma/light.json +352 -0
  90. package/src/figma/manifest.json +42 -0
  91. package/src/figma/motion.json +112 -0
  92. package/src/figma/pattern/form.json +16 -0
  93. package/src/figma/pattern/manifest.json +10 -0
  94. package/src/figma/pattern/skeleton.json +52 -0
  95. package/src/figma/{variables/spacing.json → spacing.json} +20 -0
  96. package/src/figma/state.json +260 -0
  97. package/src/figma/{variables/surface.json → surface.json} +34 -38
  98. package/src/figma/{variables/typography.json → typography.json} +10 -46
  99. package/src/temp/component.json +1895 -0
  100. package/src/temp/core.json +3883 -0
  101. package/src/temp/dark.json +352 -0
  102. package/src/temp/light.json +352 -0
  103. package/src/temp/pattern.json +70 -0
  104. package/src/tokens.json +6554 -0
  105. package/dist/scss/_tokens.scss +0 -662
  106. package/dist/scss/themes/_dark.scss +0 -55
  107. package/dist/scss/themes/_light.scss +0 -55
  108. package/src/figma/tokens.json +0 -3513
  109. package/src/figma/variables/manifest.json +0 -26
  110. package/src/style-dictionary/themes/dark.json +0 -3239
  111. package/src/style-dictionary/themes/light.json +0 -3239
  112. package/src/style-dictionary/tokens.json +0 -2971
@@ -0,0 +1,352 @@
1
+ {
2
+ "elevation": {
3
+ "opacity": {
4
+ "shadow": {
5
+ "$value": "{elevation.opacity.bright}",
6
+ "$type": "number"
7
+ }
8
+ },
9
+ "color": {
10
+ "shadow": {
11
+ "$value": "#00000033",
12
+ "$type": "color"
13
+ }
14
+ }
15
+ },
16
+ "color": {
17
+ "read": {
18
+ "main": {
19
+ "base": {
20
+ "$value": "{color.gray.90}",
21
+ "$type": "color"
22
+ },
23
+ "alternative": {
24
+ "$value": "{color.gray.60}",
25
+ "$type": "color"
26
+ }
27
+ },
28
+ "contrast": {
29
+ "base": {
30
+ "$value": "{color.gray.1}",
31
+ "$type": "color"
32
+ },
33
+ "alternative": {
34
+ "$value": "{color.gray.20}",
35
+ "$type": "color"
36
+ }
37
+ }
38
+ },
39
+ "surface": {
40
+ "main": {
41
+ "base": {
42
+ "$value": "{color.gray.1}",
43
+ "$type": "color"
44
+ },
45
+ "alternative": {
46
+ "$value": "{color.gray.5}",
47
+ "$type": "color"
48
+ }
49
+ },
50
+ "contrast": {
51
+ "base": {
52
+ "$value": "{color.blueWarm.80}",
53
+ "$type": "color"
54
+ },
55
+ "alternative": {
56
+ "$value": "{color.blueWarm.70}",
57
+ "$type": "color"
58
+ }
59
+ }
60
+ },
61
+ "border": {
62
+ "base": {
63
+ "$value": "{color.gray.20}",
64
+ "$type": "color"
65
+ },
66
+ "alternative": {
67
+ "$value": "{color.gray.40}",
68
+ "$type": "color"
69
+ }
70
+ }
71
+ },
72
+ "state": {
73
+ "interactive": {
74
+ "color": {
75
+ "main": {
76
+ "$value": "{color.blueWarmVivid.70}",
77
+ "$type": "color"
78
+ },
79
+ "contrast": {
80
+ "$value": "{color.blueWarmVivid.20}",
81
+ "$type": "color"
82
+ },
83
+ "read": {
84
+ "main": {
85
+ "$value": "{color.pure.0}",
86
+ "$type": "color"
87
+ },
88
+ "contrast": {
89
+ "$value": "{color.pure.100}",
90
+ "$type": "color"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "cta": {
96
+ "color": {
97
+ "main": {
98
+ "$value": "{color.greenCoolVivid.60}",
99
+ "$type": "color"
100
+ },
101
+ "contrast": {
102
+ "$value": "{color.greenCoolVivid.20}",
103
+ "$type": "color"
104
+ },
105
+ "read": {
106
+ "main": {
107
+ "$value": "{color.pure.0}",
108
+ "$type": "color"
109
+ },
110
+ "contrast": {
111
+ "$value": "{color.pure.100}",
112
+ "$type": "color"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "disabled": {
118
+ "color": {
119
+ "main": {
120
+ "$value": "{color.gray.70}",
121
+ "$type": "color"
122
+ },
123
+ "contrast": {
124
+ "$value": "{color.gray.20}",
125
+ "$type": "color"
126
+ }
127
+ }
128
+ },
129
+ "visited": {
130
+ "color": {
131
+ "main": {
132
+ "$value": "{color.blueWarm.70}",
133
+ "$type": "color"
134
+ },
135
+ "contrast": {
136
+ "$value": "{color.blueWarm.20}",
137
+ "$type": "color"
138
+ }
139
+ }
140
+ },
141
+ "hover": {
142
+ "color": {
143
+ "bright": {
144
+ "$value": "#D4E5FF80",
145
+ "$type": "color"
146
+ },
147
+ "dim": {
148
+ "$value": "#0C326F99",
149
+ "$type": "color"
150
+ },
151
+ "main": {
152
+ "read": {
153
+ "$value": "{state.hover.color.bright}",
154
+ "$type": "color"
155
+ },
156
+ "surface": {
157
+ "$value": "{state.hover.color.dim}",
158
+ "$type": "color"
159
+ }
160
+ },
161
+ "contrast": {
162
+ "read": {
163
+ "$value": "{state.hover.color.dim}",
164
+ "$type": "color"
165
+ },
166
+ "surface": {
167
+ "$value": "{state.hover.color.bright}",
168
+ "$type": "color"
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "focus": {
174
+ "color": {
175
+ "main": {
176
+ "$value": "{color.orangeVivid.40}",
177
+ "$type": "color"
178
+ },
179
+ "contrast": {
180
+ "$value": "{color.orangeVivid.30}",
181
+ "$type": "color"
182
+ }
183
+ }
184
+ },
185
+ "active": {
186
+ "color": {
187
+ "main": {
188
+ "$value": "{color.blueWarmVivid.80}",
189
+ "$type": "color"
190
+ },
191
+ "contrast": {
192
+ "$value": "{color.blueWarmVivid.30}",
193
+ "$type": "color"
194
+ },
195
+ "read": {
196
+ "main": {
197
+ "$value": "{color.pure.0}",
198
+ "$type": "color"
199
+ },
200
+ "contrast": {
201
+ "$value": "{color.pure.100}",
202
+ "$type": "color"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ "selected": {
208
+ "color": {
209
+ "main": {
210
+ "$value": "{color.blueWarmVivid.50}",
211
+ "$type": "color"
212
+ },
213
+ "contrast": {
214
+ "$value": "{color.blueWarmVivid.40}",
215
+ "$type": "color"
216
+ },
217
+ "read": {
218
+ "main": {
219
+ "$value": "{color.pure.0}",
220
+ "$type": "color"
221
+ },
222
+ "contrast": {
223
+ "$value": "{color.pure.100}",
224
+ "$type": "color"
225
+ }
226
+ }
227
+ }
228
+ },
229
+ "dragging": {
230
+ "color": {
231
+ "main": {
232
+ "$value": "{state.interactive.color.main}",
233
+ "$type": "color"
234
+ },
235
+ "contrast": {
236
+ "$value": "{state.interactive.color.contrast}",
237
+ "$type": "color"
238
+ }
239
+ }
240
+ },
241
+ "dropzone": {
242
+ "color": {
243
+ "main": {
244
+ "$value": "{state.interactive.color.main}",
245
+ "$type": "color"
246
+ },
247
+ "contrast": {
248
+ "$value": "{state.interactive.color.contrast}",
249
+ "$type": "color"
250
+ }
251
+ }
252
+ },
253
+ "dropzoneActive": {
254
+ "color": {
255
+ "main": {
256
+ "$value": "{state.interactive.color.main}",
257
+ "$type": "color"
258
+ },
259
+ "contrast": {
260
+ "$value": "{state.interactive.color.contrast}",
261
+ "$type": "color"
262
+ }
263
+ }
264
+ },
265
+ "on": {
266
+ "color": {
267
+ "main": {
268
+ "$value": "{color.blueWarmVivid.40}",
269
+ "$type": "color"
270
+ },
271
+ "contrast": {
272
+ "$value": "{color.blueWarmVivid.50}",
273
+ "$type": "color"
274
+ },
275
+ "read": {
276
+ "main": {
277
+ "$value": "{color.pure.100}",
278
+ "$type": "color"
279
+ },
280
+ "contrast": {
281
+ "$value": "{color.pure.0}",
282
+ "$type": "color"
283
+ }
284
+ }
285
+ }
286
+ },
287
+ "off": {
288
+ "color": {
289
+ "main": {
290
+ "$value": "{color.gray.40}",
291
+ "$type": "color"
292
+ },
293
+ "contrast": {
294
+ "$value": "{color.gray.50}",
295
+ "$type": "color"
296
+ },
297
+ "read": {
298
+ "main": {
299
+ "$value": "{color.pure.100}",
300
+ "$type": "color"
301
+ },
302
+ "contrast": {
303
+ "$value": "{color.pure.0}",
304
+ "$type": "color"
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "success": {
310
+ "color": {
311
+ "main": {
312
+ "$value": "{color.greenVivid.50}",
313
+ "$type": "color"
314
+ },
315
+ "read": {
316
+ "main": {
317
+ "$value": "{color.pure.0}",
318
+ "$type": "color"
319
+ }
320
+ }
321
+ }
322
+ },
323
+ "alert": {
324
+ "color": {
325
+ "main": {
326
+ "$value": "{color.yellowVivid.20}",
327
+ "$type": "color"
328
+ },
329
+ "read": {
330
+ "main": {
331
+ "$value": "{color.pure.100}",
332
+ "$type": "color"
333
+ }
334
+ }
335
+ }
336
+ },
337
+ "error": {
338
+ "color": {
339
+ "main": {
340
+ "$value": "{color.redVivid.50}",
341
+ "$type": "color"
342
+ },
343
+ "read": {
344
+ "main": {
345
+ "$value": "{color.pure.0}",
346
+ "$type": "color"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "Design Tokens DS",
3
+ "collections": {
4
+ "Core": {
5
+ "modes": {
6
+ "Base16": [
7
+ "color.json",
8
+ "spacing.json",
9
+ "typography.json",
10
+ "iconography.json",
11
+ "surface.json",
12
+ "grid.json",
13
+ "elevation.json",
14
+ "motion.json",
15
+ "state.json"
16
+ ],
17
+ "Base14": [
18
+ "color.json",
19
+ "spacing.json",
20
+ "typography.json",
21
+ "iconography.json",
22
+ "surface.json",
23
+ "grid.json",
24
+ "elevation.json",
25
+ "motion.json",
26
+ "state.json",
27
+ "base14.json"
28
+ ]
29
+ }
30
+ },
31
+ "Themes": {
32
+ "modes": {
33
+ "Light": [
34
+ "light.json"
35
+ ],
36
+ "Dark": [
37
+ "dark.json"
38
+ ]
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "motion": {
3
+ "easing": {
4
+ "ease": {
5
+ "$value": "cubic-bezier(0.25, 0.1, 0.25, 1)",
6
+ "$type": "string"
7
+ },
8
+ "easeIn": {
9
+ "$value": "cubic-bezier(0.42, 0, 1, 1)",
10
+ "$type": "string"
11
+ },
12
+ "easeOut": {
13
+ "$value": "cubic-bezier(0, 0, 0.58, 1)",
14
+ "$type": "string"
15
+ },
16
+ "easeInOut": {
17
+ "$value": "cubic-bezier(0.42, 0, 0.58, 1)",
18
+ "$type": "string"
19
+ },
20
+ "linear": {
21
+ "$value": "cubic-bezier(0, 0, 1, 1)",
22
+ "$type": "string"
23
+ },
24
+ "bounceOut": {
25
+ "$value": "cubic-bezier(0.25, 2.1, 0.5, 0)",
26
+ "$type": "string"
27
+ },
28
+ "elasticOut": {
29
+ "$value": "cubic-bezier(0.7, 3.3, 0.3, 0)",
30
+ "$type": "string"
31
+ }
32
+ },
33
+ "duration": {
34
+ "none": {
35
+ "$value": "0",
36
+ "$type": "duration"
37
+ },
38
+ "fast": {
39
+ "01": {
40
+ "$value": "50",
41
+ "$type": "duration"
42
+ },
43
+ "02": {
44
+ "$value": "100",
45
+ "$type": "duration"
46
+ },
47
+ "03": {
48
+ "$value": "150",
49
+ "$type": "duration"
50
+ },
51
+ "04": {
52
+ "$value": "200",
53
+ "$type": "duration"
54
+ }
55
+ },
56
+ "moderate": {
57
+ "01": {
58
+ "$value": "250",
59
+ "$type": "duration"
60
+ },
61
+ "02": {
62
+ "$value": "300",
63
+ "$type": "duration"
64
+ },
65
+ "03": {
66
+ "$value": "350",
67
+ "$type": "duration"
68
+ },
69
+ "04": {
70
+ "$value": "400",
71
+ "$type": "duration"
72
+ }
73
+ },
74
+ "slow": {
75
+ "01": {
76
+ "$value": "450",
77
+ "$type": "duration"
78
+ },
79
+ "02": {
80
+ "$value": "500",
81
+ "$type": "duration"
82
+ },
83
+ "03": {
84
+ "$value": "550",
85
+ "$type": "duration"
86
+ },
87
+ "04": {
88
+ "$value": "600",
89
+ "$type": "duration"
90
+ }
91
+ },
92
+ "verySlow": {
93
+ "01": {
94
+ "$value": "700",
95
+ "$type": "duration"
96
+ },
97
+ "02": {
98
+ "$value": "800",
99
+ "$type": "duration"
100
+ },
101
+ "03": {
102
+ "$value": "900",
103
+ "$type": "duration"
104
+ },
105
+ "04": {
106
+ "$value": "1000",
107
+ "$type": "duration"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "form": {
3
+ "borderWidth": {
4
+ "fieldset": {
5
+ "$value": "{surface.borderWidth.none}",
6
+ "$type": "number"
7
+ }
8
+ },
9
+ "spacing": {
10
+ "fieldset": {
11
+ "$value": "{spacing.layout.05}",
12
+ "$type": "number"
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "Design Tokens DS",
3
+ "collections": {
4
+ "Pattern": {
5
+ "modes": {
6
+ "Default": ["skeleton.json", "form.json"]
7
+ }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "skeleton": {
3
+ "color": {
4
+ "background": {
5
+ "$value": "{color.surface.main.alternative}",
6
+ "$type": "color"
7
+ },
8
+ "foreground": {
9
+ "$value": "{color.surface.main.base}",
10
+ "$type": "color"
11
+ }
12
+ },
13
+ "rounder": {
14
+ "surface": {
15
+ "$value": "{surface.rounder.small}",
16
+ "$type": "number"
17
+ },
18
+ "read": {
19
+ "$value": "{surface.rounder.full}",
20
+ "$type": "number"
21
+ }
22
+ },
23
+ "height": {
24
+ "default": {
25
+ "$value": "{typography.fontSize.default}",
26
+ "$type": "dimension"
27
+ },
28
+ "title": {
29
+ "small": {
30
+ "$value": "{typography.fontSize.up.04}",
31
+ "$type": "dimension"
32
+ },
33
+ "medium": {
34
+ "$value": "{typography.fontSize.up.06}",
35
+ "$type": "dimension"
36
+ },
37
+ "large": {
38
+ "$value": "{typography.fontSize.up.08}",
39
+ "$type": "dimension"
40
+ }
41
+ }
42
+ },
43
+ "easing": {
44
+ "$value": "{motion.easing.linear}",
45
+ "$type": "string"
46
+ },
47
+ "duration": {
48
+ "$value": "{motion.duration.slow.04}",
49
+ "$type": "number"
50
+ }
51
+ }
52
+ }
@@ -24,6 +24,26 @@
24
24
  "05": {
25
25
  "$value": "40",
26
26
  "$type": "number"
27
+ },
28
+ "06": {
29
+ "$value": "48",
30
+ "$type": "number"
31
+ },
32
+ "07": {
33
+ "$value": "56",
34
+ "$type": "number"
35
+ },
36
+ "08": {
37
+ "$value": "64",
38
+ "$type": "number"
39
+ },
40
+ "09": {
41
+ "$value": "72",
42
+ "$type": "number"
43
+ },
44
+ "10": {
45
+ "$value": "80",
46
+ "$type": "number"
27
47
  }
28
48
  },
29
49
  "adjust": {