@brightlayer-ui/colors 2.0.1 → 3.1.0-beta.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/CHANGELOG.md ADDED
@@ -0,0 +1,50 @@
1
+ # CHANGELOG
2
+
3
+ ## v3.1.0 (Not published yet)
4
+
5
+ ### Added
6
+
7
+ - Added top level export `BLUIColors` & updated typescript version used to build package ([#47](https://github.com/brightlayer-ui/colors/issues/47)).
8
+
9
+ ## Package Migration Notice
10
+
11
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
12
+
13
+ ---
14
+
15
+ ## v3.0.1 (October 20, 2021)
16
+
17
+ ### Changed
18
+
19
+ - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
20
+
21
+ ## Package Migration Notice
22
+
23
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
24
+
25
+ ---
26
+
27
+ ## v3.0.1 (May 14, 2021)
28
+
29
+ ### Changed
30
+
31
+ - Changed `white[100]` from `#fdfdfd` to `#fbfbfb`.
32
+
33
+ ## v3.0.0 (May 18, 2020)
34
+
35
+ ### Added
36
+
37
+ - Added new color definition for darkBlack color palette for dark themes.
38
+
39
+ ### Changed
40
+
41
+ ** Breaking change: **
42
+
43
+ - Replaced oledBlack palette with darkBlack.
44
+ - Accent colors have been removed.
45
+
46
+ ## v2.0.0 (December 19, 2019)
47
+
48
+ ### Changed
49
+
50
+ - Converted package to Typescript to include type definitions. The package will still be usable in regular JS applications as well.
package/LICENSE CHANGED
@@ -1,29 +1,29 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2018, Eaton
4
- All rights reserved.
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions are met:
8
-
9
- * Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
15
-
16
- * Neither the name of the copyright holder nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2018 - present, Eaton
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/LICENSES.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "@brightlayer-ui/types@2.0.0": {
3
+ "licenses": "BSD-3-Clause",
4
+ "repository": "https://github.com/brightlayer-ui/types",
5
+ "licenseUrl": "https://github.com/brightlayer-ui/types/raw/master/LICENSE",
6
+ "parents": "@brightlayer-ui/colors"
7
+ }
8
+ }
@@ -1,49 +1,57 @@
1
- # Brightlayer UI Colors
2
-
3
- This package contains Brightlayer UI UI color definitions. These are intended for use as primary UI colors.
4
-
5
- It contains the following color defintions:
6
- ```
7
- blue / $blui-blue
8
- lightBlue / $blui-lightBlue
9
- green / $blui-green
10
- red / $blui-red
11
- orange / $blui-orange
12
- gold / $blui-gold
13
- purple / $blui-purple
14
- black / $blui-black
15
- gray / $blui-gray
16
- yellow / $blui-yellow
17
- white / $blui-white
18
- ```
19
-
20
- These all have color definitions for the following values: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700.
21
- > NOTE: the white palette does not have accent colors defined.
22
-
23
- ## Installation
24
- Install with npm
25
- ```
26
- npm install --save @brightlayer-ui/colors
27
- ```
28
- or yarn
29
- ```
30
- yarn add @brightlayer-ui/colors
31
- ```
32
-
33
- ## Usage
34
- Incorporating these colors into your project is handled differently depending on the framework that you are using.
35
-
36
- ### Angular or Ionic
37
- ```
38
- // in styles.scss or your top-level sass file
39
- @import '~@brightlayer-ui/colors/palette.scss'
40
- ...
41
- background-color: map-get($blui-blue, 500)
42
- ```
43
-
44
- ### React or React Native
45
- ```
46
- import * as Colors from '@brightlayer-ui/colors';
47
- ...
48
- <div style={{background: Colors.blue['500']}}/>
49
- ```
1
+ # Brightlayer UI Colors
2
+
3
+ This package contains Brightlayer UI color definitions. These are intended for use as primary UI colors.
4
+
5
+ It contains the following color defintions:
6
+
7
+ ```
8
+ blue / $blui-blue
9
+ white / $blui-white
10
+ gray / $blui-gray
11
+ black / $blui-black
12
+ darkBlack / $blui-darkBlack
13
+ red / $blui-red
14
+ orange / $blui-orange
15
+ gold / $blui-gold
16
+ yellow / $blui-yellow
17
+ green / $blui-green
18
+ lightBlue / $blui-lightBlue
19
+ purple / $blui-purple
20
+ ```
21
+
22
+ These all have color definitions for the following values: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900.
23
+
24
+ ## Installation
25
+
26
+ Install with npm
27
+
28
+ ```
29
+ npm install --save @brightlayer-ui/colors
30
+ ```
31
+
32
+ or yarn
33
+
34
+ ```
35
+ yarn add @brightlayer-ui/colors
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ Incorporating these colors into your project is handled differently depending on the framework that you are using.
41
+
42
+ ### Angular or Ionic
43
+
44
+ ```
45
+ // in styles.scss or your top-level sass file
46
+ @import '~@brightlayer-ui/colors/palette.scss'
47
+ ...
48
+ background-color: map-get($blui-blue, 500)
49
+ ```
50
+
51
+ ### React or React Native
52
+
53
+ ```
54
+ import * as Colors from '@brightlayer-ui/colors';
55
+ ...
56
+ <div style={{background: Colors.blue['500']}}/>
57
+ ```
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- /**
2
- Copyright (c) 2018-present, Eaton
3
-
4
- All rights reserved.
5
-
6
- This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
- **/
8
- export * from './palette';
1
+ /**
2
+ Copyright (c) 2018-present, Eaton
3
+
4
+ All rights reserved.
5
+
6
+ This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
+ **/
8
+ export * from './palette';
9
+ export * as BLUIColors from './palette';
package/dist/index.js CHANGED
@@ -1,13 +1,9 @@
1
- "use strict";
2
- /**
3
- Copyright (c) 2018-present, Eaton
4
-
5
- All rights reserved.
6
-
7
- This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
8
- **/
9
- function __export(m) {
10
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
11
- }
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __export(require("./palette"));
1
+ /**
2
+ Copyright (c) 2018-present, Eaton
3
+
4
+ All rights reserved.
5
+
6
+ This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
+ **/
8
+ export * from './palette';
9
+ export * as BLUIColors from './palette';
package/dist/palette.d.ts CHANGED
@@ -1,20 +1,21 @@
1
- /**
2
- Copyright (c) 2018-present, Eaton
3
-
4
- All rights reserved.
5
-
6
- This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
- **/
8
- import { BLUIColor } from '@brightlayer-ui/types';
9
- export declare const blue: BLUIColor;
10
- export declare const white: BLUIColor;
11
- export declare const oledBlack: BLUIColor;
12
- export declare const lightBlue: BLUIColor;
13
- export declare const green: BLUIColor;
14
- export declare const red: BLUIColor;
15
- export declare const orange: BLUIColor;
16
- export declare const gold: BLUIColor;
17
- export declare const purple: BLUIColor;
18
- export declare const black: BLUIColor;
19
- export declare const gray: BLUIColor;
20
- export declare const yellow: BLUIColor;
1
+ /**
2
+ Copyright (c) 2018-present, Eaton
3
+
4
+ All rights reserved.
5
+
6
+ This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
+ **/
8
+ import { BLUIColor } from '@brightlayer-ui/types';
9
+ export declare const blue: BLUIColor;
10
+ export declare const white: BLUIColor;
11
+ export declare const gray: BLUIColor;
12
+ export declare const black: BLUIColor;
13
+ export declare const darkBlack: BLUIColor;
14
+ export declare const vantaBlack: BLUIColor;
15
+ export declare const red: BLUIColor;
16
+ export declare const orange: BLUIColor;
17
+ export declare const gold: BLUIColor;
18
+ export declare const yellow: BLUIColor;
19
+ export declare const green: BLUIColor;
20
+ export declare const lightBlue: BLUIColor;
21
+ export declare const purple: BLUIColor;
package/dist/palette.js CHANGED
@@ -1,199 +1,160 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.blue = {
4
- 50: '#e0eff8',
5
- 100: '#b3d7ec',
6
- 200: '#80bde0',
7
- 300: '#4da3d4',
8
- 400: '#268fca',
9
- 500: '#007bc1',
10
- 600: '#0073bb',
11
- 700: '#0068b3',
12
- 800: '#005eab',
13
- 900: '#004b9e',
14
- A100: '#4da3d4',
15
- A200: '#007bc1',
16
- A400: '#0068b3',
17
- A700: '#004b9e',
18
- 'contrastDefaultColor': 'light'
19
- };
20
- exports.white = {
21
- 50: '#ffffff',
22
- 100: '#fdfdfd',
23
- 200: '#f7f8f8',
24
- 300: '#f3f5f5',
25
- 400: '#f1f2f2',
26
- 500: '#eef0f0',
27
- 600: '#eceeee',
28
- 700: '#e9ecec',
29
- 800: '#e7e9e9',
30
- 900: '#e2e5e5',
31
- 'contrastDefaultColor': 'dark'
32
- };
33
- // TBD
34
- exports.oledBlack = {
35
- 50: '#202224',
36
- 100: '#202224',
37
- 200: '#182022',
38
- 300: '#182022',
39
- 400: '#13181b',
40
- 500: '#13181b',
41
- 600: '#0b0e0f',
42
- 700: '#0b0e0f',
43
- 800: '#000000',
44
- 900: '#000000',
45
- 'contrastDefaultColor': 'light'
46
- };
47
- exports.lightBlue = {
48
- 50: '#e0f1fd',
49
- 100: '#b3dbfb',
50
- 200: '#80c4f9',
51
- 300: '#4dacf6',
52
- 400: '#269af4',
53
- 500: '#0088f2',
54
- 600: '#0080f0',
55
- 700: '#0075ee',
56
- 800: '#006bec',
57
- 900: '#0058e8',
58
- A100: '#4dacf6',
59
- A200: '#0088f2',
60
- A400: '#0075ee',
61
- A700: '#0058e8',
62
- 'contrastDefaultColor': 'dark'
63
- };
64
- exports.green = {
65
- 50: '#e7f6e4',
66
- 100: '#c4e9bc',
67
- 200: '#9cdb90',
68
- 300: '#74cc63',
69
- 400: '#57c141',
70
- 500: '#39b620',
71
- 600: '#33af1c',
72
- 700: '#2ca618',
73
- 800: '#249e13',
74
- 900: '#178e0b',
75
- A100: '#e8fff1',
76
- A200: '#9bffc4',
77
- A400: '#4dff96',
78
- A700: '#00ff69',
79
- 'contrastDefaultColor': 'light'
80
- };
81
- exports.red = {
82
- 50: '#f9e8e8',
83
- 100: '#efc5c5',
84
- 200: '#e59e9e',
85
- 300: '#da7777',
86
- 400: '#d2595a',
87
- 500: '#ca3c3d',
88
- 600: '#c53637',
89
- 700: '#bd2e2f',
90
- 800: '#b72727',
91
- 900: '#ab1a1a',
92
- A100: '#da7777',
93
- A200: '#ca3c3d',
94
- A400: '#bd2e2f',
95
- A700: '#ab1a1a',
96
- 'contrastDefaultColor': 'light'
97
- };
98
- exports.orange = {
99
- 50: '#feefe4',
100
- 100: '#fcd6bc',
101
- 200: '#fabb90',
102
- 300: '#f7a064',
103
- 400: '#f68b42',
104
- 500: '#f47721',
105
- 600: '#f36f1d',
106
- 700: '#f16418',
107
- 800: '#ef5a14',
108
- 900: '#ec470b',
109
- A100: '#ffefed',
110
- A200: '#ffd8d1',
111
- A400: '#ffc0b6',
112
- A700: '#ffa99a',
113
- 'contrastDefaultColor': 'light'
114
- };
115
- exports.gold = {
116
- 50: '#fdf5e4',
117
- 100: '#fbe6bc',
118
- 200: '#f8d58f',
119
- 300: '#f5c462',
120
- 400: '#f2b741',
121
- 500: '#f0aa1f',
122
- 600: '#eea31b',
123
- 700: '#ec9917',
124
- 800: '#e99012',
125
- 900: '#e57f0a',
126
- A100: '#fdf4ec',
127
- A200: '#fee3ca',
128
- A400: '#fed3a8',
129
- A700: '#ffc68f',
130
- 'contrastDefaultColor': 'dark'
131
- };
132
- exports.purple = {
133
- 50: '#f3e8fd',
134
- 100: '#e0c5fa',
135
- 200: '#cc9ff7',
136
- 300: '#b779f4',
137
- 400: '#a75cf1',
138
- 500: '#983fef',
139
- 600: '#9039ed',
140
- 700: '#8531eb',
141
- 800: '#7b29e8',
142
- 900: '#6a1be4',
143
- A100: '#f0ecfe',
144
- A200: '#d2c5fc',
145
- A400: '#c3b2fb',
146
- A700: '#ac95f9',
147
- 'contrastDefaultColor': 'light'
148
- };
149
- exports.black = {
150
- 50: '#e8eaea',
151
- 100: '#c6cacc',
152
- 200: '#a1a7aa',
153
- 300: '#7b8387',
154
- 400: '#5e696e',
155
- 500: '#424e54',
156
- 600: '#3c474d',
157
- 700: '#333d43',
158
- 800: '#2b353a',
159
- 900: '#1d2529',
160
- A100: '#101417',
161
- A200: '#181f22',
162
- A400: '#0b0e10',
163
- A700: '#000000',
164
- 'contrastDefaultColor': 'light'
165
- };
166
- exports.gray = {
167
- 50: '#eef0f0',
168
- 100: '#d5d8da',
169
- 200: '#b9bfc2',
170
- 300: '#9ca5a9',
171
- 400: '#879196',
172
- 500: '#727e84',
173
- 600: '#6a767c',
174
- 700: '#5f6b71',
175
- 800: '#556167',
176
- 900: '#424e54',
177
- A100: '#f0f5fd',
178
- A200: '#c2dafe',
179
- A400: '#268fca',
180
- A700: '#007bc1',
181
- 'contrastDefaultColor': 'light'
182
- };
183
- exports.yellow = {
184
- 50: '#fdf9e6',
185
- 100: '#fbefc1',
186
- 200: '#f8e597',
187
- 300: '#f5db6d',
188
- 400: '#f2d34e',
189
- 500: '#f0cb2f',
190
- 600: '#eec62a',
191
- 700: '#ecbe23',
192
- 800: '#e9b81d',
193
- 900: '#e5ac12',
194
- A100: '#fffd00',
195
- A200: '#ffeb26',
196
- A400: '#ffd94c',
197
- A700: '#ffcb69',
198
- 'contrastDefaultColor': 'dark'
199
- };
1
+ /* Primary Colors / User Interface Colors */
2
+ export const blue = {
3
+ 50: '#e0eff8',
4
+ 100: '#b3d7ec',
5
+ 200: '#80bde0',
6
+ 300: '#4da3d4',
7
+ 400: '#268fca',
8
+ 500: '#007bc1',
9
+ 600: '#0073bb',
10
+ 700: '#0068b3',
11
+ 800: '#005eab',
12
+ 900: '#004b9e',
13
+ contrastDefaultColor: 'light',
14
+ };
15
+ export const white = {
16
+ 50: '#ffffff',
17
+ 100: '#fbfbfb',
18
+ 200: '#f7f8f8',
19
+ 300: '#f3f5f5',
20
+ 400: '#f1f2f2',
21
+ 500: '#eef0f0',
22
+ 600: '#eceeee',
23
+ 700: '#e9ecec',
24
+ 800: '#e7e9e9',
25
+ 900: '#e2e5e5',
26
+ contrastDefaultColor: 'dark',
27
+ };
28
+ export const gray = {
29
+ 50: '#eef0f0',
30
+ 100: '#d5d8da',
31
+ 200: '#b9bfc2',
32
+ 300: '#9ca5a9',
33
+ 400: '#879196',
34
+ 500: '#727e84',
35
+ 600: '#6a767c',
36
+ 700: '#5f6b71',
37
+ 800: '#556167',
38
+ 900: '#424e54',
39
+ contrastDefaultColor: 'light',
40
+ };
41
+ export const black = {
42
+ 50: '#e8eaea',
43
+ 100: '#c6cacc',
44
+ 200: '#a1a7aa',
45
+ 300: '#7b8387',
46
+ 400: '#5e696e',
47
+ 500: '#424e54',
48
+ 600: '#3c474d',
49
+ 700: '#333d43',
50
+ 800: '#2b353a',
51
+ 900: '#1d2529',
52
+ contrastDefaultColor: 'light',
53
+ };
54
+ export const darkBlack = {
55
+ 50: '#202224',
56
+ 100: '#182022',
57
+ 200: '#182022',
58
+ 300: '#13181b',
59
+ 400: '#101417',
60
+ 500: '#0b0e10',
61
+ 600: '#0b0e10',
62
+ 700: '#08090a',
63
+ 800: '#08090a',
64
+ 900: '#000000',
65
+ contrastDefaultColor: 'light',
66
+ };
67
+ // alias
68
+ export const vantaBlack = darkBlack;
69
+ /* Status Colors */
70
+ export const red = {
71
+ 50: '#f9e8e8',
72
+ 100: '#efc5c5',
73
+ 200: '#e59e9e',
74
+ 300: '#da7777',
75
+ 400: '#d2595a',
76
+ 500: '#ca3c3d',
77
+ 600: '#c53637',
78
+ 700: '#bd2e2f',
79
+ 800: '#b72727',
80
+ 900: '#ab1a1a',
81
+ contrastDefaultColor: 'light',
82
+ };
83
+ export const orange = {
84
+ 50: '#feefe4',
85
+ 100: '#fcd6bc',
86
+ 200: '#fabb90',
87
+ 300: '#f7a064',
88
+ 400: '#f68b42',
89
+ 500: '#f47721',
90
+ 600: '#f36f1d',
91
+ 700: '#f16418',
92
+ 800: '#ef5a14',
93
+ 900: '#ec470b',
94
+ contrastDefaultColor: 'light',
95
+ };
96
+ export const gold = {
97
+ 50: '#fdf5e4',
98
+ 100: '#fbe6bc',
99
+ 200: '#f8d58f',
100
+ 300: '#f5c462',
101
+ 400: '#f2b741',
102
+ 500: '#f0aa1f',
103
+ 600: '#eea31b',
104
+ 700: '#ec9917',
105
+ 800: '#e99012',
106
+ 900: '#e57f0a',
107
+ contrastDefaultColor: 'dark',
108
+ };
109
+ export const yellow = {
110
+ 50: '#fdf9e6',
111
+ 100: '#fbefc1',
112
+ 200: '#f8e597',
113
+ 300: '#f5db6d',
114
+ 400: '#f2d34e',
115
+ 500: '#f0cb2f',
116
+ 600: '#eec62a',
117
+ 700: '#ecbe23',
118
+ 800: '#e9b81d',
119
+ 900: '#e5ac12',
120
+ contrastDefaultColor: 'dark',
121
+ };
122
+ export const green = {
123
+ 50: '#e7f6e4',
124
+ 100: '#c4e9bc',
125
+ 200: '#9cdb90',
126
+ 300: '#74cc63',
127
+ 400: '#57c141',
128
+ 500: '#39b620',
129
+ 600: '#33af1c',
130
+ 700: '#2ca618',
131
+ 800: '#249e13',
132
+ 900: '#178e0b',
133
+ contrastDefaultColor: 'light',
134
+ };
135
+ export const lightBlue = {
136
+ 50: '#e0f1fd',
137
+ 100: '#b3dbfb',
138
+ 200: '#80c4f9',
139
+ 300: '#4dacf6',
140
+ 400: '#269af4',
141
+ 500: '#0088f2',
142
+ 600: '#0080f0',
143
+ 700: '#0075ee',
144
+ 800: '#006bec',
145
+ 900: '#0058e8',
146
+ contrastDefaultColor: 'dark',
147
+ };
148
+ export const purple = {
149
+ 50: '#f3e8fd',
150
+ 100: '#e0c5fa',
151
+ 200: '#cc9ff7',
152
+ 300: '#b779f4',
153
+ 400: '#a75cf1',
154
+ 500: '#983fef',
155
+ 600: '#9039ed',
156
+ 700: '#8531eb',
157
+ 800: '#7b29e8',
158
+ 900: '#6a1be4',
159
+ contrastDefaultColor: 'light',
160
+ };
package/package.json CHANGED
@@ -1,44 +1,45 @@
1
- {
2
- "name": "@brightlayer-ui/colors",
3
- "version": "2.0.1",
4
- "description": "PX Blue colors for Eaton applications",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "yarn && tsc"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/brightlayer-ui/colors.git"
14
- },
15
- "keywords": [
16
- "brightlayer-ui",
17
- "colors",
18
- "Eaton",
19
- "Power",
20
- "Xpert",
21
- "quality",
22
- "lighting"
23
- ],
24
- "author": "Brightlayer UI <brightlayer-ui@eaton.com>",
25
- "license": "BSD-3-Clause",
26
- "bugs": {
27
- "url": "https://github.com/brightlayer-ui/colors/issues"
28
- },
29
- "homepage": "https://github.com/brightlayer-ui/colors#readme",
30
- "dependencies": {
31
- "@brightlayer-ui/types": "^1.0.0"
32
- },
33
- "devDependencies": {
34
- "typescript": "^3.7.3"
35
- },
36
- "files": [
37
- "package.json",
38
- "readme.md",
39
- "LICENSE",
40
- "changelog.md",
41
- "dist/",
42
- "palette.scss"
43
- ]
44
- }
1
+ {
2
+ "name": "@brightlayer-ui/colors",
3
+ "version": "3.1.0-beta.0",
4
+ "description": "Brightlayer UI colors for Eaton applications",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "yarn && tsc",
10
+ "publish:package": "set npm_config_yes=true && npx -p @brightlayer-ui/publish blui-publish",
11
+ "tag:package": "npx -p @brightlayer-ui/tag blui-tag"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/brightlayer-ui/colors.git"
16
+ },
17
+ "keywords": [
18
+ "Brightlayer-UI",
19
+ "colors",
20
+ "Eaton",
21
+ "quality",
22
+ "lighting"
23
+ ],
24
+ "author": "Brightlayer UI <brightlayer-ui@eaton.com>",
25
+ "license": "BSD-3-Clause",
26
+ "bugs": {
27
+ "url": "https://github.com/brightlayer-ui/colors/issues"
28
+ },
29
+ "homepage": "https://github.com/brightlayer-ui/colors#readme",
30
+ "dependencies": {
31
+ "@brightlayer-ui/types": "^2.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "typescript": "^4.6.3"
35
+ },
36
+ "files": [
37
+ "package.json",
38
+ "README.md",
39
+ "LICENSE",
40
+ "LICENSES.json",
41
+ "CHANGELOG.md",
42
+ "dist/",
43
+ "palette.scss"
44
+ ]
45
+ }
package/palette.scss CHANGED
@@ -1,20 +1,304 @@
1
- /**
2
- Copyright (c) 2018-present, Eaton
3
-
4
- All rights reserved.
5
-
6
- This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
- **/
8
-
9
- $blui-blue: ( 50: #e0eff8, 100: #b3d7ec, 200: #80bde0, 300: #4da3d4, 400: #268fca, 500: #007bc1, 600: #0073bb, 700: #0068b3, 800: #005eab, 900: #004b9e, A100: #f0f5fd, A200: #c2dafe, A400: #95c0fe, A700: #67a5ff, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
10
- $blui-lightBlue: ( 50: #e0f1fd,100: #b3dbfb, 200: #80c4f9, 300: #4dacf6, 400: #269af4, 500: #0088f2, 600: #0080f0, 700: #0075ee, 800: #006bec, 900: #0058e8, A100: #4dacf6, A200: #0088f2, A400: #0075ee, A700: #0058e8, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
11
- $blui-green: ( 50: #e7f6e4, 100: #c4e9bc, 200: #9cdb90, 300: #74cc63, 400: #57c141, 500: #39b620, 600: #33af1c, 700: #2ca618, 800: #249e13, 900: #178e0b, A100: #e8fff1, A200: #9bffc4, A400: #4dff96, A700: #00ff69, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
12
- $blui-red: ( 50: #f9e8e8, 100: #efc5c5, 200: #e59e9e, 300: #da7777, 400: #d2595a, 500: #ca3c3d, 600: #c53637, 700: #bd2e2f, 800: #b72727, 900: #ab1a1a, A100: #fdd3d3, A200: #fd9d9e, A400: #fe6868, A700: #ff3333, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #ffffff ));
13
- $blui-orange: ( 50: #feefe4, 100: #fcd6bc, 200: #fabb90, 300: #f7a064, 400: #f68b42, 500: #f47721, 600: #f36f1d, 700: #f16418, 800: #ef5a14, 900: #ec470b, A100: #ffefed, A200: #ffd8d1, A400: #ffc0b6, A700: #ffa99a, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #000000, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
14
- $blui-gold: ( 50: #fdf5e4, 100: #fbe6bc, 200: #f8d58f, 300: #f5c462, 400: #f2b741, 500: #f0aa1f, 600: #eea31b, 700: #ec9917, 800: #e99012, 900: #e57f0a, A100: #fdf4ec, A200: #fee3ca, A400: #fed3a8, A700: #ffc68f, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #000000, 500: #000000, 600: #000000, 700: #000000, 800: #000000, 900: #000000, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
15
- $blui-purple: ( 50: #f3e8fd, 100: #e0c5fa, 200: #cc9ff7, 300: #b779f4, 400: #a75cf1, 500: #983fef, 600: #9039ed, 700: #8531eb, 800: #7b29e8, 900: #6a1be4, A100: #f0ecfe, A200: #d2c5fc, A400: #c3b2fb, A700: #ac95f9, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
16
- $blui-black: ( 50: #e8eaea, 100: #c6cacc, 200: #a1a7aa, 300: #7b8387, 400: #5e696e, 500: #424e54, 600: #3c474d, 700: #333d43, 800: #2b353a, 900: #1d2529, A100: #101417, A200: #181f22, A400: #0b0e10, A700: #000000, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #ffffff, A200: #ffffff, A400: #ffffff, A700: #ffffff ));
17
- $blui-gray: ( 50: #eef0f0, 100: #d5d8da, 200: #b9bfc2, 300: #9ca5a9, 400: #879196, 500: #727e84, 600: #6a767c, 700: #5f6b71, 800: #556167, 900: #424e54, A100: #f0f5fd, A200: #c2dafe, A400: #268fca, A700: #007bc1, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff, A100: #000000, A200: #000000, A400: #000000, A700: #000000 ));
18
- $blui-yellow: ( 50: #fdf9e6, 100: #fbefc1, 200: #f8e597, 300: #f5db6d, 400: #f2d34e, 500: #f0cb2f, 600: #eec62a, 700: #ecbe23, 800: #e9b81d, 900: #e5ac12, A100: #fffd00, A200: #ffeb26, A400: #ffd94c, A700: #ffcb69, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #000000, 500: #000000, 600: #000000, 700: #000000, 800: #000000, 900: #000000, A100: #000000, A200: #000000, A400: #000000, A700: #000000));
19
- $blui-oledBlack: ( 50: #202224, 100: #202224, 200: #182022, 300: #182022, 400: #13181b, 500: #13181b, 600: #0b0e0f, 700: #0b0e0f, 800: #000000, 900: #000000, contrast: ( 50: #ffffff, 100: #ffffff, 200: #ffffff, 300: #ffffff, 400: #ffffff, 500: #ffffff, 600: #ffffff, 700: #ffffff, 800: #ffffff, 900: #ffffff));
20
- $blui-white: ( 50: #ffffff, 100: #fdfdfd, 200: #f7f8f8, 300: #f3f5f5, 400: #f1f2f2, 500: #eef0f0, 600: #eceeee, 700: #e9ecec, 800: #e7e9e9, 900: #e2e5e5, contrast: ( 50: #000000, 100: #000000, 200: #000000, 300: #000000, 400: #000000, 500: #000000, 600: #000000, 700: #000000, 800: #000000, 900: #000000));
1
+ /**
2
+ Copyright (c) 2021-present, Eaton
3
+
4
+ All rights reserved.
5
+
6
+ This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
7
+ **/
8
+
9
+ /* Primary Colors / User Interface Colors */
10
+
11
+ $blui-blue: (
12
+ 50: #e0eff8,
13
+ 100: #b3d7ec,
14
+ 200: #80bde0,
15
+ 300: #4da3d4,
16
+ 400: #268fca,
17
+ 500: #007bc1,
18
+ 600: #0073bb,
19
+ 700: #0068b3,
20
+ 800: #005eab,
21
+ 900: #004b9e,
22
+ contrast: (
23
+ 50: #000000,
24
+ 100: #000000,
25
+ 200: #000000,
26
+ 300: #000000,
27
+ 400: #ffffff,
28
+ 500: #ffffff,
29
+ 600: #ffffff,
30
+ 700: #ffffff,
31
+ 800: #ffffff,
32
+ 900: #ffffff,
33
+ ),
34
+ );
35
+ $blui-white: (
36
+ 50: #ffffff,
37
+ 100: #fbfbfb,
38
+ 200: #f7f8f8,
39
+ 300: #f3f5f5,
40
+ 400: #f1f2f2,
41
+ 500: #eef0f0,
42
+ 600: #eceeee,
43
+ 700: #e9ecec,
44
+ 800: #e7e9e9,
45
+ 900: #e2e5e5,
46
+ contrast: (
47
+ 50: #000000,
48
+ 100: #000000,
49
+ 200: #000000,
50
+ 300: #000000,
51
+ 400: #000000,
52
+ 500: #000000,
53
+ 600: #000000,
54
+ 700: #000000,
55
+ 800: #000000,
56
+ 900: #000000,
57
+ ),
58
+ );
59
+ $blui-gray: (
60
+ 50: #eef0f0,
61
+ 100: #d5d8da,
62
+ 200: #b9bfc2,
63
+ 300: #9ca5a9,
64
+ 400: #879196,
65
+ 500: #727e84,
66
+ 600: #6a767c,
67
+ 700: #5f6b71,
68
+ 800: #556167,
69
+ 900: #424e54,
70
+ contrast: (
71
+ 50: #000000,
72
+ 100: #000000,
73
+ 200: #000000,
74
+ 300: #000000,
75
+ 400: #ffffff,
76
+ 500: #ffffff,
77
+ 600: #ffffff,
78
+ 700: #ffffff,
79
+ 800: #ffffff,
80
+ 900: #ffffff,
81
+ ),
82
+ );
83
+ $blui-black: (
84
+ 50: #e8eaea,
85
+ 100: #c6cacc,
86
+ 200: #a1a7aa,
87
+ 300: #7b8387,
88
+ 400: #5e696e,
89
+ 500: #424e54,
90
+ 600: #3c474d,
91
+ 700: #333d43,
92
+ 800: #2b353a,
93
+ 900: #1d2529,
94
+ contrast: (
95
+ 50: #000000,
96
+ 100: #000000,
97
+ 200: #000000,
98
+ 300: #000000,
99
+ 400: #ffffff,
100
+ 500: #ffffff,
101
+ 600: #ffffff,
102
+ 700: #ffffff,
103
+ 800: #ffffff,
104
+ 900: #ffffff,
105
+ ),
106
+ );
107
+ $blui-darkBlack: (
108
+ 50: #202224,
109
+ 100: #182022,
110
+ 200: #182022,
111
+ 300: #13181b,
112
+ 400: #101417,
113
+ 500: #0b0e10,
114
+ 600: #0b0e10,
115
+ 700: #08090a,
116
+ 800: #08090a,
117
+ 900: #000000,
118
+ contrast: (
119
+ 50: #ffffff,
120
+ 100: #ffffff,
121
+ 200: #ffffff,
122
+ 300: #ffffff,
123
+ 400: #ffffff,
124
+ 500: #ffffff,
125
+ 600: #ffffff,
126
+ 700: #ffffff,
127
+ 800: #ffffff,
128
+ 900: #ffffff,
129
+ ),
130
+ );
131
+
132
+ // alias
133
+ $blui-vantaBlack: $blui-darkBlack;
134
+
135
+ /* Status Colors */
136
+
137
+ $blui-red: (
138
+ 50: #f9e8e8,
139
+ 100: #efc5c5,
140
+ 200: #e59e9e,
141
+ 300: #da7777,
142
+ 400: #d2595a,
143
+ 500: #ca3c3d,
144
+ 600: #c53637,
145
+ 700: #bd2e2f,
146
+ 800: #b72727,
147
+ 900: #ab1a1a,
148
+ contrast: (
149
+ 50: #000000,
150
+ 100: #000000,
151
+ 200: #000000,
152
+ 300: #000000,
153
+ 400: #ffffff,
154
+ 500: #ffffff,
155
+ 600: #ffffff,
156
+ 700: #ffffff,
157
+ 800: #ffffff,
158
+ 900: #ffffff,
159
+ ),
160
+ );
161
+ $blui-orange: (
162
+ 50: #feefe4,
163
+ 100: #fcd6bc,
164
+ 200: #fabb90,
165
+ 300: #f7a064,
166
+ 400: #f68b42,
167
+ 500: #f47721,
168
+ 600: #f36f1d,
169
+ 700: #f16418,
170
+ 800: #ef5a14,
171
+ 900: #ec470b,
172
+ contrast: (
173
+ 50: #000000,
174
+ 100: #000000,
175
+ 200: #000000,
176
+ 300: #000000,
177
+ 400: #000000,
178
+ 500: #ffffff,
179
+ 600: #ffffff,
180
+ 700: #ffffff,
181
+ 800: #ffffff,
182
+ 900: #ffffff,
183
+ ),
184
+ );
185
+ $blui-gold: (
186
+ 50: #fdf5e4,
187
+ 100: #fbe6bc,
188
+ 200: #f8d58f,
189
+ 300: #f5c462,
190
+ 400: #f2b741,
191
+ 500: #f0aa1f,
192
+ 600: #eea31b,
193
+ 700: #ec9917,
194
+ 800: #e99012,
195
+ 900: #e57f0a,
196
+ contrast: (
197
+ 50: #000000,
198
+ 100: #000000,
199
+ 200: #000000,
200
+ 300: #000000,
201
+ 400: #000000,
202
+ 500: #000000,
203
+ 600: #000000,
204
+ 700: #000000,
205
+ 800: #000000,
206
+ 900: #000000,
207
+ ),
208
+ );
209
+ $blui-yellow: (
210
+ 50: #fdf9e6,
211
+ 100: #fbefc1,
212
+ 200: #f8e597,
213
+ 300: #f5db6d,
214
+ 400: #f2d34e,
215
+ 500: #f0cb2f,
216
+ 600: #eec62a,
217
+ 700: #ecbe23,
218
+ 800: #e9b81d,
219
+ 900: #e5ac12,
220
+ contrast: (
221
+ 50: #000000,
222
+ 100: #000000,
223
+ 200: #000000,
224
+ 300: #000000,
225
+ 400: #000000,
226
+ 500: #000000,
227
+ 600: #000000,
228
+ 700: #000000,
229
+ 800: #000000,
230
+ 900: #000000,
231
+ ),
232
+ );
233
+ $blui-green: (
234
+ 50: #e7f6e4,
235
+ 100: #c4e9bc,
236
+ 200: #9cdb90,
237
+ 300: #74cc63,
238
+ 400: #57c141,
239
+ 500: #39b620,
240
+ 600: #33af1c,
241
+ 700: #2ca618,
242
+ 800: #249e13,
243
+ 900: #178e0b,
244
+ contrast: (
245
+ 50: #000000,
246
+ 100: #000000,
247
+ 200: #000000,
248
+ 300: #000000,
249
+ 400: #ffffff,
250
+ 500: #ffffff,
251
+ 600: #ffffff,
252
+ 700: #ffffff,
253
+ 800: #ffffff,
254
+ 900: #ffffff,
255
+ ),
256
+ );
257
+ $blui-lightBlue: (
258
+ 50: #e0f1fd,
259
+ 100: #b3dbfb,
260
+ 200: #80c4f9,
261
+ 300: #4dacf6,
262
+ 400: #269af4,
263
+ 500: #0088f2,
264
+ 600: #0080f0,
265
+ 700: #0075ee,
266
+ 800: #006bec,
267
+ 900: #0058e8,
268
+ contrast: (
269
+ 50: #000000,
270
+ 100: #000000,
271
+ 200: #000000,
272
+ 300: #000000,
273
+ 400: #ffffff,
274
+ 500: #ffffff,
275
+ 600: #ffffff,
276
+ 700: #ffffff,
277
+ 800: #ffffff,
278
+ 900: #ffffff,
279
+ ),
280
+ );
281
+ $blui-purple: (
282
+ 50: #f3e8fd,
283
+ 100: #e0c5fa,
284
+ 200: #cc9ff7,
285
+ 300: #b779f4,
286
+ 400: #a75cf1,
287
+ 500: #983fef,
288
+ 600: #9039ed,
289
+ 700: #8531eb,
290
+ 800: #7b29e8,
291
+ 900: #6a1be4,
292
+ contrast: (
293
+ 50: #000000,
294
+ 100: #000000,
295
+ 200: #000000,
296
+ 300: #000000,
297
+ 400: #ffffff,
298
+ 500: #ffffff,
299
+ 600: #ffffff,
300
+ 700: #ffffff,
301
+ 800: #ffffff,
302
+ 900: #ffffff,
303
+ ),
304
+ );
package/changelog.md DELETED
@@ -1,16 +0,0 @@
1
- # Changelog
2
-
3
- ## v2.0.1 (October 21, 2021)
4
-
5
- ### Changed
6
-
7
- - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
8
-
9
- ## Package Migration Notice
10
-
11
- Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
12
-
13
- ___
14
-
15
- ### 2.0.0
16
- Converted package to Typescript to include type definitions. The package will still be usable in regular JS applications as well.