Skip to content
Discussion options

You must be logged in to vote

Any reason you can't override the default color palette with a hex-based color palette?

@import "tailwindcss";

@theme {
  --color-*: initial;
  --color-gray-50: #f9fafb;
  /* ... */
}

You can even just copy the v3 color palette and put it in there since the v4 color palette is just the OKLCH-ified version of those original hex colors but with a few colors adjusted to take advantage of the wider gamut (which you lose going back to hex anyways).

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@cossssmin
Comment options

Comment options

You must be logged in to vote
3 replies
@cossssmin
Comment options

@adamwathan
Comment options

@cossssmin
Comment options

Answer selected by cossssmin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants