5 ms·
The other cool thing is that you can code up your design system in the tailwind config and never have to worry about devs not using the correct sizes/colours/et
by antihero 4y ago
The other cool thing is that you can code up your design system in the tailwind config and never have to worry about devs not using the correct sizes/colours/etc.
- gr__or 4y agoI recall there being Stylelint rules for linting against hardcoded values. I can't seem to find the link rn though.
- emmacharp 4y agoYou can do exactly the same with pure CSS. This is not a Tailwind advantage.
- antihero 4y agoHow much effort does it take to set up, though? I thought the CSS variable system was pretty rudimentary.
- emmacharp 4y ago> How much effort does it take to set up, though? Practically none. And any designer is prone to reuse the same spacings from project to project. So you bring the language file with you. Something like this : :root { --spacing-sm: 1rem; --spacing-md: 2rem; --size-tall: 32px; ... } And you can do some pretty nice things with these pure CSS tokens. Without any hassle or dependency.
- antihero 4y agoThis seems more annoying than using tailwind.