[V4] How to get access to the theme inside framework files or javascript files. #15322
Unanswered
whitespacecode
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
-
I'm not sure if this functionality is completely gone now?
https://tailwindcss.com/docs/v4-beta#referencing-theme-values-in-js
But is there any way to access the theme in a js file?
We have a vue component that's generating new company brand theme colors depending on the client main color.
I'm not really sure how we can achieve that now since all the theming is done inside the .css file itself?
Here is some of that code
We could then use those variables in our tailwind.config.js
And also use resolveConfig again inside other components to get the config and the theme and colors..
Beta Was this translation helpful? Give feedback.
All reactions