Skip to content

Commit

Permalink
refactor(toasts): add accent, dark, disabled, gray, `gray-dar…
Browse files Browse the repository at this point in the history
…k`, `gray-light`, `info`, `light`, and `secondary` colors.
  • Loading branch information
sciborrudnicki committed Jun 11, 2022
1 parent ed96a91 commit b5b3e0e
Showing 1 changed file with 46 additions and 6 deletions.
52 changes: 46 additions & 6 deletions src/_toasts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,57 @@
padding: get-var('layout-spacing', $unit: 1);
width: 100%;

// TODO: Add accent toast, info toast.
&.toast-accent {
@include toast-variant('accent-color');
}

&.toast-dark {
@include toast-variant('dark-color');
}

&.toast-disabled {
@include toast-variant('disabled-color');
color: color('disabled-color', $lightness: -10%);
}

&.toast-error {
// @include toast-variant($error-color); // old spectre.css
@include toast-variant('error-color');
}

&.toast-gray {
@include toast-variant('gray-color');
}

&.toast-gray-dark {
@include toast-variant('gray-color-dark');
}

&.toast-gray-light {
@include toast-variant('gray-color-light');
color: color('gray-color-dark');
}

&.toast-info {
@include toast-variant('info-color');
color: color('info-color', $lightness: -60%);
}

&.toast-light {
@include toast-variant('light-color');
color: color('body-font-color');
}

&.toast-primary {
// @include toast-variant($primary-color); // old spectre.css
@include toast-variant('primary-color');
}

&.toast-secondary {
@include toast-variant('secondary-color');
color: color('primary-color');
}

&.toast-success {
// @include toast-variant($success-color); // old spectre.css
@include toast-variant('success-color');
Expand All @@ -34,11 +79,6 @@
@include toast-variant('warning-color');
}

&.toast-error {
// @include toast-variant($error-color); // old spectre.css
@include toast-variant('error-color');
}

a {
// color: $light-color; // old spectre.css
color: color('light-color');
Expand Down

0 comments on commit b5b3e0e

Please sign in to comment.