@brightlayer-ui/colors 3.1.1-beta.2 → 4.0.0-alpha.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +6 -10
  3. package/dist/commonjs/branding/index.d.ts +9 -0
  4. package/dist/commonjs/branding/index.js +25 -0
  5. package/dist/commonjs/branding/palette.d.ts +29 -0
  6. package/dist/commonjs/branding/palette.js +33 -0
  7. package/dist/commonjs/colors/index.d.ts +9 -0
  8. package/dist/commonjs/colors/index.js +26 -0
  9. package/dist/commonjs/colors/palette.d.ts +16 -0
  10. package/dist/commonjs/colors/palette.js +135 -0
  11. package/dist/commonjs/index.d.ts +4 -9
  12. package/dist/commonjs/index.js +5 -10
  13. package/dist/commonjs/types/colorType.d.ts +62 -0
  14. package/dist/commonjs/types/colorType.js +9 -0
  15. package/dist/commonjs/types/index.d.ts +6 -0
  16. package/dist/commonjs/types/index.js +22 -0
  17. package/dist/es2015/branding/index.d.ts +9 -0
  18. package/dist/es2015/branding/index.js +22 -0
  19. package/dist/es2015/branding/palette.d.ts +29 -0
  20. package/dist/es2015/branding/palette.js +30 -0
  21. package/dist/es2015/colors/index.d.ts +9 -0
  22. package/dist/es2015/colors/index.js +10 -0
  23. package/dist/es2015/colors/palette.d.ts +16 -0
  24. package/dist/es2015/colors/palette.js +132 -0
  25. package/dist/es2015/index.d.ts +4 -9
  26. package/dist/es2015/index.js +5 -9
  27. package/dist/es2015/types/colorType.d.ts +62 -0
  28. package/dist/es2015/types/colorType.js +8 -0
  29. package/dist/es2015/types/index.d.ts +6 -0
  30. package/dist/es2015/types/index.js +6 -0
  31. package/package.json +5 -5
  32. package/palette.scss +124 -283
  33. package/dist/commonjs/palette.d.ts +0 -21
  34. package/dist/commonjs/palette.js +0 -163
  35. package/dist/es2015/palette.d.ts +0 -21
  36. package/dist/es2015/palette.js +0 -160
package/palette.scss CHANGED
@@ -8,297 +8,138 @@ This code is licensed under the BSD-3 license found in the LICENSE file in the r
8
8
 
9
9
  /* Primary Colors / User Interface Colors */
10
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
- ),
11
+ $blui-primary: (
12
+ 0: #000000,
13
+ 10: #001b3d,
14
+ 20: #003063,
15
+ 30: #00468c,
16
+ 40: #005eb8,
17
+ 50: #1c77cc,
18
+ 60: #4d9fec,
19
+ 70: #79bfff,
20
+ 80: #b1daff,
21
+ 90: #d0eafd,
22
+ 95: #e5f5ff,
23
+ 99: #fdfbff,
24
+ 100: #ffffff,
34
25
  );
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
- ),
26
+
27
+ $blui-neutral: (
28
+ 0: #000000,
29
+ 4: #0d1317,
30
+ 6: #141c1f,
31
+ 10: #192024,
32
+ 12: #1e262a,
33
+ 17: #293338,
34
+ 20: #333f48,
35
+ 30: #414e54,
36
+ 40: #4f5b63,
37
+ 50: #5b6770,
38
+ 60: #737f87,
39
+ 70: #98a4ae,
40
+ 80: #bdcad1,
41
+ 87: #ced8de,
42
+ 90: #d7e0e5,
43
+ 92: #e0e7eb,
44
+ 94: #e5ecf0,
45
+ 95: #ebf1f4,
46
+ 97: #f2f6f8,
47
+ 98: #f4f8fa,
48
+ 99: #f8fcfc,
49
+ 100: #ffffff,
130
50
  );
131
51
 
132
- // alias
133
- $blui-vantaBlack: $blui-darkBlack;
52
+ $blui-neutralVariant: (
53
+ 0: #000000,
54
+ 10: #181c22,
55
+ 20: #2d3038,
56
+ 30: #44474e,
57
+ 40: #5b5e66,
58
+ 50: #74777f,
59
+ 60: #8e9099,
60
+ 70: #a8abb4,
61
+ 80: #c4c6cf,
62
+ 90: #e0e2ec,
63
+ 95: #eef0fa,
64
+ 99: #fdfbff,
65
+ 100: #ffffff,
66
+ );
134
67
 
135
68
  /* 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
- ),
69
+ $blui-error: (
70
+ 0: #000000,
71
+ 10: #410002,
72
+ 20: #690005,
73
+ 30: #93000a,
74
+ 40: #ba1a1a,
75
+ 50: #de3730,
76
+ 60: #ff5449,
77
+ 70: #ff897d,
78
+ 80: #ffb4ab,
79
+ 90: #ffdad6,
80
+ 95: #ffedea,
81
+ 99: #fffbff,
82
+ 100: #ffffff,
160
83
  );
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
- ),
84
+ $blui-warning: (
85
+ 0: #000000,
86
+ 10: #211b00,
87
+ 20: #383000,
88
+ 30: #524700,
89
+ 40: #6c5e00,
90
+ 50: #887700,
91
+ 60: #a59116,
92
+ 70: #c1ab33,
93
+ 80: #ddc437,
94
+ 90: #fbe365,
95
+ 95: #fff1b6,
96
+ 98: #fff9ec,
97
+ 100: #ffffff,
232
98
  );
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
- ),
99
+
100
+ $blui-success: (
101
+ 0: #000000,
102
+ 4: #022100,
103
+ 10: #022100,
104
+ 20: #053900,
105
+ 30: #0b5300,
106
+ 40: #126e00,
107
+ 50: #198900,
108
+ 60: #27a70b,
109
+ 70: #48c32e,
110
+ 80: #65e049,
111
+ 90: #95f77d,
112
+ 95: #cbffb6,
113
+ 98: #edffe1,
114
+ 100: #ffffff,
256
115
  );
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
- ),
116
+ $blui-orange: (
117
+ 0: #000000,
118
+ 10: #2d1600,
119
+ 20: #4b2800,
120
+ 30: #6b3b00,
121
+ 40: #8d4f00,
122
+ 50: #b06400,
123
+ 60: #d37b15,
124
+ 70: #ed8b00,
125
+ 80: #ffb876,
126
+ 90: #ffdcc0,
127
+ 95: #ffeee1,
128
+ 98: #fff8f5,
129
+ 100: #ffffff,
280
130
  );
281
131
  $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
- ),
132
+ 0: #000000,
133
+ 10: #2c0051,
134
+ 20: #480081,
135
+ 30: #6700b5,
136
+ 40: #8424db,
137
+ 50: #9f45f6,
138
+ 60: #b56eff,
139
+ 70: #c994ff,
140
+ 80: #dcb8ff,
141
+ 90: #f0dbff,
142
+ 95: #f9ecff,
143
+ 98: #fff7ff,
144
+ 100: #ffffff,
304
145
  );
@@ -1,21 +0,0 @@
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,163 +0,0 @@
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
- };
@@ -1,21 +0,0 @@
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;