4 ms·
Instead of repeating "d-flex justify-content-center..." everywhere is it possible to define that once and inherit those properties in Tailwind?
by wolco2 6y ago
Instead of repeating "d-flex justify-content-center..." everywhere is it possible to define that once and inherit those properties in Tailwind?
- _jjkk 6y agoDefinitely, you can still add custom classes where it is the best solution, such as a reusable layout. EDIT: Instead of custom CSS classes, Tailwind recommends extracting components like the other commenter pointed out. https://tailwindcss.com/docs/extracting-components https://tailwindcss.com/docs/extracting-components
- joshmanders 6y agoThen you extract components. https://tailwindcss.com/docs/extracting-components https://tailwindcss.com/docs/extracting-components