2024-07-29 22:04:11 -07:00
|
|
|
@use "../functions";
|
|
|
|
@use "../variables";
|
|
|
|
|
2022-04-27 20:40:23 -07:00
|
|
|
// All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
|
2024-07-29 22:04:11 -07:00
|
|
|
@each $color, $value in variables.$theme-colors {
|
2022-04-27 20:40:23 -07:00
|
|
|
.text-bg-#{$color} {
|
2024-07-29 22:04:11 -07:00
|
|
|
color: functions.color-contrast($value) if(variables.$enable-important-utilities, !important, null);
|
|
|
|
background-color: RGBA(var(--#{variables.$prefix}#{$color}-rgb), var(--#{variables.$prefix}bg-opacity, 1)) if(variables.$enable-important-utilities, !important, null);
|
2022-04-27 20:40:23 -07:00
|
|
|
}
|
|
|
|
}
|