Re:TailwindCSS v2.0
by wolco2 on Wednesday November 18, 2020 @04:34PM
(#25142735)
Instead of repeating "d-flex justify-content-center..." everywhere is it possible to define that once and inherit those properties in Tailwind?
[ Parent
| on HN ]
Re:TailwindCSS v2.0
by joshmanders on Wednesday November 18, 2020 @04:57PM
(#25142974)
Then you extract components. https://tailwindcss.com/docs/extracting-components
Definitely, 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