@govbr-ds/tokens 4.0.0-next.1 → 4.0.0-next.10

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 (43) hide show
  1. package/README.md +12 -130
  2. package/dist/css/themes/dark.css +77 -49
  3. package/dist/css/themes/light.css +77 -49
  4. package/dist/css/tokens.css +565 -513
  5. package/dist/js/themes/dark.js +77 -49
  6. package/dist/js/themes/light.js +77 -49
  7. package/dist/js/tokens.js +569 -517
  8. package/dist/json/themes/dark.json +1330 -389
  9. package/dist/json/themes/light.json +1326 -385
  10. package/dist/json/tokens.json +8029 -3195
  11. package/dist/scss/themes/dark.scss +80 -0
  12. package/dist/scss/themes/light.scss +80 -0
  13. package/dist/scss/tokens.scss +721 -0
  14. package/package.json +10 -11
  15. package/src/figma/tokens.json +1405 -527
  16. package/src/figma/variables/base14.json +66 -0
  17. package/src/figma/variables/color.json +2 -2
  18. package/src/figma/variables/component/manifest.json +12 -0
  19. package/src/figma/variables/component/text.json +46 -0
  20. package/src/figma/variables/dark.json +314 -0
  21. package/src/figma/variables/elevation.json +232 -0
  22. package/src/figma/variables/grid.json +120 -0
  23. package/src/figma/variables/guideline/componente.json +24 -0
  24. package/src/figma/variables/guideline/fundamento.json +24 -0
  25. package/src/figma/variables/guideline/geral.json +20 -0
  26. package/src/figma/variables/guideline/manifest.json +21 -0
  27. package/src/figma/variables/guideline/padrao.json +24 -0
  28. package/src/figma/variables/iconography.json +14 -0
  29. package/src/figma/variables/light.json +314 -0
  30. package/src/figma/variables/manifest.json +21 -4
  31. package/src/figma/variables/motion.json +112 -0
  32. package/src/figma/variables/pattern/manifest.json +12 -0
  33. package/src/figma/variables/pattern/skeleton.json +52 -0
  34. package/src/figma/variables/spacing.json +21 -1
  35. package/src/figma/variables/state.json +238 -0
  36. package/src/figma/variables/surface.json +28 -26
  37. package/src/figma/variables/typography.json +90 -112
  38. package/dist/scss/_tokens.scss +0 -674
  39. package/dist/scss/themes/_dark.scss +0 -55
  40. package/dist/scss/themes/_light.scss +0 -55
  41. package/src/style-dictionary/themes/dark.json +0 -3313
  42. package/src/style-dictionary/themes/light.json +0 -3313
  43. package/src/style-dictionary/tokens.json +0 -3045
@@ -0,0 +1,66 @@
1
+ {
2
+ "typography": {
3
+ "fontSize": {
4
+ "base": {
5
+ "$value": "{typography.fontSize.base14}",
6
+ "$type": "number"
7
+ },
8
+ "default": {
9
+ "$value": "{typography.fontSize.base}",
10
+ "$type": "number"
11
+ },
12
+ "up": {
13
+ "01": {
14
+ "$value": "15.75",
15
+ "$type": "number"
16
+ },
17
+ "02": {
18
+ "$value": "17.72",
19
+ "$type": "number"
20
+ },
21
+ "03": {
22
+ "$value": "19.93",
23
+ "$type": "number"
24
+ },
25
+ "04": {
26
+ "$value": "22.43",
27
+ "$type": "number"
28
+ },
29
+ "05": {
30
+ "$value": "25.23",
31
+ "$type": "number"
32
+ },
33
+ "06": {
34
+ "$value": "28.38",
35
+ "$type": "number"
36
+ },
37
+ "07": {
38
+ "$value": "31.93",
39
+ "$type": "number"
40
+ },
41
+ "08": {
42
+ "$value": "35.92",
43
+ "$type": "number"
44
+ }
45
+ },
46
+ "down": {
47
+ "01": {
48
+ "$value": "12.44",
49
+ "$type": "number"
50
+ },
51
+ "02": {
52
+ "$value": "11.06",
53
+ "$type": "number"
54
+ },
55
+ "03": {
56
+ "$value": "9.83",
57
+ "$type": "number"
58
+ },
59
+ "04": {
60
+ "$value": "8.74",
61
+ "$type": "number"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -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,12 @@
1
+ {
2
+ "name": "Design Tokens DS",
3
+ "collections": {
4
+ "Component": {
5
+ "modes": {
6
+ "Default": [
7
+ "text.json"
8
+ ]
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "text": {
3
+ "color": {
4
+ "$value": "{theme.read.main.base}",
5
+ "$type": "color"
6
+ },
7
+ "fontFamily": {
8
+ "$value": "{typography.fontFamily.sans}",
9
+ "$type": "string"
10
+ },
11
+ "fontWeight": {
12
+ "$value": "{typography.fontWeight.semiBold}",
13
+ "$type": "string"
14
+ },
15
+ "size": {
16
+ "label": {
17
+ "small": {
18
+ "$value": "{typography.fontSize.down.02}",
19
+ "$type": "number"
20
+ },
21
+ "medium": {
22
+ "$value": "{typography.fontSize.down.01}",
23
+ "$type": "number"
24
+ },
25
+ "large": {
26
+ "$value": "{typography.fontSize.default}",
27
+ "$type": "number"
28
+ }
29
+ },
30
+ "title": {
31
+ "small": {
32
+ "$value": "{typography.fontSize.default}",
33
+ "$type": "number"
34
+ },
35
+ "medium": {
36
+ "$value": "{typography.fontSize.up.01}",
37
+ "$type": "number"
38
+ },
39
+ "large": {
40
+ "$value": "{typography.fontSize.up.02}",
41
+ "$type": "number"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
@@ -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
+ "read": {
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.read.main.base}",
27
+ "$type": "color"
28
+ },
29
+ "alternative": {
30
+ "$value": "{theme.read.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
+ "read": {
77
+ "main": {
78
+ "$value": "{color.pure.100}",
79
+ "$type": "color"
80
+ },
81
+ "contrast": {
82
+ "$value": "{theme.interactive.read.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
+ "read": {
97
+ "main": {
98
+ "$value": "{color.pure.100}",
99
+ "$type": "color"
100
+ },
101
+ "contrast": {
102
+ "$value": "{theme.cta.read.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
+ "read": {
138
+ "$value": "{theme.hover.dim}",
139
+ "$type": "color"
140
+ },
141
+ "surface": {
142
+ "$value": "{theme.hover.bright}",
143
+ "$type": "color"
144
+ }
145
+ },
146
+ "contrast": {
147
+ "read": {
148
+ "$value": "{theme.hover.main.read}",
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
+ "read": {
177
+ "main": {
178
+ "$value": "{color.pure.100}",
179
+ "$type": "color"
180
+ },
181
+ "contrast": {
182
+ "$value": "{theme.active.read.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
+ "read": {
197
+ "main": {
198
+ "$value": "{color.pure.100}",
199
+ "$type": "color"
200
+ },
201
+ "contrast": {
202
+ "$value": "{theme.selected.read.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
+ "read": {
247
+ "main": {
248
+ "$value": "{color.pure.0}",
249
+ "$type": "color"
250
+ },
251
+ "contrast": {
252
+ "$value": "{theme.on.read.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
+ "read": {
267
+ "main": {
268
+ "$value": "{color.pure.0}",
269
+ "$type": "color"
270
+ },
271
+ "contrast": {
272
+ "$value": "{theme.off.read.main}",
273
+ "$type": "color"
274
+ }
275
+ }
276
+ },
277
+ "success": {
278
+ "main": {
279
+ "$value": "{color.greenVivid.50}",
280
+ "$type": "color"
281
+ },
282
+ "read": {
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
+ "read": {
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
+ "read": {
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": "dimension"
47
+ },
48
+ "01": {
49
+ "$value": "1",
50
+ "$type": "dimension"
51
+ },
52
+ "02": {
53
+ "$value": "4",
54
+ "$type": "dimension"
55
+ },
56
+ "03": {
57
+ "$value": "8",
58
+ "$type": "dimension"
59
+ },
60
+ "04": {
61
+ "$value": "12",
62
+ "$type": "dimension"
63
+ },
64
+ "05": {
65
+ "$value": "16",
66
+ "$type": "dimension"
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": "dimension"
95
+ },
96
+ "occlusion": {
97
+ "$value": "{elevation.blur.none}",
98
+ "$type": "dimension"
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": "dimension"
127
+ },
128
+ "occlusion": {
129
+ "$value": "{elevation.blur.02}",
130
+ "$type": "dimension"
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": "dimension"
159
+ },
160
+ "occlusion": {
161
+ "$value": "{elevation.blur.03}",
162
+ "$type": "dimension"
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": "dimension"
191
+ },
192
+ "occlusion": {
193
+ "$value": "{elevation.blur.04}",
194
+ "$type": "dimension"
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": "dimension"
223
+ },
224
+ "occlusion": {
225
+ "$value": "{elevation.blur.05}",
226
+ "$type": "dimension"
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }