@govbr-ds/tokens 4.0.0-next.10 → 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 (50) 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 +222 -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 +176 -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 +6135 -5859
  11. package/dist/scss/themes/dark.scss +69 -80
  12. package/dist/scss/themes/light.scss +69 -80
  13. package/dist/scss/tokens.scss +222 -213
  14. package/dist/tokens-studio/tokens.json +4435 -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/{variables/component → component}/manifest.json +2 -4
  19. package/src/figma/{variables/component → component}/text.json +1 -1
  20. package/src/figma/dark.json +352 -0
  21. package/src/figma/{variables/elevation.json → elevation.json} +29 -27
  22. package/src/figma/{variables/grid.json → grid.json} +6 -6
  23. package/src/figma/{variables/guideline → guideline}/componente.json +1 -1
  24. package/src/figma/{variables/guideline → guideline}/fundamento.json +1 -1
  25. package/src/figma/{variables/guideline → guideline}/geral.json +1 -1
  26. package/src/figma/guideline/manifest.json +12 -0
  27. package/src/figma/{variables/guideline → guideline}/padrao.json +1 -1
  28. package/src/figma/{variables/iconography.json → iconography.json} +3 -3
  29. package/src/figma/light.json +352 -0
  30. package/src/figma/{variables/manifest.json → manifest.json} +4 -10
  31. package/src/figma/{variables/motion.json → motion.json} +1 -1
  32. package/src/figma/pattern/form.json +16 -0
  33. package/src/figma/{variables/pattern → pattern}/manifest.json +2 -4
  34. package/src/figma/pattern/skeleton.json +52 -0
  35. package/src/figma/{variables/spacing.json → spacing.json} +1 -1
  36. package/src/figma/state.json +232 -0
  37. package/src/figma/{variables/surface.json → surface.json} +20 -24
  38. package/src/figma/{variables/typography.json → typography.json} +7 -19
  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/src/figma/tokens.json +0 -4465
  46. package/src/figma/variables/dark.json +0 -314
  47. package/src/figma/variables/guideline/manifest.json +0 -21
  48. package/src/figma/variables/light.json +0 -314
  49. package/src/figma/variables/pattern/skeleton.json +0 -52
  50. package/src/figma/variables/state.json +0 -238
@@ -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
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "text": {
3
+ "color": {
4
+ "$type": "color",
5
+ "$value": "{color.read.main.base}"
6
+ },
7
+ "fontFamily": {
8
+ "$type": "fontFamilies",
9
+ "$value": "{typography.fontFamily.primary}"
10
+ },
11
+ "fontWeight": {
12
+ "$type": "fontWeights",
13
+ "$value": "{typography.fontWeight.semiBold}"
14
+ },
15
+ "lineHeights": {
16
+ "$type": "lineHeights",
17
+ "$value": "{typography.lineHeight.medium}"
18
+ },
19
+ "size": {
20
+ "label": {
21
+ "small": {
22
+ "$type": "fontSizes",
23
+ "$value": "{typography.fontSize.down.02}"
24
+ },
25
+ "medium": {
26
+ "$type": "fontSizes",
27
+ "$value": "{typography.fontSize.down.01}"
28
+ },
29
+ "large": {
30
+ "$type": "fontSizes",
31
+ "$value": "{typography.fontSize.default}"
32
+ }
33
+ },
34
+ "title": {
35
+ "small": {
36
+ "$type": "fontSizes",
37
+ "$value": "{typography.fontSize.default}"
38
+ },
39
+ "medium": {
40
+ "$type": "fontSizes",
41
+ "$value": "{typography.fontSize.up.01}"
42
+ },
43
+ "large": {
44
+ "$type": "fontSizes",
45
+ "$value": "{typography.fontSize.up.02}"
46
+ }
47
+ }
48
+ }
49
+ },
50
+ "button": {
51
+ "iconStyle": {
52
+ "$type": "typography",
53
+ "$value": "{iconography.iconStyle.solid}"
54
+ },
55
+ "rounder": {
56
+ "$type": "borderRadius",
57
+ "$value": "{surface.rounder.full}"
58
+ },
59
+ "gap": {
60
+ "$type": "spacing",
61
+ "$value": "{spacing.layout.01}"
62
+ },
63
+ "dimension": {
64
+ "icon": {
65
+ "$type": "dimension",
66
+ "$value": "20"
67
+ }
68
+ },
69
+ "primary": {
70
+ "color": {
71
+ "read": {
72
+ "$type": "color",
73
+ "$value": "{state.interactive.color.read.main}"
74
+ },
75
+ "surface": {
76
+ "$type": "color",
77
+ "$value": "{state.interactive.color.main}"
78
+ }
79
+ }
80
+ },
81
+ "secondary": {
82
+ "color": {
83
+ "read": {
84
+ "$type": "color",
85
+ "$value": "{state.interactive.color.main}"
86
+ }
87
+ },
88
+ "borderStyle": {
89
+ "$type": "border",
90
+ "$value": {
91
+ "color": "{state.interactive.color.main}",
92
+ "width": "{surface.borderWidth.small}",
93
+ "style": "solid"
94
+ }
95
+ }
96
+ },
97
+ "tertiary": {
98
+ "color": {
99
+ "read": {
100
+ "$type": "color",
101
+ "$value": "{state.interactive.color.main}"
102
+ }
103
+ }
104
+ },
105
+ "density": {
106
+ "regular": {
107
+ "$type": "spacing",
108
+ "$value": "{spacing.layout.01}"
109
+ },
110
+ "compact": {
111
+ "$type": "spacing",
112
+ "$value": "{spacing.adjust.01}"
113
+ },
114
+ "spaced": {
115
+ "$type": "spacing",
116
+ "$value": "{spacing.layout.02}"
117
+ }
118
+ },
119
+ "padding": {
120
+ "textual": {
121
+ "vertical": {
122
+ "$type": "spacing",
123
+ "$value": "{button.density.regular}"
124
+ },
125
+ "horizontal": {
126
+ "$type": "spacing",
127
+ "$value": "{spacing.layout.02}"
128
+ }
129
+ },
130
+ "iconic": {
131
+ "vertical": {
132
+ "$type": "spacing",
133
+ "$value": "{button.density.regular}"
134
+ },
135
+ "horizontal": {
136
+ "$type": "spacing",
137
+ "$value": "{button.density.regular}"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }