@govbr-ds/tokens 4.0.0-next.2 → 4.0.0-next.4
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/themes/dark.css +1 -0
- package/dist/css/themes/light.css +1 -0
- package/dist/css/tokens.css +80 -24
- package/dist/js/themes/dark.js +1 -0
- package/dist/js/themes/light.js +1 -0
- package/dist/js/tokens.js +108 -52
- package/dist/json/themes/dark.json +181 -52
- package/dist/json/themes/light.json +181 -52
- package/dist/json/tokens.json +5127 -948
- package/dist/scss/_tokens.scss +81 -27
- package/dist/scss/themes/_dark.scss +1 -0
- package/dist/scss/themes/_light.scss +1 -0
- package/package.json +3 -3
- package/src/figma/tokens.json +195 -80
- package/src/figma/variables/base14.json +62 -0
- package/src/figma/variables/dark.json +10 -0
- package/src/figma/variables/elevation.json +70 -0
- package/src/figma/variables/grid.json +5 -5
- package/src/figma/variables/iconography.json +16 -0
- package/src/figma/variables/light.json +10 -0
- package/src/figma/variables/manifest.json +10 -4
- package/src/figma/variables/motion.json +112 -0
- package/src/figma/variables/surface.json +2 -2
- package/src/figma/variables/typography.json +6 -12
- package/src/style-dictionary/themes/dark.json +111 -3021
- package/src/style-dictionary/themes/light.json +111 -3021
- package/src/style-dictionary/tokens.json +187 -79
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"typography": {
|
|
3
|
+
"fontSize": {
|
|
4
|
+
"base": {
|
|
5
|
+
"$value": "{typography.fontSize.base14}",
|
|
6
|
+
"$type": "number"
|
|
7
|
+
},
|
|
8
|
+
"up": {
|
|
9
|
+
"01": {
|
|
10
|
+
"$value": "15.75",
|
|
11
|
+
"$type": "number"
|
|
12
|
+
},
|
|
13
|
+
"02": {
|
|
14
|
+
"$value": "17.72",
|
|
15
|
+
"$type": "number"
|
|
16
|
+
},
|
|
17
|
+
"03": {
|
|
18
|
+
"$value": "19.93",
|
|
19
|
+
"$type": "number"
|
|
20
|
+
},
|
|
21
|
+
"04": {
|
|
22
|
+
"$value": "22.43",
|
|
23
|
+
"$type": "number"
|
|
24
|
+
},
|
|
25
|
+
"05": {
|
|
26
|
+
"$value": "25.23",
|
|
27
|
+
"$type": "number"
|
|
28
|
+
},
|
|
29
|
+
"06": {
|
|
30
|
+
"$value": "28.38",
|
|
31
|
+
"$type": "number"
|
|
32
|
+
},
|
|
33
|
+
"07": {
|
|
34
|
+
"$value": "31.93",
|
|
35
|
+
"$type": "number"
|
|
36
|
+
},
|
|
37
|
+
"08": {
|
|
38
|
+
"$value": "35.92",
|
|
39
|
+
"$type": "number"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"down": {
|
|
43
|
+
"01": {
|
|
44
|
+
"$value": "12.44",
|
|
45
|
+
"$type": "number"
|
|
46
|
+
},
|
|
47
|
+
"02": {
|
|
48
|
+
"$value": "11.06",
|
|
49
|
+
"$type": "number"
|
|
50
|
+
},
|
|
51
|
+
"03": {
|
|
52
|
+
"$value": "9.83",
|
|
53
|
+
"$type": "number"
|
|
54
|
+
},
|
|
55
|
+
"04": {
|
|
56
|
+
"$value": "8.74",
|
|
57
|
+
"$type": "number"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"elevation": {
|
|
3
|
+
"color": {
|
|
4
|
+
"$value": "{color.pure.100}",
|
|
5
|
+
"$type": "color"
|
|
6
|
+
},
|
|
7
|
+
"opacity": {
|
|
8
|
+
"bright": {
|
|
9
|
+
"$value": "{surface.opacity.02}",
|
|
10
|
+
"$type": "number"
|
|
11
|
+
},
|
|
12
|
+
"dim": {
|
|
13
|
+
"$value": "{surface.opacity.06}",
|
|
14
|
+
"$type": "number"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"offset": {
|
|
18
|
+
"none": {
|
|
19
|
+
"$value": "0",
|
|
20
|
+
"$type": "number"
|
|
21
|
+
},
|
|
22
|
+
"01": {
|
|
23
|
+
"$value": "1",
|
|
24
|
+
"$type": "number"
|
|
25
|
+
},
|
|
26
|
+
"02": {
|
|
27
|
+
"$value": "4",
|
|
28
|
+
"$type": "number"
|
|
29
|
+
},
|
|
30
|
+
"03": {
|
|
31
|
+
"$value": "8",
|
|
32
|
+
"$type": "number"
|
|
33
|
+
},
|
|
34
|
+
"04": {
|
|
35
|
+
"$value": "12",
|
|
36
|
+
"$type": "number"
|
|
37
|
+
},
|
|
38
|
+
"05": {
|
|
39
|
+
"$value": "16",
|
|
40
|
+
"$type": "number"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"blur": {
|
|
44
|
+
"none": {
|
|
45
|
+
"$value": "0",
|
|
46
|
+
"$type": "number"
|
|
47
|
+
},
|
|
48
|
+
"01": {
|
|
49
|
+
"$value": "1",
|
|
50
|
+
"$type": "number"
|
|
51
|
+
},
|
|
52
|
+
"02": {
|
|
53
|
+
"$value": "4",
|
|
54
|
+
"$type": "number"
|
|
55
|
+
},
|
|
56
|
+
"03": {
|
|
57
|
+
"$value": "8",
|
|
58
|
+
"$type": "number"
|
|
59
|
+
},
|
|
60
|
+
"04": {
|
|
61
|
+
"$value": "12",
|
|
62
|
+
"$type": "number"
|
|
63
|
+
},
|
|
64
|
+
"05": {
|
|
65
|
+
"$value": "16",
|
|
66
|
+
"$type": "number"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -4,27 +4,27 @@
|
|
|
4
4
|
"small": {
|
|
5
5
|
"main": {
|
|
6
6
|
"$value": "0",
|
|
7
|
-
"$type": "
|
|
7
|
+
"$type": "dimension"
|
|
8
8
|
},
|
|
9
9
|
"extra": {
|
|
10
10
|
"$value": "576",
|
|
11
|
-
"$type": "
|
|
11
|
+
"$type": "dimension"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"medium": {
|
|
15
15
|
"main": {
|
|
16
16
|
"$value": "992",
|
|
17
|
-
"$type": "
|
|
17
|
+
"$type": "dimension"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"large": {
|
|
21
21
|
"main": {
|
|
22
22
|
"$value": "1280",
|
|
23
|
-
"$type": "
|
|
23
|
+
"$type": "dimension"
|
|
24
24
|
},
|
|
25
25
|
"extra": {
|
|
26
26
|
"$value": "1600",
|
|
27
|
-
"$type": "
|
|
27
|
+
"$type": "dimension"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
@@ -3,22 +3,28 @@
|
|
|
3
3
|
"collections": {
|
|
4
4
|
"Core": {
|
|
5
5
|
"modes": {
|
|
6
|
-
"
|
|
6
|
+
"Base16": [
|
|
7
7
|
"color.json",
|
|
8
8
|
"spacing.json",
|
|
9
9
|
"typography.json",
|
|
10
|
+
"iconography.json",
|
|
10
11
|
"surface.json",
|
|
11
|
-
"grid.json"
|
|
12
|
+
"grid.json",
|
|
13
|
+
"elevation.json",
|
|
14
|
+
"motion.json"
|
|
15
|
+
],
|
|
16
|
+
"Base14": [
|
|
17
|
+
"base14.json"
|
|
12
18
|
]
|
|
13
19
|
}
|
|
14
20
|
},
|
|
15
21
|
"Themes": {
|
|
16
22
|
"modes": {
|
|
17
23
|
"Light": [
|
|
18
|
-
"
|
|
24
|
+
"light.json"
|
|
19
25
|
],
|
|
20
26
|
"Dark": [
|
|
21
|
-
"
|
|
27
|
+
"dark.json"
|
|
22
28
|
]
|
|
23
29
|
}
|
|
24
30
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"motion": {
|
|
3
|
+
"easing": {
|
|
4
|
+
"ease": {
|
|
5
|
+
"$value": "cubic-bezier(0.25, 0.1, 0.25, 1)",
|
|
6
|
+
"$type": "string"
|
|
7
|
+
},
|
|
8
|
+
"easeIn": {
|
|
9
|
+
"$value": "cubic-bezier(0.42, 0, 1, 1)",
|
|
10
|
+
"$type": "string"
|
|
11
|
+
},
|
|
12
|
+
"easeOut": {
|
|
13
|
+
"$value": "cubic-bezier(0, 0, 0.58, 1)",
|
|
14
|
+
"$type": "string"
|
|
15
|
+
},
|
|
16
|
+
"easeInOut": {
|
|
17
|
+
"$value": "cubic-bezier(0.42, 0, 0.58, 1)",
|
|
18
|
+
"$type": "string"
|
|
19
|
+
},
|
|
20
|
+
"linear": {
|
|
21
|
+
"$value": "cubic-bezier(0, 0, 1, 1)",
|
|
22
|
+
"$type": "string"
|
|
23
|
+
},
|
|
24
|
+
"bounceOut": {
|
|
25
|
+
"$value": "cubic-bezier(0.25, 2.3, 0.57, -0.3)",
|
|
26
|
+
"$type": "string"
|
|
27
|
+
},
|
|
28
|
+
"elasticOut": {
|
|
29
|
+
"$value": "cubic-bezier(0, 3, 0, 0.3)",
|
|
30
|
+
"$type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"duration": {
|
|
34
|
+
"none": {
|
|
35
|
+
"$value": "0",
|
|
36
|
+
"$type": "duration"
|
|
37
|
+
},
|
|
38
|
+
"fast": {
|
|
39
|
+
"01": {
|
|
40
|
+
"$value": "50",
|
|
41
|
+
"$type": "duration"
|
|
42
|
+
},
|
|
43
|
+
"02": {
|
|
44
|
+
"$value": "100",
|
|
45
|
+
"$type": "duration"
|
|
46
|
+
},
|
|
47
|
+
"03": {
|
|
48
|
+
"$value": "150",
|
|
49
|
+
"$type": "duration"
|
|
50
|
+
},
|
|
51
|
+
"04": {
|
|
52
|
+
"$value": "200",
|
|
53
|
+
"$type": "duration"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"moderate": {
|
|
57
|
+
"01": {
|
|
58
|
+
"$value": "250",
|
|
59
|
+
"$type": "duration"
|
|
60
|
+
},
|
|
61
|
+
"02": {
|
|
62
|
+
"$value": "300",
|
|
63
|
+
"$type": "duration"
|
|
64
|
+
},
|
|
65
|
+
"03": {
|
|
66
|
+
"$value": "350",
|
|
67
|
+
"$type": "duration"
|
|
68
|
+
},
|
|
69
|
+
"04": {
|
|
70
|
+
"$value": "400",
|
|
71
|
+
"$type": "duration"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"slow": {
|
|
75
|
+
"01": {
|
|
76
|
+
"$value": "450",
|
|
77
|
+
"$type": "duration"
|
|
78
|
+
},
|
|
79
|
+
"02": {
|
|
80
|
+
"$value": "500",
|
|
81
|
+
"$type": "duration"
|
|
82
|
+
},
|
|
83
|
+
"03": {
|
|
84
|
+
"$value": "550",
|
|
85
|
+
"$type": "duration"
|
|
86
|
+
},
|
|
87
|
+
"04": {
|
|
88
|
+
"$value": "600",
|
|
89
|
+
"$type": "duration"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"verySlow": {
|
|
93
|
+
"01": {
|
|
94
|
+
"$value": "700",
|
|
95
|
+
"$type": "duration"
|
|
96
|
+
},
|
|
97
|
+
"02": {
|
|
98
|
+
"$value": "800",
|
|
99
|
+
"$type": "duration"
|
|
100
|
+
},
|
|
101
|
+
"03": {
|
|
102
|
+
"$value": "900",
|
|
103
|
+
"$type": "duration"
|
|
104
|
+
},
|
|
105
|
+
"04": {
|
|
106
|
+
"$value": "1000",
|
|
107
|
+
"$type": "duration"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
},
|
|
93
93
|
"overlay": {
|
|
94
94
|
"focus": {
|
|
95
|
-
"$value": "
|
|
95
|
+
"$value": "#00000066",
|
|
96
96
|
"$type": "color"
|
|
97
97
|
},
|
|
98
98
|
"readability": {
|
|
99
|
-
"$value": "linear-gradient
|
|
99
|
+
"$value": "linear-gradient(0deg, {elevation.color} 0%, rgba({elevation.color},{surface.opacity.04}) 100%)",
|
|
100
100
|
"$type": "color"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -20,16 +20,6 @@
|
|
|
20
20
|
"$value": "Rawline",
|
|
21
21
|
"$type": "string"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
24
|
-
"fontAwesome": {
|
|
25
|
-
"free": {
|
|
26
|
-
"$value": "Font Awesome 6 Free",
|
|
27
|
-
"$type": "string"
|
|
28
|
-
},
|
|
29
|
-
"brands": {
|
|
30
|
-
"$value": "Font Awesome 6 Brands",
|
|
31
|
-
"$type": "string"
|
|
32
|
-
}
|
|
33
23
|
}
|
|
34
24
|
},
|
|
35
25
|
"fontWeight": {
|
|
@@ -71,14 +61,18 @@
|
|
|
71
61
|
}
|
|
72
62
|
},
|
|
73
63
|
"fontSize": {
|
|
74
|
-
"
|
|
64
|
+
"base16": {
|
|
75
65
|
"$value": "16",
|
|
76
66
|
"$type": "number"
|
|
77
67
|
},
|
|
78
|
-
"
|
|
68
|
+
"base14": {
|
|
79
69
|
"$value": "14",
|
|
80
70
|
"$type": "number"
|
|
81
71
|
},
|
|
72
|
+
"base": {
|
|
73
|
+
"$value": "{typography.fontSize.base16}",
|
|
74
|
+
"$type": "number"
|
|
75
|
+
},
|
|
82
76
|
"up": {
|
|
83
77
|
"01": {
|
|
84
78
|
"$value": "18",
|