Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
// stylelint-disable custom-property-empty-line-before
|
|
|
|
|
2017-10-02 00:00:24 -04:00
|
|
|
:root {
|
2021-07-18 23:38:30 -04:00
|
|
|
// Note: Custom variable values only support SassScript inside `#{}`.
|
|
|
|
|
|
|
|
// Colors
|
|
|
|
//
|
|
|
|
// Generate palettes for full colors, grays, and theme colors.
|
|
|
|
|
2017-10-02 00:00:24 -04:00
|
|
|
@each $color, $value in $colors {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}#{$color}: #{$value};
|
2017-10-02 00:00:24 -04:00
|
|
|
}
|
|
|
|
|
2021-07-18 23:38:30 -04:00
|
|
|
@each $color, $value in $grays {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}gray-#{$color}: #{$value};
|
2021-07-18 23:38:30 -04:00
|
|
|
}
|
|
|
|
|
2017-10-02 00:00:24 -04:00
|
|
|
@each $color, $value in $theme-colors {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}#{$color}: #{$value};
|
2017-10-02 00:00:24 -04:00
|
|
|
}
|
|
|
|
|
2021-05-24 14:56:19 -04:00
|
|
|
@each $color, $value in $theme-colors-rgb {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}#{$color}-rgb: #{$value};
|
2021-05-24 14:56:19 -04:00
|
|
|
}
|
|
|
|
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}white-rgb: #{to-rgb($white)};
|
|
|
|
--#{$prefix}black-rgb: #{to-rgb($black)};
|
|
|
|
--#{$prefix}body-color-rgb: #{to-rgb($body-color)};
|
|
|
|
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
|
2021-05-24 14:56:19 -04:00
|
|
|
|
2021-07-18 23:38:30 -04:00
|
|
|
// Fonts
|
|
|
|
|
|
|
|
// Note: Use `inspect` for lists so that quoted items keep the quotes.
|
2017-10-14 03:29:43 -04:00
|
|
|
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
|
|
|
|
--#{$prefix}font-monospace: #{inspect($font-family-monospace)};
|
|
|
|
--#{$prefix}gradient: #{$gradient};
|
2021-07-18 23:38:30 -04:00
|
|
|
|
|
|
|
// Root and body
|
|
|
|
// scss-docs-start root-body-variables
|
|
|
|
@if $font-size-root != null {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}root-font-size: #{$font-size-root};
|
2021-07-18 23:38:30 -04:00
|
|
|
}
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}body-font-family: #{$font-family-base};
|
|
|
|
@include rfs($font-size-base, --#{$prefix}body-font-size);
|
|
|
|
--#{$prefix}body-font-weight: #{$font-weight-base};
|
|
|
|
--#{$prefix}body-line-height: #{$line-height-base};
|
|
|
|
--#{$prefix}body-color: #{$body-color};
|
2021-07-18 23:38:30 -04:00
|
|
|
@if $body-text-align != null {
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}body-text-align: #{$body-text-align};
|
2021-07-18 23:38:30 -04:00
|
|
|
}
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}body-bg: #{$body-bg};
|
2021-07-18 23:38:30 -04:00
|
|
|
// scss-docs-end root-body-variables
|
2021-11-30 00:14:17 -05:00
|
|
|
|
|
|
|
// scss-docs-start root-border-var
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
--#{$prefix}border-width: #{$border-width};
|
|
|
|
--#{$prefix}border-style: #{$border-style};
|
|
|
|
--#{$prefix}border-color: #{$border-color};
|
|
|
|
--#{$prefix}border-opacity: 1;
|
|
|
|
|
|
|
|
--#{$prefix}border-radius: #{$border-radius};
|
|
|
|
--#{$prefix}border-radius-sm: #{$border-radius-sm};
|
|
|
|
--#{$prefix}border-radius-lg: #{$border-radius-lg};
|
|
|
|
--#{$prefix}border-radius-xl: #{$border-radius-xl};
|
|
|
|
--#{$prefix}border-radius-2xl: #{$border-radius-2xl};
|
|
|
|
--#{$prefix}border-radius-pill: #{$border-radius-pill};
|
2021-11-30 00:14:17 -05:00
|
|
|
// scss-docs-end root-border-var
|
Add additional root variables, rename `$variable-prefix` to `$prefix` (#35981)
* Add additional root variables, rename $variable-prefix to $prefix
- Adds new root CSS variables for border-radius, border-width, border-color, and border-style
- Adds new root CSS variables for heading-color, link-colors, code color, and highlight color
- Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss
- Updates $mark-padding to be an even pixel number
- Renames $variable-prefix to $prefix throughout
* Bundlewatch
2022-03-13 13:13:09 -04:00
|
|
|
|
|
|
|
--#{$prefix}heading-color: #{$headings-color};
|
|
|
|
--#{$prefix}link-color: #{$link-color};
|
|
|
|
--#{$prefix}link-hover-color: #{$link-hover-color};
|
|
|
|
|
|
|
|
--#{$prefix}code-color: #{$code-color};
|
|
|
|
|
|
|
|
--#{$prefix}highlight-bg: #{$mark-bg};
|
2017-10-02 00:00:24 -04:00
|
|
|
}
|