2025-02-18 09:50:10 -08:00
|
|
|
@use "../config" as *;
|
|
|
|
@use "../colors" as *;
|
2025-02-18 13:37:25 -08:00
|
|
|
@use "../variables" as *;
|
2025-02-18 09:50:10 -08:00
|
|
|
|
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
|
|
|
|
@each $color, $value in $theme-colors {
|
|
|
|
.text-bg-#{$color} {
|
2022-05-20 19:28:31 +02:00
|
|
|
color: color-contrast($value) if($enable-important-utilities, !important, null);
|
2023-07-16 23:41:29 -04:00
|
|
|
background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
|
2022-04-27 20:40:23 -07:00
|
|
|
}
|
|
|
|
}
|