|
|
|
|
|
by deergomoo
1854 days ago
|
|
> Yes it does. Moving all styles into individual elements without reuse is copy and paste Tailwind all but assumes you will be using something that allows you to extract HTML into components, be that something like React or Vue, or classic partials in a server-side templating language like Twig. You reuse the entire component, rather than just the CSS, which IMO is far better aligned with how apps are actually built. So no, using Tailwind classes is no more copy pasting than typing CSS in full into a separate stylesheet is copy pasting. |
|
Login box and messages are separate components, but they share padding metrics, border styles, a palette, etc.
Have you used tailwind before?