@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,62 @@
1
+ {
2
+ "typography": {
3
+ "fontSize": {
4
+ "base": {
5
+ "$value": "{typography.fontSize.base14}",
6
+ "$type": "number"
7
+ },
8
+ "up": {
9
+ "01": {
10
+ "$value": "15.75",
11
+ "$type": "number"
12
+ },
13
+ "02": {
14
+ "$value": "17.72",
15
+ "$type": "number"
16
+ },
17
+ "03": {
18
+ "$value": "19.93",
19
+ "$type": "number"
20
+ },
21
+ "04": {
22
+ "$value": "22.43",
23
+ "$type": "number"
24
+ },
25
+ "05": {
26
+ "$value": "25.23",
27
+ "$type": "number"
28
+ },
29
+ "06": {
30
+ "$value": "28.38",
31
+ "$type": "number"
32
+ },
33
+ "07": {
34
+ "$value": "31.93",
35
+ "$type": "number"
36
+ },
37
+ "08": {
38
+ "$value": "35.92",
39
+ "$type": "number"
40
+ }
41
+ },
42
+ "down": {
43
+ "01": {
44
+ "$value": "12.44",
45
+ "$type": "number"
46
+ },
47
+ "02": {
48
+ "$value": "11.06",
49
+ "$type": "number"
50
+ },
51
+ "03": {
52
+ "$value": "9.83",
53
+ "$type": "number"
54
+ },
55
+ "04": {
56
+ "$value": "8.74",
57
+ "$type": "number"
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
@@ -1234,7 +1234,7 @@
1234
1234
  "$type": "color"
1235
1235
  },
1236
1236
  "20": {
1237
- "$value": "#DBE8FB",
1237
+ "$value": "#AACDEC",
1238
1238
  "$type": "color"
1239
1239
  },
1240
1240
  "30": {
@@ -1945,4 +1945,4 @@
1945
1945
  }
1946
1946
  }
1947
1947
  }
1948
- }
1948
+ }
@@ -0,0 +1,314 @@
1
+ {
2
+ "theme": {
3
+ "shadow": {
4
+ "opacity": {
5
+ "$value": "{elevation.opacity.dim}",
6
+ "$type": "number"
7
+ },
8
+ "color": {
9
+ "$value": "#00000099",
10
+ "$type": "color"
11
+ }
12
+ },
13
+ "text": {
14
+ "main": {
15
+ "base": {
16
+ "$value": "{color.gray.1}",
17
+ "$type": "color"
18
+ },
19
+ "alternative": {
20
+ "$value": "{color.gray.20}",
21
+ "$type": "color"
22
+ }
23
+ },
24
+ "contrast": {
25
+ "base": {
26
+ "$value": "{theme.text.main.base}",
27
+ "$type": "color"
28
+ },
29
+ "alternative": {
30
+ "$value": "{theme.text.main.alternative}",
31
+ "$type": "color"
32
+ }
33
+ }
34
+ },
35
+ "surface": {
36
+ "main": {
37
+ "base": {
38
+ "$value": "{color.grayCool.80}",
39
+ "$type": "color"
40
+ },
41
+ "alternative": {
42
+ "$value": "{color.grayCool.90}",
43
+ "$type": "color"
44
+ }
45
+ },
46
+ "contrast": {
47
+ "base": {
48
+ "$value": "{theme.surface.main.base}",
49
+ "$type": "color"
50
+ },
51
+ "alternative": {
52
+ "$value": "{theme.surface.main.alternative}",
53
+ "$type": "color"
54
+ }
55
+ }
56
+ },
57
+ "border": {
58
+ "base": {
59
+ "$value": "{color.gray.70}",
60
+ "$type": "color"
61
+ },
62
+ "alternative": {
63
+ "$value": "{color.gray.50}",
64
+ "$type": "color"
65
+ }
66
+ },
67
+ "interactive": {
68
+ "main": {
69
+ "$value": "{color.blueWarmVivid.30}",
70
+ "$type": "color"
71
+ },
72
+ "contrast": {
73
+ "$value": "{theme.interactive.main}",
74
+ "$type": "color"
75
+ },
76
+ "text": {
77
+ "main": {
78
+ "$value": "{color.pure.100}",
79
+ "$type": "color"
80
+ },
81
+ "contrast": {
82
+ "$value": "{theme.interactive.text.main}",
83
+ "$type": "color"
84
+ }
85
+ }
86
+ },
87
+ "cta": {
88
+ "main": {
89
+ "$value": "{color.greenCoolVivid.30}",
90
+ "$type": "color"
91
+ },
92
+ "contrast": {
93
+ "$value": "{theme.cta.main}",
94
+ "$type": "color"
95
+ },
96
+ "text": {
97
+ "main": {
98
+ "$value": "{color.pure.100}",
99
+ "$type": "color"
100
+ },
101
+ "contrast": {
102
+ "$value": "{theme.cta.text.main}",
103
+ "$type": "color"
104
+ }
105
+ }
106
+ },
107
+ "disabled": {
108
+ "main": {
109
+ "$value": "{color.grayCool.30}",
110
+ "$type": "color"
111
+ },
112
+ "contrast": {
113
+ "$value": "{theme.disabled.main}",
114
+ "$type": "color"
115
+ }
116
+ },
117
+ "visited": {
118
+ "main": {
119
+ "$value": "{color.blueWarm.30}",
120
+ "$type": "color"
121
+ },
122
+ "contrast": {
123
+ "$value": "{theme.visited.main}",
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.dim}",
139
+ "$type": "color"
140
+ },
141
+ "surface": {
142
+ "$value": "{theme.hover.bright}",
143
+ "$type": "color"
144
+ }
145
+ },
146
+ "contrast": {
147
+ "text": {
148
+ "$value": "{theme.hover.main.text}",
149
+ "$type": "color"
150
+ },
151
+ "surface": {
152
+ "$value": "{theme.hover.main.surface}",
153
+ "$type": "color"
154
+ }
155
+ }
156
+ },
157
+ "focus": {
158
+ "main": {
159
+ "$value": "{color.orangeVivid.30}",
160
+ "$type": "color"
161
+ },
162
+ "contrast": {
163
+ "$value": "{theme.focus.main}",
164
+ "$type": "color"
165
+ }
166
+ },
167
+ "active": {
168
+ "main": {
169
+ "$value": "{color.blueWarmVivid.40}",
170
+ "$type": "color"
171
+ },
172
+ "contrast": {
173
+ "$value": "{theme.active.main}",
174
+ "$type": "color"
175
+ },
176
+ "text": {
177
+ "main": {
178
+ "$value": "{color.pure.100}",
179
+ "$type": "color"
180
+ },
181
+ "contrast": {
182
+ "$value": "{theme.active.text.main}",
183
+ "$type": "color"
184
+ }
185
+ }
186
+ },
187
+ "selected": {
188
+ "main": {
189
+ "$value": "{color.blueWarmVivid.20}",
190
+ "$type": "color"
191
+ },
192
+ "contrast": {
193
+ "$value": "{theme.selected.main}",
194
+ "$type": "color"
195
+ },
196
+ "text": {
197
+ "main": {
198
+ "$value": "{color.pure.100}",
199
+ "$type": "color"
200
+ },
201
+ "contrast": {
202
+ "$value": "{theme.selected.text.main}",
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.60}",
240
+ "$type": "color"
241
+ },
242
+ "contrast": {
243
+ "$value": "{theme.on.main}",
244
+ "$type": "color"
245
+ },
246
+ "text": {
247
+ "main": {
248
+ "$value": "{color.pure.0}",
249
+ "$type": "color"
250
+ },
251
+ "contrast": {
252
+ "$value": "{theme.on.text.main}",
253
+ "$type": "color"
254
+ }
255
+ }
256
+ },
257
+ "off": {
258
+ "main": {
259
+ "$value": "{color.gray.60}",
260
+ "$type": "color"
261
+ },
262
+ "contrast": {
263
+ "$value": "{theme.off.main}",
264
+ "$type": "color"
265
+ },
266
+ "text": {
267
+ "main": {
268
+ "$value": "{color.pure.0}",
269
+ "$type": "color"
270
+ },
271
+ "contrast": {
272
+ "$value": "{theme.off.text.main}",
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
+ }
@@ -0,0 +1,232 @@
1
+ {
2
+ "elevation": {
3
+ "color": {
4
+ "$value": "{color.pure.100}",
5
+ "$type": "color"
6
+ },
7
+ "opacity": {
8
+ "bright": {
9
+ "$value": "{surface.opacity.02}",
10
+ "$type": "number"
11
+ },
12
+ "dim": {
13
+ "$value": "{surface.opacity.06}",
14
+ "$type": "number"
15
+ }
16
+ },
17
+ "offset": {
18
+ "none": {
19
+ "$value": "0",
20
+ "$type": "number"
21
+ },
22
+ "01": {
23
+ "$value": "1",
24
+ "$type": "number"
25
+ },
26
+ "02": {
27
+ "$value": "4",
28
+ "$type": "number"
29
+ },
30
+ "03": {
31
+ "$value": "8",
32
+ "$type": "number"
33
+ },
34
+ "04": {
35
+ "$value": "12",
36
+ "$type": "number"
37
+ },
38
+ "05": {
39
+ "$value": "16",
40
+ "$type": "number"
41
+ }
42
+ },
43
+ "blur": {
44
+ "none": {
45
+ "$value": "0",
46
+ "$type": "number"
47
+ },
48
+ "01": {
49
+ "$value": "1",
50
+ "$type": "number"
51
+ },
52
+ "02": {
53
+ "$value": "4",
54
+ "$type": "number"
55
+ },
56
+ "03": {
57
+ "$value": "8",
58
+ "$type": "number"
59
+ },
60
+ "04": {
61
+ "$value": "12",
62
+ "$type": "number"
63
+ },
64
+ "05": {
65
+ "$value": "16",
66
+ "$type": "number"
67
+ }
68
+ },
69
+ "level": {
70
+ "0": {
71
+ "offsetX": {
72
+ "cast": {
73
+ "$value": "{elevation.offset.none}",
74
+ "$type": "number"
75
+ },
76
+ "occlusion": {
77
+ "$value": "{elevation.offset.none}",
78
+ "$type": "number"
79
+ }
80
+ },
81
+ "offsetY": {
82
+ "cast": {
83
+ "$value": "{elevation.offset.none}",
84
+ "$type": "number"
85
+ },
86
+ "occlusion": {
87
+ "$value": "{elevation.offset.none}",
88
+ "$type": "number"
89
+ }
90
+ },
91
+ "blur": {
92
+ "cast": {
93
+ "$value": "{elevation.blur.none}",
94
+ "$type": "number"
95
+ },
96
+ "occlusion": {
97
+ "$value": "{elevation.blur.none}",
98
+ "$type": "number"
99
+ }
100
+ }
101
+ },
102
+ "1": {
103
+ "offsetX": {
104
+ "cast": {
105
+ "$value": "{elevation.offset.none}",
106
+ "$type": "number"
107
+ },
108
+ "occlusion": {
109
+ "$value": "{elevation.offset.none}",
110
+ "$type": "number"
111
+ }
112
+ },
113
+ "offsetY": {
114
+ "cast": {
115
+ "$value": "{elevation.offset.01}",
116
+ "$type": "number"
117
+ },
118
+ "occlusion": {
119
+ "$value": "{elevation.offset.none}",
120
+ "$type": "number"
121
+ }
122
+ },
123
+ "blur": {
124
+ "cast": {
125
+ "$value": "{elevation.blur.01}",
126
+ "$type": "number"
127
+ },
128
+ "occlusion": {
129
+ "$value": "{elevation.blur.02}",
130
+ "$type": "number"
131
+ }
132
+ }
133
+ },
134
+ "2": {
135
+ "offsetX": {
136
+ "cast": {
137
+ "$value": "{elevation.offset.none}",
138
+ "$type": "number"
139
+ },
140
+ "occlusion": {
141
+ "$value": "{elevation.offset.none}",
142
+ "$type": "number"
143
+ }
144
+ },
145
+ "offsetY": {
146
+ "cast": {
147
+ "$value": "{elevation.offset.02}",
148
+ "$type": "number"
149
+ },
150
+ "occlusion": {
151
+ "$value": "{elevation.offset.none}",
152
+ "$type": "number"
153
+ }
154
+ },
155
+ "blur": {
156
+ "cast": {
157
+ "$value": "{elevation.blur.02}",
158
+ "$type": "number"
159
+ },
160
+ "occlusion": {
161
+ "$value": "{elevation.blur.03}",
162
+ "$type": "number"
163
+ }
164
+ }
165
+ },
166
+ "3": {
167
+ "offsetX": {
168
+ "cast": {
169
+ "$value": "{elevation.offset.none}",
170
+ "$type": "number"
171
+ },
172
+ "occlusion": {
173
+ "$value": "{elevation.offset.none}",
174
+ "$type": "number"
175
+ }
176
+ },
177
+ "offsetY": {
178
+ "cast": {
179
+ "$value": "{elevation.offset.03}",
180
+ "$type": "number"
181
+ },
182
+ "occlusion": {
183
+ "$value": "{elevation.offset.none}",
184
+ "$type": "number"
185
+ }
186
+ },
187
+ "blur": {
188
+ "cast": {
189
+ "$value": "{elevation.blur.03}",
190
+ "$type": "number"
191
+ },
192
+ "occlusion": {
193
+ "$value": "{elevation.blur.04}",
194
+ "$type": "number"
195
+ }
196
+ }
197
+ },
198
+ "4": {
199
+ "offsetX": {
200
+ "cast": {
201
+ "$value": "{elevation.offset.none}",
202
+ "$type": "number"
203
+ },
204
+ "occlusion": {
205
+ "$value": "{elevation.offset.none}",
206
+ "$type": "number"
207
+ }
208
+ },
209
+ "offsetY": {
210
+ "cast": {
211
+ "$value": "{elevation.offset.04}",
212
+ "$type": "number"
213
+ },
214
+ "occlusion": {
215
+ "$value": "{elevation.offset.none}",
216
+ "$type": "number"
217
+ }
218
+ },
219
+ "blur": {
220
+ "cast": {
221
+ "$value": "{elevation.blur.04}",
222
+ "$type": "number"
223
+ },
224
+ "occlusion": {
225
+ "$value": "{elevation.blur.05}",
226
+ "$type": "number"
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
@@ -4,27 +4,27 @@
4
4
  "small": {
5
5
  "main": {
6
6
  "$value": "0",
7
- "$type": "number"
7
+ "$type": "dimension"
8
8
  },
9
9
  "extra": {
10
10
  "$value": "576",
11
- "$type": "number"
11
+ "$type": "dimension"
12
12
  }
13
13
  },
14
14
  "medium": {
15
15
  "main": {
16
16
  "$value": "992",
17
- "$type": "number"
17
+ "$type": "dimension"
18
18
  }
19
19
  },
20
20
  "large": {
21
21
  "main": {
22
22
  "$value": "1280",
23
- "$type": "number"
23
+ "$type": "dimension"
24
24
  },
25
25
  "extra": {
26
26
  "$value": "1600",
27
- "$type": "number"
27
+ "$type": "dimension"
28
28
  }
29
29
  }
30
30
  },
@@ -0,0 +1,24 @@
1
+ {
2
+ "guideline": {
3
+ "01": {
4
+ "$value": "{color.mintVivid.5}",
5
+ "$type": "color"
6
+ },
7
+ "02": {
8
+ "$value": "{color.mintVivid.10}",
9
+ "$type": "color"
10
+ },
11
+ "03": {
12
+ "$value": "{color.mintVivid.30}",
13
+ "$type": "color"
14
+ },
15
+ "04": {
16
+ "$value": "{color.mintVivid.50}",
17
+ "$type": "color"
18
+ },
19
+ "05": {
20
+ "$value": "{color.mintVivid.70}",
21
+ "$type": "color"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "guideline": {
3
+ "01": {
4
+ "$value": "{color.blueWarmVivid.10}",
5
+ "$type": "color"
6
+ },
7
+ "02": {
8
+ "$value": "{color.blueWarmVivid.30}",
9
+ "$type": "color"
10
+ },
11
+ "03": {
12
+ "$value": "{color.blueWarmVivid.50}",
13
+ "$type": "color"
14
+ },
15
+ "04": {
16
+ "$value": "{color.blueWarmVivid.70}",
17
+ "$type": "color"
18
+ },
19
+ "05": {
20
+ "$value": "{color.blueWarmVivid.80}",
21
+ "$type": "color"
22
+ }
23
+ }
24
+ }