@new-ui/colors 1.0.0 → 1.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/README.md +16 -16
- package/build-tokens.js +1 -1
- package/dist/themes/dark-cold.css +4 -4
- package/dist/themes/dark-warm.css +4 -4
- package/dist/themes/dark.css +4 -4
- package/dist/themes/light-cold.css +5 -5
- package/dist/themes/light-warm.css +5 -5
- package/dist/themes/light.css +5 -5
- package/help/cover.png +0 -0
- package/package.json +1 -1
- package/tokens/themes/dark/dark.json +3 -3
- package/tokens/themes/dark-cold/dark.json +3 -3
- package/tokens/themes/dark-warm/dark.json +3 -3
- package/tokens/themes/light/light.json +4 -4
- package/tokens/themes/light-cold/light.json +4 -4
- package/tokens/themes/light-warm/light.json +4 -4
- package/help/dark.png +0 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
## Install
|
|
4
|
-
Install New UI Colors from your terminal via npm. Current version is 1.
|
|
4
|
+
Install New UI Colors from your terminal via npm. Current version is 1.2.0
|
|
5
5
|
|
|
6
6
|
```
|
|
7
7
|
npm i @new-ui/colors
|
|
@@ -10,25 +10,25 @@ npm i @new-ui/colors
|
|
|
10
10
|
To get started quickly, you can use the CDN files.
|
|
11
11
|
|
|
12
12
|
Light themes:
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.2.0/dist/themes/light.min.css">
|
|
13
15
|
```
|
|
14
|
-
|
|
16
|
+
```html
|
|
17
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.2.0/dist/themes/light-warm.min.css">
|
|
15
18
|
```
|
|
16
|
-
```
|
|
17
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.
|
|
18
|
-
```
|
|
19
|
-
```
|
|
20
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.0.0/dist/themes/light-cold.css">
|
|
19
|
+
```html
|
|
20
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.2.0/dist/themes/light-cold.min.css">
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Dark themes:
|
|
24
|
+
```html
|
|
25
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.2.0/dist/themes/dark.min.css">
|
|
24
26
|
```
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.0.0/dist/themes/dark-warm.css">
|
|
29
|
-
```
|
|
27
|
+
```html
|
|
28
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.2.0/dist/themes/dark-warm.min.css">
|
|
30
29
|
```
|
|
31
|
-
|
|
30
|
+
```html
|
|
31
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@1.2.0/dist/themes/dark-cold.min.css">
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Build
|
|
@@ -53,7 +53,7 @@ npm run build:tokens -- --theme=dark-warm
|
|
|
53
53
|
npm run build:tokens -- --theme=dark-cold
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## Recommended Defaults
|
|
57
57
|
Refer to the Figma file for the color tokens cheatsheet.
|
|
58
58
|
|
|
59
|
-
[
|
|
59
|
+
[Get a Figma copy](https://www.figma.com/community/file/1179503548902179413)
|
package/build-tokens.js
CHANGED
|
@@ -2,7 +2,7 @@ const StyleDictionary = require("style-dictionary");
|
|
|
2
2
|
const args = require("minimist")(process.argv.slice(2));
|
|
3
3
|
const theme = args.theme ? args.theme : "primary";
|
|
4
4
|
|
|
5
|
-
console.log(
|
|
5
|
+
console.log(`Compiling tokens with the ${theme.toUpperCase()} theme ...`);
|
|
6
6
|
|
|
7
7
|
const getStyleDictionaryConfig = (theme) => {
|
|
8
8
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Mon,
|
|
3
|
+
* Generated on Mon, 26 Dec 2022 09:03:08 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
--link-hover: var(--blue3);
|
|
149
149
|
--link: var(--blue4);
|
|
150
150
|
--icon-on-color: var(--white);
|
|
151
|
-
--icon-disabled: var(--
|
|
151
|
+
--icon-disabled: var(--cold8);
|
|
152
152
|
--icon-secondary: var(--cold4);
|
|
153
153
|
--icon-primary: var(--cold2);
|
|
154
|
-
--button-disabled: var(--
|
|
154
|
+
--button-disabled: var(--cold9);
|
|
155
155
|
--button-danger-active: var(--red3);
|
|
156
156
|
--button-danger-hover: var(--red3);
|
|
157
157
|
--button-danger: var(--red4);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--button-primary-hover: var(--blue3);
|
|
163
163
|
--button-primary: var(--blue4);
|
|
164
164
|
--border-strong: var(--cold5);
|
|
165
|
-
--border
|
|
165
|
+
--border: var(--cold7);
|
|
166
166
|
--border-muted: var(--cold9);
|
|
167
167
|
--background-brown: var(--brown8);
|
|
168
168
|
--background-pink: var(--pink8);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Mon,
|
|
3
|
+
* Generated on Mon, 26 Dec 2022 09:03:03 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
--link-hover: var(--blue3);
|
|
149
149
|
--link: var(--blue4);
|
|
150
150
|
--icon-on-color: var(--white);
|
|
151
|
-
--icon-disabled: var(--
|
|
151
|
+
--icon-disabled: var(--warm8);
|
|
152
152
|
--icon-secondary: var(--warm4);
|
|
153
153
|
--icon-primary: var(--warm2);
|
|
154
|
-
--button-disabled: var(--
|
|
154
|
+
--button-disabled: var(--warm9);
|
|
155
155
|
--button-danger-active: var(--red3);
|
|
156
156
|
--button-danger-hover: var(--red3);
|
|
157
157
|
--button-danger: var(--red4);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--button-primary-hover: var(--blue3);
|
|
163
163
|
--button-primary: var(--blue4);
|
|
164
164
|
--border-strong: var(--warm5);
|
|
165
|
-
--border
|
|
165
|
+
--border: var(--warm7);
|
|
166
166
|
--border-muted: var(--warm9);
|
|
167
167
|
--background-brown: var(--brown8);
|
|
168
168
|
--background-pink: var(--pink8);
|
package/dist/themes/dark.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Mon,
|
|
3
|
+
* Generated on Mon, 26 Dec 2022 09:02:59 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
--link-hover: var(--blue3);
|
|
149
149
|
--link: var(--blue4);
|
|
150
150
|
--icon-on-color: var(--white);
|
|
151
|
-
--icon-disabled: var(--
|
|
151
|
+
--icon-disabled: var(--grey8);
|
|
152
152
|
--icon-secondary: var(--grey4);
|
|
153
153
|
--icon-primary: var(--grey2);
|
|
154
|
-
--button-disabled: var(--
|
|
154
|
+
--button-disabled: var(--grey9);
|
|
155
155
|
--button-danger-active: var(--red3);
|
|
156
156
|
--button-danger-hover: var(--red3);
|
|
157
157
|
--button-danger: var(--red4);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--button-primary-hover: var(--blue3);
|
|
163
163
|
--button-primary: var(--blue4);
|
|
164
164
|
--border-strong: var(--grey5);
|
|
165
|
-
--border
|
|
165
|
+
--border: var(--grey7);
|
|
166
166
|
--border-muted: var(--grey9);
|
|
167
167
|
--background-brown: var(--brown8);
|
|
168
168
|
--background-pink: var(--pink8);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Mon,
|
|
3
|
+
* Generated on Mon, 26 Dec 2022 09:02:55 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
--support-warning: var(--yellow5);
|
|
145
145
|
--support-error: var(--red5);
|
|
146
146
|
--link-visited: var(--indigo5);
|
|
147
|
-
--link-subtle: var(--
|
|
147
|
+
--link-subtle: var(--cold8);
|
|
148
148
|
--link-hover: var(--blue6);
|
|
149
149
|
--link: var(--blue5);
|
|
150
150
|
--icon-on-color: var(--white);
|
|
151
|
-
--icon-disabled: var(--
|
|
152
|
-
--icon-secondary: var(--
|
|
151
|
+
--icon-disabled: var(--cold4);
|
|
152
|
+
--icon-secondary: var(--cold7);
|
|
153
153
|
--icon-primary: var(--cold9);
|
|
154
154
|
--button-disabled: var(--cold4);
|
|
155
155
|
--button-danger-active: var(--red7);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--button-primary-hover: var(--blue6);
|
|
163
163
|
--button-primary: var(--blue5);
|
|
164
164
|
--border-strong: var(--cold6);
|
|
165
|
-
--border
|
|
165
|
+
--border: var(--cold4);
|
|
166
166
|
--border-muted: var(--cold2);
|
|
167
167
|
--background-brown: var(--brown1);
|
|
168
168
|
--background-pink: var(--pink1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Mon,
|
|
3
|
+
* Generated on Mon, 26 Dec 2022 09:02:49 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
--support-warning: var(--yellow5);
|
|
145
145
|
--support-error: var(--red5);
|
|
146
146
|
--link-visited: var(--indigo5);
|
|
147
|
-
--link-subtle: var(--
|
|
147
|
+
--link-subtle: var(--warm8);
|
|
148
148
|
--link-hover: var(--blue6);
|
|
149
149
|
--link: var(--blue5);
|
|
150
150
|
--icon-on-color: var(--white);
|
|
151
|
-
--icon-disabled: var(--
|
|
152
|
-
--icon-secondary: var(--
|
|
151
|
+
--icon-disabled: var(--warm4);
|
|
152
|
+
--icon-secondary: var(--warm7);
|
|
153
153
|
--icon-primary: var(--warm9);
|
|
154
154
|
--button-disabled: var(--warm4);
|
|
155
155
|
--button-danger-active: var(--red7);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--button-primary-hover: var(--blue6);
|
|
163
163
|
--button-primary: var(--blue5);
|
|
164
164
|
--border-strong: var(--warm6);
|
|
165
|
-
--border
|
|
165
|
+
--border: var(--warm4);
|
|
166
166
|
--border-muted: var(--warm2);
|
|
167
167
|
--background-brown: var(--brown1);
|
|
168
168
|
--background-pink: var(--pink1);
|
package/dist/themes/light.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Mon,
|
|
3
|
+
* Generated on Mon, 26 Dec 2022 09:02:40 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
--support-warning: var(--yellow5);
|
|
145
145
|
--support-error: var(--red5);
|
|
146
146
|
--link-visited: var(--indigo5);
|
|
147
|
-
--link-subtle: var(--
|
|
147
|
+
--link-subtle: var(--grey8);
|
|
148
148
|
--link-hover: var(--blue6);
|
|
149
149
|
--link: var(--blue5);
|
|
150
150
|
--icon-on-color: var(--white);
|
|
151
|
-
--icon-disabled: var(--
|
|
152
|
-
--icon-secondary: var(--
|
|
151
|
+
--icon-disabled: var(--grey4);
|
|
152
|
+
--icon-secondary: var(--grey7);
|
|
153
153
|
--icon-primary: var(--grey9);
|
|
154
154
|
--button-disabled: var(--grey4);
|
|
155
155
|
--button-danger-active: var(--red7);
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
--button-primary-hover: var(--blue6);
|
|
163
163
|
--button-primary: var(--blue5);
|
|
164
164
|
--border-strong: var(--grey6);
|
|
165
|
-
--border
|
|
165
|
+
--border: var(--grey4);
|
|
166
166
|
--border-muted: var(--grey2);
|
|
167
167
|
--background-brown: var(--brown1);
|
|
168
168
|
--background-pink: var(--pink1);
|
package/help/cover.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"value": "{$grey9}",
|
|
72
72
|
"type": "color"
|
|
73
73
|
},
|
|
74
|
-
"$border
|
|
74
|
+
"$border": {
|
|
75
75
|
"value": "{$grey7}",
|
|
76
76
|
"type": "color"
|
|
77
77
|
},
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"type": "color"
|
|
117
117
|
},
|
|
118
118
|
"$button-disabled": {
|
|
119
|
-
"value": "{$
|
|
119
|
+
"value": "{$grey9}",
|
|
120
120
|
"type": "color"
|
|
121
121
|
},
|
|
122
122
|
"$icon-primary": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"type": "color"
|
|
129
129
|
},
|
|
130
130
|
"$icon-disabled": {
|
|
131
|
-
"value": "{$
|
|
131
|
+
"value": "{$grey8}",
|
|
132
132
|
"type": "color"
|
|
133
133
|
},
|
|
134
134
|
"$icon-on-color": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"value": "{$cold9}",
|
|
72
72
|
"type": "color"
|
|
73
73
|
},
|
|
74
|
-
"$border
|
|
74
|
+
"$border": {
|
|
75
75
|
"value": "{$cold7}",
|
|
76
76
|
"type": "color"
|
|
77
77
|
},
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"type": "color"
|
|
117
117
|
},
|
|
118
118
|
"$button-disabled": {
|
|
119
|
-
"value": "{$
|
|
119
|
+
"value": "{$cold9}",
|
|
120
120
|
"type": "color"
|
|
121
121
|
},
|
|
122
122
|
"$icon-primary": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"type": "color"
|
|
129
129
|
},
|
|
130
130
|
"$icon-disabled": {
|
|
131
|
-
"value": "{$
|
|
131
|
+
"value": "{$cold8}",
|
|
132
132
|
"type": "color"
|
|
133
133
|
},
|
|
134
134
|
"$icon-on-color": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"value": "{$warm9}",
|
|
72
72
|
"type": "color"
|
|
73
73
|
},
|
|
74
|
-
"$border
|
|
74
|
+
"$border": {
|
|
75
75
|
"value": "{$warm7}",
|
|
76
76
|
"type": "color"
|
|
77
77
|
},
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"type": "color"
|
|
117
117
|
},
|
|
118
118
|
"$button-disabled": {
|
|
119
|
-
"value": "{$
|
|
119
|
+
"value": "{$warm9}",
|
|
120
120
|
"type": "color"
|
|
121
121
|
},
|
|
122
122
|
"$icon-primary": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"type": "color"
|
|
129
129
|
},
|
|
130
130
|
"$icon-disabled": {
|
|
131
|
-
"value": "{$
|
|
131
|
+
"value": "{$warm8}",
|
|
132
132
|
"type": "color"
|
|
133
133
|
},
|
|
134
134
|
"$icon-on-color": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"value": "{$grey2}",
|
|
72
72
|
"type": "color"
|
|
73
73
|
},
|
|
74
|
-
"$border
|
|
74
|
+
"$border": {
|
|
75
75
|
"value": "{$grey4}",
|
|
76
76
|
"type": "color"
|
|
77
77
|
},
|
|
@@ -124,11 +124,11 @@
|
|
|
124
124
|
"type": "color"
|
|
125
125
|
},
|
|
126
126
|
"$icon-secondary": {
|
|
127
|
-
"value": "{$
|
|
127
|
+
"value": "{$grey7}",
|
|
128
128
|
"type": "color"
|
|
129
129
|
},
|
|
130
130
|
"$icon-disabled": {
|
|
131
|
-
"value": "{$
|
|
131
|
+
"value": "{$grey4}",
|
|
132
132
|
"type": "color"
|
|
133
133
|
},
|
|
134
134
|
"$icon-on-color": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"type": "color"
|
|
145
145
|
},
|
|
146
146
|
"$link-subtle": {
|
|
147
|
-
"value": "{$
|
|
147
|
+
"value": "{$grey8}",
|
|
148
148
|
"type": "color"
|
|
149
149
|
},
|
|
150
150
|
"$link-visited": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"value": "{$cold2}",
|
|
72
72
|
"type": "color"
|
|
73
73
|
},
|
|
74
|
-
"$border
|
|
74
|
+
"$border": {
|
|
75
75
|
"value": "{$cold4}",
|
|
76
76
|
"type": "color"
|
|
77
77
|
},
|
|
@@ -124,11 +124,11 @@
|
|
|
124
124
|
"type": "color"
|
|
125
125
|
},
|
|
126
126
|
"$icon-secondary": {
|
|
127
|
-
"value": "{$
|
|
127
|
+
"value": "{$cold7}",
|
|
128
128
|
"type": "color"
|
|
129
129
|
},
|
|
130
130
|
"$icon-disabled": {
|
|
131
|
-
"value": "{$
|
|
131
|
+
"value": "{$cold4}",
|
|
132
132
|
"type": "color"
|
|
133
133
|
},
|
|
134
134
|
"$icon-on-color": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"type": "color"
|
|
145
145
|
},
|
|
146
146
|
"$link-subtle": {
|
|
147
|
-
"value": "{$
|
|
147
|
+
"value": "{$cold8}",
|
|
148
148
|
"type": "color"
|
|
149
149
|
},
|
|
150
150
|
"$link-visited": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"value": "{$warm2}",
|
|
72
72
|
"type": "color"
|
|
73
73
|
},
|
|
74
|
-
"$border
|
|
74
|
+
"$border": {
|
|
75
75
|
"value": "{$warm4}",
|
|
76
76
|
"type": "color"
|
|
77
77
|
},
|
|
@@ -124,11 +124,11 @@
|
|
|
124
124
|
"type": "color"
|
|
125
125
|
},
|
|
126
126
|
"$icon-secondary": {
|
|
127
|
-
"value": "{$
|
|
127
|
+
"value": "{$warm7}",
|
|
128
128
|
"type": "color"
|
|
129
129
|
},
|
|
130
130
|
"$icon-disabled": {
|
|
131
|
-
"value": "{$
|
|
131
|
+
"value": "{$warm4}",
|
|
132
132
|
"type": "color"
|
|
133
133
|
},
|
|
134
134
|
"$icon-on-color": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"type": "color"
|
|
145
145
|
},
|
|
146
146
|
"$link-subtle": {
|
|
147
|
-
"value": "{$
|
|
147
|
+
"value": "{$warm8}",
|
|
148
148
|
"type": "color"
|
|
149
149
|
},
|
|
150
150
|
"$link-visited": {
|
package/help/dark.png
DELETED
|
Binary file
|