@brightlayer-ui/colors 3.1.1 → 4.0.0-alpha.1

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.
@@ -0,0 +1,30 @@
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 declare enum BrandingColors {
9
+ lightGray = "#98A4AE",
10
+ gray = "#5B6770",
11
+ darkGray = "#333F48",
12
+ sky = "#71B2C9",
13
+ eatonBlue = "#005EB8",
14
+ navy = "#003865",
15
+ ash = "#A3B2A4",
16
+ teal = "#00B2A9",
17
+ pine = "#43695B",
18
+ sage = "#B7CE95",
19
+ citrus = "#B5BD00",
20
+ emerald = "#4C8D2B",
21
+ butter = "#F3DD6D",
22
+ goldenrod = "#FFC72C",
23
+ toad = "#AD841F",
24
+ trophy = "#F0B323",
25
+ sunset = "#ED8B00",
26
+ rust = "#B94700",
27
+ crimson = "#D22730",
28
+ wine = "#9D2235"
29
+ }
30
+ export declare const chartColors: BrandingColors[];
@@ -0,0 +1,42 @@
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 var BrandingColors;
9
+ (function (BrandingColors) {
10
+ BrandingColors["lightGray"] = "#98A4AE";
11
+ BrandingColors["gray"] = "#5B6770";
12
+ BrandingColors["darkGray"] = "#333F48";
13
+ BrandingColors["sky"] = "#71B2C9";
14
+ BrandingColors["eatonBlue"] = "#005EB8";
15
+ BrandingColors["navy"] = "#003865";
16
+ BrandingColors["ash"] = "#A3B2A4";
17
+ BrandingColors["teal"] = "#00B2A9";
18
+ BrandingColors["pine"] = "#43695B";
19
+ BrandingColors["sage"] = "#B7CE95";
20
+ BrandingColors["citrus"] = "#B5BD00";
21
+ BrandingColors["emerald"] = "#4C8D2B";
22
+ BrandingColors["butter"] = "#F3DD6D";
23
+ BrandingColors["goldenrod"] = "#FFC72C";
24
+ BrandingColors["toad"] = "#AD841F";
25
+ BrandingColors["trophy"] = "#F0B323";
26
+ BrandingColors["sunset"] = "#ED8B00";
27
+ BrandingColors["rust"] = "#B94700";
28
+ BrandingColors["crimson"] = "#D22730";
29
+ BrandingColors["wine"] = "#9D2235";
30
+ })(BrandingColors || (BrandingColors = {}));
31
+ export var chartColors = [
32
+ BrandingColors.teal,
33
+ BrandingColors.citrus,
34
+ BrandingColors.pine,
35
+ BrandingColors.emerald,
36
+ BrandingColors.wine,
37
+ BrandingColors.crimson,
38
+ BrandingColors.sunset,
39
+ BrandingColors.rust,
40
+ BrandingColors.navy,
41
+ BrandingColors.sky,
42
+ ];
@@ -0,0 +1,62 @@
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 declare type BLUIColor = {
9
+ 0: string;
10
+ 10: string;
11
+ 20: string;
12
+ 30: string;
13
+ 40: string;
14
+ 50: string;
15
+ 60: string;
16
+ 70: string;
17
+ 80: string;
18
+ 90: string;
19
+ 100: string;
20
+ };
21
+ export declare type Primary = BLUIColor & {
22
+ 95: string;
23
+ 99: string;
24
+ };
25
+ export declare type Neutral = BLUIColor & {
26
+ 4: string;
27
+ 6: string;
28
+ 12: string;
29
+ 17: string;
30
+ 87: string;
31
+ 92: string;
32
+ 94: string;
33
+ 95: string;
34
+ 97: string;
35
+ 98: string;
36
+ 99: string;
37
+ };
38
+ export declare type NeutralVariant = BLUIColor & {
39
+ 95: string;
40
+ 99: string;
41
+ };
42
+ export declare type Error = BLUIColor & {
43
+ 95: string;
44
+ 99: string;
45
+ };
46
+ export declare type Warning = BLUIColor & {
47
+ 95: string;
48
+ 98: string;
49
+ };
50
+ export declare type Success = BLUIColor & {
51
+ 4: string;
52
+ 95: string;
53
+ 98: string;
54
+ };
55
+ export declare type Orange = BLUIColor & {
56
+ 95: string;
57
+ 98: string;
58
+ };
59
+ export declare type Purple = BLUIColor & {
60
+ 95: string;
61
+ 98: string;
62
+ };
@@ -0,0 +1,8 @@
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 {};
@@ -1,9 +1,2 @@
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
1
  export * from './palette';
9
- export * as BLUIColors from './palette';
2
+ export { BrandingColors, chartColors as ChartColors } from './branding-palette';
@@ -1,10 +1,2 @@
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
1
  export * from './palette';
9
- import * as BLUIColors_1 from './palette';
10
- export { BLUIColors_1 as BLUIColors };
2
+ export { BrandingColors, chartColors as ChartColors } from './branding-palette';
@@ -5,17 +5,12 @@ All rights reserved.
5
5
 
6
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
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;
8
+ import { Error, Neutral, NeutralVariant, Orange, Primary, Purple, Success, Warning } from './colorType';
9
+ export declare const primary: Primary;
10
+ export declare const neutral: Neutral;
11
+ export declare const neutralVariant: NeutralVariant;
12
+ export declare const error: Error;
13
+ export declare const warning: Warning;
14
+ export declare const success: Success;
15
+ export declare const orange: Orange;
16
+ export declare const purple: Purple;
@@ -1,160 +1,132 @@
1
1
  /* Primary Colors / User Interface Colors */
2
- export var 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',
2
+ export var primary = {
3
+ 0: '#000000',
4
+ 10: '#001B3D',
5
+ 20: '#003063',
6
+ 30: '#00468C',
7
+ 40: '#005EB8',
8
+ 50: '#1C77CC',
9
+ 60: '#4D9FEC',
10
+ 70: '#79BFFF',
11
+ 80: '#B1DAFF',
12
+ 90: '#D0EAFD',
13
+ 95: '#E5F5FF',
14
+ 99: '#FDFBFF',
15
+ 100: '#FFFFFF',
14
16
  };
15
- export var 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',
17
+ export var neutral = {
18
+ 0: '#000000',
19
+ 4: '#0D1317',
20
+ 6: '#141C1F',
21
+ 10: '#192024',
22
+ 12: '#1E262A',
23
+ 17: '#293338',
24
+ 20: '#333F48',
25
+ 30: '#414E54',
26
+ 40: '#4F5B63',
27
+ 50: '#5B6770',
28
+ 60: '#737F87',
29
+ 70: '#98A4AE',
30
+ 80: '#BDCAD1',
31
+ 87: '#CED8DE',
32
+ 90: '#D7E0E5',
33
+ 92: '#E0E7EB',
34
+ 94: '#E5ECF0',
35
+ 95: '#EBF1F4',
36
+ 97: '#F2F6F8',
37
+ 98: '#F4F8FA',
38
+ 99: '#F8FCFC',
39
+ 100: '#FFFFFF',
27
40
  };
28
- export var 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',
41
+ export var neutralVariant = {
42
+ 0: '#000000',
43
+ 10: '#181C22',
44
+ 20: '#2D3038',
45
+ 30: '#44474E',
46
+ 40: '#5B5E66',
47
+ 50: '#74777F',
48
+ 60: '#8E9099',
49
+ 70: '#A8ABB4',
50
+ 80: '#C4C6CF',
51
+ 90: '#E0E2EC',
52
+ 95: '#EEF0FA',
53
+ 99: '#FDFBFF',
54
+ 100: '#FFFFFF',
40
55
  };
41
- export var 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 var 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 var vantaBlack = darkBlack;
69
56
  /* Status Colors */
70
- export var 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 var 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 var 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',
57
+ export var error = {
58
+ 0: '#000000',
59
+ 10: '#410002',
60
+ 20: '#690005',
61
+ 30: '#93000A',
62
+ 40: '#BA1A1A',
63
+ 50: '#DE3730',
64
+ 60: '#FF5449',
65
+ 70: '#FF897D',
66
+ 80: '#FFB4AB',
67
+ 90: '#FFDAD6',
68
+ 95: '#FFEDEA',
69
+ 99: '#FFFBFF',
70
+ 100: '#FFFFFF',
108
71
  };
109
- export var 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',
72
+ export var warning = {
73
+ 0: '#000000',
74
+ 10: '#211B00',
75
+ 20: '#383000',
76
+ 30: '#524700',
77
+ 40: '#6C5E00',
78
+ 50: '#887700',
79
+ 60: '#A59116',
80
+ 70: '#C1AB33',
81
+ 80: '#DDC437',
82
+ 90: '#FBE365',
83
+ 95: '#FFF1B6',
84
+ 98: '#FFF9EC',
85
+ 100: '#FFFFFF',
121
86
  };
122
- export var 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',
87
+ export var success = {
88
+ 0: '#000000',
89
+ 4: '#022100',
90
+ 10: '#022100',
91
+ 20: '#053900',
92
+ 30: '#0B5300',
93
+ 40: '#126E00',
94
+ 50: '#198900',
95
+ 60: '#27A70B',
96
+ 70: '#48C32E',
97
+ 80: '#65E049',
98
+ 90: '#95F77D',
99
+ 95: '#CBFFB6',
100
+ 98: '#EDFFE1',
101
+ 100: '#FFFFFF',
134
102
  };
135
- export var 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',
103
+ export var orange = {
104
+ 0: '#000000',
105
+ 10: '#2D1600',
106
+ 20: '#4B2800',
107
+ 30: '#6B3B00',
108
+ 40: '#8D4F00',
109
+ 50: '#B06400',
110
+ 60: '#D37B15',
111
+ 70: '#ED8B00',
112
+ 80: '#FFB876',
113
+ 90: '#FFDCC0',
114
+ 95: '#FFEEE1',
115
+ 98: '#FFF8F5',
116
+ 100: '#FFFFFF',
147
117
  };
148
118
  export var 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',
119
+ 0: '#000000',
120
+ 10: '#2C0051',
121
+ 20: '#480081',
122
+ 30: '#6700B5',
123
+ 40: '#8424DB',
124
+ 50: '#9F45F6',
125
+ 60: '#B56EFF',
126
+ 70: '#C994FF',
127
+ 80: '#DCB8FF',
128
+ 90: '#F0DBFF',
129
+ 95: '#F9ECFF',
130
+ 98: '#FFF7FF',
131
+ 100: '#FFFFFF',
160
132
  };
package/package.json CHANGED
@@ -1,45 +1,48 @@
1
1
  {
2
2
  "name": "@brightlayer-ui/colors",
3
- "version": "3.1.1",
3
+ "version": "4.0.0-alpha.1",
4
4
  "description": "Brightlayer UI colors for Eaton applications",
5
5
  "main": "./dist/commonjs/index.js",
6
6
  "types": "./dist/commonjs/index.d.ts",
7
7
  "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
8
+ "test": "./buildTest.sh",
9
9
  "build": "yarn && tsc --module commonjs --outDir dist/commonjs && tsc --module ES2015 --outDir dist/es2015",
10
+ "prettier": "prettier \"**/**.{ts,tsx,js,jsx,json,css,scss,html,md}\" --write",
11
+ "precommit": "yarn && yarn prettier && yarn build && yarn test",
10
12
  "publish:package": "set npm_config_yes=true && npx -p @brightlayer-ui/publish blui-publish",
11
13
  "tag:package": "npx -p @brightlayer-ui/tag blui-tag"
12
14
  },
13
15
  "repository": {
14
16
  "type": "git",
15
- "url": "git+https://github.com/brightlayer-ui/colors.git"
17
+ "url": "git+https://github.com/etn-ccis/blui-colors.git"
16
18
  },
17
19
  "keywords": [
18
- "Brightlayer-UI",
19
- "colors",
20
+ "Brightlayer UI",
21
+ "Branding",
22
+ "Colors",
20
23
  "Eaton",
21
- "quality",
22
- "lighting"
24
+ "Quality",
25
+ "Lighting"
23
26
  ],
24
27
  "author": "Brightlayer UI <brightlayer-ui@eaton.com>",
25
28
  "license": "BSD-3-Clause",
26
29
  "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"
30
+ "url": "https://github.com/etn-ccis/blui-colors/issues"
32
31
  },
32
+ "homepage": "https://github.com/etn-ccis/blui-colors#readme",
33
+ "prettier": "@brightlayer-ui/prettier-config",
33
34
  "devDependencies": {
34
- "typescript": "^4.6.3"
35
+ "typescript": "^5.0.3",
36
+ "@brightlayer-ui/prettier-config": "^1.0.2",
37
+ "prettier": "^3.0.3"
35
38
  },
36
39
  "files": [
37
40
  "package.json",
38
41
  "README.md",
39
42
  "LICENSE",
40
- "LICENSES.json",
41
43
  "CHANGELOG.md",
42
44
  "dist/",
45
+ "branding-pallete.scss",
43
46
  "palette.scss"
44
47
  ]
45
48
  }