@govbr-ds/tokens 4.0.0-next.3 → 4.0.0-next.5

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 (34) hide show
  1. package/dist/css/themes/dark.css +47 -19
  2. package/dist/css/themes/light.css +40 -12
  3. package/dist/css/tokens.css +117 -60
  4. package/dist/js/themes/dark.js +47 -19
  5. package/dist/js/themes/light.js +40 -12
  6. package/dist/js/tokens.js +140 -83
  7. package/dist/json/themes/dark.json +1616 -596
  8. package/dist/json/themes/light.json +1304 -284
  9. package/dist/json/tokens.json +6763 -2038
  10. package/dist/scss/_tokens.scss +118 -63
  11. package/dist/scss/themes/_dark.scss +48 -20
  12. package/dist/scss/themes/_light.scss +41 -13
  13. package/package.json +4 -3
  14. package/src/figma/tokens.json +1062 -252
  15. package/src/figma/variables/base14.json +62 -0
  16. package/src/figma/variables/color.json +2 -2
  17. package/src/figma/variables/dark.json +314 -0
  18. package/src/figma/variables/elevation.json +232 -0
  19. package/src/figma/variables/grid.json +5 -5
  20. package/src/figma/variables/guideline/componente.json +24 -0
  21. package/src/figma/variables/guideline/fundamento.json +24 -0
  22. package/src/figma/variables/guideline/geral.json +20 -0
  23. package/src/figma/variables/guideline/manifest.json +21 -0
  24. package/src/figma/variables/guideline/padrao.json +24 -0
  25. package/src/figma/variables/iconography.json +16 -0
  26. package/src/figma/variables/light.json +314 -0
  27. package/src/figma/variables/manifest.json +11 -4
  28. package/src/figma/variables/motion.json +112 -0
  29. package/src/figma/variables/state.json +238 -0
  30. package/src/figma/variables/surface.json +2 -2
  31. package/src/figma/variables/typography.json +6 -12
  32. package/src/style-dictionary/themes/dark.json +513 -3060
  33. package/src/style-dictionary/themes/light.json +507 -3054
  34. package/src/style-dictionary/tokens.json +292 -132
@@ -0,0 +1,20 @@
1
+ {
2
+ "guideline": {
3
+ "bg-screen": {
4
+ "$value": "#E4E4E4",
5
+ "$type": "color"
6
+ },
7
+ "bg-cover": {
8
+ "$value": "{color.gray.2}",
9
+ "$type": "color"
10
+ },
11
+ "legend": {
12
+ "$value": "#FF3FB9",
13
+ "$type": "color"
14
+ },
15
+ "margem": {
16
+ "$value": "40",
17
+ "$type": "number"
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "Guidelines DS",
3
+ "collections": {
4
+ "Guideline": {
5
+ "modes": {
6
+ "Fundamento": [
7
+ "geral.json",
8
+ "fundamento.json"
9
+ ],
10
+ "Padrao": [
11
+ "geral.json",
12
+ "padrao.json"
13
+ ],
14
+ "Componente": [
15
+ "geral.json",
16
+ "componente.json"
17
+ ]
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "guideline": {
3
+ "01": {
4
+ "$value": "{color.yellowVivid.5}",
5
+ "$type": "color"
6
+ },
7
+ "02": {
8
+ "$value": "{color.yellowVivid.10}",
9
+ "$type": "color"
10
+ },
11
+ "03": {
12
+ "$value": "{color.yellowVivid.30}",
13
+ "$type": "color"
14
+ },
15
+ "04": {
16
+ "$value": "{color.yellowVivid.50}",
17
+ "$type": "color"
18
+ },
19
+ "05": {
20
+ "$value": "{color.yellowVivid.70}",
21
+ "$type": "color"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "iconography": {
3
+ "fontFamily": {
4
+ "fontAwesome": {
5
+ "free": {
6
+ "$value": "Font Awesome 6 Free",
7
+ "$type": "string"
8
+ },
9
+ "brands": {
10
+ "$value": "Font Awesome 6 Brands",
11
+ "$type": "string"
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,314 @@
1
+ {
2
+ "theme": {
3
+ "shadow": {
4
+ "opacity": {
5
+ "$value": "{elevation.opacity.bright}",
6
+ "$type": "number"
7
+ },
8
+ "color": {
9
+ "$value": "#00000033",
10
+ "$type": "color"
11
+ }
12
+ },
13
+ "text": {
14
+ "main": {
15
+ "base": {
16
+ "$value": "{color.gray.90}",
17
+ "$type": "color"
18
+ },
19
+ "alternative": {
20
+ "$value": "{color.gray.60}",
21
+ "$type": "color"
22
+ }
23
+ },
24
+ "contrast": {
25
+ "base": {
26
+ "$value": "{color.gray.1}",
27
+ "$type": "color"
28
+ },
29
+ "alternative": {
30
+ "$value": "{color.gray.20}",
31
+ "$type": "color"
32
+ }
33
+ }
34
+ },
35
+ "surface": {
36
+ "main": {
37
+ "base": {
38
+ "$value": "{color.gray.1}",
39
+ "$type": "color"
40
+ },
41
+ "alternative": {
42
+ "$value": "{color.gray.5}",
43
+ "$type": "color"
44
+ }
45
+ },
46
+ "contrast": {
47
+ "base": {
48
+ "$value": "{color.blueWarm.80}",
49
+ "$type": "color"
50
+ },
51
+ "alternative": {
52
+ "$value": "{color.blueWarm.70}",
53
+ "$type": "color"
54
+ }
55
+ }
56
+ },
57
+ "border": {
58
+ "base": {
59
+ "$value": "{color.gray.20}",
60
+ "$type": "color"
61
+ },
62
+ "alternative": {
63
+ "$value": "{color.gray.40}",
64
+ "$type": "color"
65
+ }
66
+ },
67
+ "interactive": {
68
+ "main": {
69
+ "$value": "{color.blueWarmVivid.70}",
70
+ "$type": "color"
71
+ },
72
+ "contrast": {
73
+ "$value": "{color.blueWarmVivid.20}",
74
+ "$type": "color"
75
+ },
76
+ "text": {
77
+ "main": {
78
+ "$value": "{color.pure.0}",
79
+ "$type": "color"
80
+ },
81
+ "contrast": {
82
+ "$value": "{color.pure.100}",
83
+ "$type": "color"
84
+ }
85
+ }
86
+ },
87
+ "cta": {
88
+ "main": {
89
+ "$value": "{color.greenCoolVivid.60}",
90
+ "$type": "color"
91
+ },
92
+ "contrast": {
93
+ "$value": "{color.greenCoolVivid.20}",
94
+ "$type": "color"
95
+ },
96
+ "text": {
97
+ "main": {
98
+ "$value": "{color.pure.0}",
99
+ "$type": "color"
100
+ },
101
+ "contrast": {
102
+ "$value": "{color.pure.100}",
103
+ "$type": "color"
104
+ }
105
+ }
106
+ },
107
+ "disabled": {
108
+ "main": {
109
+ "$value": "{color.gray.70}",
110
+ "$type": "color"
111
+ },
112
+ "contrast": {
113
+ "$value": "{color.gray.20}",
114
+ "$type": "color"
115
+ }
116
+ },
117
+ "visited": {
118
+ "main": {
119
+ "$value": "{color.blueWarm.70}",
120
+ "$type": "color"
121
+ },
122
+ "contrast": {
123
+ "$value": "{color.blueWarm.20}",
124
+ "$type": "color"
125
+ }
126
+ },
127
+ "hover": {
128
+ "bright": {
129
+ "$value": "#D4E5FF80",
130
+ "$type": "color"
131
+ },
132
+ "dim": {
133
+ "$value": "#0C326F99",
134
+ "$type": "color"
135
+ },
136
+ "main": {
137
+ "text": {
138
+ "$value": "{theme.hover.bright}",
139
+ "$type": "color"
140
+ },
141
+ "surface": {
142
+ "$value": "{theme.hover.dim}",
143
+ "$type": "color"
144
+ }
145
+ },
146
+ "contrast": {
147
+ "text": {
148
+ "$value": "{theme.hover.dim}",
149
+ "$type": "color"
150
+ },
151
+ "surface": {
152
+ "$value": "{theme.hover.bright}",
153
+ "$type": "color"
154
+ }
155
+ }
156
+ },
157
+ "focus": {
158
+ "main": {
159
+ "$value": "{color.orangeVivid.40}",
160
+ "$type": "color"
161
+ },
162
+ "contrast": {
163
+ "$value": "{color.orangeVivid.30}",
164
+ "$type": "color"
165
+ }
166
+ },
167
+ "active": {
168
+ "main": {
169
+ "$value": "{color.blueWarmVivid.80}",
170
+ "$type": "color"
171
+ },
172
+ "contrast": {
173
+ "$value": "{color.blueWarmVivid.30}",
174
+ "$type": "color"
175
+ },
176
+ "text": {
177
+ "main": {
178
+ "$value": "{color.pure.0}",
179
+ "$type": "color"
180
+ },
181
+ "contrast": {
182
+ "$value": "{color.pure.100}",
183
+ "$type": "color"
184
+ }
185
+ }
186
+ },
187
+ "selected": {
188
+ "main": {
189
+ "$value": "{color.blueWarmVivid.50}",
190
+ "$type": "color"
191
+ },
192
+ "contrast": {
193
+ "$value": "{color.blueWarmVivid.40}",
194
+ "$type": "color"
195
+ },
196
+ "text": {
197
+ "main": {
198
+ "$value": "{color.pure.0}",
199
+ "$type": "color"
200
+ },
201
+ "contrast": {
202
+ "$value": "{color.pure.100}",
203
+ "$type": "color"
204
+ }
205
+ }
206
+ },
207
+ "grabbing": {
208
+ "main": {
209
+ "$value": "{theme.interactive.main}",
210
+ "$type": "color"
211
+ },
212
+ "contrast": {
213
+ "$value": "{theme.interactive.contrast}",
214
+ "$type": "color"
215
+ }
216
+ },
217
+ "dropzone": {
218
+ "main": {
219
+ "$value": "{theme.interactive.main}",
220
+ "$type": "color"
221
+ },
222
+ "contrast": {
223
+ "$value": "{theme.interactive.contrast}",
224
+ "$type": "color"
225
+ }
226
+ },
227
+ "dropzoneActive": {
228
+ "main": {
229
+ "$value": "{theme.interactive.main}",
230
+ "$type": "color"
231
+ },
232
+ "contrast": {
233
+ "$value": "{theme.interactive.contrast}",
234
+ "$type": "color"
235
+ }
236
+ },
237
+ "on": {
238
+ "main": {
239
+ "$value": "{color.blueWarmVivid.40}",
240
+ "$type": "color"
241
+ },
242
+ "contrast": {
243
+ "$value": "{color.blueWarmVivid.50}",
244
+ "$type": "color"
245
+ },
246
+ "text": {
247
+ "main": {
248
+ "$value": "{color.pure.100}",
249
+ "$type": "color"
250
+ },
251
+ "contrast": {
252
+ "$value": "{color.pure.0}",
253
+ "$type": "color"
254
+ }
255
+ }
256
+ },
257
+ "off": {
258
+ "main": {
259
+ "$value": "{color.gray.40}",
260
+ "$type": "color"
261
+ },
262
+ "contrast": {
263
+ "$value": "{color.gray.50}",
264
+ "$type": "color"
265
+ },
266
+ "text": {
267
+ "main": {
268
+ "$value": "{color.pure.100}",
269
+ "$type": "color"
270
+ },
271
+ "contrast": {
272
+ "$value": "{color.pure.0}",
273
+ "$type": "color"
274
+ }
275
+ }
276
+ },
277
+ "success": {
278
+ "main": {
279
+ "$value": "{color.greenVivid.50}",
280
+ "$type": "color"
281
+ },
282
+ "text": {
283
+ "main": {
284
+ "$value": "{color.pure.0}",
285
+ "$type": "color"
286
+ }
287
+ }
288
+ },
289
+ "alert": {
290
+ "main": {
291
+ "$value": "{color.yellowVivid.20}",
292
+ "$type": "color"
293
+ },
294
+ "text": {
295
+ "main": {
296
+ "$value": "{color.pure.100}",
297
+ "$type": "color"
298
+ }
299
+ }
300
+ },
301
+ "error": {
302
+ "main": {
303
+ "$value": "{color.redVivid.50}",
304
+ "$type": "color"
305
+ },
306
+ "text": {
307
+ "main": {
308
+ "$value": "{color.pure.0}",
309
+ "$type": "color"
310
+ }
311
+ }
312
+ }
313
+ }
314
+ }
@@ -3,22 +3,29 @@
3
3
  "collections": {
4
4
  "Core": {
5
5
  "modes": {
6
- "Default": [
6
+ "Base16": [
7
7
  "color.json",
8
8
  "spacing.json",
9
9
  "typography.json",
10
+ "iconography.json",
10
11
  "surface.json",
11
- "grid.json"
12
+ "grid.json",
13
+ "elevation.json",
14
+ "motion.json",
15
+ "state.json"
16
+ ],
17
+ "Base14": [
18
+ "base14.json"
12
19
  ]
13
20
  }
14
21
  },
15
22
  "Themes": {
16
23
  "modes": {
17
24
  "Light": [
18
- "themes/light.json"
25
+ "light.json"
19
26
  ],
20
27
  "Dark": [
21
- "themes/dark.json"
28
+ "dark.json"
22
29
  ]
23
30
  }
24
31
  }
@@ -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
+ }