Skip to content

Commit 175c729

Browse files
committed
use colors from palette
1 parent 69f18c7 commit 175c729

File tree

2 files changed

+32
-29
lines changed

2 files changed

+32
-29
lines changed

packages/uui-css/lib/custom-properties/colors.css

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
font-family: 'Roboto', sans-serif;
33

44
/* ----- STATES ----- */
5-
--uui-color-selected: #2152a3;
6-
--uui-color-selected-emphasis: #3265b8;
7-
--uui-color-selected-standalone: #184792;
5+
--uui-color-selected: var(--uui-palette-violet-blue);
6+
--uui-color-selected-emphasis: var(--uui-palette-violet-blue-light);
7+
--uui-color-selected-standalone: var(--uui-palette-violet-blue-dark);
88
--uui-color-selected-contrast: #fff;
99

10-
--uui-color-current: #fdd0cc;
11-
--uui-color-current-emphasis: #ffddda;
12-
--uui-color-current-standalone: #e7aea9;
13-
--uui-color-current-contrast: #1b264f;
10+
--uui-color-current: var(--uui-palette-spanish-pink);
11+
--uui-color-current-emphasis: var(--uui-palette-spanish-pink-light);
12+
--uui-color-current-standalone: var(--uui-palette-spanish-pink-dark);
13+
--uui-color-current-contrast: var(--uui-palette-space-cadet);
1414

15-
--uui-color-disabled: #f5f5f5;
16-
--uui-color-disabled-standalone: #dfdfdf;
17-
--uui-color-disabled-contrast: #b3b3b3;
15+
--uui-color-disabled: var(--uui-palette-sand);
16+
--uui-color-disabled-standalone: var(--uui-palette-sand-dark);
17+
--uui-color-disabled-contrast: var(--uui-palette-grey);
1818

1919
/* ----- UNIVERSAL ----- */
20-
--uui-color-header-surface: #1b264f;
20+
--uui-color-header-surface: var(--uui-palette-space-cadet);
2121
--uui-color-header-contrast: rgba(255, 255, 255, 0.8);
22-
--uui-color-header-contrast-emphasis: white;
22+
--uui-color-header-contrast-emphasis: #fff;
2323

24-
--uui-color-focus: #2294ff;
24+
--uui-color-focus: var(--uui-palette-malibu);
2525

2626
/* ----- SURFACE ----- */
2727
--uui-color-surface: #fff;
28-
--uui-color-surface-alt: #eeeeee;
29-
--uui-color-surface-emphasis: #f5f5f5;
28+
--uui-color-surface-alt: var(--uui-palette-sand);
29+
--uui-color-surface-emphasis: var(--uui-palette-white-dark);
3030

31-
--uui-color-background: #f5f5f5;
31+
--uui-color-background: var(--uui-palette-sand);
3232

3333
--uui-color-text: var(--uui-palette-black);
3434
--uui-color-text-alt: var(--uui-palette-dune-black);
3535

36-
--uui-color-interactive: #1b264f;
37-
--uui-color-interactive-emphasis: #2152a3;
36+
--uui-color-interactive: var(--uui-palette-space-cadet);
37+
--uui-color-interactive-emphasis: var(--uui-palette-violet-blue);
3838

3939
--uui-color-border: #d8d7d9;
4040
--uui-color-border-standalone: #c2c2c2;
@@ -50,19 +50,19 @@
5050
--uui-color-primary-standalone: var(--uui-palette-space-cadet-dark);
5151
--uui-color-primary-contrast: #fff;
5252

53-
--uui-color-warning: #fad634;
54-
--uui-color-warning-emphasis: #ffe366;
55-
--uui-color-warning-standalone: #c5a100;
53+
--uui-color-warning: var(--uui-palette-sunglow);
54+
--uui-color-warning-emphasis: var(--uui-palette-sunglow-light);
55+
--uui-color-warning-standalone: var(--uui-palette-sunglow-dark);
5656
--uui-color-warning-contrast: #000;
5757

58-
--uui-color-danger: #d42054;
59-
--uui-color-danger-emphasis: #f74074;
60-
--uui-color-danger-standalone: #d42054;
58+
--uui-color-danger: var(--uui-palette-maroon-flush);
59+
--uui-color-danger-emphasis: var(--uui-palette-maroon-flush-light);
60+
--uui-color-danger-standalone: var(--uui-palette-maroon-flush-dark);
6161
--uui-color-danger-contrast: white;
6262

63-
--uui-color-positive: #2da44e;
64-
--uui-color-positive-emphasis: #3fc264;
65-
--uui-color-positive-standalone: #229442;
63+
--uui-color-positive: var(--uui-palette-jungle-green);
64+
--uui-color-positive-emphasis: var(--uui-palette-jungle-green-light);
65+
--uui-color-positive-standalone: var(--uui-palette-jungle-green-dark);
6666
--uui-color-positive-contrast: #fff;
6767
}
6868

packages/uui-css/lib/custom-properties/palette.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,16 @@
5151
$violet-blue saturation(- 30%) blackness(+ 22%)
5252
);
5353

54+
/*
55+
// not used jet.
5456
$matisse: #2152a3;
5557
--uui-palette-matisse: $matisse;
5658
--uui-palette-matisse-light: color($matisse lightness(+ 8%));
5759
--uui-palette-matisse-dark: color($matisse blackness(+ 8%));
5860
--uui-palette-matisse-dimmed: color(
5961
$matisse saturation(- 30%) blackness(+ 22%)
6062
);
63+
*/
6164

6265
$malibu: #3879ff;
6366
--uui-palette-malibu: $malibu;
@@ -66,15 +69,15 @@
6669
--uui-palette-malibu-dimmed: color(
6770
$malibu saturation(- 60%) blackness(+ 26%)
6871
);
69-
72+
/*
7073
$outline-blue: #3879ff;
7174
--uui-palette-outline-blue: $outline-blue;
7275
--uui-palette-outline-blue-light: color($outline-blue lightness(+ 8%));
7376
--uui-palette-outline-blue-dark: color($outline-blue blackness(+ 8%));
7477
--uui-palette-outline-blue-dimmed: color(
7578
$outline-blue saturation(- 60%) blackness(+ 26%)
7679
);
77-
80+
*/
7881
$maroon-flush: #d42054;
7982
--uui-palette-maroon-flush: $maroon-flush;
8083
--uui-palette-maroon-flush-light: color($maroon-flush lightness(+ 8%));

0 commit comments

Comments
 (0)