Skip to content
Discussion options

You must be logged in to vote

Not exists the tools to removing duplicated declarations of custom CSS variables, because tools can't understand is this variable is duplicated or is correct redeclared variable.
You can merge single @each cycles of color arrays $colors, $theme-colors and $custom-colors in _root.scss:

@each $color, $value in map-merge-multiple($colors, $theme-colors, $custom-colors) {
  --#{$variable-prefix}#{$color}: #{$value};
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@SamuelMiller
Comment options

@WinterSilence
Comment options

@SamuelMiller
Comment options

Answer selected by SamuelMiller
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants