top | item 32823058

(no title)

alexmingoia | 3 years ago

Use a modular view/component, or a class using tailwind's @apply directive. It's the best of both worlds.

discuss

order

nicoburns|3 years ago

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.