Skip to content

Commit

Permalink
fix: correct green colors (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe authored Nov 8, 2023
1 parent 9cb90b4 commit d33d4e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions packages/uui-css/lib/custom-properties/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,10 @@
--uui-color-danger-standalone: var(--uui-palette-maroon-flush-dark);
--uui-color-danger-contrast: white;

--uui-color-positive: #1f9554;
--uui-color-positive-emphasis: #2ca964;
--uui-color-positive-standalone: #19864a;
--uui-color-positive: var(--uui-palette-forest-green);
--uui-color-positive-emphasis: var(--uui-palette-forest-green-light);
--uui-color-positive-standalone: var(--uui-palette-forest-green-dark);
--uui-color-positive-contrast: #fff;
/* --uui-color-positive: var(--uui-palette-jungle-green); Contrast not high enough */
/* --uui-color-positive-emphasis: var(--uui-palette-jungle-green-light); Contrast not high enough */
/* --uui-color-positive-standalone: var(--uui-palette-jungle-green-dark); Contrast not high enough */
}

:root[data-theme='dark'] {
Expand Down
3 changes: 1 addition & 2 deletions packages/uui-css/lib/custom-properties/palette.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,14 @@
$maroon-flush saturation(- 62%) blackness(+ 2%)
);

$jungle-green: #25aa60; /* A11Y acceptable color. Originally #2BC37C*/
$jungle-green: #2bc37c;
--uui-palette-jungle-green: $jungle-green;
--uui-palette-jungle-green-light: color($jungle-green lightness(+ 6%));
--uui-palette-jungle-green-dark: color($jungle-green blackness(+ 6%));
--uui-palette-jungle-green-dimmed: color(
$jungle-green saturation(- 50%) blackness(+ 1%)
);

/*TODO: color needs proper name*/
$forest-green: #0b8152;
--uui-palette-forest-green: $forest-green;
--uui-palette-forest-green-light: color($forest-green lightness(+ 6%));
Expand Down

0 comments on commit d33d4e6

Please sign in to comment.