@brightlayer-ui/colors 4.0.0-alpha.2 → 4.0.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 +1 -1
- package/README.md +13 -2
- package/branding/branding-palette.d.ts +1 -2
- package/branding/branding-palette.js +2 -13
- package/branding/index.d.ts +2 -0
- package/branding/index.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/palette.d.ts +11 -0
- package/dist/palette.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -64,14 +64,14 @@ Incorporating these colors into your project is handled differently depending on
|
|
|
64
64
|
|
|
65
65
|
```
|
|
66
66
|
// For UI Colors in styles.scss or your top-level sass file
|
|
67
|
-
@import '
|
|
67
|
+
@import '@brightlayer-ui/colors/palette.scss';
|
|
68
68
|
...
|
|
69
69
|
background-color: map-get($blui-primary, 10);
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
```
|
|
73
73
|
// For Branding Colors in styles.scss or your top-level sass file
|
|
74
|
-
@import '
|
|
74
|
+
@import '@brightlayer-ui/colors/branding-palette.scss';
|
|
75
75
|
...
|
|
76
76
|
background-color: $brand-lightGray;
|
|
77
77
|
```
|
|
@@ -87,3 +87,14 @@ import BrandingColors, {lightGray} from '@brightlayer-ui/colors/branding';
|
|
|
87
87
|
<div style={{background: BrandingColors.lightGray}}/>
|
|
88
88
|
<div style={{background: lightGray}}/>
|
|
89
89
|
```
|
|
90
|
+
|
|
91
|
+
## Migration from v3 to v4
|
|
92
|
+
|
|
93
|
+
In version 4.0.0, we have updated the UI colors and branding colors palette.
|
|
94
|
+
|
|
95
|
+
We have deprecated `@brightlayer-ui/colors-branding` and `@brightlayer-ui/types` packages, as they will be part of the `@brightlayer-ui/colors` package.
|
|
96
|
+
The branding colors palette and individual branding colors now can be imported from `@brightlayer-ui/colors/branding`.
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
import BrandingColors, {lightGray} from '@brightlayer-ui/colors/branding';
|
|
100
|
+
```
|
|
@@ -27,6 +27,5 @@ declare enum BrandingColors {
|
|
|
27
27
|
crimson = "#D22730",
|
|
28
28
|
wine = "#9D2235"
|
|
29
29
|
}
|
|
30
|
-
export declare const chartColors: BrandingColors[];
|
|
31
30
|
export declare const lightGray: BrandingColors, gray: BrandingColors, darkGray: BrandingColors, sky: BrandingColors, eatonBlue: BrandingColors, navy: BrandingColors, ash: BrandingColors, teal: BrandingColors, pine: BrandingColors, sage: BrandingColors, citrus: BrandingColors, emerald: BrandingColors, butter: BrandingColors, goldenrod: BrandingColors, toad: BrandingColors, trophy: BrandingColors, sunset: BrandingColors, rust: BrandingColors, crimson: BrandingColors, wine: BrandingColors;
|
|
32
|
-
export
|
|
31
|
+
export default 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.wine = exports.crimson = exports.rust = exports.sunset = exports.trophy = exports.toad = exports.goldenrod = exports.butter = exports.emerald = exports.citrus = exports.sage = exports.pine = exports.teal = exports.ash = exports.navy = exports.eatonBlue = exports.sky = exports.darkGray = exports.gray = exports.lightGray =
|
|
10
|
+
exports.wine = exports.crimson = exports.rust = exports.sunset = exports.trophy = exports.toad = exports.goldenrod = exports.butter = exports.emerald = exports.citrus = exports.sage = exports.pine = exports.teal = exports.ash = exports.navy = exports.eatonBlue = exports.sky = exports.darkGray = exports.gray = exports.lightGray = void 0;
|
|
11
11
|
var BrandingColors;
|
|
12
12
|
(function (BrandingColors) {
|
|
13
13
|
BrandingColors["lightGray"] = "#98A4AE";
|
|
@@ -31,16 +31,5 @@ var BrandingColors;
|
|
|
31
31
|
BrandingColors["crimson"] = "#D22730";
|
|
32
32
|
BrandingColors["wine"] = "#9D2235";
|
|
33
33
|
})(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
|
-
];
|
|
46
34
|
exports.lightGray = BrandingColors.lightGray, exports.gray = BrandingColors.gray, exports.darkGray = BrandingColors.darkGray, exports.sky = BrandingColors.sky, exports.eatonBlue = BrandingColors.eatonBlue, exports.navy = BrandingColors.navy, exports.ash = BrandingColors.ash, exports.teal = BrandingColors.teal, exports.pine = BrandingColors.pine, exports.sage = BrandingColors.sage, exports.citrus = BrandingColors.citrus, exports.emerald = BrandingColors.emerald, exports.butter = BrandingColors.butter, exports.goldenrod = BrandingColors.goldenrod, exports.toad = BrandingColors.toad, exports.trophy = BrandingColors.trophy, exports.sunset = BrandingColors.sunset, exports.rust = BrandingColors.rust, exports.crimson = BrandingColors.crimson, exports.wine = BrandingColors.wine;
|
|
35
|
+
exports.default = BrandingColors;
|
package/branding/index.d.ts
CHANGED
package/branding/index.js
CHANGED
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./branding-palette"), exports);
|
|
18
|
+
var branding_palette_1 = require("./branding-palette");
|
|
19
|
+
exports.default = branding_palette_1.default;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./palette"), exports);
|
|
18
|
+
var palette_1 = require("./palette");
|
|
19
|
+
exports.default = palette_1.default;
|
package/dist/palette.d.ts
CHANGED
|
@@ -14,3 +14,14 @@ export declare const warning: Warning;
|
|
|
14
14
|
export declare const success: Success;
|
|
15
15
|
export declare const orange: Orange;
|
|
16
16
|
export declare const purple: Purple;
|
|
17
|
+
declare const Colors: {
|
|
18
|
+
primary: Primary;
|
|
19
|
+
neutral: Neutral;
|
|
20
|
+
neutralVariant: NeutralVariant;
|
|
21
|
+
error: Error;
|
|
22
|
+
warning: Warning;
|
|
23
|
+
success: Success;
|
|
24
|
+
orange: Orange;
|
|
25
|
+
purple: Purple;
|
|
26
|
+
};
|
|
27
|
+
export default Colors;
|
package/dist/palette.js
CHANGED
|
@@ -133,3 +133,14 @@ exports.purple = {
|
|
|
133
133
|
98: '#FFF7FF',
|
|
134
134
|
100: '#FFFFFF',
|
|
135
135
|
};
|
|
136
|
+
var Colors = {
|
|
137
|
+
primary: exports.primary,
|
|
138
|
+
neutral: exports.neutral,
|
|
139
|
+
neutralVariant: exports.neutralVariant,
|
|
140
|
+
error: exports.error,
|
|
141
|
+
warning: exports.warning,
|
|
142
|
+
success: exports.success,
|
|
143
|
+
orange: exports.orange,
|
|
144
|
+
purple: exports.purple,
|
|
145
|
+
};
|
|
146
|
+
exports.default = Colors;
|