@brightlayer-ui/colors 3.1.0-beta.1 → 3.1.1-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 CHANGED
@@ -1,54 +1,60 @@
1
- # CHANGELOG
2
-
3
- ## v3.1.0 (Not published yet)
4
-
5
- ### Added
6
-
7
- - Added top level export `BLUIColors`.
8
-
9
- ### Changed
10
-
11
- - Changed build module from `commonjs` to `es2020` ([#47](https://github.com/brightlayer-ui/colors/issues/47)).
12
-
13
- ## Package Migration Notice
14
-
15
- Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
16
-
17
- ---
18
-
19
- ## v3.0.1 (October 20, 2021)
20
-
21
- ### Changed
22
-
23
- - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
24
-
25
- ## Package Migration Notice
26
-
27
- Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
28
-
29
- ---
30
-
31
- ## v3.0.1 (May 14, 2021)
32
-
33
- ### Changed
34
-
35
- - Changed `white[100]` from `#fdfdfd` to `#fbfbfb`.
36
-
37
- ## v3.0.0 (May 18, 2020)
38
-
39
- ### Added
40
-
41
- - Added new color definition for darkBlack color palette for dark themes.
42
-
43
- ### Changed
44
-
45
- ** Breaking change: **
46
-
47
- - Replaced oledBlack palette with darkBlack.
48
- - Accent colors have been removed.
49
-
50
- ## v2.0.0 (December 19, 2019)
51
-
52
- ### Changed
53
-
54
- - Converted package to Typescript to include type definitions. The package will still be usable in regular JS applications as well.
1
+ # CHANGELOG
2
+
3
+ ## v3.1.1 (Not yet published)
4
+
5
+ ### Changed
6
+
7
+ - Reverted change from version `3.1.0` & default added a `es2015` build option.
8
+
9
+ ## v3.1.0 (April 15, 2022)
10
+
11
+ ### Added
12
+
13
+ - Added top level export `BLUIColors`.
14
+
15
+ ### Changed
16
+
17
+ - Changed build module from `commonjs` to `es2015` ([#47](https://github.com/brightlayer-ui/colors/issues/47)).
18
+
19
+ ## Package Migration Notice
20
+
21
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
22
+
23
+ ---
24
+
25
+ ## v3.0.1 (October 20, 2021)
26
+
27
+ ### Changed
28
+
29
+ - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
30
+
31
+ ## Package Migration Notice
32
+
33
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
34
+
35
+ ---
36
+
37
+ ## v3.0.1 (May 14, 2021)
38
+
39
+ ### Changed
40
+
41
+ - Changed `white[100]` from `#fdfdfd` to `#fbfbfb`.
42
+
43
+ ## v3.0.0 (May 18, 2020)
44
+
45
+ ### Added
46
+
47
+ - Added new color definition for darkBlack color palette for dark themes.
48
+
49
+ ### Changed
50
+
51
+ ** Breaking change: **
52
+
53
+ - Replaced oledBlack palette with darkBlack.
54
+ - Accent colors have been removed.
55
+
56
+ ## v2.0.0 (December 19, 2019)
57
+
58
+ ### Changed
59
+
60
+ - 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 - 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.
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 CHANGED
@@ -1,8 +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
+ {
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
+ }
package/README.md CHANGED
@@ -1,57 +1,57 @@
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
- ```
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
+ ```
@@ -1,9 +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';
9
- export * as BLUIColors 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';
@@ -0,0 +1,26 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.BLUIColors = void 0;
25
+ __exportStar(require("./palette"), exports);
26
+ exports.BLUIColors = require("./palette");
@@ -1,21 +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 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;
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;
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.purple = exports.lightBlue = exports.green = exports.yellow = exports.gold = exports.orange = exports.red = exports.vantaBlack = exports.darkBlack = exports.black = exports.gray = exports.white = exports.blue = void 0;
4
+ /* Primary Colors / User Interface Colors */
5
+ exports.blue = {
6
+ 50: '#e0eff8',
7
+ 100: '#b3d7ec',
8
+ 200: '#80bde0',
9
+ 300: '#4da3d4',
10
+ 400: '#268fca',
11
+ 500: '#007bc1',
12
+ 600: '#0073bb',
13
+ 700: '#0068b3',
14
+ 800: '#005eab',
15
+ 900: '#004b9e',
16
+ contrastDefaultColor: 'light',
17
+ };
18
+ exports.white = {
19
+ 50: '#ffffff',
20
+ 100: '#fbfbfb',
21
+ 200: '#f7f8f8',
22
+ 300: '#f3f5f5',
23
+ 400: '#f1f2f2',
24
+ 500: '#eef0f0',
25
+ 600: '#eceeee',
26
+ 700: '#e9ecec',
27
+ 800: '#e7e9e9',
28
+ 900: '#e2e5e5',
29
+ contrastDefaultColor: 'dark',
30
+ };
31
+ exports.gray = {
32
+ 50: '#eef0f0',
33
+ 100: '#d5d8da',
34
+ 200: '#b9bfc2',
35
+ 300: '#9ca5a9',
36
+ 400: '#879196',
37
+ 500: '#727e84',
38
+ 600: '#6a767c',
39
+ 700: '#5f6b71',
40
+ 800: '#556167',
41
+ 900: '#424e54',
42
+ contrastDefaultColor: 'light',
43
+ };
44
+ exports.black = {
45
+ 50: '#e8eaea',
46
+ 100: '#c6cacc',
47
+ 200: '#a1a7aa',
48
+ 300: '#7b8387',
49
+ 400: '#5e696e',
50
+ 500: '#424e54',
51
+ 600: '#3c474d',
52
+ 700: '#333d43',
53
+ 800: '#2b353a',
54
+ 900: '#1d2529',
55
+ contrastDefaultColor: 'light',
56
+ };
57
+ exports.darkBlack = {
58
+ 50: '#202224',
59
+ 100: '#182022',
60
+ 200: '#182022',
61
+ 300: '#13181b',
62
+ 400: '#101417',
63
+ 500: '#0b0e10',
64
+ 600: '#0b0e10',
65
+ 700: '#08090a',
66
+ 800: '#08090a',
67
+ 900: '#000000',
68
+ contrastDefaultColor: 'light',
69
+ };
70
+ // alias
71
+ exports.vantaBlack = exports.darkBlack;
72
+ /* Status Colors */
73
+ exports.red = {
74
+ 50: '#f9e8e8',
75
+ 100: '#efc5c5',
76
+ 200: '#e59e9e',
77
+ 300: '#da7777',
78
+ 400: '#d2595a',
79
+ 500: '#ca3c3d',
80
+ 600: '#c53637',
81
+ 700: '#bd2e2f',
82
+ 800: '#b72727',
83
+ 900: '#ab1a1a',
84
+ contrastDefaultColor: 'light',
85
+ };
86
+ exports.orange = {
87
+ 50: '#feefe4',
88
+ 100: '#fcd6bc',
89
+ 200: '#fabb90',
90
+ 300: '#f7a064',
91
+ 400: '#f68b42',
92
+ 500: '#f47721',
93
+ 600: '#f36f1d',
94
+ 700: '#f16418',
95
+ 800: '#ef5a14',
96
+ 900: '#ec470b',
97
+ contrastDefaultColor: 'light',
98
+ };
99
+ exports.gold = {
100
+ 50: '#fdf5e4',
101
+ 100: '#fbe6bc',
102
+ 200: '#f8d58f',
103
+ 300: '#f5c462',
104
+ 400: '#f2b741',
105
+ 500: '#f0aa1f',
106
+ 600: '#eea31b',
107
+ 700: '#ec9917',
108
+ 800: '#e99012',
109
+ 900: '#e57f0a',
110
+ contrastDefaultColor: 'dark',
111
+ };
112
+ exports.yellow = {
113
+ 50: '#fdf9e6',
114
+ 100: '#fbefc1',
115
+ 200: '#f8e597',
116
+ 300: '#f5db6d',
117
+ 400: '#f2d34e',
118
+ 500: '#f0cb2f',
119
+ 600: '#eec62a',
120
+ 700: '#ecbe23',
121
+ 800: '#e9b81d',
122
+ 900: '#e5ac12',
123
+ contrastDefaultColor: 'dark',
124
+ };
125
+ exports.green = {
126
+ 50: '#e7f6e4',
127
+ 100: '#c4e9bc',
128
+ 200: '#9cdb90',
129
+ 300: '#74cc63',
130
+ 400: '#57c141',
131
+ 500: '#39b620',
132
+ 600: '#33af1c',
133
+ 700: '#2ca618',
134
+ 800: '#249e13',
135
+ 900: '#178e0b',
136
+ contrastDefaultColor: 'light',
137
+ };
138
+ exports.lightBlue = {
139
+ 50: '#e0f1fd',
140
+ 100: '#b3dbfb',
141
+ 200: '#80c4f9',
142
+ 300: '#4dacf6',
143
+ 400: '#269af4',
144
+ 500: '#0088f2',
145
+ 600: '#0080f0',
146
+ 700: '#0075ee',
147
+ 800: '#006bec',
148
+ 900: '#0058e8',
149
+ contrastDefaultColor: 'dark',
150
+ };
151
+ exports.purple = {
152
+ 50: '#f3e8fd',
153
+ 100: '#e0c5fa',
154
+ 200: '#cc9ff7',
155
+ 300: '#b779f4',
156
+ 400: '#a75cf1',
157
+ 500: '#983fef',
158
+ 600: '#9039ed',
159
+ 700: '#8531eb',
160
+ 800: '#7b29e8',
161
+ 900: '#6a1be4',
162
+ contrastDefaultColor: 'light',
163
+ };
@@ -0,0 +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';
9
+ export * as BLUIColors from './palette';
@@ -1,10 +1,10 @@
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
- import * as BLUIColors_1 from './palette';
10
- export { BLUIColors_1 as BLUIColors };
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
+ import * as BLUIColors_1 from './palette';
10
+ export { BLUIColors_1 as BLUIColors };
@@ -0,0 +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 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;