From 9ea657bac636aeafa2dd8cb25daf27788083e24c Mon Sep 17 00:00:00 2001 From: Ionut Antohi Date: Fri, 31 Jul 2026 02:57:01 +0300 Subject: [PATCH] Add `.text-gray-*` utility classes (#2619) Co-authored-by: codecalm --- .changeset/add-text-gray-utilities.md | 5 +++++ core/scss/utils/_colors.scss | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/add-text-gray-utilities.md diff --git a/.changeset/add-text-gray-utilities.md b/.changeset/add-text-gray-utilities.md new file mode 100644 index 000000000..a24897f98 --- /dev/null +++ b/.changeset/add-text-gray-utilities.md @@ -0,0 +1,5 @@ +--- +"@tabler/core": minor +--- + +Added `.text-gray-*` utility classes (`.text-gray-50` through `.text-gray-950`) alongside the existing `.bg-gray-*` and `.text-gray-*-fg` utilities. diff --git a/core/scss/utils/_colors.scss b/core/scss/utils/_colors.scss index 6af0a762a..3c3cd30d2 100644 --- a/core/scss/utils/_colors.scss +++ b/core/scss/utils/_colors.scss @@ -78,6 +78,10 @@ .text-#{'' + $color}-fg { color: var(--#{$prefix}#{$color}-fg) !important; } + + .text-#{'' + $color} { + color: var(--#{$prefix}#{$color}) !important; + } } @each $color, $value in $social-colors {