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.

73 lines
2.3 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. --#{$prefix}#{$color}: #{$value};
  8. }
  9. @each $color, $value in $grays {
  10. --#{$prefix}gray-#{$color}: #{$value};
  11. }
  12. @each $color, $value in $theme-colors {
  13. --#{$prefix}#{$color}: #{$value};
  14. }
  15. @each $color, $value in $theme-colors-rgb {
  16. --#{$prefix}#{$color}-rgb: #{$value};
  17. }
  18. --#{$prefix}white-rgb: #{to-rgb($white)};
  19. --#{$prefix}black-rgb: #{to-rgb($black)};
  20. --#{$prefix}body-color-rgb: #{to-rgb($body-color)};
  21. --#{$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. --#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
  26. --#{$prefix}font-monospace: #{inspect($font-family-monospace)};
  27. --#{$prefix}gradient: #{$gradient};
  28. // Root and body
  29. // scss-docs-start root-body-variables
  30. @if $font-size-root != null {
  31. --#{$prefix}root-font-size: #{$font-size-root};
  32. }
  33. --#{$prefix}body-font-family: #{$font-family-base};
  34. @include rfs($font-size-base, --#{$prefix}body-font-size);
  35. --#{$prefix}body-font-weight: #{$font-weight-base};
  36. --#{$prefix}body-line-height: #{$line-height-base};
  37. --#{$prefix}body-color: #{$body-color};
  38. @if $body-text-align != null {
  39. --#{$prefix}body-text-align: #{$body-text-align};
  40. }
  41. --#{$prefix}body-bg: #{$body-bg};
  42. // scss-docs-end root-body-variables
  43. // scss-docs-start root-border-var
  44. --#{$prefix}border-width: #{$border-width};
  45. --#{$prefix}border-style: #{$border-style};
  46. --#{$prefix}border-color: #{$border-color};
  47. --#{$prefix}border-color-translucent: #{$border-color-translucent};
  48. --#{$prefix}border-radius: #{$border-radius};
  49. --#{$prefix}border-radius-sm: #{$border-radius-sm};
  50. --#{$prefix}border-radius-lg: #{$border-radius-lg};
  51. --#{$prefix}border-radius-xl: #{$border-radius-xl};
  52. --#{$prefix}border-radius-2xl: #{$border-radius-2xl};
  53. --#{$prefix}border-radius-pill: #{$border-radius-pill};
  54. // scss-docs-end root-border-var
  55. --#{$prefix}link-color: #{$link-color};
  56. --#{$prefix}link-hover-color: #{$link-hover-color};
  57. --#{$prefix}code-color: #{$code-color};
  58. --#{$prefix}highlight-bg: #{$mark-bg};
  59. }