You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

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