MOBILE-3615 dark: Fix darkmode flip colors

main
Pau Ferrer Ocaña 2021-05-14 10:26:52 +02:00
parent d17da64a31
commit f4ad5c7eea
4 changed files with 3 additions and 11 deletions

View File

@ -98,7 +98,7 @@
// Generates the color classes and variables based on the // Generates the color classes and variables based on the
// colors map // colors map
@mixin generate-color($color-name) { @mixin generate-color($color-name, $colors) {
$value: map-get($colors, $color-name); $value: map-get($colors, $color-name);
$base: map-get($value, base); $base: map-get($value, base);

View File

@ -132,15 +132,7 @@ $colors: (
// Just swipe light and dark. // Just swipe light and dark.
$colors-dark: ( $colors-dark: (
primary: map-get($colors, primary),
secondary: map-get($colors, secondary),
tertiary: map-get($colors, tertiary),
success: map-get($colors, success),
warning: map-get($colors, warning),
danger: map-get($colors, danger),
info: map-get($colors, info),
light: map-get($colors, dark), light: map-get($colors, dark),
medium: map-get($colors, medium),
dark: map-get($colors, light), dark: map-get($colors, light),
) !default; ) !default;

View File

@ -38,7 +38,7 @@
--dark: #{$light}; --dark: #{$light};
@each $color-name, $value in $colors-dark { @each $color-name, $value in $colors-dark {
@include generate-color($color-name); @include generate-color($color-name, $colors-dark);
} }
--ion-tab-bar-background: #1f1f1f; --ion-tab-bar-background: #1f1f1f;

View File

@ -59,7 +59,7 @@
--medium: #{$medium}; --medium: #{$medium};
@each $color-name, $value in $colors { @each $color-name, $value in $colors {
@include generate-color($color-name); @include generate-color($color-name, $colors);
} }
// Accessibility vars. // Accessibility vars.