Skip to content

Is there a way to resolve Tailwind class name for config key in Javascript? #2625

Answered by simonswiss
arzatskis asked this question in Help
Discussion options

You must be logged in to vote

Hey! 👋

That's an excellent idea conceptually, but unfortunately this is not possible at the moment.

Your best bet is to look at the functions generating the classnames in the core plugins and some of the util functions

For certain cases, it might almost be easier to "construct" the classname output with text and value interpolation.

If you pull it off, would love to have a look at your project 🎉

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arzatskis
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
2 participants