3 ms·
I am not necessarily a fan of tailwind, but the author is explicitly writing how to not use a design system. Not knowing what m-3 is is the whole point. You us
by coolgoose 3y ago
I am not necessarily a fan of tailwind, but the author is explicitly writing how to not use a design system.
Not knowing what m-3 is is the whole point. You use it across the website to have some consistency in your spacing, and not just slap around another 8px.
Yes, you can also do that with CSS variables, and Imho at times I do think that bootstrap for all it's faults is a better base design system, especially for internal admin interfaces.
- DanHulton 3y agoYeah, the "slap around another 8px" part of that post made me actually wince, because it sounds like the author just kinda doesn't have a design system in place at all. If every page is gonna have bespoke styling scattered all over the place, Tailwind isn't going to help you very much, no. If I'm given a design that specifies a margin of a different size than those we have defined in our style guide, I bounce it back for revision. If it all conforms to the style guide, it's easier to write, it's easier to maintain, and it just looks nicer.