@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,238 @@
1
+ {
2
+ "state": {
3
+ "disabled": {
4
+ "opacity": {
5
+ "$value": "{surface.opacity.03}",
6
+ "$type": "number"
7
+ }
8
+ },
9
+ "hover": {
10
+ "opacity": {
11
+ "bright": {
12
+ "$value": "{surface.opacity.05}",
13
+ "$type": "number"
14
+ },
15
+ "dim": {
16
+ "$value": "{surface.opacity.06}",
17
+ "$type": "number"
18
+ }
19
+ },
20
+ "highlight": {
21
+ "size": {
22
+ "$value": "5%",
23
+ "$type": "dimension"
24
+ },
25
+ "motion": {
26
+ "easing": {
27
+ "$value": "{motion.easing.elasticOut}",
28
+ "$type": "string"
29
+ },
30
+ "duration": {
31
+ "$value": "{motion.duration.fast.04}",
32
+ "$type": "duration"
33
+ }
34
+ }
35
+ },
36
+ "motion": {
37
+ "in": {
38
+ "easing": {
39
+ "$value": "{motion.easing.easeIn}",
40
+ "$type": "string"
41
+ },
42
+ "duration": {
43
+ "$value": "{motion.duration.fast.04}",
44
+ "$type": "duration"
45
+ }
46
+ },
47
+ "out": {
48
+ "easing": {
49
+ "$value": "{motion.easing.easeIn}",
50
+ "$type": "string"
51
+ },
52
+ "duration": {
53
+ "$value": "{motion.duration.fast.02}",
54
+ "$type": "duration"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "pressed": {
60
+ "shadow": {
61
+ "offset": {
62
+ "$value": "{elevation.offset.01}",
63
+ "$type": "number"
64
+ },
65
+ "blur": {
66
+ "$value": "{elevation.blur.03}",
67
+ "$type": "number"
68
+ },
69
+ "opacity": {
70
+ "$value": "{surface.opacity.05}",
71
+ "$type": "number"
72
+ }
73
+ },
74
+ "motion": {
75
+ "in": {
76
+ "easing": {
77
+ "$value": "{motion.easing.easeInOut}",
78
+ "$type": "string"
79
+ },
80
+ "duration": {
81
+ "$value": "{motion.duration.fast.02}",
82
+ "$type": "duration"
83
+ }
84
+ },
85
+ "out": {
86
+ "easing": {
87
+ "$value": "{motion.easing.easeOut}",
88
+ "$type": "string"
89
+ },
90
+ "duration": {
91
+ "$value": "{motion.duration.fast.01}",
92
+ "$type": "duration"
93
+ }
94
+ }
95
+ }
96
+ },
97
+ "focus": {
98
+ "spacing": {
99
+ "$value": "{spacing.adjust.01}",
100
+ "$type": "number"
101
+ },
102
+ "borderWidth": {
103
+ "high": {
104
+ "$value": "{surface.borderWidth.03}",
105
+ "$type": "number"
106
+ },
107
+ "low": {
108
+ "$value": "{surface.borderWidth.02}",
109
+ "$type": "number"
110
+ }
111
+ },
112
+ "motion": {
113
+ "in": {
114
+ "easing": {
115
+ "$value": "{motion.easing.elasticOut}",
116
+ "$type": "string"
117
+ },
118
+ "duration": {
119
+ "$value": "{motion.duration.fast.04}",
120
+ "$type": "duration"
121
+ }
122
+ },
123
+ "out": {
124
+ "easing": {
125
+ "$value": "{motion.easing.easeOut}",
126
+ "$type": "string"
127
+ },
128
+ "duration": {
129
+ "$value": "{motion.duration.fast.02}",
130
+ "$type": "duration"
131
+ }
132
+ }
133
+ }
134
+ },
135
+ "active": {
136
+ "borderWidth": {
137
+ "$value": "{surface.borderWidth.04}",
138
+ "$type": "number"
139
+ },
140
+ "motion": {
141
+ "in": {
142
+ "easing": {
143
+ "$value": "{motion.easing.easeOut}",
144
+ "$type": "string"
145
+ },
146
+ "duration": {
147
+ "$value": "{motion.duration.fast.03}",
148
+ "$type": "duration"
149
+ }
150
+ },
151
+ "out": {
152
+ "easing": {
153
+ "$value": "{motion.easing.easeIn}",
154
+ "$type": "string"
155
+ },
156
+ "duration": {
157
+ "$value": "{motion.duration.fast.02}",
158
+ "$type": "duration"
159
+ }
160
+ }
161
+ }
162
+ },
163
+ "selected": {
164
+ "motion": {
165
+ "in": {
166
+ "easing": {
167
+ "$value": "{motion.easing.easeOut}",
168
+ "$type": "string"
169
+ },
170
+ "duration": {
171
+ "$value": "{motion.duration.fast.03}",
172
+ "$type": "duration"
173
+ }
174
+ },
175
+ "out": {
176
+ "easing": {
177
+ "$value": "{motion.easing.easeIn}",
178
+ "$type": "string"
179
+ },
180
+ "duration": {
181
+ "$value": "{motion.duration.fast.02}",
182
+ "$type": "duration"
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "grabbing": {
188
+ "borderWidth": {
189
+ "$value": "{surface.borderWidth.02}",
190
+ "$type": "number"
191
+ },
192
+ "rotation": {
193
+ "$value": "5",
194
+ "$type": "number"
195
+ },
196
+ "opacity": {
197
+ "$value": "{surface.opacity.07}",
198
+ "$type": "number"
199
+ }
200
+ },
201
+ "dropzone": {
202
+ "borderWidth": {
203
+ "$value": "{surface.borderWidth.01}",
204
+ "$type": "number"
205
+ }
206
+ },
207
+ "dropzoneActive": {
208
+ "opacity": {
209
+ "$value": "{surface.opacity.03}",
210
+ "$type": "number"
211
+ }
212
+ },
213
+ "on": {
214
+ "motion": {
215
+ "easing": {
216
+ "$value": "{motion.easing.bounceOut}",
217
+ "$type": "string"
218
+ },
219
+ "duration": {
220
+ "$value": "{motion.duration.fast.04}",
221
+ "$type": "duration"
222
+ }
223
+ }
224
+ },
225
+ "off": {
226
+ "motion": {
227
+ "easing": {
228
+ "$value": "{motion.easing.bounceOut}",
229
+ "$type": "string"
230
+ },
231
+ "duration": {
232
+ "$value": "{motion.duration.fast.04}",
233
+ "$type": "duration"
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
@@ -92,11 +92,11 @@
92
92
  },
93
93
  "overlay": {
94
94
  "focus": {
95
- "$value": "rgba({elevation.color},{surface.opacity.04})",
95
+ "$value": "#00000066",
96
96
  "$type": "color"
97
97
  },
98
98
  "readability": {
99
- "$value": "linear-gradient (0deg, {elevation.color} 0%, rgba({elevation.color},{surface.opacity.04}) 100%)",
99
+ "$value": "linear-gradient(0deg, {elevation.color} 0%, rgba({elevation.color},{surface.opacity.04}) 100%)",
100
100
  "$type": "color"
101
101
  }
102
102
  }
@@ -20,16 +20,6 @@
20
20
  "$value": "Rawline",
21
21
  "$type": "string"
22
22
  }
23
- },
24
- "fontAwesome": {
25
- "free": {
26
- "$value": "Font Awesome 6 Free",
27
- "$type": "string"
28
- },
29
- "brands": {
30
- "$value": "Font Awesome 6 Brands",
31
- "$type": "string"
32
- }
33
23
  }
34
24
  },
35
25
  "fontWeight": {
@@ -71,14 +61,18 @@
71
61
  }
72
62
  },
73
63
  "fontSize": {
74
- "default": {
64
+ "base16": {
75
65
  "$value": "16",
76
66
  "$type": "number"
77
67
  },
78
- "mobile": {
68
+ "base14": {
79
69
  "$value": "14",
80
70
  "$type": "number"
81
71
  },
72
+ "base": {
73
+ "$value": "{typography.fontSize.base16}",
74
+ "$type": "number"
75
+ },
82
76
  "up": {
83
77
  "01": {
84
78
  "$value": "18",