3 ms·
Use a modular view/component, or a class using tailwind's @apply directive. It's the best of both worlds.
by alexmingoia 4y ago
Use a modular view/component, or a class using tailwind's @apply directive. It's the best of both worlds.
- nicoburns 4y agoYeah, using components definitely alleviates this issue somewhat. But in our code base we have some values which are global constants. Things like padding values, colors and fonts. Seems like @apply could work. Essentially falling back to regular CSS, but only for these few global values. I might give this a try next time I start a new project.