mirror of https://github.com/twbs/bootstrap.git
17 lines
549 B
SCSS
17 lines
549 B
SCSS
@use "../config" as *;
|
|
@use "../variables" as *;
|
|
@use "../colors" as *;
|
|
@use "../theme" as *;
|
|
|
|
@layer helpers {
|
|
// All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
|
|
@each $color, $value in $new-theme-colors {
|
|
.text-bg-#{$color} {
|
|
color: var(--#{$prefix}#{$color}-text);
|
|
background-color: var(--#{$prefix}#{$color}-bg-subtle);
|
|
// color: color-contrast($value);
|
|
// background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1));
|
|
}
|
|
}
|
|
}
|