Skip to content

Commit

Permalink
Merge pull request #2350 from boltdesignsystem/feature/update-neutral…
Browse files Browse the repository at this point in the history
…-grays

Fix: refine neutral gray colors
  • Loading branch information
danielamorse committed Oct 14, 2021
2 parents 00b5be1 + c30a498 commit 70ebb39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $bolt-button-border-style: $bolt-border-style;

&:before {
opacity: 0.8;
box-shadow: 0 0.2em 0.75em var(--m-bolt-neutral);
box-shadow: 0 0.2em 0.75em var(--bolt-color-gray);
}

&:after {
Expand Down
2 changes: 1 addition & 1 deletion packages/elements/bolt-button/src/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

&:before {
opacity: 0.8;
box-shadow: 0 0.2em 0.75em var(--m-bolt-neutral);
box-shadow: 0 0.2em 0.75em var(--bolt-color-gray);
}

&:after {
Expand Down
10 changes: 5 additions & 5 deletions packages/global/styles/00-vars/_vars-mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// Light and dark mode
@mixin bolt-base-light-mode {
--m-bolt-neutral: var(--bolt-color-gray);
--m-bolt-neutral: var(--bolt-color-gray-dark);
--m-bolt-text: var(--bolt-color-black);
--m-bolt-bg: var(--bolt-color-white);
--m-bolt-headline: var(--bolt-color-navy);
Expand All @@ -18,13 +18,13 @@
--m-bolt-tertiary: hsla(220.4, 80%, 15%, 0.15);
--m-bolt-text-on-tertiary: var(--m-bolt-headline);
--m-bolt-disabled: var(--bolt-color-gray-light);
--m-bolt-text-on-disabled: var(--bolt-color-gray);
--m-bolt-text-on-disabled: var(--bolt-color-gray-xdark);
--m-bolt-border: var(--m-bolt-tertiary);
--m-bolt-img-filter: none;
}

@mixin bolt-base-dark-mode {
--m-bolt-neutral: var(--bolt-color-gray);
--m-bolt-neutral: var(--bolt-color-gray-light);
--m-bolt-text: var(--bolt-color-white);
--m-bolt-bg: var(--bolt-color-navy-xdark);
--m-bolt-headline: var(--bolt-color-white);
Expand All @@ -35,8 +35,8 @@
--m-bolt-text-on-secondary: var(--bolt-color-navy);
--m-bolt-tertiary: hsla(0, 0%, 100%, 0.15);
--m-bolt-text-on-tertiary: var(--m-bolt-headline);
--m-bolt-disabled: var(--bolt-color-gray-light);
--m-bolt-text-on-disabled: var(--bolt-color-gray);
--m-bolt-disabled: var(--bolt-color-gray-dark);
--m-bolt-text-on-disabled: var(--bolt-color-gray-light);
--m-bolt-border: var(--m-bolt-tertiary);
--m-bolt-img-filter: grayscale(100%) invert(100%) brightness(150%);
}
Expand Down

0 comments on commit 70ebb39

Please sign in to comment.