@brightlayer-ui/colors 4.0.0-alpha.0 → 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.
Files changed (33) hide show
  1. package/CHANGELOG.md +1 -3
  2. package/README.md +42 -9
  3. package/branding-pallete.scss +28 -0
  4. package/dist/{es2015/branding/palette.d.ts → commonjs/branding-palette.d.ts} +1 -0
  5. package/dist/commonjs/{branding/palette.js → branding-palette.js} +13 -1
  6. package/dist/commonjs/index.d.ts +2 -4
  7. package/dist/commonjs/index.js +5 -5
  8. package/dist/{es2015/colors → commonjs}/palette.d.ts +1 -1
  9. package/dist/{commonjs/branding/palette.d.ts → es2015/branding-palette.d.ts} +1 -0
  10. package/dist/es2015/{branding/palette.js → branding-palette.js} +12 -0
  11. package/dist/es2015/index.d.ts +2 -4
  12. package/dist/es2015/index.js +2 -6
  13. package/dist/{commonjs/colors → es2015}/palette.d.ts +1 -1
  14. package/package.json +14 -11
  15. package/LICENSES.json +0 -8
  16. package/dist/commonjs/branding/index.d.ts +0 -9
  17. package/dist/commonjs/branding/index.js +0 -25
  18. package/dist/commonjs/colors/index.d.ts +0 -9
  19. package/dist/commonjs/colors/index.js +0 -26
  20. package/dist/commonjs/types/index.d.ts +0 -6
  21. package/dist/commonjs/types/index.js +0 -22
  22. package/dist/es2015/branding/index.d.ts +0 -9
  23. package/dist/es2015/branding/index.js +0 -22
  24. package/dist/es2015/colors/index.d.ts +0 -9
  25. package/dist/es2015/colors/index.js +0 -10
  26. package/dist/es2015/types/index.d.ts +0 -6
  27. package/dist/es2015/types/index.js +0 -6
  28. /package/dist/commonjs/{types/colorType.d.ts → colorType.d.ts} +0 -0
  29. /package/dist/commonjs/{types/colorType.js → colorType.js} +0 -0
  30. /package/dist/commonjs/{colors/palette.js → palette.js} +0 -0
  31. /package/dist/es2015/{types/colorType.d.ts → colorType.d.ts} +0 -0
  32. /package/dist/es2015/{types/colorType.js → colorType.js} +0 -0
  33. /package/dist/es2015/{colors/palette.js → palette.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -5,11 +5,9 @@
5
5
  ### Changed
6
6
 
7
7
  - Move Branding colors under `@brightlayer-ui/colors` package.
8
- - Update UI colors and Branding colors as per new Material You designs.
8
+ - Update UI colors and Branding colors as per new Material Design 3.
9
9
  - Remove dependency of `@brightlayer-ui/types` and moved type in `@brightlayer-ui/colors` package.
10
10
 
11
- ## v3.1.0 (April 15, 2022)
12
-
13
11
  ## v3.1.1 (June 20, 2022)
14
12
 
15
13
  ### Changed
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Brightlayer UI Colors
2
2
 
3
- This package contains Brightlayer UI color definitions. These are intended for use as primary UI colors.
3
+ This repository contains definitions for various colors used throughout Brightlayer UI applications.
4
4
 
5
5
  It contains the following color defintions:
6
6
 
7
+ ## UI Colors
8
+
7
9
  ```
8
10
  primary / $blui-primary
9
11
  neutral / $blui-neutral
@@ -15,7 +17,30 @@ orange / $blui-orange
15
17
  purple / $blui-purple
16
18
  ```
17
19
 
18
- These all have color definitions for the following values: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900.
20
+ ## Branding Colors
21
+
22
+ ```
23
+ lightGray / $brand-lightGray
24
+ gray / $brand-gray
25
+ darkGray / $brand-darkGray
26
+ sky / $brand-sky
27
+ eatonBlue / $brand-eatonBlue
28
+ navy / $brand-navy
29
+ ash / $brand-ash
30
+ teal / $brand-teal
31
+ pine / $brand-pine
32
+ sage / $brand-sage
33
+ citrus / $brand-citrus
34
+ emerald / $brand-emerald
35
+ butter / $brand-butter
36
+ goldenrod / $brand-goldenrod
37
+ toad / $brand-toad
38
+ trophy / $brand-trophy
39
+ sunset / $brand-sunset
40
+ rust / $brand-rust
41
+ crimson / $brand-crimson
42
+ wine / $brand-wine
43
+ ```
19
44
 
20
45
  ## Installation
21
46
 
@@ -35,19 +60,27 @@ yarn add @brightlayer-ui/colors
35
60
 
36
61
  Incorporating these colors into your project is handled differently depending on the framework that you are using.
37
62
 
38
- ### Angular or Ionic
63
+ ### CSS variables
64
+
65
+ ```
66
+ // For UI Colors in styles.scss or your top-level sass file
67
+ @import '~@brightlayer-ui/colors/palette.scss';
68
+ ...
69
+ background-color: map-get($blui-primary, 10);
70
+ ```
39
71
 
40
72
  ```
41
- // in styles.scss or your top-level sass file
42
- @import '~@brightlayer-ui/colors/palette.scss'
73
+ // For Branding Colors in styles.scss or your top-level sass file
74
+ @import '~@brightlayer-ui/colors/branding-palette.scss';
43
75
  ...
44
- background-color: map-get($blui-blue, 500)
76
+ background-color: $brand-lightGray;
45
77
  ```
46
78
 
47
- ### React or React Native
79
+ ### JSON Object
48
80
 
49
81
  ```
50
- import * as Colors from '@brightlayer-ui/colors';
82
+ import Colors, {BrandingColors} from '@brightlayer-ui/colors';
51
83
  ...
52
- <div style={{background: Colors.blue['500']}}/>
84
+ <div style={{background: Colors.primary[10]}}/>
85
+ <div style={{background: BrandingColors.teal}}/>
53
86
  ```
@@ -0,0 +1,28 @@
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
+ $brand-lightGray: #98a4ae;
10
+ $brand-gray: #5b6770;
11
+ $brand-darkGray: #333f48;
12
+ $brand-sky: #71b2c9;
13
+ $brand-eatonBlue: #005eb8;
14
+ $brand-navy: #003865;
15
+ $brand-ash: #a3b2a4;
16
+ $brand-teal: #00b2a9;
17
+ $brand-pine: #43695b;
18
+ $brand-sage: #b7ce95;
19
+ $brand-citrus: #b5bd00;
20
+ $brand-emerald: #4c8d2b;
21
+ $brand-butter: #f3dd6d;
22
+ $brand-goldenrod: #ffc72c;
23
+ $brand-toad: #ad841f;
24
+ $brand-trophy: #f0b323;
25
+ $brand-sunset: #ed8b00;
26
+ $brand-rust: #b94700;
27
+ $brand-crimson: #d22730;
28
+ $brand-wine: #9d2235;
@@ -27,3 +27,4 @@ export declare enum BrandingColors {
27
27
  crimson = "#D22730",
28
28
  wine = "#9D2235"
29
29
  }
30
+ export declare const chartColors: BrandingColors[];
@@ -7,7 +7,7 @@ All rights reserved.
7
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
8
  **/
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.BrandingColors = void 0;
10
+ exports.chartColors = exports.BrandingColors = void 0;
11
11
  var BrandingColors;
12
12
  (function (BrandingColors) {
13
13
  BrandingColors["lightGray"] = "#98A4AE";
@@ -31,3 +31,15 @@ var BrandingColors;
31
31
  BrandingColors["crimson"] = "#D22730";
32
32
  BrandingColors["wine"] = "#9D2235";
33
33
  })(BrandingColors || (exports.BrandingColors = BrandingColors = {}));
34
+ exports.chartColors = [
35
+ BrandingColors.teal,
36
+ BrandingColors.citrus,
37
+ BrandingColors.pine,
38
+ BrandingColors.emerald,
39
+ BrandingColors.wine,
40
+ BrandingColors.crimson,
41
+ BrandingColors.sunset,
42
+ BrandingColors.rust,
43
+ BrandingColors.navy,
44
+ BrandingColors.sky,
45
+ ];
@@ -1,4 +1,2 @@
1
- export * from './colors/palette';
2
- export * as BLUIColors from './colors/palette';
3
- export * from './branding/palette';
4
- export * as Colors from './branding/palette';
1
+ export * from './palette';
2
+ export { BrandingColors, chartColors as ChartColors } from './branding-palette';
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Colors = exports.BLUIColors = void 0;
18
- __exportStar(require("./colors/palette"), exports);
19
- exports.BLUIColors = require("./colors/palette");
20
- __exportStar(require("./branding/palette"), exports);
21
- exports.Colors = require("./branding/palette");
17
+ exports.ChartColors = exports.BrandingColors = void 0;
18
+ __exportStar(require("./palette"), exports);
19
+ var branding_palette_1 = require("./branding-palette");
20
+ Object.defineProperty(exports, "BrandingColors", { enumerable: true, get: function () { return branding_palette_1.BrandingColors; } });
21
+ Object.defineProperty(exports, "ChartColors", { enumerable: true, get: function () { return branding_palette_1.chartColors; } });
@@ -5,7 +5,7 @@ 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 { Error, Neutral, NeutralVariant, Orange, Primary, Purple, Success, Warning } from '../types/colorType';
8
+ import { Error, Neutral, NeutralVariant, Orange, Primary, Purple, Success, Warning } from './colorType';
9
9
  export declare const primary: Primary;
10
10
  export declare const neutral: Neutral;
11
11
  export declare const neutralVariant: NeutralVariant;
@@ -27,3 +27,4 @@ export declare enum BrandingColors {
27
27
  crimson = "#D22730",
28
28
  wine = "#9D2235"
29
29
  }
30
+ export declare const chartColors: BrandingColors[];
@@ -28,3 +28,15 @@ export var BrandingColors;
28
28
  BrandingColors["crimson"] = "#D22730";
29
29
  BrandingColors["wine"] = "#9D2235";
30
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
+ ];
@@ -1,4 +1,2 @@
1
- export * from './colors/palette';
2
- export * as BLUIColors from './colors/palette';
3
- export * from './branding/palette';
4
- export * as Colors from './branding/palette';
1
+ export * from './palette';
2
+ export { BrandingColors, chartColors as ChartColors } from './branding-palette';
@@ -1,6 +1,2 @@
1
- export * from './colors/palette';
2
- import * as BLUIColors_1 from './colors/palette';
3
- export { BLUIColors_1 as BLUIColors };
4
- export * from './branding/palette';
5
- import * as Colors_1 from './branding/palette';
6
- export { Colors_1 as Colors };
1
+ export * from './palette';
2
+ export { BrandingColors, chartColors as ChartColors } from './branding-palette';
@@ -5,7 +5,7 @@ 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 { Error, Neutral, NeutralVariant, Orange, Primary, Purple, Success, Warning } from '../types/colorType';
8
+ import { Error, Neutral, NeutralVariant, Orange, Primary, Purple, Success, Warning } from './colorType';
9
9
  export declare const primary: Primary;
10
10
  export declare const neutral: Neutral;
11
11
  export declare const neutralVariant: NeutralVariant;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@brightlayer-ui/colors",
3
- "version": "4.0.0-alpha.0",
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
  },
@@ -15,11 +17,12 @@
15
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",
@@ -27,19 +30,19 @@
27
30
  "url": "https://github.com/etn-ccis/blui-colors/issues"
28
31
  },
29
32
  "homepage": "https://github.com/etn-ccis/blui-colors#readme",
30
- "dependencies": {
31
- "@brightlayer-ui/types": "^2.0.0"
32
- },
33
+ "prettier": "@brightlayer-ui/prettier-config",
33
34
  "devDependencies": {
34
- "typescript": "^5.0.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
  }
package/LICENSES.json DELETED
@@ -1,8 +0,0 @@
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,9 +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 { BrandingColors } from './palette';
9
- export declare const chartColors: BrandingColors[];
@@ -1,25 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.chartColors = void 0;
11
- // export * from './palette';
12
- // import * as Colors from './palette';
13
- var palette_1 = require("./palette");
14
- exports.chartColors = [
15
- palette_1.BrandingColors.teal,
16
- palette_1.BrandingColors.citrus,
17
- palette_1.BrandingColors.pine,
18
- palette_1.BrandingColors.emerald,
19
- palette_1.BrandingColors.wine,
20
- palette_1.BrandingColors.crimson,
21
- palette_1.BrandingColors.sunset,
22
- palette_1.BrandingColors.rust,
23
- palette_1.BrandingColors.navy,
24
- palette_1.BrandingColors.sky,
25
- ];
@@ -1,9 +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
- export * from './palette';
9
- export * as BLUIColors from './palette';
@@ -1,26 +0,0 @@
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,6 +0,0 @@
1
- /**
2
- Copyright (c) 2021-present, Eaton
3
- All rights reserved.
4
- 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.
5
- **/
6
- export * from './colorType';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /**
18
- Copyright (c) 2021-present, Eaton
19
- All rights reserved.
20
- 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.
21
- **/
22
- __exportStar(require("./colorType"), exports);
@@ -1,9 +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 { BrandingColors } from './palette';
9
- export declare const chartColors: BrandingColors[];
@@ -1,22 +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
- // export * from './palette';
9
- // import * as Colors from './palette';
10
- import { BrandingColors } from './palette';
11
- export var chartColors = [
12
- BrandingColors.teal,
13
- BrandingColors.citrus,
14
- BrandingColors.pine,
15
- BrandingColors.emerald,
16
- BrandingColors.wine,
17
- BrandingColors.crimson,
18
- BrandingColors.sunset,
19
- BrandingColors.rust,
20
- BrandingColors.navy,
21
- BrandingColors.sky,
22
- ];
@@ -1,9 +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
- export * from './palette';
9
- export * as BLUIColors from './palette';
@@ -1,10 +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
- export * from './palette';
9
- import * as BLUIColors_1 from './palette';
10
- export { BLUIColors_1 as BLUIColors };
@@ -1,6 +0,0 @@
1
- /**
2
- Copyright (c) 2021-present, Eaton
3
- All rights reserved.
4
- 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.
5
- **/
6
- export * from './colorType';
@@ -1,6 +0,0 @@
1
- /**
2
- Copyright (c) 2021-present, Eaton
3
- All rights reserved.
4
- 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.
5
- **/
6
- export * from './colorType';
File without changes
File without changes