You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PD-1714: Update colors in palette to reflect brand refresh (#1080)
* update colors to reflect brand refresh
* format
* verified commit
* GPG verified commit
* GPG verified commit for real this time
* Update wording in upgrade guide
Co-authored-by: Harry Wolff <[email protected]>
* update upgrade guide
* change base to dark 1 green
* Update packages/palette/UPGRADE.md
Co-authored-by: Harry Wolff <[email protected]>
* update inline references in upgrade.md
Co-authored-by: Dave McCarthy <[email protected]>
Co-authored-by: Harry Wolff <[email protected]>
v3.3 and above of the palette package contains the updated palette for the brand refresh. In v4, the old palette is removed entirely from this package.
4
+
5
+
## Imports
6
+
7
+
### JS
8
+
9
+
The named export for the new palette has changed from `uiColors` to `palette`. You'll need to import the new colors like so:
10
+
11
+
```js
12
+
import { palette } from'@leafygreen-ui/palette';
13
+
```
14
+
15
+
### Less
16
+
17
+
The name of the included `.less` variables file has changed from 'ui-colors.less' to `palette.less`. You'll need to import the new file like so:
18
+
19
+
```less
20
+
@import'<path to node_modules>/@leafygreen-ui/palette/dist/palette.less';
21
+
```
22
+
23
+
## Color Variables
24
+
25
+
### JS
26
+
27
+
The name and structure of the JS variables is largely unchanged. Here are the notable changes:
28
+
29
+
- The `focus` variable has been removed. It's recommended to update usage of this color to `palette.blue.light1`.
30
+
- The `palette.red.dark1` variable has been removed. It's recommended to update usage of this color to `palette.red.dark2`.
31
+
- We've added a new `palette.green.light1` color.
32
+
- We've added a new `palette.blue.dark2` color.
33
+
- We've added a new `palette.red.light1` color.
34
+
- We've added purple to the palette. You can find `dark3`, `dark2`, `base`, `light2`, and `light3` values for the color.
35
+
36
+
### Less
37
+
38
+
There's a number of notable changes to the Less variables that are available.
39
+
40
+
- All variables have moved from a `@leafygreen__[color name]` format to a `@palette__[color name]` format.
41
+
- The `@leafygreen__focus` variable has been removed. It's recommended to update usage of this color to `@palette__blue--light-1`.
42
+
- The `@leafygreen__red--dark-1` variable has been removed. It's recommended to update usage of this color to `@palette__red--dark-2`.
43
+
- We've added a new `@palette__green--light-1` color.
44
+
- We've added a new `@palette__blue--dark-2` color.
45
+
- We've added a new `@palette__red--light-1` color.
46
+
- We've added purple to the palette. You can find `dark-3`, `dark-2`, `base`, `light-2`, and `light-3` values for the color.
47
+
48
+
## Color Changes
49
+
50
+
Nearly every color in the palette has been changed to some extent. You'll notice colors are more vibrant all around, though many are compatible with the usage of the previous colors. Here are the most notable changes:
51
+
52
+
- The new Base Green is lighter, and more vibrant than the previous Base Green (`uiColors.green.base` / `@leafygreen__green--base`). For a 1:1 update, we recommend changing instances of that green to Green: Dark 1 (`palette.green.dark1` / `@palette__green--dark-1`).
53
+
- The range of blues available are much more vibrant. While the color contrast should remain largely compatible with the previous blues, we recommend checking instances of Base Blue in particular for any visual oddities.
54
+
55
+
We recommend visually checking that the new colors make sense in all cases when upgrading, regardless of similarity to the previous palette. For any questions about the color update, please reach out to a product designer working with your team.
0 commit comments