@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
@@ -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,20 +5,16 @@
5
5
  "$value": "0",
6
6
  "$type": "number"
7
7
  },
8
- "01": {
9
- "$value": "1px",
10
- "$type": "number"
11
- },
12
- "02": {
13
- "$value": "2px",
8
+ "small": {
9
+ "$value": "1",
14
10
  "$type": "number"
15
11
  },
16
- "03": {
17
- "$value": "3px",
12
+ "medium": {
13
+ "$value": "2",
18
14
  "$type": "number"
19
15
  },
20
- "04": {
21
- "$value": "4px",
16
+ "large": {
17
+ "$value": "4",
22
18
  "$type": "number"
23
19
  }
24
20
  },
@@ -27,20 +23,20 @@
27
23
  "$value": "0",
28
24
  "$type": "number"
29
25
  },
30
- "01": {
31
- "$value": "4px",
26
+ "full": {
27
+ "$value": "999999",
32
28
  "$type": "number"
33
29
  },
34
- "02": {
35
- "$value": "8px",
30
+ "small": {
31
+ "$value": "4",
36
32
  "$type": "number"
37
33
  },
38
- "03": {
39
- "$value": "12px",
34
+ "medium": {
35
+ "$value": "8",
40
36
  "$type": "number"
41
37
  },
42
- "full": {
43
- "$value": "999999em",
38
+ "large": {
39
+ "$value": "12",
44
40
  "$type": "number"
45
41
  }
46
42
  },
@@ -49,54 +45,56 @@
49
45
  "$value": "0",
50
46
  "$type": "number"
51
47
  },
52
- "01": {
53
- "$value": "0.1",
48
+ "10": {
49
+ "$value": "10",
54
50
  "$type": "number"
55
51
  },
56
- "02": {
57
- "$value": "0.2",
52
+ "20": {
53
+ "$value": "20",
58
54
  "$type": "number"
59
55
  },
60
- "03": {
61
- "$value": "0.3",
56
+ "30": {
57
+ "$value": "30",
62
58
  "$type": "number"
63
59
  },
64
- "04": {
65
- "$value": "0.4",
60
+ "40": {
61
+ "$value": "40",
66
62
  "$type": "number"
67
63
  },
68
- "05": {
69
- "$value": "0.5",
64
+ "50": {
65
+ "$value": "50",
70
66
  "$type": "number"
71
67
  },
72
- "06": {
73
- "$value": "0.6",
68
+ "60": {
69
+ "$value": "60",
74
70
  "$type": "number"
75
71
  },
76
- "07": {
77
- "$value": "0.7",
72
+ "70": {
73
+ "$value": "70",
78
74
  "$type": "number"
79
75
  },
80
- "08": {
81
- "$value": "0.8",
76
+ "80": {
77
+ "$value": "80",
82
78
  "$type": "number"
83
79
  },
84
- "09": {
85
- "$value": "0.9",
80
+ "90": {
81
+ "$value": "90",
86
82
  "$type": "number"
87
83
  },
88
84
  "full": {
89
- "$value": "1",
85
+ "$value": "100",
90
86
  "$type": "number"
91
87
  }
92
- }
93
- },
94
- "scrim": {
95
- "color": {
96
- "$value": "{elevation.color}"
97
88
  },
98
- "opacity": {
99
- "$value": "{surface.opacity.04}"
89
+ "overlay": {
90
+ "solid": {
91
+ "$value": "#00000099",
92
+ "$type": "color"
93
+ },
94
+ "read": {
95
+ "$value": "{color.pure.0}",
96
+ "$type": "color"
97
+ }
100
98
  }
101
99
  }
102
100
  }
@@ -0,0 +1,114 @@
1
+ {
2
+ "typography": {
3
+ "fontFamily": {
4
+ "primary": {
5
+ "$value": "Noto Sans",
6
+ "$type": "string"
7
+ },
8
+ "secondary": {
9
+ "$value": "Noto Sans Mono",
10
+ "$type": "string"
11
+ },
12
+ "tertiary": {
13
+ "$value": "Noto Serif",
14
+ "$type": "string"
15
+ }
16
+ },
17
+ "fontWeight": {
18
+ "thin": {
19
+ "$value": "thin",
20
+ "$type": "string"
21
+ },
22
+ "extraLight": {
23
+ "$value": "extraLight",
24
+ "$type": "string"
25
+ },
26
+ "light": {
27
+ "$value": "light",
28
+ "$type": "string"
29
+ },
30
+ "regular": {
31
+ "$value": "regular",
32
+ "$type": "string"
33
+ },
34
+ "medium": {
35
+ "$value": "medium",
36
+ "$type": "string"
37
+ },
38
+ "semiBold": {
39
+ "$value": "semiBold",
40
+ "$type": "string"
41
+ },
42
+ "bold": {
43
+ "$value": "bold",
44
+ "$type": "string"
45
+ },
46
+ "extraBold": {
47
+ "$value": "extraBold",
48
+ "$type": "string"
49
+ },
50
+ "black": {
51
+ "$value": "black",
52
+ "$type": "string"
53
+ }
54
+ },
55
+ "fontSize": {
56
+ "default": {
57
+ "$value": "16",
58
+ "$type": "number"
59
+ },
60
+ "up": {
61
+ "01": {
62
+ "$value": "18",
63
+ "$type": "number"
64
+ },
65
+ "02": {
66
+ "$value": "20.25",
67
+ "$type": "number"
68
+ },
69
+ "03": {
70
+ "$value": "22.78",
71
+ "$type": "number"
72
+ },
73
+ "04": {
74
+ "$value": "25.63",
75
+ "$type": "number"
76
+ },
77
+ "05": {
78
+ "$value": "28.83",
79
+ "$type": "number"
80
+ },
81
+ "06": {
82
+ "$value": "32.44",
83
+ "$type": "number"
84
+ },
85
+ "07": {
86
+ "$value": "36.49",
87
+ "$type": "number"
88
+ },
89
+ "08": {
90
+ "$value": "41.05",
91
+ "$type": "number"
92
+ }
93
+ },
94
+ "down": {
95
+ "01": {
96
+ "$value": "14.22",
97
+ "$type": "number"
98
+ },
99
+ "02": {
100
+ "$value": "12.64",
101
+ "$type": "number"
102
+ },
103
+ "03": {
104
+ "$value": "11.24",
105
+ "$type": "number"
106
+ },
107
+ "04": {
108
+ "$value": "9.99",
109
+ "$type": "number"
110
+ }
111
+ }
112
+ }
113
+ }
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
+ }