[v4] Using build time environment variables in tailwind #16626
Unanswered
jason-johnson
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create my project once and apply it to multiple, diverse environments. The environments are differentiated based on environment variables. For example, I will probably have a "primary"/"secondary" colour scheme which applies to all projects but the actual colours depend on the client they are for.
In previous versions of tailwindcss, one could use environment variables in the
tailwindcss.config
file but the new direction seems to be to move away from this file so it's not clear to me how to handle this use case now. I saw that CSS has anenv()
function but this seems to be something for run time and what I need is at compile time.How is the best way to handle this use case now?
Beta Was this translation helpful? Give feedback.
All reactions