|
@@ -31,57 +31,35 @@ $breakpoints: (
|
|
|
);
|
|
|
|
|
|
// colours
|
|
|
-$color-teal-light: var(--color-primary-light);
|
|
|
-$color-teal-lighter: var(--color-primary-lighter);
|
|
|
-$color-teal: var(--color-primary);
|
|
|
-$color-teal-darker: var(--color-primary-darker);
|
|
|
-$color-teal-dark: var(--color-primary-dark);
|
|
|
-
|
|
|
-$color-blue: #71b2d4;
|
|
|
-$color-red: #cd3238;
|
|
|
-$color-red-dark: #b4191f;
|
|
|
-$color-orange: #e9b04d;
|
|
|
-$color-orange-dark: #bb5b03;
|
|
|
-$color-green: #189370;
|
|
|
-$color-green-dark: #157b57;
|
|
|
-$color-green-darker: #105d42; // White has AAA compatibility when this is used in bgd.
|
|
|
+$color-teal: theme('colors.secondary.DEFAULT');
|
|
|
+$color-teal-darker: theme('colors.secondary.400');
|
|
|
+$color-teal-dark: theme('colors.secondary.600');
|
|
|
+
|
|
|
$color-salmon: #f37e77;
|
|
|
$color-salmon-light: #fcf2f2;
|
|
|
-$color-white: #fff;
|
|
|
-$color-black: #000;
|
|
|
+$color-white: theme('colors.white.DEFAULT');
|
|
|
+$color-black: theme('colors.black.DEFAULT');
|
|
|
|
|
|
// darker to lighter
|
|
|
-$color-grey-1: color.adjust($color-white, $lightness: -80%);
|
|
|
-$color-grey-2: color.adjust($color-white, $lightness: -70%);
|
|
|
-$color-grey-3: color.adjust($color-white, $lightness: -15%);
|
|
|
-$color-grey-4: color.adjust($color-white, $lightness: -10%);
|
|
|
-$color-grey-5: color.adjust($color-white, $lightness: -2%);
|
|
|
-
|
|
|
-$color-menu-text: color.adjust($color-white, $lightness: -20%);
|
|
|
+$color-grey-1: theme('colors.grey.600');
|
|
|
+$color-grey-2: theme('colors.grey.400');
|
|
|
+$color-grey-3: theme('colors.grey.200');
|
|
|
+$color-grey-4: theme('colors.grey.100');
|
|
|
+$color-grey-5: theme('colors.grey.50');
|
|
|
|
|
|
-$color-thead-bg: $color-grey-5;
|
|
|
-$color-header-bg: $color-teal;
|
|
|
+$color-menu-text: theme('colors.white-80');
|
|
|
|
|
|
-$color-fieldset-hover: $color-grey-5;
|
|
|
+$color-fieldset-hover: $color-white;
|
|
|
$color-input-border: $color-grey-4;
|
|
|
-$color-input-focus: var(--color-input-focus);
|
|
|
-$color-input-focus-border: var(--color-input-focus-border);
|
|
|
-$color-input-error-bg: color.adjust(
|
|
|
- color.adjust($color-red, $saturation: 28%),
|
|
|
- $lightness: 45%
|
|
|
-);
|
|
|
+$color-input-focus: theme('colors.secondary.50');
|
|
|
+$color-input-focus-border: theme('colors.secondary.100');
|
|
|
+$color-input-error-bg: theme('colors.critical.50');
|
|
|
|
|
|
$color-button: $color-teal;
|
|
|
$color-button-hover: $color-teal-darker;
|
|
|
-$color-button-yes: $color-green-dark;
|
|
|
-$color-button-yes-hover: color.adjust($color-button-yes, $lightness: -8%);
|
|
|
-$color-button-no: $color-red-dark;
|
|
|
-$color-button-no-hover: color.adjust($color-button-no, $lightness: -20%);
|
|
|
-$color-button-warning: $color-orange-dark;
|
|
|
-$color-button-warning-hover: color.adjust(
|
|
|
- $color-button-warning,
|
|
|
- $lightness: -20%
|
|
|
-);
|
|
|
+$color-button-yes: theme('colors.positive.100');
|
|
|
+$color-button-no: theme('colors.critical.200');
|
|
|
+$color-button-warning: theme('colors.warning.100');
|
|
|
|
|
|
$color-link: $color-teal-darker;
|
|
|
$color-link-hover: $color-teal-dark;
|
|
@@ -90,8 +68,8 @@ $color-link-hover: $color-teal-dark;
|
|
|
// because it shouldn’t be reused for anything else in the UI.
|
|
|
$color-focus-outline: #ffbf47;
|
|
|
|
|
|
-$color-text-base: color.adjust($color-white, $lightness: -85%);
|
|
|
-$color-text-input: color.adjust($color-white, $lightness: -90%);
|
|
|
+$color-text-base: theme('colors.grey.600');
|
|
|
+$color-text-input: theme('colors.grey.600');
|
|
|
|
|
|
// System Colors
|
|
|
$media-forced-colours: active;
|
|
@@ -127,16 +105,3 @@ $menu-transition-duration: 150ms;
|
|
|
$focus-outline-width: 3px;
|
|
|
|
|
|
$object-title-height: 40px;
|
|
|
-
|
|
|
-// Form Errors
|
|
|
-$color-text-error: color.change($color-red, $saturation: 69%, $lightness: 52%);
|
|
|
-$color-text-error-forced-color: color.change(
|
|
|
- $color-red,
|
|
|
- $saturation: 100%,
|
|
|
- $lightness: 50%
|
|
|
-);
|
|
|
-$color-text-warning-forced-color: color.change(
|
|
|
- $color-orange,
|
|
|
- $saturation: 100%,
|
|
|
- $lightness: 70%
|
|
|
-);
|