bootstrap/scss/helpers/_color-bg.scss

17 lines
549 B
SCSS
Raw Permalink Normal View History

@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));
}
2022-04-28 11:40:23 +08:00
}
}