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

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 (53) hide show
  1. package/README.md +69 -106
  2. package/dist/css/themes/dark.css +69 -52
  3. package/dist/css/themes/light.css +69 -52
  4. package/dist/css/tokens.css +635 -574
  5. package/dist/js/themes/dark.js +77 -52
  6. package/dist/js/themes/light.js +77 -52
  7. package/dist/js/tokens.js +633 -562
  8. package/dist/json/themes/dark.json +1597 -856
  9. package/dist/json/themes/light.json +1597 -856
  10. package/dist/json/tokens.json +10591 -5481
  11. package/dist/scss/themes/dark.scss +69 -0
  12. package/dist/scss/themes/light.scss +69 -0
  13. package/dist/scss/tokens.scss +730 -0
  14. package/dist/tokens-studio/tokens.json +4435 -0
  15. package/package.json +15 -12
  16. package/src/figma/base14.json +62 -0
  17. package/src/figma/{variables/color.json → color.json} +1 -1
  18. package/src/figma/component/manifest.json +10 -0
  19. package/src/figma/component/text.json +46 -0
  20. package/src/figma/dark.json +352 -0
  21. package/src/figma/elevation.json +234 -0
  22. package/src/figma/grid.json +120 -0
  23. package/src/figma/guideline/componente.json +24 -0
  24. package/src/figma/guideline/fundamento.json +24 -0
  25. package/src/figma/guideline/geral.json +20 -0
  26. package/src/figma/guideline/manifest.json +12 -0
  27. package/src/figma/guideline/padrao.json +24 -0
  28. package/src/figma/iconography.json +14 -0
  29. package/src/figma/light.json +352 -0
  30. package/src/figma/manifest.json +27 -0
  31. package/src/figma/motion.json +112 -0
  32. package/src/figma/pattern/form.json +16 -0
  33. package/src/figma/pattern/manifest.json +10 -0
  34. package/src/figma/pattern/skeleton.json +52 -0
  35. package/src/figma/{variables/spacing.json → spacing.json} +20 -0
  36. package/src/figma/state.json +232 -0
  37. package/src/figma/{variables/surface.json → surface.json} +42 -44
  38. package/src/figma/typography.json +114 -0
  39. package/src/temp/component.json +142 -0
  40. package/src/temp/core.json +3517 -0
  41. package/src/temp/dark.json +352 -0
  42. package/src/temp/light.json +352 -0
  43. package/src/temp/pattern.json +70 -0
  44. package/src/tokens.json +4435 -0
  45. package/dist/scss/_tokens.scss +0 -674
  46. package/dist/scss/themes/_dark.scss +0 -55
  47. package/dist/scss/themes/_light.scss +0 -55
  48. package/src/figma/tokens.json +0 -3587
  49. package/src/figma/variables/manifest.json +0 -16
  50. package/src/figma/variables/typography.json +0 -148
  51. package/src/style-dictionary/themes/dark.json +0 -3313
  52. package/src/style-dictionary/themes/light.json +0 -3313
  53. package/src/style-dictionary/tokens.json +0 -3045
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@govbr-ds/tokens",
3
- "version": "4.0.0-next.1",
3
+ "version": "4.0.0-next.11",
4
+ "type": "module",
4
5
  "description": "Tokens do Padrão Digital de Governo",
5
6
  "keywords": [
6
7
  "design system",
@@ -23,18 +24,20 @@
23
24
  "src"
24
25
  ],
25
26
  "scripts": {
26
- "build": "run-s clear transform compile",
27
- "clear": "rimraf ./dist",
28
- "compile": "node build-tokens.js",
29
- "transform": "run-p transform:global transform:light transform:dark",
30
- "transform:dark": "token-transformer src/figma/tokens.json src/style-dictionary/themes/dark.json global,dark --resolveReferences false",
31
- "transform:global": "token-transformer src/figma/tokens.json src/style-dictionary/tokens.json global --resolveReferences false",
32
- "transform:light": "token-transformer src/figma/tokens.json src/style-dictionary/themes/light.json global,light --resolveReferences false"
27
+ "build": "run-s clear split-tokens compile copy-tokens",
28
+ "clear": "run-p clear:*",
29
+ "clear:dist": "rimraf ./dist",
30
+ "clear:temp": "rimraf ./src/temp",
31
+ "compile": "node scripts/build-tokens.js --themes='light, dark'",
32
+ "split-tokens": "node scripts/split-tokens.js src/tokens.json src/temp/",
33
+ "start": "run-s split-tokens compile copy-tokens",
34
+ "copy-tokens": "cpy 'src/tokens.json' 'dist/tokens-studio/' --flat"
33
35
  },
34
36
  "dependencies": {
35
- "@tokens-studio/sd-transforms": "^0.12.2",
36
- "style-dictionary": "^3.9.2",
37
- "style-dictionary-utils": "^2.2.1",
38
- "token-transformer": "^0.0.33"
37
+ "@tokens-studio/sd-transforms": "^1.2.9",
38
+ "style-dictionary": "^4.2.0"
39
+ },
40
+ "devDependencies": {
41
+ "cpy-cli": "^5.0.0"
39
42
  }
40
43
  }
@@ -0,0 +1,62 @@
1
+ {
2
+ "typography": {
3
+ "fontSize": {
4
+ "default": {
5
+ "$value": "14",
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": {
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "Design Tokens DS",
3
+ "collections": {
4
+ "Component": {
5
+ "modes": {
6
+ "Default": ["text.json"]
7
+ }
8
+ }
9
+ }
10
+ }
@@ -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,352 @@
1
+ {
2
+ "elevation": {
3
+ "opacity": {
4
+ "shadow": {
5
+ "$value": "{elevation.opacity.dim}",
6
+ "$type": "number"
7
+ }
8
+ },
9
+ "color": {
10
+ "shadow": {
11
+ "$value": "#00000099",
12
+ "$type": "color"
13
+ }
14
+ }
15
+ },
16
+ "color": {
17
+ "read": {
18
+ "main": {
19
+ "base": {
20
+ "$value": "{color.gray.1}",
21
+ "$type": "color"
22
+ },
23
+ "alternative": {
24
+ "$value": "{color.gray.20}",
25
+ "$type": "color"
26
+ }
27
+ },
28
+ "contrast": {
29
+ "base": {
30
+ "$value": "{color.read.main.base}",
31
+ "$type": "color"
32
+ },
33
+ "alternative": {
34
+ "$value": "{color.read.main.alternative}",
35
+ "$type": "color"
36
+ }
37
+ }
38
+ },
39
+ "surface": {
40
+ "main": {
41
+ "base": {
42
+ "$value": "{color.grayCool.80}",
43
+ "$type": "color"
44
+ },
45
+ "alternative": {
46
+ "$value": "{color.grayCool.90}",
47
+ "$type": "color"
48
+ }
49
+ },
50
+ "contrast": {
51
+ "base": {
52
+ "$value": "{color.surface.main.base}",
53
+ "$type": "color"
54
+ },
55
+ "alternative": {
56
+ "$value": "{color.surface.main.alternative}",
57
+ "$type": "color"
58
+ }
59
+ }
60
+ },
61
+ "border": {
62
+ "base": {
63
+ "$value": "{color.gray.70}",
64
+ "$type": "color"
65
+ },
66
+ "alternative": {
67
+ "$value": "{color.gray.50}",
68
+ "$type": "color"
69
+ }
70
+ }
71
+ },
72
+ "state": {
73
+ "interactive": {
74
+ "color": {
75
+ "main": {
76
+ "$value": "{color.blueWarmVivid.30}",
77
+ "$type": "color"
78
+ },
79
+ "contrast": {
80
+ "$value": "{state.interactive.color.main}",
81
+ "$type": "color"
82
+ },
83
+ "read": {
84
+ "main": {
85
+ "$value": "{color.pure.100}",
86
+ "$type": "color"
87
+ },
88
+ "contrast": {
89
+ "$value": "{state.interactive.color.read.main}",
90
+ "$type": "color"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "cta": {
96
+ "color": {
97
+ "main": {
98
+ "$value": "{color.greenCoolVivid.30}",
99
+ "$type": "color"
100
+ },
101
+ "contrast": {
102
+ "$value": "{state.cta.color.main}",
103
+ "$type": "color"
104
+ },
105
+ "read": {
106
+ "main": {
107
+ "$value": "{color.pure.100}",
108
+ "$type": "color"
109
+ },
110
+ "contrast": {
111
+ "$value": "{state.cta.color.read.main}",
112
+ "$type": "color"
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "disabled": {
118
+ "color": {
119
+ "main": {
120
+ "$value": "{color.grayCool.30}",
121
+ "$type": "color"
122
+ },
123
+ "contrast": {
124
+ "$value": "{state.disabled.color.main}",
125
+ "$type": "color"
126
+ }
127
+ }
128
+ },
129
+ "visited": {
130
+ "color": {
131
+ "main": {
132
+ "$value": "{color.blueWarm.30}",
133
+ "$type": "color"
134
+ },
135
+ "contrast": {
136
+ "$value": "{state.visited.color.main}",
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.dim}",
154
+ "$type": "color"
155
+ },
156
+ "surface": {
157
+ "$value": "{state.hover.color.bright}",
158
+ "$type": "color"
159
+ }
160
+ },
161
+ "contrast": {
162
+ "read": {
163
+ "$value": "{state.hover.color.main.read}",
164
+ "$type": "color"
165
+ },
166
+ "surface": {
167
+ "$value": "{state.hover.color.main.surface}",
168
+ "$type": "color"
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "focus": {
174
+ "color": {
175
+ "main": {
176
+ "$value": "{color.orangeVivid.30}",
177
+ "$type": "color"
178
+ },
179
+ "contrast": {
180
+ "$value": "{state.focus.color.main}",
181
+ "$type": "color"
182
+ }
183
+ }
184
+ },
185
+ "active": {
186
+ "color": {
187
+ "main": {
188
+ "$value": "{color.blueWarmVivid.40}",
189
+ "$type": "color"
190
+ },
191
+ "contrast": {
192
+ "$value": "{state.active.color.main}",
193
+ "$type": "color"
194
+ },
195
+ "read": {
196
+ "main": {
197
+ "$value": "{color.pure.100}",
198
+ "$type": "color"
199
+ },
200
+ "contrast": {
201
+ "$value": "{state.active.color.read.main}",
202
+ "$type": "color"
203
+ }
204
+ }
205
+ }
206
+ },
207
+ "selected": {
208
+ "color": {
209
+ "main": {
210
+ "$value": "{color.blueWarmVivid.20}",
211
+ "$type": "color"
212
+ },
213
+ "contrast": {
214
+ "$value": "{state.selected.color.main}",
215
+ "$type": "color"
216
+ },
217
+ "read": {
218
+ "main": {
219
+ "$value": "{color.pure.100}",
220
+ "$type": "color"
221
+ },
222
+ "contrast": {
223
+ "$value": "{state.selected.color.read.main}",
224
+ "$type": "color"
225
+ }
226
+ }
227
+ }
228
+ },
229
+ "grabbing": {
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.60}",
269
+ "$type": "color"
270
+ },
271
+ "contrast": {
272
+ "$value": "{state.on.color.main}",
273
+ "$type": "color"
274
+ },
275
+ "read": {
276
+ "main": {
277
+ "$value": "{color.pure.0}",
278
+ "$type": "color"
279
+ },
280
+ "contrast": {
281
+ "$value": "{state.on.color.read.main}",
282
+ "$type": "color"
283
+ }
284
+ }
285
+ }
286
+ },
287
+ "off": {
288
+ "color": {
289
+ "main": {
290
+ "$value": "{color.gray.60}",
291
+ "$type": "color"
292
+ },
293
+ "contrast": {
294
+ "$value": "{state.off.color.main}",
295
+ "$type": "color"
296
+ },
297
+ "read": {
298
+ "main": {
299
+ "$value": "{color.pure.0}",
300
+ "$type": "color"
301
+ },
302
+ "contrast": {
303
+ "$value": "{state.off.color.read.main}",
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
+ }