@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,112 @@
1
+ {
2
+ "motion": {
3
+ "easing": {
4
+ "ease": {
5
+ "$value": "cubic-bezier(0.25, 0.1, 0.25, 1)",
6
+ "$type": "string"
7
+ },
8
+ "easeIn": {
9
+ "$value": "cubic-bezier(0.42, 0, 1, 1)",
10
+ "$type": "string"
11
+ },
12
+ "easeOut": {
13
+ "$value": "cubic-bezier(0, 0, 0.58, 1)",
14
+ "$type": "string"
15
+ },
16
+ "easeInOut": {
17
+ "$value": "cubic-bezier(0.42, 0, 0.58, 1)",
18
+ "$type": "string"
19
+ },
20
+ "linear": {
21
+ "$value": "cubic-bezier(0, 0, 1, 1)",
22
+ "$type": "string"
23
+ },
24
+ "bounceOut": {
25
+ "$value": "cubic-bezier(0.25, 2.1, 0.5, 0)",
26
+ "$type": "string"
27
+ },
28
+ "elasticOut": {
29
+ "$value": "cubic-bezier(0.7, 3.3, 0.3, 0)",
30
+ "$type": "string"
31
+ }
32
+ },
33
+ "duration": {
34
+ "none": {
35
+ "$value": "0",
36
+ "$type": "duration"
37
+ },
38
+ "fast": {
39
+ "01": {
40
+ "$value": "50",
41
+ "$type": "duration"
42
+ },
43
+ "02": {
44
+ "$value": "100",
45
+ "$type": "duration"
46
+ },
47
+ "03": {
48
+ "$value": "150",
49
+ "$type": "duration"
50
+ },
51
+ "04": {
52
+ "$value": "200",
53
+ "$type": "duration"
54
+ }
55
+ },
56
+ "moderate": {
57
+ "01": {
58
+ "$value": "250",
59
+ "$type": "duration"
60
+ },
61
+ "02": {
62
+ "$value": "300",
63
+ "$type": "duration"
64
+ },
65
+ "03": {
66
+ "$value": "350",
67
+ "$type": "duration"
68
+ },
69
+ "04": {
70
+ "$value": "400",
71
+ "$type": "duration"
72
+ }
73
+ },
74
+ "slow": {
75
+ "01": {
76
+ "$value": "450",
77
+ "$type": "duration"
78
+ },
79
+ "02": {
80
+ "$value": "500",
81
+ "$type": "duration"
82
+ },
83
+ "03": {
84
+ "$value": "550",
85
+ "$type": "duration"
86
+ },
87
+ "04": {
88
+ "$value": "600",
89
+ "$type": "duration"
90
+ }
91
+ },
92
+ "verySlow": {
93
+ "01": {
94
+ "$value": "700",
95
+ "$type": "duration"
96
+ },
97
+ "02": {
98
+ "$value": "800",
99
+ "$type": "duration"
100
+ },
101
+ "03": {
102
+ "$value": "900",
103
+ "$type": "duration"
104
+ },
105
+ "04": {
106
+ "$value": "1000",
107
+ "$type": "duration"
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "Design Tokens DS",
3
+ "collections": {
4
+ "Pattern": {
5
+ "modes": {
6
+ "Default": [
7
+ "skeleton.json"
8
+ ]
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "skeleton": {
3
+ "color": {
4
+ "background": {
5
+ "$value": "{theme.surface.main.alternative}",
6
+ "$type": "color"
7
+ },
8
+ "foreground": {
9
+ "$value": "{theme.surface.main.base}",
10
+ "$type": "color"
11
+ }
12
+ },
13
+ "rounder": {
14
+ "shape": {
15
+ "$value": "{surface.rounder.01}",
16
+ "$type": "number"
17
+ },
18
+ "text": {
19
+ "$value": "{surface.rounder.full}",
20
+ "$type": "number"
21
+ }
22
+ },
23
+ "height": {
24
+ "01": {
25
+ "$value": "{typography.fontSize.up.08}",
26
+ "$type": "dimension"
27
+ },
28
+ "02": {
29
+ "$value": "{typography.fontSize.up.06}",
30
+ "$type": "dimension"
31
+ },
32
+ "03": {
33
+ "$value": "{typography.fontSize.up.04}",
34
+ "$type": "dimension"
35
+ },
36
+ "04": {
37
+ "$value": "{typography.fontSize.default}",
38
+ "$type": "dimension"
39
+ }
40
+ },
41
+ "motion": {
42
+ "easing": {
43
+ "$value": "{motion.easing.linear}",
44
+ "$type": "string"
45
+ },
46
+ "duration": {
47
+ "$value": "{motion.duration.slow.04}",
48
+ "$type": "number"
49
+ }
50
+ }
51
+ }
52
+ }
@@ -24,6 +24,26 @@
24
24
  "05": {
25
25
  "$value": "40",
26
26
  "$type": "number"
27
+ },
28
+ "06": {
29
+ "$value": "48",
30
+ "$type": "number"
31
+ },
32
+ "07": {
33
+ "$value": "56",
34
+ "$type": "number"
35
+ },
36
+ "08": {
37
+ "$value": "64",
38
+ "$type": "number"
39
+ },
40
+ "09": {
41
+ "$value": "72",
42
+ "$type": "number"
43
+ },
44
+ "10": {
45
+ "$value": "80",
46
+ "$type": "number"
27
47
  }
28
48
  },
29
49
  "adjust": {
@@ -49,4 +69,4 @@
49
69
  }
50
70
  }
51
71
  }
52
- }
72
+ }
@@ -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": "dimension"
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
+ }
@@ -6,19 +6,19 @@
6
6
  "$type": "number"
7
7
  },
8
8
  "01": {
9
- "$value": "1px",
9
+ "$value": "1",
10
10
  "$type": "number"
11
11
  },
12
12
  "02": {
13
- "$value": "2px",
13
+ "$value": "2",
14
14
  "$type": "number"
15
15
  },
16
16
  "03": {
17
- "$value": "3px",
17
+ "$value": "3",
18
18
  "$type": "number"
19
19
  },
20
20
  "04": {
21
- "$value": "4px",
21
+ "$value": "4",
22
22
  "$type": "number"
23
23
  }
24
24
  },
@@ -28,19 +28,19 @@
28
28
  "$type": "number"
29
29
  },
30
30
  "01": {
31
- "$value": "4px",
31
+ "$value": "4",
32
32
  "$type": "number"
33
33
  },
34
34
  "02": {
35
- "$value": "8px",
35
+ "$value": "8",
36
36
  "$type": "number"
37
37
  },
38
38
  "03": {
39
- "$value": "12px",
39
+ "$value": "12",
40
40
  "$type": "number"
41
41
  },
42
42
  "full": {
43
- "$value": "999999em",
43
+ "$value": "999999",
44
44
  "$type": "number"
45
45
  }
46
46
  },
@@ -50,53 +50,55 @@
50
50
  "$type": "number"
51
51
  },
52
52
  "01": {
53
- "$value": "0.1",
53
+ "$value": "10",
54
54
  "$type": "number"
55
55
  },
56
56
  "02": {
57
- "$value": "0.2",
57
+ "$value": "20",
58
58
  "$type": "number"
59
59
  },
60
60
  "03": {
61
- "$value": "0.3",
61
+ "$value": "30",
62
62
  "$type": "number"
63
63
  },
64
64
  "04": {
65
- "$value": "0.4",
65
+ "$value": "40",
66
66
  "$type": "number"
67
67
  },
68
68
  "05": {
69
- "$value": "0.5",
69
+ "$value": "50",
70
70
  "$type": "number"
71
71
  },
72
72
  "06": {
73
- "$value": "0.6",
73
+ "$value": "60",
74
74
  "$type": "number"
75
75
  },
76
76
  "07": {
77
- "$value": "0.7",
77
+ "$value": "70",
78
78
  "$type": "number"
79
79
  },
80
80
  "08": {
81
- "$value": "0.8",
81
+ "$value": "80",
82
82
  "$type": "number"
83
83
  },
84
84
  "09": {
85
- "$value": "0.9",
85
+ "$value": "90",
86
86
  "$type": "number"
87
87
  },
88
88
  "full": {
89
- "$value": "1",
89
+ "$value": "100",
90
90
  "$type": "number"
91
91
  }
92
- }
93
- },
94
- "scrim": {
95
- "color": {
96
- "$value": "{elevation.color}"
97
92
  },
98
- "opacity": {
99
- "$value": "{surface.opacity.04}"
93
+ "overlay": {
94
+ "solid": {
95
+ "$value": "#00000099",
96
+ "$type": "color"
97
+ },
98
+ "read": {
99
+ "$value": "{color.pure.0}",
100
+ "$type": "color"
101
+ }
100
102
  }
101
103
  }
102
- }
104
+ }