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

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 (54) hide show
  1. package/README.md +82 -1
  2. package/dist/css/themes/dark.css +69 -80
  3. package/dist/css/themes/light.css +69 -80
  4. package/dist/css/tokens.css +303 -213
  5. package/dist/js/themes/dark.js +77 -80
  6. package/dist/js/themes/light.js +77 -80
  7. package/dist/js/tokens.js +257 -157
  8. package/dist/json/themes/dark.json +1338 -1538
  9. package/dist/json/themes/light.json +1338 -1538
  10. package/dist/json/tokens.json +8788 -5829
  11. package/dist/scss/themes/dark.scss +69 -80
  12. package/dist/scss/themes/light.scss +69 -80
  13. package/dist/scss/tokens.scss +303 -213
  14. package/dist/tokens-studio/tokens.json +5033 -0
  15. package/package.json +12 -8
  16. package/src/figma/{variables/base14.json → base14.json} +2 -6
  17. package/src/figma/{variables/color.json → color.json} +1 -1
  18. package/src/figma/component/base14.json +64 -0
  19. package/src/figma/component/icon.json +202 -0
  20. package/src/figma/component/manifest.json +18 -0
  21. package/src/figma/{variables/component → component}/text.json +21 -11
  22. package/src/figma/dark.json +352 -0
  23. package/src/figma/{variables/elevation.json → elevation.json} +29 -27
  24. package/src/figma/{variables/grid.json → grid.json} +6 -6
  25. package/src/figma/{variables/guideline → guideline}/componente.json +1 -1
  26. package/src/figma/{variables/guideline → guideline}/fundamento.json +1 -1
  27. package/src/figma/{variables/guideline → guideline}/geral.json +1 -1
  28. package/src/figma/guideline/manifest.json +12 -0
  29. package/src/figma/{variables/guideline → guideline}/padrao.json +1 -1
  30. package/src/figma/iconography.json +348 -0
  31. package/src/figma/light.json +352 -0
  32. package/src/figma/{variables/manifest.json → manifest.json} +9 -0
  33. package/src/figma/{variables/motion.json → motion.json} +1 -1
  34. package/src/figma/pattern/form.json +16 -0
  35. package/src/figma/{variables/pattern → pattern}/manifest.json +2 -4
  36. package/src/figma/pattern/skeleton.json +52 -0
  37. package/src/figma/{variables/spacing.json → spacing.json} +1 -1
  38. package/src/figma/state.json +232 -0
  39. package/src/figma/{variables/surface.json → surface.json} +20 -24
  40. package/src/figma/{variables/typography.json → typography.json} +7 -19
  41. package/src/temp/component.json +406 -0
  42. package/src/temp/core.json +3851 -0
  43. package/src/temp/dark.json +352 -0
  44. package/src/temp/light.json +352 -0
  45. package/src/temp/pattern.json +70 -0
  46. package/src/tokens.json +5033 -0
  47. package/src/figma/tokens.json +0 -4465
  48. package/src/figma/variables/component/manifest.json +0 -12
  49. package/src/figma/variables/dark.json +0 -314
  50. package/src/figma/variables/guideline/manifest.json +0 -21
  51. package/src/figma/variables/iconography.json +0 -14
  52. package/src/figma/variables/light.json +0 -314
  53. package/src/figma/variables/pattern/skeleton.json +0 -52
  54. package/src/figma/variables/state.json +0 -238
@@ -109,4 +109,4 @@
109
109
  }
110
110
  }
111
111
  }
112
- }
112
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "form": {
3
+ "borderWidth": {
4
+ "fieldset": {
5
+ "$value": "{surface.borderWidth.none}",
6
+ "$type": "number"
7
+ }
8
+ },
9
+ "spacing": {
10
+ "fieldset": {
11
+ "$value": "{spacing.layout.05}",
12
+ "$type": "number"
13
+ }
14
+ }
15
+ }
16
+ }
@@ -3,10 +3,8 @@
3
3
  "collections": {
4
4
  "Pattern": {
5
5
  "modes": {
6
- "Default": [
7
- "skeleton.json"
8
- ]
6
+ "Default": ["skeleton.json", "form.json"]
9
7
  }
10
8
  }
11
9
  }
12
- }
10
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "skeleton": {
3
+ "color": {
4
+ "background": {
5
+ "$value": "{color.surface.main.alternative}",
6
+ "$type": "color"
7
+ },
8
+ "foreground": {
9
+ "$value": "{color.surface.main.base}",
10
+ "$type": "color"
11
+ }
12
+ },
13
+ "rounder": {
14
+ "surface": {
15
+ "$value": "{surface.rounder.small}",
16
+ "$type": "number"
17
+ },
18
+ "read": {
19
+ "$value": "{surface.rounder.full}",
20
+ "$type": "number"
21
+ }
22
+ },
23
+ "height": {
24
+ "default": {
25
+ "$value": "{typography.fontSize.default}",
26
+ "$type": "dimension"
27
+ },
28
+ "title": {
29
+ "small": {
30
+ "$value": "{typography.fontSize.up.04}",
31
+ "$type": "dimension"
32
+ },
33
+ "medium": {
34
+ "$value": "{typography.fontSize.up.06}",
35
+ "$type": "dimension"
36
+ },
37
+ "large": {
38
+ "$value": "{typography.fontSize.up.08}",
39
+ "$type": "dimension"
40
+ }
41
+ }
42
+ },
43
+ "easing": {
44
+ "$value": "{motion.easing.linear}",
45
+ "$type": "string"
46
+ },
47
+ "duration": {
48
+ "$value": "{motion.duration.slow.04}",
49
+ "$type": "number"
50
+ }
51
+ }
52
+ }
@@ -69,4 +69,4 @@
69
69
  }
70
70
  }
71
71
  }
72
- }
72
+ }
@@ -0,0 +1,232 @@
1
+ {
2
+ "state": {
3
+ "target": {
4
+ "minimum": {
5
+ "$value": "24",
6
+ "$type": "number"
7
+ },
8
+ "enhanced": {
9
+ "$value": "44",
10
+ "$type": "number"
11
+ }
12
+ },
13
+ "disabled": {
14
+ "opacity": {
15
+ "$value": "{surface.opacity.30}",
16
+ "$type": "number"
17
+ }
18
+ },
19
+ "hover": {
20
+ "opacity": {
21
+ "bright": {
22
+ "$value": "{surface.opacity.50}",
23
+ "$type": "number"
24
+ },
25
+ "dim": {
26
+ "$value": "{surface.opacity.60}",
27
+ "$type": "number"
28
+ }
29
+ },
30
+ "highlight": {
31
+ "size": {
32
+ "$value": "5%",
33
+ "$type": "dimension"
34
+ },
35
+ "easing": {
36
+ "$value": "{motion.easing.elasticOut}",
37
+ "$type": "string"
38
+ },
39
+ "duration": {
40
+ "$value": "{motion.duration.fast.04}",
41
+ "$type": "duration"
42
+ }
43
+ },
44
+ "easing": {
45
+ "in": {
46
+ "$value": "{motion.easing.easeIn}",
47
+ "$type": "string"
48
+ },
49
+ "out": {
50
+ "$value": "{motion.easing.easeIn}",
51
+ "$type": "string"
52
+ }
53
+ },
54
+ "duration": {
55
+ "in": {
56
+ "$value": "{motion.duration.fast.04}",
57
+ "$type": "duration"
58
+ },
59
+ "out": {
60
+ "$value": "{motion.duration.fast.02}",
61
+ "$type": "duration"
62
+ }
63
+ }
64
+ },
65
+ "pressed": {
66
+ "shadow": {
67
+ "offset": {
68
+ "$value": "{elevation.offset.xsmall}",
69
+ "$type": "number"
70
+ },
71
+ "blur": {
72
+ "$value": "{elevation.blur.medium}",
73
+ "$type": "dimension"
74
+ },
75
+ "opacity": {
76
+ "$value": "{surface.opacity.50}",
77
+ "$type": "number"
78
+ }
79
+ },
80
+ "easing": {
81
+ "in": {
82
+ "$value": "{motion.easing.easeInOut}",
83
+ "$type": "string"
84
+ },
85
+ "out": {
86
+ "$value": "{motion.easing.easeOut}",
87
+ "$type": "string"
88
+ }
89
+ },
90
+ "duration": {
91
+ "in": {
92
+ "$value": "{motion.duration.fast.02}",
93
+ "$type": "duration"
94
+ },
95
+ "out": {
96
+ "$value": "{motion.duration.fast.01}",
97
+ "$type": "duration"
98
+ }
99
+ }
100
+ },
101
+ "focus": {
102
+ "spacing": {
103
+ "$value": "{spacing.adjust.01}",
104
+ "$type": "number"
105
+ },
106
+ "borderWidth": {
107
+ "high": {
108
+ "$value": "{surface.borderWidth.large}",
109
+ "$type": "number"
110
+ },
111
+ "low": {
112
+ "$value": "{surface.borderWidth.medium}",
113
+ "$type": "number"
114
+ }
115
+ },
116
+ "easing": {
117
+ "in": {
118
+ "$value": "{motion.easing.elasticOut}",
119
+ "$type": "string"
120
+ },
121
+ "out": {
122
+ "$value": "{motion.easing.easeOut}",
123
+ "$type": "string"
124
+ }
125
+ },
126
+ "duration": {
127
+ "in": {
128
+ "$value": "{motion.duration.fast.04}",
129
+ "$type": "duration"
130
+ },
131
+ "out": {
132
+ "$value": "{motion.duration.fast.02}",
133
+ "$type": "duration"
134
+ }
135
+ }
136
+ },
137
+ "active": {
138
+ "borderWidth": {
139
+ "$value": "{surface.borderWidth.large}",
140
+ "$type": "number"
141
+ },
142
+ "easing": {
143
+ "in": {
144
+ "$value": "{motion.easing.easeOut}",
145
+ "$type": "string"
146
+ },
147
+ "out": {
148
+ "$value": "{motion.easing.easeIn}",
149
+ "$type": "string"
150
+ }
151
+ },
152
+ "duration": {
153
+ "in": {
154
+ "$value": "{motion.duration.fast.03}",
155
+ "$type": "duration"
156
+ },
157
+ "out": {
158
+ "$value": "{motion.duration.fast.02}",
159
+ "$type": "duration"
160
+ }
161
+ }
162
+ },
163
+ "selected": {
164
+ "easing": {
165
+ "in": {
166
+ "$value": "{motion.easing.easeOut}",
167
+ "$type": "string"
168
+ },
169
+ "out": {
170
+ "$value": "{motion.easing.easeIn}",
171
+ "$type": "string"
172
+ }
173
+ },
174
+ "duration": {
175
+ "in": {
176
+ "$value": "{motion.duration.fast.03}",
177
+ "$type": "duration"
178
+ },
179
+ "out": {
180
+ "$value": "{motion.duration.fast.02}",
181
+ "$type": "duration"
182
+ }
183
+ }
184
+ },
185
+ "grabbing": {
186
+ "borderWidth": {
187
+ "$value": "{surface.borderWidth.medium}",
188
+ "$type": "number"
189
+ },
190
+ "rotation": {
191
+ "$value": "5",
192
+ "$type": "number"
193
+ },
194
+ "opacity": {
195
+ "$value": "{surface.opacity.70}",
196
+ "$type": "number"
197
+ }
198
+ },
199
+ "dropzone": {
200
+ "borderWidth": {
201
+ "$value": "{surface.borderWidth.small}",
202
+ "$type": "number"
203
+ }
204
+ },
205
+ "dropzoneActive": {
206
+ "opacity": {
207
+ "$value": "{surface.opacity.30}",
208
+ "$type": "number"
209
+ }
210
+ },
211
+ "on": {
212
+ "easing": {
213
+ "$value": "{motion.easing.bounceOut}",
214
+ "$type": "string"
215
+ },
216
+ "duration": {
217
+ "$value": "{motion.duration.fast.04}",
218
+ "$type": "duration"
219
+ }
220
+ },
221
+ "off": {
222
+ "easing": {
223
+ "$value": "{motion.easing.bounceOut}",
224
+ "$type": "string"
225
+ },
226
+ "duration": {
227
+ "$value": "{motion.duration.fast.04}",
228
+ "$type": "duration"
229
+ }
230
+ }
231
+ }
232
+ }
@@ -5,19 +5,15 @@
5
5
  "$value": "0",
6
6
  "$type": "number"
7
7
  },
8
- "01": {
8
+ "small": {
9
9
  "$value": "1",
10
10
  "$type": "number"
11
11
  },
12
- "02": {
12
+ "medium": {
13
13
  "$value": "2",
14
14
  "$type": "number"
15
15
  },
16
- "03": {
17
- "$value": "3",
18
- "$type": "number"
19
- },
20
- "04": {
16
+ "large": {
21
17
  "$value": "4",
22
18
  "$type": "number"
23
19
  }
@@ -27,21 +23,21 @@
27
23
  "$value": "0",
28
24
  "$type": "number"
29
25
  },
30
- "01": {
26
+ "full": {
27
+ "$value": "999999",
28
+ "$type": "number"
29
+ },
30
+ "small": {
31
31
  "$value": "4",
32
32
  "$type": "number"
33
33
  },
34
- "02": {
34
+ "medium": {
35
35
  "$value": "8",
36
36
  "$type": "number"
37
37
  },
38
- "03": {
38
+ "large": {
39
39
  "$value": "12",
40
40
  "$type": "number"
41
- },
42
- "full": {
43
- "$value": "999999",
44
- "$type": "number"
45
41
  }
46
42
  },
47
43
  "opacity": {
@@ -49,39 +45,39 @@
49
45
  "$value": "0",
50
46
  "$type": "number"
51
47
  },
52
- "01": {
48
+ "10": {
53
49
  "$value": "10",
54
50
  "$type": "number"
55
51
  },
56
- "02": {
52
+ "20": {
57
53
  "$value": "20",
58
54
  "$type": "number"
59
55
  },
60
- "03": {
56
+ "30": {
61
57
  "$value": "30",
62
58
  "$type": "number"
63
59
  },
64
- "04": {
60
+ "40": {
65
61
  "$value": "40",
66
62
  "$type": "number"
67
63
  },
68
- "05": {
64
+ "50": {
69
65
  "$value": "50",
70
66
  "$type": "number"
71
67
  },
72
- "06": {
68
+ "60": {
73
69
  "$value": "60",
74
70
  "$type": "number"
75
71
  },
76
- "07": {
72
+ "70": {
77
73
  "$value": "70",
78
74
  "$type": "number"
79
75
  },
80
- "08": {
76
+ "80": {
81
77
  "$value": "80",
82
78
  "$type": "number"
83
79
  },
84
- "09": {
80
+ "90": {
85
81
  "$value": "90",
86
82
  "$type": "number"
87
83
  },
@@ -101,4 +97,4 @@
101
97
  }
102
98
  }
103
99
  }
104
- }
100
+ }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "typography": {
3
3
  "fontFamily": {
4
- "sans": {
4
+ "primary": {
5
5
  "$value": "Noto Sans",
6
6
  "$type": "string"
7
7
  },
8
- "serif": {
9
- "$value": "Noto Serif",
8
+ "secondary": {
9
+ "$value": "Noto Sans Mono",
10
10
  "$type": "string"
11
11
  },
12
- "mono": {
13
- "$value": "Noto Sans Mono",
12
+ "tertiary": {
13
+ "$value": "Noto Serif",
14
14
  "$type": "string"
15
15
  }
16
16
  },
@@ -53,20 +53,8 @@
53
53
  }
54
54
  },
55
55
  "fontSize": {
56
- "base16": {
57
- "$value": "16",
58
- "$type": "number"
59
- },
60
- "base14": {
61
- "$value": "14",
62
- "$type": "number"
63
- },
64
- "base": {
65
- "$value": "{typography.fontSize.base16}",
66
- "$type": "number"
67
- },
68
56
  "default": {
69
- "$value": "{typography.fontSize.base}",
57
+ "$value": "16",
70
58
  "$type": "number"
71
59
  },
72
60
  "up": {
@@ -123,4 +111,4 @@
123
111
  }
124
112
  }
125
113
  }
126
- }
114
+ }