@wonderflow/themes 2.0.0-beta.0 → 5.2.0
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/themes/dark.css +3 -2
- package/dist/themes/dark.json +2 -1
- package/dist/themes/light.css +3 -2
- package/dist/themes/light.json +2 -1
- package/dist/themes.css +9 -6
- package/package.json +12 -8
- package/.turbo/turbo-build.log +0 -29
- package/CHANGELOG.md +0 -23
- package/src/combine.js +0 -49
- package/src/dark.json +0 -112
- package/src/index.js +0 -7
- package/src/light.json +0 -112
- package/src/themes.config.js +0 -30
- package/tests/themes.js +0 -33
package/dist/themes/dark.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 01 Mar 2022 14:16:57 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
--global-interactive-text-hover: hsl(200 100% 83%);
|
|
11
11
|
--global-vibrancy-foreground: hsl(0 0% 100%);
|
|
12
12
|
--global-vibrancy-background: hsl(218 11% 14% / 80%);
|
|
13
|
-
--global-vibrancy-background-
|
|
13
|
+
--global-vibrancy-background-soft: hsl(225 11% 7% / 80%);
|
|
14
|
+
--global-vibrancy-background-hard: hsl(219 13% 22% / 80%);
|
|
14
15
|
--global-disabled-background: hsl(221 9% 49% / 35%);
|
|
15
16
|
--global-disabled-foreground: hsl(0 0% 100% / 20%);
|
|
16
17
|
--cta-default: hsl(0 100% 47%);
|
package/dist/themes/dark.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"global-interactive-text-hover": "hsl(200 100% 83%)",
|
|
6
6
|
"global-vibrancy-foreground": "hsl(0 0% 100%)",
|
|
7
7
|
"global-vibrancy-background": "hsl(218 11% 14% / 80%)",
|
|
8
|
-
"global-vibrancy-background-
|
|
8
|
+
"global-vibrancy-background-soft": "hsl(225 11% 7% / 80%)",
|
|
9
|
+
"global-vibrancy-background-hard": "hsl(219 13% 22% / 80%)",
|
|
9
10
|
"global-disabled-background": "hsl(221 9% 49% / 35%)",
|
|
10
11
|
"global-disabled-foreground": "hsl(0 0% 100% / 20%)",
|
|
11
12
|
"cta-default": "hsl(0 100% 47%)",
|
package/dist/themes/light.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 01 Mar 2022 14:16:53 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
--global-interactive-text-hover: hsl(219 93% 27%);
|
|
11
11
|
--global-vibrancy-foreground: hsl(0 0% 0%);
|
|
12
12
|
--global-vibrancy-background: hsl(220 16% 85% / 40%);
|
|
13
|
-
--global-vibrancy-background-
|
|
13
|
+
--global-vibrancy-background-soft: hsl(210 20% 98% / 40%);
|
|
14
|
+
--global-vibrancy-background-hard: hsl(221 10% 56% / 40%);
|
|
14
15
|
--global-disabled-background: hsl(225 11% 7% / 6%);
|
|
15
16
|
--global-disabled-foreground: hsl(0 0% 0% / 20%);
|
|
16
17
|
--cta-default: hsl(0 100% 47%);
|
package/dist/themes/light.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"global-interactive-text-hover": "hsl(219 93% 27%)",
|
|
6
6
|
"global-vibrancy-foreground": "hsl(0 0% 0%)",
|
|
7
7
|
"global-vibrancy-background": "hsl(220 16% 85% / 40%)",
|
|
8
|
-
"global-vibrancy-background-
|
|
8
|
+
"global-vibrancy-background-soft": "hsl(210 20% 98% / 40%)",
|
|
9
|
+
"global-vibrancy-background-hard": "hsl(221 10% 56% / 40%)",
|
|
9
10
|
"global-disabled-background": "hsl(225 11% 7% / 6%)",
|
|
10
11
|
"global-disabled-foreground": "hsl(0 0% 0% / 20%)",
|
|
11
12
|
"cta-default": "hsl(0 100% 47%)",
|
package/dist/themes.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
color: var(--global-foreground);
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Tue, 01 Mar 2022 14:16:53 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
--global-interactive-text-hover: hsl(219 93% 27%);
|
|
15
15
|
--global-vibrancy-foreground: hsl(0 0% 0%);
|
|
16
16
|
--global-vibrancy-background: hsl(220 16% 85% / 40%);
|
|
17
|
-
--global-vibrancy-background-
|
|
17
|
+
--global-vibrancy-background-soft: hsl(210 20% 98% / 40%);
|
|
18
|
+
--global-vibrancy-background-hard: hsl(221 10% 56% / 40%);
|
|
18
19
|
--global-disabled-background: hsl(225 11% 7% / 6%);
|
|
19
20
|
--global-disabled-foreground: hsl(0 0% 0% / 20%);
|
|
20
21
|
--cta-default: hsl(0 100% 47%);
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
color: var(--global-foreground);
|
|
52
53
|
/**
|
|
53
54
|
* Do not edit directly
|
|
54
|
-
* Generated on
|
|
55
|
+
* Generated on Tue, 01 Mar 2022 14:16:57 GMT
|
|
55
56
|
*/
|
|
56
57
|
|
|
57
58
|
|
|
@@ -61,7 +62,8 @@
|
|
|
61
62
|
--global-interactive-text-hover: hsl(200 100% 83%);
|
|
62
63
|
--global-vibrancy-foreground: hsl(0 0% 100%);
|
|
63
64
|
--global-vibrancy-background: hsl(218 11% 14% / 80%);
|
|
64
|
-
--global-vibrancy-background-
|
|
65
|
+
--global-vibrancy-background-soft: hsl(225 11% 7% / 80%);
|
|
66
|
+
--global-vibrancy-background-hard: hsl(219 13% 22% / 80%);
|
|
65
67
|
--global-disabled-background: hsl(221 9% 49% / 35%);
|
|
66
68
|
--global-disabled-foreground: hsl(0 0% 100% / 20%);
|
|
67
69
|
--cta-default: hsl(0 100% 47%);
|
|
@@ -99,7 +101,7 @@
|
|
|
99
101
|
color: var(--global-foreground);
|
|
100
102
|
/**
|
|
101
103
|
* Do not edit directly
|
|
102
|
-
* Generated on
|
|
104
|
+
* Generated on Tue, 01 Mar 2022 14:16:57 GMT
|
|
103
105
|
*/
|
|
104
106
|
|
|
105
107
|
|
|
@@ -109,7 +111,8 @@
|
|
|
109
111
|
--global-interactive-text-hover: hsl(200 100% 83%);
|
|
110
112
|
--global-vibrancy-foreground: hsl(0 0% 100%);
|
|
111
113
|
--global-vibrancy-background: hsl(218 11% 14% / 80%);
|
|
112
|
-
--global-vibrancy-background-
|
|
114
|
+
--global-vibrancy-background-soft: hsl(225 11% 7% / 80%);
|
|
115
|
+
--global-vibrancy-background-hard: hsl(219 13% 22% / 80%);
|
|
113
116
|
--global-disabled-background: hsl(221 9% 49% / 35%);
|
|
114
117
|
--global-disabled-foreground: hsl(0 0% 100% / 20%);
|
|
115
118
|
--cta-default: hsl(0 100% 47%);
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wonderflow/themes",
|
|
3
3
|
"description": "Wanda design system themes",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"author": "Wonderflow",
|
|
6
6
|
"main": "dist/themes.css",
|
|
7
|
+
"style": "dist/themes.css",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": "./dist/themes.css",
|
|
9
10
|
"./dark.css": "./dist/themes/dark.css",
|
|
@@ -11,23 +12,26 @@
|
|
|
11
12
|
"./dark.json": "./dist/themes/dark.json",
|
|
12
13
|
"./light.json": "./dist/themes/light.json"
|
|
13
14
|
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
14
18
|
"publishConfig": {
|
|
15
19
|
"access": "public"
|
|
16
20
|
},
|
|
17
21
|
"devDependencies": {
|
|
22
|
+
"@types/fs-extra": "9.0.13",
|
|
18
23
|
"@wonderflow/tokens": "*",
|
|
19
|
-
"fs-extra": "10.0.
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"style-dictionary": "3.1.1",
|
|
24
|
+
"fs-extra": "10.0.1",
|
|
25
|
+
"style-dictionary": "3.7.0",
|
|
26
|
+
"tsconfig": "*",
|
|
23
27
|
"yargs": "17.3.1"
|
|
24
28
|
},
|
|
25
29
|
"scripts": {
|
|
26
30
|
"build": "run-s build:prepare && run-s build:light build:dark && run-s build:combine",
|
|
27
31
|
"build:prepare": "rimraf dist",
|
|
28
|
-
"build:combine": "node src/combine
|
|
29
|
-
"build:light": "node src/index
|
|
30
|
-
"build:dark": "node src/index
|
|
32
|
+
"build:combine": "ts-node src/combine",
|
|
33
|
+
"build:light": "ts-node src/index --name light",
|
|
34
|
+
"build:dark": "ts-node src/index --name dark",
|
|
31
35
|
"test": "uvu tests --bail"
|
|
32
36
|
},
|
|
33
37
|
"repository": {
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@wonderflow/themes:build: cache hit, replaying output b246413def184a43
|
|
2
|
-
@wonderflow/themes:build:
|
|
3
|
-
@wonderflow/themes:build: > @wonderflow/themes@2.0.0-beta.0 build
|
|
4
|
-
@wonderflow/themes:build: > run-s build:prepare && run-s build:light build:dark && run-s build:combine
|
|
5
|
-
@wonderflow/themes:build:
|
|
6
|
-
@wonderflow/themes:build:
|
|
7
|
-
@wonderflow/themes:build: > @wonderflow/themes@2.0.0-beta.0 build:prepare
|
|
8
|
-
@wonderflow/themes:build: > rimraf dist
|
|
9
|
-
@wonderflow/themes:build:
|
|
10
|
-
@wonderflow/themes:build:
|
|
11
|
-
@wonderflow/themes:build: > @wonderflow/themes@2.0.0-beta.0 build:light
|
|
12
|
-
@wonderflow/themes:build: > node src/index.js --name light
|
|
13
|
-
@wonderflow/themes:build:
|
|
14
|
-
@wonderflow/themes:build:
|
|
15
|
-
@wonderflow/themes:build: web
|
|
16
|
-
@wonderflow/themes:build: ✔︎ dist/themes/light.css
|
|
17
|
-
@wonderflow/themes:build: ✔︎ dist/themes/light.json
|
|
18
|
-
@wonderflow/themes:build:
|
|
19
|
-
@wonderflow/themes:build: > @wonderflow/themes@2.0.0-beta.0 build:dark
|
|
20
|
-
@wonderflow/themes:build: > node src/index.js --name dark
|
|
21
|
-
@wonderflow/themes:build:
|
|
22
|
-
@wonderflow/themes:build:
|
|
23
|
-
@wonderflow/themes:build: web
|
|
24
|
-
@wonderflow/themes:build: ✔︎ dist/themes/dark.css
|
|
25
|
-
@wonderflow/themes:build: ✔︎ dist/themes/dark.json
|
|
26
|
-
@wonderflow/themes:build:
|
|
27
|
-
@wonderflow/themes:build: > @wonderflow/themes@2.0.0-beta.0 build:combine
|
|
28
|
-
@wonderflow/themes:build: > node src/combine.js
|
|
29
|
-
@wonderflow/themes:build:
|
package/CHANGELOG.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# @wonderflow/themes
|
|
2
|
-
|
|
3
|
-
## 2.0.0-beta.0
|
|
4
|
-
|
|
5
|
-
### Major Changes
|
|
6
|
-
|
|
7
|
-
- [#47](https://github.com/wonderflow-bv/wanda/pull/47) [`676c15d`](https://github.com/wonderflow-bv/wanda/commit/676c15dbe5c03855a6316da6c1af6ce054dccfa6) Thanks [@equinusocio](https://github.com/equinusocio)! - Rename SkeletonBlock into Skeleton and drop related dependencies
|
|
8
|
-
|
|
9
|
-
## 1.0.2
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- [#21](https://github.com/wonderflow-bv/wanda/pull/21) [`5d6fda0`](https://github.com/wonderflow-bv/wanda/commit/5d6fda0a920f5915741a6b4f0c6bd9ac5903388d) Thanks [@equinusocio](https://github.com/equinusocio)! - init
|
|
14
|
-
|
|
15
|
-
* [`23dcabe`](https://github.com/wonderflow-bv/wanda/commit/23dcabe148c3420b286d78e06abc82e627dfe083) Thanks [@equinusocio](https://github.com/equinusocio)! - init
|
|
16
|
-
|
|
17
|
-
- [#22](https://github.com/wonderflow-bv/wanda/pull/22) [`4a4464b`](https://github.com/wonderflow-bv/wanda/commit/4a4464b034dbf18fc75ed355454ba7bbdd4b67b4) Thanks [@equinusocio](https://github.com/equinusocio)! - Init
|
|
18
|
-
|
|
19
|
-
## 1.0.1
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- aa91e4d: Init new packages
|
package/src/combine.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const fs = require('fs-extra')
|
|
2
|
-
const path = require('path')
|
|
3
|
-
|
|
4
|
-
const formatTheme = (path, name) => {
|
|
5
|
-
const theme = fs.readFileSync(path, 'utf8', (err, data) => {
|
|
6
|
-
if (err) {
|
|
7
|
-
return err
|
|
8
|
-
}
|
|
9
|
-
})
|
|
10
|
-
return theme.replace(':root {', '').replace('}', '')
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const run = () => {
|
|
14
|
-
const lightTheme = formatTheme(path.join('dist', 'themes', 'light.css'), 'light')
|
|
15
|
-
const darkTheme = formatTheme(path.join('dist', 'themes', 'dark.css'), 'dark')
|
|
16
|
-
|
|
17
|
-
const template = `
|
|
18
|
-
:root,
|
|
19
|
-
[data-theme='light'] {
|
|
20
|
-
color: var(--global-foreground);
|
|
21
|
-
${lightTheme}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@media (prefers-color-scheme: dark) {
|
|
25
|
-
:root:not([data-theme='light']) {
|
|
26
|
-
color: var(--global-foreground);
|
|
27
|
-
${darkTheme}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[data-theme='dark'],
|
|
32
|
-
:root[data-theme='dark'] {
|
|
33
|
-
color: var(--global-foreground);
|
|
34
|
-
${darkTheme}
|
|
35
|
-
}
|
|
36
|
-
`
|
|
37
|
-
|
|
38
|
-
fs.writeFileSync(path.join('dist', 'themes.css'), template)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
run()
|
|
43
|
-
process.exit(0)
|
|
44
|
-
} catch (error) {
|
|
45
|
-
console.log('————————————————————————————————————————————————————————————————————————————————————— \n')
|
|
46
|
-
console.error('⚠️ Something went wrong:', error)
|
|
47
|
-
console.log('\n————————————————————————————————————————————————————————————————————————————————————— \n\n')
|
|
48
|
-
process.exit(1)
|
|
49
|
-
}
|
package/src/dark.json
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"global": {
|
|
3
|
-
"foreground": {
|
|
4
|
-
"value": "hsl({color.primary.5})"
|
|
5
|
-
},
|
|
6
|
-
"background": {
|
|
7
|
-
"value": "hsl({color.support.black})"
|
|
8
|
-
},
|
|
9
|
-
"interactive-text": {
|
|
10
|
-
"value": "hsl({color.blue.20})"
|
|
11
|
-
},
|
|
12
|
-
"interactive-text-hover": {
|
|
13
|
-
"value": "hsl({color.blue.10})"
|
|
14
|
-
},
|
|
15
|
-
"vibrancy-foreground": {
|
|
16
|
-
"value": "hsl({color.support.white})"
|
|
17
|
-
},
|
|
18
|
-
"vibrancy-background": {
|
|
19
|
-
"value": "hsl({color.primary.90} / 80%)"
|
|
20
|
-
},
|
|
21
|
-
"vibrancy-background-hover": {
|
|
22
|
-
"value": "hsl({color.primary.70} / 60%)"
|
|
23
|
-
},
|
|
24
|
-
"disabled-background": {
|
|
25
|
-
"value": "hsl({color.primary.50} / 35%)"
|
|
26
|
-
},
|
|
27
|
-
"disabled-foreground": {
|
|
28
|
-
"value": "hsl({color.support.white} / 20%)"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"cta": {
|
|
32
|
-
"default": {
|
|
33
|
-
"value": "hsl({color.support.brand})"
|
|
34
|
-
},
|
|
35
|
-
"dark": {
|
|
36
|
-
"value": "hsl(0 100% 41%)"
|
|
37
|
-
},
|
|
38
|
-
"foreground": {
|
|
39
|
-
"value": "hsl({color.support.white})"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"dimmed": {
|
|
43
|
-
"0": {
|
|
44
|
-
"value": "hsl({color.primary.100})"
|
|
45
|
-
},
|
|
46
|
-
"1": {
|
|
47
|
-
"value": "hsl({color.primary.90})"
|
|
48
|
-
},
|
|
49
|
-
"2": {
|
|
50
|
-
"value": "hsl({color.primary.80})"
|
|
51
|
-
},
|
|
52
|
-
"3": {
|
|
53
|
-
"value": "hsl({color.primary.70})"
|
|
54
|
-
},
|
|
55
|
-
"4": {
|
|
56
|
-
"value": "hsl({color.primary.60})"
|
|
57
|
-
},
|
|
58
|
-
"5": {
|
|
59
|
-
"value": "hsl({color.primary.50})"
|
|
60
|
-
},
|
|
61
|
-
"6": {
|
|
62
|
-
"value": "hsl({color.primary.30})"
|
|
63
|
-
},
|
|
64
|
-
"7": {
|
|
65
|
-
"value": "hsl({color.primary.5})"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"highlight": {
|
|
69
|
-
"gray-background": {
|
|
70
|
-
"value": "hsl({color.primary.90})"
|
|
71
|
-
},
|
|
72
|
-
"gray-foreground": {
|
|
73
|
-
"value": "hsl({color.primary.30})"
|
|
74
|
-
},
|
|
75
|
-
"yellow-background": {
|
|
76
|
-
"value": "hsl({color.yellow.80})"
|
|
77
|
-
},
|
|
78
|
-
"yellow-foreground": {
|
|
79
|
-
"value": "hsl({color.yellow.10})"
|
|
80
|
-
},
|
|
81
|
-
"green-background": {
|
|
82
|
-
"value": "hsl({color.green.80})"
|
|
83
|
-
},
|
|
84
|
-
"green-foreground": {
|
|
85
|
-
"value": "hsl({color.green.10})"
|
|
86
|
-
},
|
|
87
|
-
"blue-background": {
|
|
88
|
-
"value": "hsl({color.blue.80})"
|
|
89
|
-
},
|
|
90
|
-
"blue-foreground": {
|
|
91
|
-
"value": "hsl({color.blue.10})"
|
|
92
|
-
},
|
|
93
|
-
"red-background": {
|
|
94
|
-
"value": "hsl({color.red.80})"
|
|
95
|
-
},
|
|
96
|
-
"red-foreground": {
|
|
97
|
-
"value": "hsl({color.red.10})"
|
|
98
|
-
},
|
|
99
|
-
"cyan-background": {
|
|
100
|
-
"value": "hsl({color.cyan.80})"
|
|
101
|
-
},
|
|
102
|
-
"cyan-foreground": {
|
|
103
|
-
"value": "hsl({color.cyan.20})"
|
|
104
|
-
},
|
|
105
|
-
"purple-background": {
|
|
106
|
-
"value": "hsl({color.purple.80})"
|
|
107
|
-
},
|
|
108
|
-
"purple-foreground": {
|
|
109
|
-
"value": "hsl({color.purple.20})"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
package/src/index.js
DELETED
package/src/light.json
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"global": {
|
|
3
|
-
"foreground": {
|
|
4
|
-
"value": "hsl({color.primary.70})"
|
|
5
|
-
},
|
|
6
|
-
"background": {
|
|
7
|
-
"value": "hsl({color.support.white})"
|
|
8
|
-
},
|
|
9
|
-
"interactive-text": {
|
|
10
|
-
"value": "hsl({color.blue.40})"
|
|
11
|
-
},
|
|
12
|
-
"interactive-text-hover": {
|
|
13
|
-
"value": "hsl({color.blue.60})"
|
|
14
|
-
},
|
|
15
|
-
"vibrancy-foreground": {
|
|
16
|
-
"value": "hsl({color.support.black})"
|
|
17
|
-
},
|
|
18
|
-
"vibrancy-background": {
|
|
19
|
-
"value": "hsl({color.primary.10} / 40%)"
|
|
20
|
-
},
|
|
21
|
-
"vibrancy-background-hover": {
|
|
22
|
-
"value": "hsl({color.primary.50} / 30%)"
|
|
23
|
-
},
|
|
24
|
-
"disabled-background": {
|
|
25
|
-
"value": "hsl({color.primary.100} / 6%)"
|
|
26
|
-
},
|
|
27
|
-
"disabled-foreground": {
|
|
28
|
-
"value": "hsl({color.support.black} / 20%)"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"cta": {
|
|
32
|
-
"default": {
|
|
33
|
-
"value": "hsl({color.support.brand})"
|
|
34
|
-
},
|
|
35
|
-
"dark": {
|
|
36
|
-
"value": "hsl(0 100% 41%)"
|
|
37
|
-
},
|
|
38
|
-
"foreground": {
|
|
39
|
-
"value": "hsl({color.support.white})"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"dimmed": {
|
|
43
|
-
"0": {
|
|
44
|
-
"value": "hsl({color.primary.0})"
|
|
45
|
-
},
|
|
46
|
-
"1": {
|
|
47
|
-
"value": "hsl({color.primary.5})"
|
|
48
|
-
},
|
|
49
|
-
"2": {
|
|
50
|
-
"value": "hsl({color.primary.10})"
|
|
51
|
-
},
|
|
52
|
-
"3": {
|
|
53
|
-
"value": "hsl({color.primary.20})"
|
|
54
|
-
},
|
|
55
|
-
"4": {
|
|
56
|
-
"value": "hsl({color.primary.30})"
|
|
57
|
-
},
|
|
58
|
-
"5": {
|
|
59
|
-
"value": "hsl({color.primary.50})"
|
|
60
|
-
},
|
|
61
|
-
"6": {
|
|
62
|
-
"value": "hsl({color.primary.60})"
|
|
63
|
-
},
|
|
64
|
-
"7": {
|
|
65
|
-
"value": "hsl({color.primary.70})"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"highlight": {
|
|
69
|
-
"gray-background": {
|
|
70
|
-
"value": "hsl({color.primary.5})"
|
|
71
|
-
},
|
|
72
|
-
"gray-foreground": {
|
|
73
|
-
"value": "hsl({color.primary.60})"
|
|
74
|
-
},
|
|
75
|
-
"yellow-background": {
|
|
76
|
-
"value": "hsl({color.yellow.0})"
|
|
77
|
-
},
|
|
78
|
-
"yellow-foreground": {
|
|
79
|
-
"value": "hsl({color.yellow.50})"
|
|
80
|
-
},
|
|
81
|
-
"green-background": {
|
|
82
|
-
"value": "hsl({color.green.0})"
|
|
83
|
-
},
|
|
84
|
-
"green-foreground": {
|
|
85
|
-
"value": "hsl({color.green.60})"
|
|
86
|
-
},
|
|
87
|
-
"blue-background": {
|
|
88
|
-
"value": "hsl({color.blue.5})"
|
|
89
|
-
},
|
|
90
|
-
"blue-foreground": {
|
|
91
|
-
"value": "hsl({color.blue.40})"
|
|
92
|
-
},
|
|
93
|
-
"red-background": {
|
|
94
|
-
"value": "hsl({color.red.0})"
|
|
95
|
-
},
|
|
96
|
-
"red-foreground": {
|
|
97
|
-
"value": "hsl({color.red.40})"
|
|
98
|
-
},
|
|
99
|
-
"cyan-background": {
|
|
100
|
-
"value": "hsl({color.cyan.0})"
|
|
101
|
-
},
|
|
102
|
-
"cyan-foreground": {
|
|
103
|
-
"value": "hsl({color.cyan.50})"
|
|
104
|
-
},
|
|
105
|
-
"purple-background": {
|
|
106
|
-
"value": "hsl({color.purple.0})"
|
|
107
|
-
},
|
|
108
|
-
"purple-foreground": {
|
|
109
|
-
"value": "hsl({color.purple.50})"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
package/src/themes.config.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const yargs = require('yargs/yargs')
|
|
2
|
-
const { hideBin } = require('yargs/helpers')
|
|
3
|
-
const argv = yargs(hideBin(process.argv)).argv
|
|
4
|
-
const tkns = require('@wonderflow/tokens/platforms/web/tokens.json')
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
source: [`./src/${argv.name}.json`],
|
|
8
|
-
tokens: {
|
|
9
|
-
...tkns
|
|
10
|
-
},
|
|
11
|
-
platforms: {
|
|
12
|
-
web: {
|
|
13
|
-
buildPath: 'dist/themes/',
|
|
14
|
-
transformGroup: 'css',
|
|
15
|
-
files: [
|
|
16
|
-
{
|
|
17
|
-
format: 'css/variables',
|
|
18
|
-
destination: `${argv.name}.css`
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
format: 'json/flat',
|
|
22
|
-
destination: `${argv.name}.json`
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
options: {
|
|
26
|
-
showFileHeader: true
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
package/tests/themes.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const assert = require('uvu/assert')
|
|
2
|
-
const { suite } = require('uvu')
|
|
3
|
-
const Theme = require('../dist/themes/light.json')
|
|
4
|
-
|
|
5
|
-
const THEME_TOT_KEYS = 34
|
|
6
|
-
|
|
7
|
-
const Themes = suite('Themes')
|
|
8
|
-
Themes('Light should include all keys', () => {
|
|
9
|
-
assert.is(Object.keys(Theme).length, THEME_TOT_KEYS)
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
Themes('Theme should includes globals', () => {
|
|
13
|
-
assert.ok(Object.keys(Theme).includes('global-foreground'))
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
Themes('Theme should includes cta', () => {
|
|
17
|
-
assert.ok(Object.keys(Theme).includes('cta-default'))
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
Themes('Theme should includes dimmed', () => {
|
|
21
|
-
assert.ok(Object.keys(Theme).includes('dimmed-0'))
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
Themes('Theme should includes dimmed', () => {
|
|
25
|
-
assert.ok(Object.keys(Theme).includes('highlight-gray-background'))
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
Themes('Theme should matches original', () => {
|
|
29
|
-
const output = JSON.stringify(Theme)
|
|
30
|
-
assert.equal(JSON.parse(output), Theme, 'matches original')
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
Themes.run()
|