73
submitted 1 year ago by Paradox to c/programming@beehaw.org
you are viewing a single comment's thread
view the rest of the comments
[-] AnarchoYeasty@beehaw.org 0 points 1 year ago* (last edited 1 year ago)

Make an element that is hidden that has all possible values of classes you can use. Or use normal css for that one part of your app if that isn't possible. Lots of ways you can handle this without thinking the framework doesn't work.

Ninja:

https://tailwindcss.com/docs/content-configuration#safelisting-classes

Tailwind actually has this use case covered already. Use the safe list functionality to always include the classes you need.

this post was submitted on 02 Aug 2023
73 points (100.0% liked)

Programming

13360 readers
3 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS