@govbr-ds/tokens 4.0.0-next.38 → 4.0.0-next.39
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 +16 -1
- package/dist/css/components/avatar/tokens.css +6 -6
- package/dist/css/components/breadcrumbs/tokens.css +6 -6
- package/dist/css/components/button/tokens.css +8 -8
- package/dist/css/components/card/tokens.css +6 -6
- package/dist/css/components/chatBubble/tokens.css +4 -4
- package/dist/css/components/chatInput/tokens.css +6 -6
- package/dist/css/components/checkbox/tokens.css +10 -10
- package/dist/css/components/footer/tokens.css +6 -6
- package/dist/css/components/input/tokens.css +6 -6
- package/dist/css/components/list/tokens.css +10 -10
- package/dist/css/components/radioGroup/tokens.css +8 -8
- package/dist/css/components/sideMenu/tokens.css +8 -8
- package/dist/css/components/tag/tokens.css +6 -6
- package/dist/css/theme/dark/contrast-mode.css +76 -0
- package/dist/css/{contrast-mode.css → theme/light/contrast-mode.css} +36 -36
- package/dist/css/tokens.css +21 -21
- package/dist/js/components/avatar/tokens.js +6 -6
- package/dist/js/components/breadcrumbs/tokens.js +6 -6
- package/dist/js/components/button/tokens.js +8 -8
- package/dist/js/components/card/tokens.js +6 -6
- package/dist/js/components/chatBubble/tokens.js +4 -4
- package/dist/js/components/chatInput/tokens.js +6 -6
- package/dist/js/components/checkbox/tokens.js +10 -10
- package/dist/js/components/footer/tokens.js +6 -6
- package/dist/js/components/input/tokens.js +6 -6
- package/dist/js/components/list/tokens.js +10 -10
- package/dist/js/components/radioGroup/tokens.js +8 -8
- package/dist/js/components/sideMenu/tokens.js +8 -8
- package/dist/js/components/tag/tokens.js +6 -6
- package/dist/js/tokens.js +21 -21
- package/dist/json/components/avatar/tokens.json +6 -6
- package/dist/json/components/breadcrumbs/tokens.json +6 -6
- package/dist/json/components/button/tokens.json +8 -8
- package/dist/json/components/card/tokens.json +6 -6
- package/dist/json/components/chatBubble/tokens.json +4 -4
- package/dist/json/components/chatInput/tokens.json +6 -6
- package/dist/json/components/checkbox/tokens.json +10 -10
- package/dist/json/components/footer/tokens.json +6 -6
- package/dist/json/components/input/tokens.json +6 -6
- package/dist/json/components/list/tokens.json +10 -10
- package/dist/json/components/radioGroup/tokens.json +8 -8
- package/dist/json/components/sideMenu/tokens.json +8 -8
- package/dist/json/components/tag/tokens.json +6 -6
- package/dist/json/tokens.json +21 -21
- package/dist/scss/tokens.scss +21 -21
- package/package.json +1 -1
- package/src/config/config.json +128 -5
- package/src/config/penpot.json +1 -0
package/src/config/config.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
+
"defaultTheme": "light",
|
|
3
|
+
"themeSource": "temp/style-dictionary/theme/{theme}.json",
|
|
2
4
|
"source": [
|
|
3
5
|
"temp/style-dictionary/core/component.json",
|
|
4
6
|
"temp/style-dictionary/core/foundation.json",
|
|
@@ -8,19 +10,140 @@
|
|
|
8
10
|
"parsers": ["govbr/dtcg-sets"],
|
|
9
11
|
"preprocessors": ["tokens-studio"],
|
|
10
12
|
"log": { "verbosity": "silent" },
|
|
13
|
+
"components": {
|
|
14
|
+
"platforms": {
|
|
15
|
+
"css": {
|
|
16
|
+
"files": [
|
|
17
|
+
{
|
|
18
|
+
"format": "govbr/native/css/variables",
|
|
19
|
+
"destination": "components/{component}/tokens.css",
|
|
20
|
+
"filter": "govbr/component/{component}",
|
|
21
|
+
"options": { "outputReferences": true, "outputReferenceFallbacks": true }
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"scss": {
|
|
26
|
+
"files": [
|
|
27
|
+
{
|
|
28
|
+
"format": "govbr/native/scss/variables",
|
|
29
|
+
"destination": "components/{component}/tokens.scss",
|
|
30
|
+
"filter": "govbr/component/{component}",
|
|
31
|
+
"options": { "outputReferences": true, "outputReferenceFallbacks": true }
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"js": {
|
|
36
|
+
"files": [
|
|
37
|
+
{
|
|
38
|
+
"format": "govbr/native/javascript/es6",
|
|
39
|
+
"destination": "components/{component}/tokens.js",
|
|
40
|
+
"filter": "govbr/component/{component}",
|
|
41
|
+
"options": { "outputReferences": true, "outputReferenceFallbacks": true }
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"json": {
|
|
46
|
+
"files": [
|
|
47
|
+
{
|
|
48
|
+
"format": "govbr/native/json",
|
|
49
|
+
"destination": "components/{component}/tokens.json",
|
|
50
|
+
"filter": "govbr/component/{component}",
|
|
51
|
+
"options": { "outputReferences": true, "outputReferenceFallbacks": true }
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"themes": {
|
|
58
|
+
"platforms": {
|
|
59
|
+
"css": {
|
|
60
|
+
"buildPath": "dist/css/theme/{theme}/",
|
|
61
|
+
"actions": [
|
|
62
|
+
"govbr/css-prefers-color-scheme",
|
|
63
|
+
"govbr/css-color-scheme",
|
|
64
|
+
"govbr/css-contrast-mode"
|
|
65
|
+
],
|
|
66
|
+
"options": { "theme": "{theme}" },
|
|
67
|
+
"files": [
|
|
68
|
+
{
|
|
69
|
+
"format": "govbr/native/css/variables",
|
|
70
|
+
"destination": "tokens.css",
|
|
71
|
+
"filter": "govbr/theme",
|
|
72
|
+
"options": {
|
|
73
|
+
"outputReferences": "govbr/transformed",
|
|
74
|
+
"outputReferenceFallbacks": true,
|
|
75
|
+
"selector": "[data-theme=\"{theme}\"], :root[data-theme=\"{theme}\"]"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"scss": {
|
|
81
|
+
"buildPath": "dist/scss/theme/{theme}/",
|
|
82
|
+
"files": [
|
|
83
|
+
{
|
|
84
|
+
"format": "govbr/native/scss/variables",
|
|
85
|
+
"destination": "tokens.scss",
|
|
86
|
+
"filter": "govbr/theme",
|
|
87
|
+
"options": { "outputReferences": "govbr/transformed" }
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"js": {
|
|
92
|
+
"buildPath": "dist/js/theme/{theme}/",
|
|
93
|
+
"files": [
|
|
94
|
+
{
|
|
95
|
+
"format": "govbr/native/javascript/es6",
|
|
96
|
+
"destination": "tokens.js",
|
|
97
|
+
"filter": "govbr/theme",
|
|
98
|
+
"options": {}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"json": {
|
|
103
|
+
"buildPath": "dist/json/theme/{theme}/",
|
|
104
|
+
"files": [
|
|
105
|
+
{
|
|
106
|
+
"format": "govbr/native/json",
|
|
107
|
+
"destination": "tokens.json",
|
|
108
|
+
"filter": "govbr/theme",
|
|
109
|
+
"options": {}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"tools": {
|
|
114
|
+
"transforms": ["govbr/remove/px", "govbr/resolve/math", "ts/resolveMath", "ts/color/css/hexrgba"],
|
|
115
|
+
"files": []
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"exports": {
|
|
120
|
+
"parsers": ["govbr/dtcg-sets"],
|
|
121
|
+
"preprocessors": ["tokens-studio"],
|
|
122
|
+
"platforms": {
|
|
123
|
+
"exports": {
|
|
124
|
+
"transforms": ["govbr/remove/px", "govbr/resolve/math", "ts/resolveMath", "ts/color/css/hexrgba"],
|
|
125
|
+
"buildPath": "dist/",
|
|
126
|
+
"files": [
|
|
127
|
+
{ "format": "govbr/tokens-studio", "destination": "tokens-studio/tokens.json" },
|
|
128
|
+
{ "format": "{penpotFormat}", "destination": "{penpotDestination}" }
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"log": { "verbosity": "silent" }
|
|
133
|
+
},
|
|
11
134
|
"platforms": {
|
|
12
135
|
"css": {
|
|
13
136
|
"transformGroup": "govbr/shared",
|
|
14
|
-
"transforms": ["name/kebab", "govbr/remove/px", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
137
|
+
"transforms": ["name/kebab", "govbr/remove/px", "govbr/format/cubic-bezier", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
15
138
|
"buildPath": "dist/css/",
|
|
16
|
-
"actions": [
|
|
139
|
+
"actions": [],
|
|
17
140
|
"files": [
|
|
18
141
|
{ "format": "govbr/native/css/variables", "destination": "tokens.css", "filter": "govbr/core" }
|
|
19
142
|
]
|
|
20
143
|
},
|
|
21
144
|
"scss": {
|
|
22
145
|
"transformGroup": "govbr/shared",
|
|
23
|
-
"transforms": ["name/kebab", "govbr/remove/px", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
146
|
+
"transforms": ["name/kebab", "govbr/remove/px", "govbr/format/cubic-bezier", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
24
147
|
"buildPath": "dist/scss/",
|
|
25
148
|
"files": [
|
|
26
149
|
{
|
|
@@ -33,7 +156,7 @@
|
|
|
33
156
|
},
|
|
34
157
|
"js": {
|
|
35
158
|
"transformGroup": "govbr/shared",
|
|
36
|
-
"transforms": ["name/camel", "govbr/remove/px", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
159
|
+
"transforms": ["name/camel", "govbr/remove/px", "govbr/format/cubic-bezier", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
37
160
|
"buildPath": "dist/js/",
|
|
38
161
|
"files": [
|
|
39
162
|
{ "format": "govbr/native/javascript/es6", "destination": "tokens.js", "filter": "govbr/core" }
|
|
@@ -41,7 +164,7 @@
|
|
|
41
164
|
},
|
|
42
165
|
"json": {
|
|
43
166
|
"transformGroup": "govbr/shared",
|
|
44
|
-
"transforms": ["name/camel", "govbr/remove/px", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
167
|
+
"transforms": ["name/camel", "govbr/remove/px", "govbr/format/cubic-bezier", "govbr/resolve/math", "govbr/add/deg", "govbr/add/ms"],
|
|
45
168
|
"buildPath": "dist/json/",
|
|
46
169
|
"files": [
|
|
47
170
|
{ "format": "govbr/native/json", "destination": "tokens.json", "filter": "govbr/core" }
|