2017-10-02 06:00:24 +02:00
|
|
|
:root {
|
2017-10-14 09:29:43 +02:00
|
|
|
// Custom variable values only support SassScript inside `#{}`.
|
2017-10-02 06:00:24 +02:00
|
|
|
@each $color, $value in $colors {
|
2020-09-30 07:32:58 +02:00
|
|
|
--#{$variable-prefix}#{$color}: #{$value};
|
2017-10-02 06:00:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $value in $theme-colors {
|
2020-09-30 07:32:58 +02:00
|
|
|
--#{$variable-prefix}#{$color}: #{$value};
|
2017-10-02 06:00:24 +02:00
|
|
|
}
|
|
|
|
|
2021-05-24 20:56:19 +02:00
|
|
|
@each $color, $value in $theme-colors-rgb {
|
|
|
|
--#{$variable-prefix}#{$color}-rgb: #{$value};
|
|
|
|
}
|
|
|
|
|
|
|
|
--#{$variable-prefix}white-rgb: #{to-rgb($white)};
|
|
|
|
--#{$variable-prefix}black-rgb: #{to-rgb($black)};
|
|
|
|
--#{$variable-prefix}body-rgb: #{to-rgb($body-color)};
|
|
|
|
|
2017-10-14 09:29:43 +02:00
|
|
|
// Use `inspect` for lists so that quoted items keep the quotes.
|
|
|
|
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
2020-09-30 07:32:58 +02:00
|
|
|
--#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
|
|
|
|
--#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
|
|
|
|
--#{$variable-prefix}gradient: #{$gradient};
|
2017-10-02 06:00:24 +02:00
|
|
|
}
|