News for hackers. Stuff that matters.
Re:Reimagine Atomic CSS by thisjeremiah on Thursday November 18, 2021 @10:50AM (#29266785)
I think the recommended pattern is something like:

If you’re using a component based framework (e.g., Vue), you create a named component.

If you’re not using a component-based framework, you create named classes with applied atomic styles.

With either approach, your styles are contextualized with a name and can be reused.

https://tailwindcss.com/docs/extracting-components

There are no comments on this comment yet.