@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,120 @@
1
+ {
2
+ "grid": {
3
+ "breakpoint": {
4
+ "small": {
5
+ "main": {
6
+ "$value": "0",
7
+ "$type": "dimension"
8
+ },
9
+ "extra": {
10
+ "$value": "576",
11
+ "$type": "dimension"
12
+ }
13
+ },
14
+ "medium": {
15
+ "main": {
16
+ "$value": "992",
17
+ "$type": "dimension"
18
+ }
19
+ },
20
+ "large": {
21
+ "main": {
22
+ "$value": "1280",
23
+ "$type": "dimension"
24
+ },
25
+ "extra": {
26
+ "$value": "1600",
27
+ "$type": "dimension"
28
+ }
29
+ }
30
+ },
31
+ "gutter": {
32
+ "small": {
33
+ "compact": {
34
+ "$value": "{spacing.layout.01}",
35
+ "$type": "dimension"
36
+ },
37
+ "regular": {
38
+ "$value": "{spacing.layout.02}",
39
+ "$type": "dimension"
40
+ },
41
+ "spacious": {
42
+ "$value": "{spacing.layout.03}",
43
+ "$type": "dimension"
44
+ }
45
+ },
46
+ "medium": {
47
+ "compact": {
48
+ "$value": "{spacing.layout.02}",
49
+ "$type": "dimension"
50
+ },
51
+ "regular": {
52
+ "$value": "{spacing.layout.03}",
53
+ "$type": "dimension"
54
+ },
55
+ "spacious": {
56
+ "$value": "{spacing.layout.04}",
57
+ "$type": "dimension"
58
+ }
59
+ },
60
+ "large": {
61
+ "compact": {
62
+ "$value": "{spacing.layout.04}",
63
+ "$type": "dimension"
64
+ },
65
+ "regular": {
66
+ "$value": "{spacing.layout.05}",
67
+ "$type": "dimension"
68
+ },
69
+ "spacious": {
70
+ "$value": "{grid.gutter.large.regular}",
71
+ "$type": "dimension"
72
+ }
73
+ }
74
+ },
75
+ "margin": {
76
+ "small": {
77
+ "compact": {
78
+ "$value": "{grid.margin.small.regular}",
79
+ "$type": "dimension"
80
+ },
81
+ "regular": {
82
+ "$value": "{spacing.layout.01}",
83
+ "$type": "dimension"
84
+ },
85
+ "spacious": {
86
+ "$value": "{spacing.layout.02}",
87
+ "$type": "dimension"
88
+ }
89
+ },
90
+ "medium": {
91
+ "compact": {
92
+ "$value": "{spacing.layout.03}",
93
+ "$type": "dimension"
94
+ },
95
+ "regular": {
96
+ "$value": "{spacing.layout.04}",
97
+ "$type": "dimension"
98
+ },
99
+ "spacious": {
100
+ "$value": "{spacing.layout.05}",
101
+ "$type": "dimension"
102
+ }
103
+ },
104
+ "large": {
105
+ "compact": {
106
+ "$value": "{spacing.layout.04}",
107
+ "$type": "dimension"
108
+ },
109
+ "regular": {
110
+ "$value": "{spacing.layout.05}",
111
+ "$type": "dimension"
112
+ },
113
+ "spacious": {
114
+ "$value": "{grid.margin.large.regular}",
115
+ "$type": "dimension"
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "guideline": {
3
+ "01": {
4
+ "$value": "{color.greenCool.10}",
5
+ "$type": "color"
6
+ },
7
+ "02": {
8
+ "$value": "{color.greenCool.20}",
9
+ "$type": "color"
10
+ },
11
+ "03": {
12
+ "$value": "{color.greenCool.40}",
13
+ "$type": "color"
14
+ },
15
+ "04": {
16
+ "$value": "{color.greenCool.60}",
17
+ "$type": "color"
18
+ },
19
+ "05": {
20
+ "$value": "{color.greenCool.80}",
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
+ }
@@ -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,14 @@
1
+ {
2
+ "iconography": {
3
+ "fontFamily": {
4
+ "solid": {
5
+ "$value": "Font Awesome 6 Free",
6
+ "$type": "string"
7
+ },
8
+ "brand": {
9
+ "$value": "Font Awesome 6 Brands",
10
+ "$type": "string"
11
+ }
12
+ }
13
+ }
14
+ }
@@ -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
+ "read": {
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
+ "read": {
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
+ "read": {
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
+ "read": {
138
+ "$value": "{theme.hover.bright}",
139
+ "$type": "color"
140
+ },
141
+ "surface": {
142
+ "$value": "{theme.hover.dim}",
143
+ "$type": "color"
144
+ }
145
+ },
146
+ "contrast": {
147
+ "read": {
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
+ "read": {
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
+ "read": {
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
+ "read": {
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
+ "read": {
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
+ "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
+ }
@@ -3,14 +3,31 @@
3
3
  "collections": {
4
4
  "Core": {
5
5
  "modes": {
6
- "Default": ["color.json", "spacing.json", "typography.json", "surface.json"]
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
+ "base14.json"
19
+ ]
7
20
  }
8
21
  },
9
22
  "Themes": {
10
23
  "modes": {
11
- "Light": ["themes/light.json"],
12
- "Dark": ["themes/dark.json"]
24
+ "Light": [
25
+ "light.json"
26
+ ],
27
+ "Dark": [
28
+ "dark.json"
29
+ ]
13
30
  }
14
31
  }
15
32
  }
16
- }
33
+ }