@govbr-ds/tokens 4.0.0-next.11 → 4.0.0-next.13
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.
- package/dist/css/component/button.css +57 -0
- package/dist/css/component/icon.css +35 -0
- package/dist/css/component/text.css +17 -0
- package/dist/css/themes/dark.css +10 -10
- package/dist/css/themes/light.css +10 -10
- package/dist/css/tokens.css +111 -25
- package/dist/js/component/button.js +56 -0
- package/dist/js/component/icon.js +33 -0
- package/dist/js/component/text.js +15 -0
- package/dist/js/themes/dark.js +10 -10
- package/dist/js/themes/light.js +10 -10
- package/dist/js/tokens.js +101 -15
- package/dist/json/component/button.json +1447 -0
- package/dist/json/component/icon.json +911 -0
- package/dist/json/component/text.json +455 -0
- package/dist/json/themes/dark.json +170 -170
- package/dist/json/themes/light.json +168 -168
- package/dist/json/tokens.json +3055 -215
- package/dist/scss/component/button.scss +55 -0
- package/dist/scss/component/icon.scss +33 -0
- package/dist/scss/component/text.scss +15 -0
- package/dist/scss/themes/dark.scss +10 -10
- package/dist/scss/themes/light.scss +10 -10
- package/dist/scss/tokens.scss +111 -25
- package/dist/tokens-studio/tokens.json +853 -79
- package/package.json +1 -1
- package/src/figma/component/base14.json +64 -0
- package/src/figma/component/button.json +266 -0
- package/src/figma/component/icon.json +142 -0
- package/src/figma/component/manifest.json +12 -2
- package/src/figma/component/text.json +22 -12
- package/src/figma/dark.json +2 -2
- package/src/figma/iconography.json +335 -1
- package/src/figma/light.json +2 -2
- package/src/figma/manifest.json +19 -4
- package/src/figma/state.json +30 -2
- package/src/temp/component.json +479 -67
- package/src/temp/core.json +371 -9
- package/src/temp/dark.json +1 -1
- package/src/temp/light.json +1 -1
- package/src/tokens.json +853 -79
package/package.json
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"icon": {
|
|
3
|
+
"size": {
|
|
4
|
+
"max": {
|
|
5
|
+
"default": {
|
|
6
|
+
"$type": "dimension",
|
|
7
|
+
"$value": "17.5"
|
|
8
|
+
},
|
|
9
|
+
"up": {
|
|
10
|
+
"01": {
|
|
11
|
+
"$type": "dimension",
|
|
12
|
+
"$value": "19.69"
|
|
13
|
+
},
|
|
14
|
+
"02": {
|
|
15
|
+
"$type": "dimension",
|
|
16
|
+
"$value": "22.16"
|
|
17
|
+
},
|
|
18
|
+
"03": {
|
|
19
|
+
"$type": "dimension",
|
|
20
|
+
"$value": "24.92"
|
|
21
|
+
},
|
|
22
|
+
"04": {
|
|
23
|
+
"$type": "dimension",
|
|
24
|
+
"$value": "28.03"
|
|
25
|
+
},
|
|
26
|
+
"05": {
|
|
27
|
+
"$type": "dimension",
|
|
28
|
+
"$value": "31.53"
|
|
29
|
+
},
|
|
30
|
+
"06": {
|
|
31
|
+
"$type": "dimension",
|
|
32
|
+
"$value": "35.47"
|
|
33
|
+
},
|
|
34
|
+
"07": {
|
|
35
|
+
"$type": "dimension",
|
|
36
|
+
"$value": "39.92"
|
|
37
|
+
},
|
|
38
|
+
"08": {
|
|
39
|
+
"$type": "dimension",
|
|
40
|
+
"$value": "44.9"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"down": {
|
|
44
|
+
"01": {
|
|
45
|
+
"$type": "dimension",
|
|
46
|
+
"$value": "15.56"
|
|
47
|
+
},
|
|
48
|
+
"02": {
|
|
49
|
+
"$type": "dimension",
|
|
50
|
+
"$value": "13.82"
|
|
51
|
+
},
|
|
52
|
+
"03": {
|
|
53
|
+
"$type": "dimension",
|
|
54
|
+
"$value": "12.28"
|
|
55
|
+
},
|
|
56
|
+
"04": {
|
|
57
|
+
"$type": "dimension",
|
|
58
|
+
"$value": "10.92"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
{
|
|
2
|
+
"button": {
|
|
3
|
+
"rounder": {
|
|
4
|
+
"$type": "number",
|
|
5
|
+
"$value": "{surface.rounder.full}"
|
|
6
|
+
},
|
|
7
|
+
"spacing": {
|
|
8
|
+
"gap": {
|
|
9
|
+
"$type": "number",
|
|
10
|
+
"$value": "{spacing.layout.01}"
|
|
11
|
+
},
|
|
12
|
+
"padding": {
|
|
13
|
+
"$type": "number",
|
|
14
|
+
"$value": "{spacing.layout.02}"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"density": {
|
|
18
|
+
"regular": {
|
|
19
|
+
"$type": "number",
|
|
20
|
+
"$value": "{spacing.layout.01}"
|
|
21
|
+
},
|
|
22
|
+
"compact": {
|
|
23
|
+
"$type": "number",
|
|
24
|
+
"$value": "{spacing.adjust.01}"
|
|
25
|
+
},
|
|
26
|
+
"spacious": {
|
|
27
|
+
"$type": "number",
|
|
28
|
+
"$value": "{spacing.adjust.02}"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"color": {
|
|
32
|
+
"read": {
|
|
33
|
+
"main": {
|
|
34
|
+
"primary": {
|
|
35
|
+
"$type": "color",
|
|
36
|
+
"$value": "{state.interactive.color.read.main}"
|
|
37
|
+
},
|
|
38
|
+
"secondary": {
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$value": "{state.interactive.color.main}"
|
|
41
|
+
},
|
|
42
|
+
"tertiary": {
|
|
43
|
+
"$type": "color",
|
|
44
|
+
"$value": "{state.interactive.color.main}"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"contrast": {
|
|
48
|
+
"primary": {
|
|
49
|
+
"$type": "color",
|
|
50
|
+
"$value": "{state.interactive.color.read.contrast}"
|
|
51
|
+
},
|
|
52
|
+
"secondary": {
|
|
53
|
+
"$type": "color",
|
|
54
|
+
"$value": "{state.interactive.color.contrast}"
|
|
55
|
+
},
|
|
56
|
+
"tertiary": {
|
|
57
|
+
"$type": "color",
|
|
58
|
+
"$value": "{state.interactive.color.contrast}"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"surface": {
|
|
63
|
+
"main": {
|
|
64
|
+
"primary": {
|
|
65
|
+
"$type": "color",
|
|
66
|
+
"$value": "{state.interactive.color.main}"
|
|
67
|
+
},
|
|
68
|
+
"secondary": {
|
|
69
|
+
"$type": "color",
|
|
70
|
+
"$value": "transparent"
|
|
71
|
+
},
|
|
72
|
+
"tertiary": {
|
|
73
|
+
"$type": "color",
|
|
74
|
+
"$value": "transparent"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"contrast": {
|
|
78
|
+
"primary": {
|
|
79
|
+
"$type": "color",
|
|
80
|
+
"$value": "{state.interactive.color.contrast}"
|
|
81
|
+
},
|
|
82
|
+
"secondary": {
|
|
83
|
+
"$type": "color",
|
|
84
|
+
"$value": "transparent"
|
|
85
|
+
},
|
|
86
|
+
"tertiary": {
|
|
87
|
+
"$type": "color",
|
|
88
|
+
"$value": "transparent"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"hover": {
|
|
94
|
+
"color": {
|
|
95
|
+
"main": {
|
|
96
|
+
"surface": {
|
|
97
|
+
"$type": "color",
|
|
98
|
+
"$value": "{state.hover.color.main.surface}"
|
|
99
|
+
},
|
|
100
|
+
"read": {
|
|
101
|
+
"$type": "color",
|
|
102
|
+
"$value": "{state.hover.color.main.read}"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"contrast": {
|
|
106
|
+
"surface": {
|
|
107
|
+
"$type": "color",
|
|
108
|
+
"$value": "{state.hover.color.contrast.surface}"
|
|
109
|
+
},
|
|
110
|
+
"read": {
|
|
111
|
+
"$type": "color",
|
|
112
|
+
"$value": "{state.hover.color.contrast.read}"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"easing": {
|
|
117
|
+
"in": {
|
|
118
|
+
"$type": "string",
|
|
119
|
+
"$value": "{state.hover.easing.in}"
|
|
120
|
+
},
|
|
121
|
+
"out": {
|
|
122
|
+
"$type": "string",
|
|
123
|
+
"$value": "{state.hover.easing.out}"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"duration": {
|
|
127
|
+
"in": {
|
|
128
|
+
"$type": "duration",
|
|
129
|
+
"$value": "{state.hover.duration.in}"
|
|
130
|
+
},
|
|
131
|
+
"out": {
|
|
132
|
+
"$type": "duration",
|
|
133
|
+
"$value": "{state.hover.duration.out}"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"pressed": {
|
|
138
|
+
"easing": {
|
|
139
|
+
"in": {
|
|
140
|
+
"$type": "string",
|
|
141
|
+
"$value": "{state.pressed.easing.in}"
|
|
142
|
+
},
|
|
143
|
+
"out": {
|
|
144
|
+
"$type": "string",
|
|
145
|
+
"$value": "{state.pressed.easing.out}"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"duration": {
|
|
149
|
+
"in": {
|
|
150
|
+
"$type": "duration",
|
|
151
|
+
"$value": "{state.pressed.duration.in}"
|
|
152
|
+
},
|
|
153
|
+
"out": {
|
|
154
|
+
"$type": "duration",
|
|
155
|
+
"$value": "{state.pressed.duration.out}"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"disabled": {
|
|
160
|
+
"color": {
|
|
161
|
+
"main": {
|
|
162
|
+
"$type": "color",
|
|
163
|
+
"$value": "{state.disabled.color.main}"
|
|
164
|
+
},
|
|
165
|
+
"contrast": {
|
|
166
|
+
"$type": "color",
|
|
167
|
+
"$value": "{state.disabled.color.contrast}"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"opacity": {
|
|
171
|
+
"$type": "number",
|
|
172
|
+
"$value": "{state.disabled.opacity}"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"active": {
|
|
176
|
+
"color": {
|
|
177
|
+
"main": {
|
|
178
|
+
"$type": "color",
|
|
179
|
+
"$value": "{state.active.color.main}"
|
|
180
|
+
},
|
|
181
|
+
"contrast": {
|
|
182
|
+
"$type": "color",
|
|
183
|
+
"$value": "{state.active.color.contrast}"
|
|
184
|
+
},
|
|
185
|
+
"read": {
|
|
186
|
+
"main": {
|
|
187
|
+
"$type": "color",
|
|
188
|
+
"$value": "{state.active.color.read.main}"
|
|
189
|
+
},
|
|
190
|
+
"contrast": {
|
|
191
|
+
"$type": "color",
|
|
192
|
+
"$value": "{state.active.color.read.contrast}"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"easing": {
|
|
197
|
+
"in": {
|
|
198
|
+
"$type": "string",
|
|
199
|
+
"$value": "{state.active.easing.in}"
|
|
200
|
+
},
|
|
201
|
+
"out": {
|
|
202
|
+
"$type": "string",
|
|
203
|
+
"$value": "{state.active.easing.out}"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"duration": {
|
|
207
|
+
"in": {
|
|
208
|
+
"$type": "duration",
|
|
209
|
+
"$value": "{state.active.duration.in}"
|
|
210
|
+
},
|
|
211
|
+
"out": {
|
|
212
|
+
"$type": "duration",
|
|
213
|
+
"$value": "{state.active.duration.out}"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"cta": {
|
|
218
|
+
"color": {
|
|
219
|
+
"main": {
|
|
220
|
+
"$type": "color",
|
|
221
|
+
"$value": "{state.cta.color.main}"
|
|
222
|
+
},
|
|
223
|
+
"contrast": {
|
|
224
|
+
"$type": "color",
|
|
225
|
+
"$value": "{state.cta.color.contrast}"
|
|
226
|
+
},
|
|
227
|
+
"read": {
|
|
228
|
+
"main": {
|
|
229
|
+
"$type": "color",
|
|
230
|
+
"$value": "{state.cta.color.read.main}"
|
|
231
|
+
},
|
|
232
|
+
"contrast": {
|
|
233
|
+
"$type": "color",
|
|
234
|
+
"$value": "{state.cta.color.read.contrast}"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"focus": {
|
|
240
|
+
"spacing": {
|
|
241
|
+
"$type": "number",
|
|
242
|
+
"$value": "{state.focus.spacing}"
|
|
243
|
+
},
|
|
244
|
+
"easing": {
|
|
245
|
+
"in": {
|
|
246
|
+
"$type": "string",
|
|
247
|
+
"$value": "{state.focus.easing.in}"
|
|
248
|
+
},
|
|
249
|
+
"out": {
|
|
250
|
+
"$type": "string",
|
|
251
|
+
"$value": "{state.focus.easing.out}"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"duration": {
|
|
255
|
+
"in": {
|
|
256
|
+
"$type": "duration",
|
|
257
|
+
"$value": "{state.focus.duration.in}"
|
|
258
|
+
},
|
|
259
|
+
"out": {
|
|
260
|
+
"$type": "duration",
|
|
261
|
+
"$value": "{state.focus.duration.out}"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"icon": {
|
|
3
|
+
"color": {
|
|
4
|
+
"main": {
|
|
5
|
+
"base": {
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"$value": "{color.read.main.base}"
|
|
8
|
+
},
|
|
9
|
+
"alternative": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "{color.read.main.alternative}"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"contrast": {
|
|
15
|
+
"base": {
|
|
16
|
+
"$type": "color",
|
|
17
|
+
"$value": "{color.read.contrast.base}"
|
|
18
|
+
},
|
|
19
|
+
"alternative": {
|
|
20
|
+
"$type": "color",
|
|
21
|
+
"$value": "{color.read.contrast.alternative}"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"fontSize": {
|
|
26
|
+
"default": {
|
|
27
|
+
"$type": "number",
|
|
28
|
+
"$value": "{typography.fontSize.default}"
|
|
29
|
+
},
|
|
30
|
+
"up": {
|
|
31
|
+
"01": {
|
|
32
|
+
"$type": "number",
|
|
33
|
+
"$value": "{typography.fontSize.up.01}"
|
|
34
|
+
},
|
|
35
|
+
"02": {
|
|
36
|
+
"$type": "number",
|
|
37
|
+
"$value": "{typography.fontSize.up.02}"
|
|
38
|
+
},
|
|
39
|
+
"03": {
|
|
40
|
+
"$type": "number",
|
|
41
|
+
"$value": "{typography.fontSize.up.03}"
|
|
42
|
+
},
|
|
43
|
+
"04": {
|
|
44
|
+
"$type": "number",
|
|
45
|
+
"$value": "{typography.fontSize.up.04}"
|
|
46
|
+
},
|
|
47
|
+
"05": {
|
|
48
|
+
"$type": "number",
|
|
49
|
+
"$value": "{typography.fontSize.up.05}"
|
|
50
|
+
},
|
|
51
|
+
"06": {
|
|
52
|
+
"$type": "number",
|
|
53
|
+
"$value": "{typography.fontSize.up.06}"
|
|
54
|
+
},
|
|
55
|
+
"07": {
|
|
56
|
+
"$type": "number",
|
|
57
|
+
"$value": "{typography.fontSize.up.07}"
|
|
58
|
+
},
|
|
59
|
+
"08": {
|
|
60
|
+
"$type": "number",
|
|
61
|
+
"$value": "{typography.fontSize.up.08}"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"down": {
|
|
65
|
+
"01": {
|
|
66
|
+
"$type": "number",
|
|
67
|
+
"$value": "{typography.fontSize.down.01}"
|
|
68
|
+
},
|
|
69
|
+
"02": {
|
|
70
|
+
"$type": "number",
|
|
71
|
+
"$value": "{typography.fontSize.down.02}"
|
|
72
|
+
},
|
|
73
|
+
"03": {
|
|
74
|
+
"$type": "number",
|
|
75
|
+
"$value": "{typography.fontSize.down.03}"
|
|
76
|
+
},
|
|
77
|
+
"04": {
|
|
78
|
+
"$type": "number",
|
|
79
|
+
"$value": "{typography.fontSize.down.04}"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"size": {
|
|
84
|
+
"default": {
|
|
85
|
+
"$type": "dimension",
|
|
86
|
+
"$value": "20"
|
|
87
|
+
},
|
|
88
|
+
"up": {
|
|
89
|
+
"01": {
|
|
90
|
+
"$type": "dimension",
|
|
91
|
+
"$value": "22.5"
|
|
92
|
+
},
|
|
93
|
+
"02": {
|
|
94
|
+
"$type": "dimension",
|
|
95
|
+
"$value": "25.32"
|
|
96
|
+
},
|
|
97
|
+
"03": {
|
|
98
|
+
"$type": "dimension",
|
|
99
|
+
"$value": "28.48"
|
|
100
|
+
},
|
|
101
|
+
"04": {
|
|
102
|
+
"$type": "dimension",
|
|
103
|
+
"$value": "32.04"
|
|
104
|
+
},
|
|
105
|
+
"05": {
|
|
106
|
+
"$type": "dimension",
|
|
107
|
+
"$value": "36.04"
|
|
108
|
+
},
|
|
109
|
+
"06": {
|
|
110
|
+
"$type": "dimension",
|
|
111
|
+
"$value": "40.54"
|
|
112
|
+
},
|
|
113
|
+
"07": {
|
|
114
|
+
"$type": "dimension",
|
|
115
|
+
"$value": "45.62"
|
|
116
|
+
},
|
|
117
|
+
"08": {
|
|
118
|
+
"$type": "dimension",
|
|
119
|
+
"$value": "51.32"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"down": {
|
|
123
|
+
"01": {
|
|
124
|
+
"$type": "dimension",
|
|
125
|
+
"$value": "17.78"
|
|
126
|
+
},
|
|
127
|
+
"02": {
|
|
128
|
+
"$type": "dimension",
|
|
129
|
+
"$value": "15.8"
|
|
130
|
+
},
|
|
131
|
+
"03": {
|
|
132
|
+
"$type": "dimension",
|
|
133
|
+
"$value": "14.04"
|
|
134
|
+
},
|
|
135
|
+
"04": {
|
|
136
|
+
"$type": "dimension",
|
|
137
|
+
"$value": "12.48"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -3,8 +3,18 @@
|
|
|
3
3
|
"collections": {
|
|
4
4
|
"Component": {
|
|
5
5
|
"modes": {
|
|
6
|
-
"
|
|
6
|
+
"Base16": [
|
|
7
|
+
"text.json",
|
|
8
|
+
"icon.json",
|
|
9
|
+
"button.json"
|
|
10
|
+
],
|
|
11
|
+
"Base14": [
|
|
12
|
+
"text.json",
|
|
13
|
+
"icon.json",
|
|
14
|
+
"button.json",
|
|
15
|
+
"base14.json"
|
|
16
|
+
]
|
|
7
17
|
}
|
|
8
18
|
}
|
|
9
19
|
}
|
|
10
|
-
}
|
|
20
|
+
}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"text": {
|
|
3
3
|
"color": {
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
"main": {
|
|
5
|
+
"base": {
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"$value": "{color.read.main.base}"
|
|
8
|
+
},
|
|
9
|
+
"alternative": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "{color.read.main.alternative}"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"contrast": {
|
|
15
|
+
"base": {
|
|
16
|
+
"$type": "color",
|
|
17
|
+
"$value": "{color.read.contrast.base}"
|
|
18
|
+
},
|
|
19
|
+
"alternative": {
|
|
20
|
+
"$type": "color",
|
|
21
|
+
"$value": "{color.read.contrast.alternative}"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
14
24
|
},
|
|
15
|
-
"
|
|
25
|
+
"fontSize": {
|
|
16
26
|
"label": {
|
|
17
27
|
"small": {
|
|
18
28
|
"$value": "{typography.fontSize.down.02}",
|
|
@@ -43,4 +53,4 @@
|
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
|
-
}
|
|
56
|
+
}
|