• luciole (he/him)
    link
    fedilink
    English
    12 years ago

    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.

    • @[email protected]
      link
      fedilink
      English
      1
      edit-2
      2 years 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.