(Tailwind v4) Different Color set for element like text color, background color etc #17899
Answered
by
wongjn
keshavkatwe
asked this question in
Help
-
How can we achieve the same behaviour in tailwind v4, Using only css file
I am not able to achieve the same in tailwind v4, I have a design system with predined colors for text, background, border. |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
May 6, 2025
Replies: 1 comment 12 replies
-
You can use @theme {
--text-color-primary: red;
--background-color-primary: blue;
} |
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
keshavkatwe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
--text-color
and--background-color
namespaces respectively: