@govbr-ds/tokens 4.0.0-next.7 → 4.0.0-next.8
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/README.md +12 -130
- package/dist/css/themes/dark.css +49 -49
- package/dist/css/themes/light.css +50 -50
- package/dist/css/tokens.css +531 -585
- package/dist/js/themes/dark.js +49 -49
- package/dist/js/themes/light.js +50 -50
- package/dist/js/tokens.js +564 -618
- package/dist/json/themes/dark.json +367 -444
- package/dist/json/themes/light.json +368 -445
- package/dist/json/tokens.json +2676 -3177
- package/dist/scss/themes/dark.scss +80 -0
- package/dist/scss/themes/light.scss +80 -0
- package/dist/scss/tokens.scss +721 -0
- package/package.json +11 -10
- package/src/figma/tokens.json +83 -5
- package/src/figma/variables/base14.json +4 -0
- package/src/figma/variables/spacing.json +21 -1
- package/src/figma/variables/typography.json +4 -0
- package/dist/scss/_tokens.scss +0 -778
- package/dist/scss/themes/_dark.scss +0 -83
- package/dist/scss/themes/_light.scss +0 -83
- package/src/style-dictionary/themes/dark.json +0 -692
- package/src/style-dictionary/themes/light.json +0 -692
- package/src/style-dictionary/tokens.json +0 -3155
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govbr-ds/tokens",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.8",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Tokens do Padrão Digital de Governo",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"design system",
|
|
@@ -24,18 +25,18 @@
|
|
|
24
25
|
],
|
|
25
26
|
"scripts": {
|
|
26
27
|
"build": "run-s clear transform compile",
|
|
27
|
-
"clear": "
|
|
28
|
-
"
|
|
28
|
+
"clear": "run-p clear:*",
|
|
29
|
+
"clear:dist": "rimraf ./dist",
|
|
30
|
+
"clear:temp": "rimraf ./temp",
|
|
31
|
+
"compile": "node scripts/build-tokens.js",
|
|
29
32
|
"transform": "run-p transform:global transform:light transform:dark",
|
|
30
|
-
"transform:
|
|
31
|
-
"transform:
|
|
32
|
-
"transform:
|
|
33
|
+
"transform:global": "node scripts/transform-tokens.js src/figma/tokens.json temp/ global",
|
|
34
|
+
"transform:light": "node scripts/transform-tokens.js src/figma/tokens.json temp/themes light",
|
|
35
|
+
"transform:dark": "node scripts/transform-tokens.js src/figma/tokens.json temp/themes dark",
|
|
33
36
|
"start": "run-s transform compile"
|
|
34
37
|
},
|
|
35
38
|
"dependencies": {
|
|
36
|
-
"@tokens-studio/sd-transforms": "^
|
|
37
|
-
"style-dictionary": "^
|
|
38
|
-
"style-dictionary-utils": "^2.2.1",
|
|
39
|
-
"token-transformer": "^0.0.33"
|
|
39
|
+
"@tokens-studio/sd-transforms": "^1.2.3",
|
|
40
|
+
"style-dictionary": "^4.0.1"
|
|
40
41
|
}
|
|
41
42
|
}
|
package/src/figma/tokens.json
CHANGED
|
@@ -2171,7 +2171,7 @@
|
|
|
2171
2171
|
"value": {
|
|
2172
2172
|
"fontFamily": "{typography.fontFamily.noto.sans}",
|
|
2173
2173
|
"fontWeight": "{typography.fontWeight.regular}",
|
|
2174
|
-
"fontSize": "{typography.fontSize.
|
|
2174
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2175
2175
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2176
2176
|
},
|
|
2177
2177
|
"type": "typography"
|
|
@@ -2180,7 +2180,7 @@
|
|
|
2180
2180
|
"value": {
|
|
2181
2181
|
"fontFamily": "{typography.fontFamily.noto.sans}",
|
|
2182
2182
|
"fontWeight": "{typography.fontWeight.medium}",
|
|
2183
|
-
"fontSize": "{typography.fontSize.
|
|
2183
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2184
2184
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2185
2185
|
},
|
|
2186
2186
|
"type": "typography"
|
|
@@ -2189,7 +2189,7 @@
|
|
|
2189
2189
|
"value": {
|
|
2190
2190
|
"fontFamily": "{typography.fontFamily.noto.mono}",
|
|
2191
2191
|
"fontWeight": "{typography.fontWeight.regular}",
|
|
2192
|
-
"fontSize": "{typography.fontSize.
|
|
2192
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2193
2193
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2194
2194
|
},
|
|
2195
2195
|
"type": "typography"
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
"basic": {
|
|
2207
2207
|
"value": {
|
|
2208
2208
|
"fontFamily": "{typography.fontFamily.noto.sans}",
|
|
2209
|
-
"fontSize": "{typography.fontSize.
|
|
2209
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2210
2210
|
"lineHeight": "{typography.lineHeight.medium}"
|
|
2211
2211
|
},
|
|
2212
2212
|
"type": "typography"
|
|
@@ -2230,6 +2230,7 @@
|
|
|
2230
2230
|
"solid": {
|
|
2231
2231
|
"value": {
|
|
2232
2232
|
"fontFamily": "{iconography.fontFamily.fontAwesome.free}",
|
|
2233
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2233
2234
|
"fontWeight": "Solid"
|
|
2234
2235
|
},
|
|
2235
2236
|
"type": "typography"
|
|
@@ -2237,6 +2238,7 @@
|
|
|
2237
2238
|
"brand": {
|
|
2238
2239
|
"value": {
|
|
2239
2240
|
"fontFamily": "{iconography.fontFamily.fontAwesome.brands}",
|
|
2241
|
+
"fontSize": "{typography.fontSize.default}",
|
|
2240
2242
|
"fontWeight": "{typography.fontWeight.regular}"
|
|
2241
2243
|
},
|
|
2242
2244
|
"type": "typography"
|
|
@@ -2276,6 +2278,26 @@
|
|
|
2276
2278
|
"05": {
|
|
2277
2279
|
"value": "{spacing.layout.default} + ({spacing.scale} * 4)",
|
|
2278
2280
|
"type": "spacing"
|
|
2281
|
+
},
|
|
2282
|
+
"06": {
|
|
2283
|
+
"value": "{spacing.layout.default} + ({spacing.scale} * 5)",
|
|
2284
|
+
"type": "spacing"
|
|
2285
|
+
},
|
|
2286
|
+
"07": {
|
|
2287
|
+
"value": "{spacing.layout.default} + ({spacing.scale} * 6)",
|
|
2288
|
+
"type": "spacing"
|
|
2289
|
+
},
|
|
2290
|
+
"08": {
|
|
2291
|
+
"value": "{spacing.layout.default} + ({spacing.scale} * 7)",
|
|
2292
|
+
"type": "spacing"
|
|
2293
|
+
},
|
|
2294
|
+
"09": {
|
|
2295
|
+
"value": "{spacing.layout.default} + ({spacing.scale} * 8)",
|
|
2296
|
+
"type": "spacing"
|
|
2297
|
+
},
|
|
2298
|
+
"10": {
|
|
2299
|
+
"value": "{spacing.layout.default} + ({spacing.scale} * 9)",
|
|
2300
|
+
"type": "spacing"
|
|
2279
2301
|
}
|
|
2280
2302
|
},
|
|
2281
2303
|
"adjust": {
|
|
@@ -3154,6 +3176,62 @@
|
|
|
3154
3176
|
}
|
|
3155
3177
|
}
|
|
3156
3178
|
},
|
|
3179
|
+
"pattern": {
|
|
3180
|
+
"skeleton": {
|
|
3181
|
+
"color": {
|
|
3182
|
+
"background": {
|
|
3183
|
+
"$value": "{theme.surface.main.alternative}",
|
|
3184
|
+
"$type": "color"
|
|
3185
|
+
},
|
|
3186
|
+
"foreground": {
|
|
3187
|
+
"$value": "{theme.surface.main.base}",
|
|
3188
|
+
"$type": "color"
|
|
3189
|
+
},
|
|
3190
|
+
"shine": {
|
|
3191
|
+
"$value": "linear-gradient(45deg, rgba({skeleton.color.foreground},{surface.opacity.none}), rgba({skeleton.color.foreground},{surface.opacity.04}), rgba({skeleton.color.foreground},{surface.opacity.none}))",
|
|
3192
|
+
"$type": "color"
|
|
3193
|
+
}
|
|
3194
|
+
},
|
|
3195
|
+
"rounder": {
|
|
3196
|
+
"shape": {
|
|
3197
|
+
"$value": "{surface.rounder.01}",
|
|
3198
|
+
"$type": "borderRadius"
|
|
3199
|
+
},
|
|
3200
|
+
"text": {
|
|
3201
|
+
"$value": "{surface.rounder.full}",
|
|
3202
|
+
"$type": "borderRadius"
|
|
3203
|
+
}
|
|
3204
|
+
},
|
|
3205
|
+
"height": {
|
|
3206
|
+
"01": {
|
|
3207
|
+
"$value": "{typography.fontSize.up.08}",
|
|
3208
|
+
"$type": "sizing"
|
|
3209
|
+
},
|
|
3210
|
+
"02": {
|
|
3211
|
+
"$value": "{typography.fontSize.up.06}",
|
|
3212
|
+
"$type": "sizing"
|
|
3213
|
+
},
|
|
3214
|
+
"03": {
|
|
3215
|
+
"$value": "{typography.fontSize.up.04}",
|
|
3216
|
+
"$type": "sizing"
|
|
3217
|
+
},
|
|
3218
|
+
"04": {
|
|
3219
|
+
"$value": "{typography.fontSize.default}",
|
|
3220
|
+
"$type": "sizing"
|
|
3221
|
+
}
|
|
3222
|
+
},
|
|
3223
|
+
"motion": {
|
|
3224
|
+
"duration": {
|
|
3225
|
+
"$value": "{motion.duration.slow.04}",
|
|
3226
|
+
"$type": "duration"
|
|
3227
|
+
},
|
|
3228
|
+
"easing": {
|
|
3229
|
+
"$value": "{motion.easing.linear}",
|
|
3230
|
+
"$type": "easing"
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3157
3235
|
"light": {
|
|
3158
3236
|
"theme": {
|
|
3159
3237
|
"shadow": {
|
|
@@ -4344,4 +4422,4 @@
|
|
|
4344
4422
|
}
|
|
4345
4423
|
}
|
|
4346
4424
|
}
|
|
4347
|
-
}
|
|
4425
|
+
}
|
|
@@ -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
|
+
}
|