|
|
|
|
|
by shroompasta
1469 days ago
|
|
i'm not sure what you mean by 'seamlessly' but a media query in styled components would just be @media (max-width: 700px) {
css here
}
it's not that much harder.Also, the lack of address of real problems of tailwindcss of OPs comment in terms of mantainability is something you consider. reading iteratively from left to right especially if it has 10+ css rules, in terms of legibility, is not really all too great. I would absolutely hate to adjust something in tailwindcss, after not seeing the codebase in a month's time. Whereas regular css properties, i can easily find by eye. |
|
Our new hires are able to just use the design system tokens rather than going in and saying `padding: 5px` and `padding: 4px` because the designer didn't think it was a big deal. They just write `p-1` and that covers it.
All the components get tree-shaken and only ship the styles they need so bundle size gets reduced as well.
If I had my dream team of 10x frontend developers and a perfect design team who always follows the rules they create then yes I would use regular css with css variables, but I don't.
I am more than happy to sacrifice "separation of technologies" for a happier team, more consistent styling, and faster delivery times.