You are viewing a single thread.
View all comments View context
3 points

Unless you are going to be allowing custom html to be added the tooling is smart enough to figure out what possible classes your code can use. You’d have to do something dumb to not have the tools able to tell what components you are serving.

permalink
report
parent
reply
1 point

More generally, the more you have a flexible editor in the app, the worst it gets. This is the use case where I ran into trouble.

permalink
report
parent
reply
0 points
*

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.

permalink
report
parent
reply

Programming

!programming@beehaw.org

Create post

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.

Community stats

  • 67

    Monthly active users

  • 235

    Posts

  • 1.5K

    Comments