Fix --tblr-gray-*-fg tokens resolving to white (#2624)

This commit is contained in:
Bartosz-Do authored and GitHub committed 2026-07-30 02:36:55 +02:00
1 parent 1ed2889cf1
commit bc24b3ada8
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Fixed `--tblr-gray-*-fg` token generation to map directly to `--tblr-gray-*` instead of contrast-based fallbacks that could resolve to white.
+1 -1
View File
@@ -45,7 +45,7 @@
/** Gray colors */ /** Gray colors */
@each $name, $color in $gray-colors { @each $name, $color in $gray-colors {
--#{$prefix}#{$name}-fg: #{if(sass(contrast-ratio($color, white) > $min-contrast-ratio): var(--#{$prefix}white); else: var(--#{$prefix}body-color))}; --#{$prefix}#{$name}-fg: var(--#{$prefix}#{$name});
} }
/** Spacers */ /** Spacers */