Skip to content

Commit 99a91e1

Browse files
authored
Improve neutral color palette (#26381)
Improve neutral, add docs, removed unused var.
1 parent 5de8d07 commit 99a91e1

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

src/resources/theme/color/core.globals.ts

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { css } from "lit";
22
import { extractVars } from "../../../common/style/derived-css-vars";
33

4+
/*
5+
* Core color tokens are the foundational color values used throughout the design system.
6+
* These tokens represent raw, brand-independent colors such as grayscale shades, base hues, and accent tones.
7+
* Core tokens shouldn't be tied to any specific UI purpose or role. Instead, they serve as building blocks from which semantic tokens are derived.
8+
* Changes to core tokens will cascade into semantic tokens that reference them, enabling flexible theming and consistent design language.
9+
* Please note that these core tokens are not intended to be used directly in components or styles.
10+
*/
411
export const coreColorStyles = css`
512
html {
613
--white: #ffffff;
@@ -21,17 +28,17 @@ export const coreColorStyles = css`
2128
--color-primary-95: #eff9fe;
2229
2330
/* neutral */
24-
--color-neutral-05: #101219;
25-
--color-neutral-10: #1b1d26;
26-
--color-neutral-20: #2f323f;
27-
--color-neutral-30: #424554;
28-
--color-neutral-40: #545868;
29-
--color-neutral-50: #717584;
30-
--color-neutral-60: #9194a2;
31-
--color-neutral-70: #abaeb9;
32-
--color-neutral-80: #c7c9d0;
33-
--color-neutral-90: #e4e5e9;
34-
--color-neutral-95: #f1f2f3;
31+
--color-neutral-05: #141414;
32+
--color-neutral-10: #202020;
33+
--color-neutral-20: #363636;
34+
--color-neutral-30: #4a4a4a;
35+
--color-neutral-40: #5e5e5e;
36+
--color-neutral-50: #7a7a7a;
37+
--color-neutral-60: #989898;
38+
--color-neutral-70: #b1b1b1;
39+
--color-neutral-80: #b1b1b1;
40+
--color-neutral-90: #e6e6e6;
41+
--color-neutral-95: #f3f3f3;
3542
3643
/* orange */
3744
--color-orange-05: #280700;

src/resources/theme/color/semantic.globals.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { css } from "lit";
22

3+
/*
4+
* Semantic color tokens are abstractions built on top of core color tokens to represent colors based on their usage or purpose.
5+
* These tokens are named according to their semantic role in the UI (e.g., "primary," "success," "error"), making it easier to maintain consistency and scalability in design.
6+
* Semantic tokens use core tokens to reference the actual color values. This separation allows for adjustments in color schemes without affecting the semantic meaning or intent.
7+
*/
38
export const semanticColorStyles = css`
49
html {
510
--color-overlay-modal: rgba(0, 0, 0, 0.25);
@@ -153,9 +158,6 @@ export const semanticColorStyles = css`
153158
--color-on-success-quiet: var(--color-green-50);
154159
--color-on-success-normal: var(--color-green-40);
155160
--color-on-success-loud: var(--white);
156-
157-
/* logo */
158-
--color-logo-primary: var(--color-primary-50);
159161
}
160162
`;
161163

0 commit comments

Comments
 (0)