_root.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. :root,
  2. :host {
  3. font-size: 16px;
  4. height: 100%;
  5. }
  6. :root,
  7. :host,
  8. [data-bs-theme="light"] {
  9. @each $name, $color in map-merge($theme-colors, $gray-colors) {
  10. --#{$prefix}#{$name}: #{$color};
  11. --#{$prefix}#{$name}-rgb: #{to-rgb($color)};
  12. --#{$prefix}#{$name}-fg: #{if(contrast-ratio($color) > $min-contrast-ratio, var(--#{$prefix}light), var(--#{$prefix}dark))};
  13. --#{$prefix}#{$name}-darken: #{theme-color-darker($color)};
  14. --#{$prefix}#{$name}-lt: #{theme-color-lighter($color)};
  15. --#{$prefix}#{$name}-lt-rgb: #{to-rgb(theme-color-lighter($color))};
  16. }
  17. @each $name, $value in $spacers {
  18. --#{$prefix}spacer-#{$name}: #{$value};
  19. }
  20. --#{$prefix}spacer: #{$spacer};
  21. --#{$prefix}bg-surface: #{$bg-surface};
  22. --#{$prefix}bg-surface-secondary: #{$bg-surface-secondary};
  23. --#{$prefix}bg-surface-tertiary: #{$bg-surface-tertiary};
  24. --#{$prefix}bg-surface-dark: #{$bg-surface-dark};
  25. --#{$prefix}bg-forms: var(--#{$prefix}bg-surface);
  26. --#{$prefix}border-color: #{$border-color};
  27. --#{$prefix}border-color-translucent: #{$border-color-translucent};
  28. --#{$prefix}border-dark-color: #{$border-dark-color};
  29. --#{$prefix}border-dark-color-translucent: #{$border-dark-color-translucent};
  30. --#{$prefix}border-active-color: #{$border-active-color};
  31. --#{$prefix}icon-color: #{$icon-color};
  32. --#{$prefix}active-bg: #{$active-bg};
  33. --#{$prefix}disabled-bg: #{$disabled-bg};
  34. --#{$prefix}disabled-color: #{$disabled-color};
  35. --#{$prefix}code-color: #{$code-color};
  36. --#{$prefix}code-bg: #{$code-bg};
  37. --#{$prefix}dark-mode-border-color: #{$border-color-dark};
  38. --#{$prefix}dark-mode-border-color-translucent: #{$border-color-translucent-dark};
  39. --#{$prefix}dark-mode-border-active-color: #{$border-active-color-dark};
  40. --#{$prefix}dark-mode-border-dark-color: #{$border-dark-color-dark};
  41. --#{$prefix}page-padding: #{$page-padding};
  42. --#{$prefix}page-padding-y: #{$page-padding-y};
  43. @include media-breakpoint-down($cards-grid-breakpoint) {
  44. --#{$prefix}page-padding: #{$page-padding-sm};
  45. }
  46. @each $name, $value in $font-weights {
  47. --#{$prefix}font-weight-#{$name}: #{$value};
  48. }
  49. @each $name, $value in $font-sizes {
  50. --#{$prefix}font-size-h#{$name}: #{$value};
  51. }
  52. @each $name, $value in $line-heights {
  53. --#{$prefix}line-height-#{$name}: #{$value};
  54. }
  55. @each $name, $value in $box-shadows {
  56. --#{$prefix}#{$name}: #{$value};
  57. }
  58. }