[v4] How to extend or replace colors in certain utilities? #15187
Unanswered
IvanKalinin
asked this question in
Help
Replies: 1 comment 1 reply
-
Yep: @theme {
--border-color-active: #111111;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The namespace
--color-*
globally extends colors for all color utilities, including but not limited to bg-* text-, or fill-...In v3 tailwind.config.js it is allowed to extend color for certain utilities.
e.g. the snippet below will only create color utility for border: border-active, and will not apply it to bg-, text-, etc.
Beta Was this translation helpful? Give feedback.
All reactions