2017-10-02 06:00:24 +02:00
|
|
|
:root {
|
2021-07-19 05:38:30 +02:00
|
|
|
// Note: Custom variable values only support SassScript inside `#{}`.
|
|
|
|
|
|
|
|
// Colors
|
|
|
|
//
|
|
|
|
// Generate palettes for full colors, grays, and theme colors.
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-07-19 05:38:30 +02:00
|
|
|
@each $color, $value in $grays {
|
|
|
|
--#{$variable-prefix}gray-#{$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)};
|
2021-08-10 16:16:48 +02:00
|
|
|
--#{$variable-prefix}body-color-rgb: #{to-rgb($body-color)};
|
|
|
|
--#{$variable-prefix}body-bg-rgb: #{to-rgb($body-bg)};
|
2021-05-24 20:56:19 +02:00
|
|
|
|
2021-07-19 05:38:30 +02:00
|
|
|
// Fonts
|
|
|
|
|
|
|
|
// Note: Use `inspect` for lists so that quoted items keep the quotes.
|
2017-10-14 09:29:43 +02:00
|
|
|
// 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};
|
2021-07-19 05:38:30 +02:00
|
|
|
|
|
|
|
// Root and body
|
|
|
|
// stylelint-disable custom-property-empty-line-before
|
|
|
|
// scss-docs-start root-body-variables
|
|
|
|
@if $font-size-root != null {
|
|
|
|
--#{$variable-prefix}root-font-size: #{$font-size-root};
|
|
|
|
}
|
|
|
|
--#{$variable-prefix}body-font-family: #{$font-family-base};
|
2021-11-26 01:01:19 +01:00
|
|
|
@include rfs($font-size-base, --#{$variable-prefix}body-font-size);
|
2021-07-19 05:38:30 +02:00
|
|
|
--#{$variable-prefix}body-font-weight: #{$font-weight-base};
|
|
|
|
--#{$variable-prefix}body-line-height: #{$line-height-base};
|
|
|
|
--#{$variable-prefix}body-color: #{$body-color};
|
|
|
|
@if $body-text-align != null {
|
|
|
|
--#{$variable-prefix}body-text-align: #{$body-text-align};
|
|
|
|
}
|
|
|
|
--#{$variable-prefix}body-bg: #{$body-bg};
|
|
|
|
// scss-docs-end root-body-variables
|
2021-11-30 06:14:17 +01:00
|
|
|
|
|
|
|
// scss-docs-start root-border-var
|
|
|
|
--#{$variable-prefix}border-width: #{$border-width};
|
|
|
|
--#{$variable-prefix}border-style: solid;
|
|
|
|
--#{$variable-prefix}border-color: #{$border-color};
|
|
|
|
--#{$variable-prefix}border-radius: #{$border-radius};
|
2022-03-03 13:22:50 +01:00
|
|
|
--#{$variable-prefix}border-opacity: 1;
|
2021-11-30 06:14:17 +01:00
|
|
|
// scss-docs-end root-border-var
|
2021-07-19 05:38:30 +02:00
|
|
|
// stylelint-enable custom-property-empty-line-before
|
2017-10-02 06:00:24 +02:00
|
|
|
}
|