Replies: 1 comment 2 replies
-
some ideas:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our project has a core design system library that defines tokens like:
This setup allows us to use these tokens beyond just Tailwind projects while maintaining a single source of truth.
Tailwind v3 Approach
In Tailwind v3, we could easily import this library and integrate it into
tailwind.config.js
like this:Tailwind v4 Changes
In Tailwind v4, the recommended approach is to define colors using CSS variables:
However, since we can’t directly import JavaScript into CSS, I’m looking for an easy way to automate or streamline this conversion in Tailwind v4.
Any recommendations?
Beta Was this translation helpful? Give feedback.
All reactions