6 ms·
Using Tailwind doesn't mean you need to individually list each class every time. You can use PostCSS to define class that compose multiple tailwind classes tog
by zffr 5y ago
Using Tailwind doesn't mean you need to individually list each class every time.
You can use PostCSS to define class that compose multiple tailwind classes together (See how @apply is used here: https://tailwindcss.com/docs/using-with-preprocessors https://tailwindcss.com/docs/using-with-preprocessors).
My flow is usually to iterate by adding individual classes directly to HTML elements, and when I see a pattern emerge I'll sometimes make a new class with that inherits from multiple tailwind classes.