Skip to content

(Tailwind v4) Different Color set for element like text color, background color etc #17899

Answered by wongjn
keshavkatwe asked this question in Help
Discussion options

You must be logged in to vote

You can use --text-color and --background-color namespaces respectively:

@theme {
  --text-color-primary: red;
  --background-color-primary: blue;
}

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@keshavkatwe
Comment options

@wongjn
Comment options

wongjn May 7, 2025
Collaborator

@keshavkatwe
Comment options

@wongjn
Comment options

wongjn May 7, 2025
Collaborator

@keshavkatwe
Comment options

Answer selected by keshavkatwe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants