Hacker News new | ask | show | jobs
by alexmingoia 1378 days ago
Use a modular view/component, or a class using tailwind's @apply directive. It's the best of both worlds.
1 comments

Yeah, 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.