Reusing Styles
Metadata
- Author: tailwindcss.com
- Full Title: Reusing Styles
- URL: https://tailwindcss.com/docs/reusing-styles
Highlights
Whatever you do, don’t use @apply
just to make things look “cleaner”. Yes, HTML templates littered with Tailwind classes are kind of ugly. Making changes in a project that has tons of custom CSS is worse.
If you start using @apply
for everything, you are basically just writing CSS again and throwing away all of the workflow and maintainability advantages Tailwind gives you (View Highlight)