@spscommerce/ds-colors 0.1.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 +72 -0
- package/colors.css +25 -0
- package/colors.js +27 -0
- package/colors.json +25 -0
- package/colors.less +23 -0
- package/colors.md +113 -0
- package/colors.scss +23 -0
- package/colors.yml +23 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# @spscommerce/ds-colors
|
|
2
|
+
|
|
3
|
+
> Design approved colors distributed in various formats
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm install --save @spscommerce/ds-colors
|
|
7
|
+
|
|
8
|
+
# OR
|
|
9
|
+
|
|
10
|
+
yarn add @spscommerce/ds-colors
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Now choose a format that you'd like to use. The following formats are available:
|
|
14
|
+
|
|
15
|
+
* [CommonJS](#commonjs)
|
|
16
|
+
* [CSS Variables](#css-variables)
|
|
17
|
+
* [JSON](#json)
|
|
18
|
+
* [Less](#less)
|
|
19
|
+
* [SCSS](#scss)
|
|
20
|
+
* [YAML](#yaml)
|
|
21
|
+
|
|
22
|
+
If you want more formats please open a pull request.
|
|
23
|
+
|
|
24
|
+
### CommonJS
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
const colors, { red100 } = require('@spscommerce/ds-colors');
|
|
28
|
+
console.log(colors.red100); // > #ffeaec
|
|
29
|
+
console.log(red100); // > #ffeaec
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### CSS Variables
|
|
33
|
+
|
|
34
|
+
```css
|
|
35
|
+
@import 'path/to/node_modules/@spscommerce/ds-colors/colors.css';
|
|
36
|
+
|
|
37
|
+
.myclass {
|
|
38
|
+
color: var(--gray400);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### JSON
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
ln -s path/to/node_modules/@spscommerce/ds-colors/colors.json colors.json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Less
|
|
49
|
+
|
|
50
|
+
```less
|
|
51
|
+
@import 'path/to/node_modules/@spscommerce/ds-colors/colors';
|
|
52
|
+
|
|
53
|
+
.myclass {
|
|
54
|
+
color: @gray400;
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### SCSS
|
|
59
|
+
|
|
60
|
+
```scss
|
|
61
|
+
@import '@spscommerce/ds-colors/colors';
|
|
62
|
+
|
|
63
|
+
.myclass {
|
|
64
|
+
color: $gray400;
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### YAML
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
ln -s path/to/node_modules/@spscommerce/ds-colors/colors.yml colors.yml
|
|
72
|
+
```
|
package/colors.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--red100: #FBE6EA;
|
|
3
|
+
--red200: #DE002E;
|
|
4
|
+
--red300: #A30D2D;
|
|
5
|
+
--blue100: #E6F2F8;
|
|
6
|
+
--blue200: #007DB8;
|
|
7
|
+
--blue300: #09638D;
|
|
8
|
+
--green100: #E7F3EC;
|
|
9
|
+
--green200: #0B8940;
|
|
10
|
+
--green300: #106B39;
|
|
11
|
+
--purple100: #F4ECF2;
|
|
12
|
+
--purple200: #91467F;
|
|
13
|
+
--purple300: #6E3C65;
|
|
14
|
+
--orange100: #FCF1E7;
|
|
15
|
+
--orange200: #E7760B;
|
|
16
|
+
--orange300: #AA5E14;
|
|
17
|
+
--white: #FFFFFF;
|
|
18
|
+
--gray100: #F3F4F4;
|
|
19
|
+
--gray200: #E9E9EA;
|
|
20
|
+
--gray300: #D2D4D4;
|
|
21
|
+
--gray400: #717779;
|
|
22
|
+
--gray500: #4B5356;
|
|
23
|
+
--gray600: #1F282C;
|
|
24
|
+
--black: #000000;
|
|
25
|
+
}
|
package/colors.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
colors: {
|
|
3
|
+
red100: "#FBE6EA",
|
|
4
|
+
red200: "#DE002E",
|
|
5
|
+
red300: "#A30D2D",
|
|
6
|
+
blue100: "#E6F2F8",
|
|
7
|
+
blue200: "#007DB8",
|
|
8
|
+
blue300: "#09638D",
|
|
9
|
+
green100: "#E7F3EC",
|
|
10
|
+
green200: "#0B8940",
|
|
11
|
+
green300: "#106B39",
|
|
12
|
+
purple100: "#F4ECF2",
|
|
13
|
+
purple200: "#91467F",
|
|
14
|
+
purple300: "#6E3C65",
|
|
15
|
+
orange100: "#FCF1E7",
|
|
16
|
+
orange200: "#E7760B",
|
|
17
|
+
orange300: "#AA5E14",
|
|
18
|
+
white: "#FFFFFF",
|
|
19
|
+
gray100: "#F3F4F4",
|
|
20
|
+
gray200: "#E9E9EA",
|
|
21
|
+
gray300: "#D2D4D4",
|
|
22
|
+
gray400: "#717779",
|
|
23
|
+
gray500: "#4B5356",
|
|
24
|
+
gray600: "#1F282C",
|
|
25
|
+
black: "#000000",
|
|
26
|
+
}
|
|
27
|
+
};
|
package/colors.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"red100": "#FBE6EA",
|
|
3
|
+
"red200": "#DE002E",
|
|
4
|
+
"red300": "#A30D2D",
|
|
5
|
+
"blue100": "#E6F2F8",
|
|
6
|
+
"blue200": "#007DB8",
|
|
7
|
+
"blue300": "#09638D",
|
|
8
|
+
"green100": "#E7F3EC",
|
|
9
|
+
"green200": "#0B8940",
|
|
10
|
+
"green300": "#106B39",
|
|
11
|
+
"purple100": "#F4ECF2",
|
|
12
|
+
"purple200": "#91467F",
|
|
13
|
+
"purple300": "#6E3C65",
|
|
14
|
+
"orange100": "#FCF1E7",
|
|
15
|
+
"orange200": "#E7760B",
|
|
16
|
+
"orange300": "#AA5E14",
|
|
17
|
+
"white": "#FFFFFF",
|
|
18
|
+
"gray100": "#F3F4F4",
|
|
19
|
+
"gray200": "#E9E9EA",
|
|
20
|
+
"gray300": "#D2D4D4",
|
|
21
|
+
"gray400": "#717779",
|
|
22
|
+
"gray500": "#4B5356",
|
|
23
|
+
"gray600": "#1F282C",
|
|
24
|
+
"black": "#000000"
|
|
25
|
+
}
|
package/colors.less
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@red100: #FBE6EA;
|
|
2
|
+
@red200: #DE002E;
|
|
3
|
+
@red300: #A30D2D;
|
|
4
|
+
@blue100: #E6F2F8;
|
|
5
|
+
@blue200: #007DB8;
|
|
6
|
+
@blue300: #09638D;
|
|
7
|
+
@green100: #E7F3EC;
|
|
8
|
+
@green200: #0B8940;
|
|
9
|
+
@green300: #106B39;
|
|
10
|
+
@purple100: #F4ECF2;
|
|
11
|
+
@purple200: #91467F;
|
|
12
|
+
@purple300: #6E3C65;
|
|
13
|
+
@orange100: #FCF1E7;
|
|
14
|
+
@orange200: #E7760B;
|
|
15
|
+
@orange300: #AA5E14;
|
|
16
|
+
@white: #FFFFFF;
|
|
17
|
+
@gray100: #F3F4F4;
|
|
18
|
+
@gray200: #E9E9EA;
|
|
19
|
+
@gray300: #D2D4D4;
|
|
20
|
+
@gray400: #717779;
|
|
21
|
+
@gray500: #4B5356;
|
|
22
|
+
@gray600: #1F282C;
|
|
23
|
+
@black: #000000;
|
package/colors.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
**red100**
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
**red200**
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
**red300**
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
**blue100**
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
**blue200**
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
**blue300**
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
**green100**
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
**green200**
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
**green300**
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
**purple100**
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
**purple200**
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
**purple300**
|
|
57
|
+
|
|
58
|
+

|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
**orange100**
|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
**orange200**
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
**orange300**
|
|
72
|
+
|
|
73
|
+

|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
**white**
|
|
77
|
+
|
|
78
|
+

|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
**gray100**
|
|
82
|
+
|
|
83
|
+

|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
**gray200**
|
|
87
|
+
|
|
88
|
+

|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
**gray300**
|
|
92
|
+
|
|
93
|
+

|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
**gray400**
|
|
97
|
+
|
|
98
|
+

|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
**gray500**
|
|
102
|
+
|
|
103
|
+

|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
**gray600**
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
**black**
|
|
112
|
+
|
|
113
|
+

|
package/colors.scss
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
$red100: #FBE6EA;
|
|
2
|
+
$red200: #DE002E;
|
|
3
|
+
$red300: #A30D2D;
|
|
4
|
+
$blue100: #E6F2F8;
|
|
5
|
+
$blue200: #007DB8;
|
|
6
|
+
$blue300: #09638D;
|
|
7
|
+
$green100: #E7F3EC;
|
|
8
|
+
$green200: #0B8940;
|
|
9
|
+
$green300: #106B39;
|
|
10
|
+
$purple100: #F4ECF2;
|
|
11
|
+
$purple200: #91467F;
|
|
12
|
+
$purple300: #6E3C65;
|
|
13
|
+
$orange100: #FCF1E7;
|
|
14
|
+
$orange200: #E7760B;
|
|
15
|
+
$orange300: #AA5E14;
|
|
16
|
+
$white: #FFFFFF;
|
|
17
|
+
$gray100: #F3F4F4;
|
|
18
|
+
$gray200: #E9E9EA;
|
|
19
|
+
$gray300: #D2D4D4;
|
|
20
|
+
$gray400: #717779;
|
|
21
|
+
$gray500: #4B5356;
|
|
22
|
+
$gray600: #1F282C;
|
|
23
|
+
$black: #000000;
|
package/colors.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
red100: '#FBE6EA'
|
|
2
|
+
red200: '#DE002E'
|
|
3
|
+
red300: '#A30D2D'
|
|
4
|
+
blue100: '#E6F2F8'
|
|
5
|
+
blue200: '#007DB8'
|
|
6
|
+
blue300: '#09638D'
|
|
7
|
+
green100: '#E7F3EC'
|
|
8
|
+
green200: '#0B8940'
|
|
9
|
+
green300: '#106B39'
|
|
10
|
+
purple100: '#F4ECF2'
|
|
11
|
+
purple200: '#91467F'
|
|
12
|
+
purple300: '#6E3C65'
|
|
13
|
+
orange100: '#FCF1E7'
|
|
14
|
+
orange200: '#E7760B'
|
|
15
|
+
orange300: '#AA5E14'
|
|
16
|
+
white: '#FFFFFF'
|
|
17
|
+
gray100: '#F3F4F4'
|
|
18
|
+
gray200: '#E9E9EA'
|
|
19
|
+
gray300: '#D2D4D4'
|
|
20
|
+
gray400: '#717779'
|
|
21
|
+
gray500: '#4B5356'
|
|
22
|
+
gray600: '#1F282C'
|
|
23
|
+
black: '#000000'
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spscommerce/ds-colors",
|
|
3
|
+
"description": "Design sanctioned colors for SPS Commerce libraries and applications compiled into various formats.",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"author": "SPS Commerce",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-colors",
|
|
8
|
+
"homepage": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-colors#readme",
|
|
9
|
+
"main": "./colors.js",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"colors",
|
|
15
|
+
"color",
|
|
16
|
+
"sass",
|
|
17
|
+
"scss",
|
|
18
|
+
"less",
|
|
19
|
+
"json",
|
|
20
|
+
"js",
|
|
21
|
+
"css variables"
|
|
22
|
+
],
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"fs-extra": "^7.0.1",
|
|
25
|
+
"sections": "^1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "node -e \"$(tsc scripts/build.ts --outFile /dev/stdout --lib es6 --types node)\"",
|
|
29
|
+
"clean": "git clean -fdX",
|
|
30
|
+
"pub": "pnpm pack && node ../../scripts/publish-package.js",
|
|
31
|
+
"test": "yarn run build && node scripts/test.js"
|
|
32
|
+
},
|
|
33
|
+
"readme": "# @spscommerce/ds-colors\n\n> Design approved colors distributed in various formats\n\n```\nnpm install --save @spscommerce/ds-colors\n\n# OR\n\nyarn add @spscommerce/ds-colors\n```\n\nNow choose a format that you'd like to use. The following formats are available:\n\n* [CommonJS](#commonjs)\n* [CSS Variables](#css-variables)\n* [JSON](#json)\n* [Less](#less)\n* [SCSS](#scss)\n* [YAML](#yaml)\n\nIf you want more formats please open a pull request.\n\n### CommonJS\n\n```js\nconst colors, { red100 } = require('@spscommerce/ds-colors');\nconsole.log(colors.red100); // > #ffeaec\nconsole.log(red100); // > #ffeaec\n```\n\n### CSS Variables\n\n```css\n@import 'path/to/node_modules/@spscommerce/ds-colors/colors.css';\n\n.myclass {\n color: var(--gray400);\n}\n```\n\n### JSON\n\n```bash\nln -s path/to/node_modules/@spscommerce/ds-colors/colors.json colors.json\n```\n\n### Less\n\n```less\n@import 'path/to/node_modules/@spscommerce/ds-colors/colors';\n\n.myclass {\n color: @gray400;\n}\n```\n\n### SCSS\n\n```scss\n@import '@spscommerce/ds-colors/colors';\n\n.myclass {\n color: $gray400;\n}\n```\n\n### YAML\n\n```bash\nln -s path/to/node_modules/@spscommerce/ds-colors/colors.yml colors.yml\n```\n"
|
|
34
|
+
}
|