1 | :root {
|
---|
2 | // Note: Custom variable values only support SassScript inside `#{}`.
|
---|
3 |
|
---|
4 | // Colors
|
---|
5 | //
|
---|
6 | // Generate palettes for full colors, grays, and theme colors.
|
---|
7 |
|
---|
8 | @each $color, $value in $colors {
|
---|
9 | --#{$variable-prefix}#{$color}: #{$value};
|
---|
10 | }
|
---|
11 |
|
---|
12 | @each $color, $value in $grays {
|
---|
13 | --#{$variable-prefix}gray-#{$color}: #{$value};
|
---|
14 | }
|
---|
15 |
|
---|
16 | @each $color, $value in $theme-colors {
|
---|
17 | --#{$variable-prefix}#{$color}: #{$value};
|
---|
18 | }
|
---|
19 |
|
---|
20 | @each $color, $value in $theme-colors-rgb {
|
---|
21 | --#{$variable-prefix}#{$color}-rgb: #{$value};
|
---|
22 | }
|
---|
23 |
|
---|
24 | --#{$variable-prefix}white-rgb: #{to-rgb($white)};
|
---|
25 | --#{$variable-prefix}black-rgb: #{to-rgb($black)};
|
---|
26 | --#{$variable-prefix}body-color-rgb: #{to-rgb($body-color)};
|
---|
27 | --#{$variable-prefix}body-bg-rgb: #{to-rgb($body-bg)};
|
---|
28 |
|
---|
29 | // Fonts
|
---|
30 |
|
---|
31 | // Note: Use `inspect` for lists so that quoted items keep the quotes.
|
---|
32 | // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
---|
33 | --#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
|
---|
34 | --#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
|
---|
35 | --#{$variable-prefix}gradient: #{$gradient};
|
---|
36 |
|
---|
37 | // Root and body
|
---|
38 | // stylelint-disable custom-property-empty-line-before
|
---|
39 | // scss-docs-start root-body-variables
|
---|
40 | @if $font-size-root != null {
|
---|
41 | --#{$variable-prefix}root-font-size: #{$font-size-root};
|
---|
42 | }
|
---|
43 | --#{$variable-prefix}body-font-family: #{$font-family-base};
|
---|
44 | --#{$variable-prefix}body-font-size: #{$font-size-base};
|
---|
45 | --#{$variable-prefix}body-font-weight: #{$font-weight-base};
|
---|
46 | --#{$variable-prefix}body-line-height: #{$line-height-base};
|
---|
47 | --#{$variable-prefix}body-color: #{$body-color};
|
---|
48 | @if $body-text-align != null {
|
---|
49 | --#{$variable-prefix}body-text-align: #{$body-text-align};
|
---|
50 | }
|
---|
51 | --#{$variable-prefix}body-bg: #{$body-bg};
|
---|
52 | // scss-docs-end root-body-variables
|
---|
53 | // stylelint-enable custom-property-empty-line-before
|
---|
54 | }
|
---|