@govbr-ds/tokens 4.0.0-next.1
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 +160 -0
- package/dist/css/themes/dark.css +54 -0
- package/dist/css/themes/light.css +54 -0
- package/dist/css/tokens.css +671 -0
- package/dist/js/themes/dark.js +52 -0
- package/dist/js/themes/light.js +52 -0
- package/dist/js/tokens.js +669 -0
- package/dist/json/themes/dark.json +1210 -0
- package/dist/json/themes/light.json +1210 -0
- package/dist/json/tokens.json +11942 -0
- package/dist/scss/_tokens.scss +674 -0
- package/dist/scss/themes/_dark.scss +55 -0
- package/dist/scss/themes/_light.scss +55 -0
- package/package.json +40 -0
- package/src/figma/tokens.json +3587 -0
- package/src/figma/variables/color.json +1948 -0
- package/src/figma/variables/manifest.json +16 -0
- package/src/figma/variables/spacing.json +52 -0
- package/src/figma/variables/surface.json +102 -0
- package/src/figma/variables/typography.json +148 -0
- package/src/style-dictionary/themes/dark.json +3313 -0
- package/src/style-dictionary/themes/light.json +3313 -0
- package/src/style-dictionary/tokens.json +3045 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
$tokens-dark: (
|
|
3
|
+
'theme-text-main-base': #FCFCFC,
|
|
4
|
+
'theme-text-main-alternative': #CCCCCC,
|
|
5
|
+
'theme-text-contrast-base': #FCFCFC,
|
|
6
|
+
'theme-text-contrast-alternative': #CCCCCC,
|
|
7
|
+
'theme-surface-main-base': #2D2E2F,
|
|
8
|
+
'theme-surface-main-alternative': #1C1D1F,
|
|
9
|
+
'theme-surface-contrast-base': #2D2E2F,
|
|
10
|
+
'theme-surface-contrast-alternative': #1C1D1F,
|
|
11
|
+
'theme-surface-text-main-base': #FCFCFC,
|
|
12
|
+
'theme-surface-text-main-alternative': #FCFCFC,
|
|
13
|
+
'theme-surface-text-contrast-base': #FCFCFC,
|
|
14
|
+
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
15
|
+
'theme-border-base': #4A4A4A,
|
|
16
|
+
'theme-border-alternative': #757575,
|
|
17
|
+
'theme-interactive-main': #81AEFC,
|
|
18
|
+
'theme-interactive-contrast': #81AEFC,
|
|
19
|
+
'theme-interactive-text-main': #000000,
|
|
20
|
+
'theme-interactive-text-contrast': #000000,
|
|
21
|
+
'theme-cta-main': #21C834,
|
|
22
|
+
'theme-cta-contrast': #21C834,
|
|
23
|
+
'theme-cta-text-main': #000000,
|
|
24
|
+
'theme-cta-text-contrast': #000000,
|
|
25
|
+
'theme-success-main': #538200,
|
|
26
|
+
'theme-success-text': #FFFFFF,
|
|
27
|
+
'theme-alert-main': #FFCD07,
|
|
28
|
+
'theme-alert-text': #000000,
|
|
29
|
+
'theme-error-main': #E52207,
|
|
30
|
+
'theme-error-text': #FFFFFF,
|
|
31
|
+
'theme-disabled-main': #A9AEB1,
|
|
32
|
+
'theme-disabled-contrast': #A9AEB1,
|
|
33
|
+
'theme-visited-main': #2F4668,
|
|
34
|
+
'theme-visited-contrast': #C5D4EB,
|
|
35
|
+
'theme-hover-bright': rgba(12, 50, 111, 0.6),
|
|
36
|
+
'theme-hover-dim': rgba(212, 229, 255, 0.8),
|
|
37
|
+
'theme-focus-main': #DA680B,
|
|
38
|
+
'theme-focus-contrast': #FF8C00,
|
|
39
|
+
'theme-active-main': #5992ED,
|
|
40
|
+
'theme-active-contrast': #5992ED,
|
|
41
|
+
'theme-active-text-main': #000000,
|
|
42
|
+
'theme-active-text-contrast': #000000,
|
|
43
|
+
'theme-selected-main': #2670E8,
|
|
44
|
+
'theme-selected-contrast': #2670E8,
|
|
45
|
+
'theme-selected-text-main': #FFFFFF,
|
|
46
|
+
'theme-selected-text-contrast': #FFFFFF,
|
|
47
|
+
'theme-on-main': #155BCB,
|
|
48
|
+
'theme-on-contrast': #155BCB,
|
|
49
|
+
'theme-on-text-main': #FFFFFF,
|
|
50
|
+
'theme-on-text-contrast': #FFFFFF,
|
|
51
|
+
'theme-off-main': #636363,
|
|
52
|
+
'theme-off-contrast': #636363,
|
|
53
|
+
'theme-off-text-main': #FFFFFF,
|
|
54
|
+
'theme-off-text-contrast': #FFFFFF
|
|
55
|
+
);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
$tokens-light: (
|
|
3
|
+
'theme-text-main-base': #1B1B1B,
|
|
4
|
+
'theme-text-main-alternative': #636363,
|
|
5
|
+
'theme-text-contrast-base': #FCFCFC,
|
|
6
|
+
'theme-text-contrast-alternative': #CCCCCC,
|
|
7
|
+
'theme-surface-main-base': #FCFCFC,
|
|
8
|
+
'theme-surface-main-alternative': #F0F0F0,
|
|
9
|
+
'theme-surface-contrast-base': #252F3E,
|
|
10
|
+
'theme-surface-contrast-alternative': #2F4668,
|
|
11
|
+
'theme-surface-text-main-base': #1B1B1B,
|
|
12
|
+
'theme-surface-text-main-alternative': #1B1B1B,
|
|
13
|
+
'theme-surface-text-contrast-base': #FCFCFC,
|
|
14
|
+
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
15
|
+
'theme-border-base': #CCCCCC,
|
|
16
|
+
'theme-border-alternative': #888888,
|
|
17
|
+
'theme-interactive-main': #0040B4,
|
|
18
|
+
'theme-interactive-contrast': #ADCDFF,
|
|
19
|
+
'theme-interactive-text-main': #FFFFFF,
|
|
20
|
+
'theme-interactive-text-contrast': #000000,
|
|
21
|
+
'theme-cta-main': #216E1F,
|
|
22
|
+
'theme-cta-contrast': #70E17B,
|
|
23
|
+
'theme-cta-text-main': #FFFFFF,
|
|
24
|
+
'theme-cta-text-contrast': #000000,
|
|
25
|
+
'theme-success-main': #538200,
|
|
26
|
+
'theme-success-text': #FFFFFF,
|
|
27
|
+
'theme-alert-main': #FFCD07,
|
|
28
|
+
'theme-alert-text': #000000,
|
|
29
|
+
'theme-error-main': #E52207,
|
|
30
|
+
'theme-error-text': #FFFFFF,
|
|
31
|
+
'theme-disabled-main': #4A4A4A,
|
|
32
|
+
'theme-disabled-contrast': #CCCCCC,
|
|
33
|
+
'theme-visited-main': #2F4668,
|
|
34
|
+
'theme-visited-contrast': #C5D4EB,
|
|
35
|
+
'theme-hover-bright': rgba(212, 229, 255, 0.6),
|
|
36
|
+
'theme-hover-dim': rgba(12, 50, 111, 0.8),
|
|
37
|
+
'theme-focus-main': #DA680B,
|
|
38
|
+
'theme-focus-contrast': #FF8C00,
|
|
39
|
+
'theme-active-main': #0C326F,
|
|
40
|
+
'theme-active-contrast': #81AEFC,
|
|
41
|
+
'theme-active-text-main': #FFFFFF,
|
|
42
|
+
'theme-active-text-contrast': #000000,
|
|
43
|
+
'theme-selected-main': #2670E8,
|
|
44
|
+
'theme-selected-contrast': #5992ED,
|
|
45
|
+
'theme-selected-text-main': #FFFFFF,
|
|
46
|
+
'theme-selected-text-contrast': #000000,
|
|
47
|
+
'theme-on-main': #5992ED,
|
|
48
|
+
'theme-on-contrast': #2670E8,
|
|
49
|
+
'theme-on-text-main': #000000,
|
|
50
|
+
'theme-on-text-contrast': #FFFFFF,
|
|
51
|
+
'theme-off-main': #888888,
|
|
52
|
+
'theme-off-contrast': #757575,
|
|
53
|
+
'theme-off-text-main': #000000,
|
|
54
|
+
'theme-off-text-contrast': #FFFFFF
|
|
55
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@govbr-ds/tokens",
|
|
3
|
+
"version": "4.0.0-next.1",
|
|
4
|
+
"description": "Tokens do Padrão Digital de Governo",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design system",
|
|
7
|
+
"govbr-ds",
|
|
8
|
+
"tokens"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://gov.br/ds",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://gitlab.com/govbr-ds/govbr-ds/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+ssh://git@gitlab.com/govbr-ds/govbr-ds.git",
|
|
17
|
+
"directory": "projects/tokens"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "SERPRO (http://serpro.gov.br/)",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"src"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "run-s clear transform compile",
|
|
27
|
+
"clear": "rimraf ./dist",
|
|
28
|
+
"compile": "node build-tokens.js",
|
|
29
|
+
"transform": "run-p transform:global transform:light transform:dark",
|
|
30
|
+
"transform:dark": "token-transformer src/figma/tokens.json src/style-dictionary/themes/dark.json global,dark --resolveReferences false",
|
|
31
|
+
"transform:global": "token-transformer src/figma/tokens.json src/style-dictionary/tokens.json global --resolveReferences false",
|
|
32
|
+
"transform:light": "token-transformer src/figma/tokens.json src/style-dictionary/themes/light.json global,light --resolveReferences false"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@tokens-studio/sd-transforms": "^0.12.2",
|
|
36
|
+
"style-dictionary": "^3.9.2",
|
|
37
|
+
"style-dictionary-utils": "^2.2.1",
|
|
38
|
+
"token-transformer": "^0.0.33"
|
|
39
|
+
}
|
|
40
|
+
}
|