4 ms·
Hey, I'm old enough to have learned CSS from CSS Zen Garden! The one thing I appreciate from Tailwind CSS and I'd like to see added to CSS itself is that I don
by porker 3y ago
Hey, I'm old enough to have learned CSS from CSS Zen Garden!
The one thing I appreciate from Tailwind CSS and I'd like to see added to CSS itself is that I don't have to write media queries everywhere.
Nothing destroys the readability of my CSS more than adding multiple media queries to adjust styling for different screen sizes. I wrote a component that used CSS Grid and needed to vary the layout as it resized, and over half of the CSS is now media query definitions.
So having a built-in way to streamline defining media queries, and a built-in way to select in line styling from breakpoints a la `py-2 md:py-6` are my 2 asks for CSS after using Tailwind.
(I would prefer to do away with many breakpoints and have a properly fluid design, but IME it's a lot more work and designers can't get their heads around it, let alone clients. And where images are involved it's easier to have a smaller range of possible sizes for the srcset)
- miragecraft 3y agoYou can hack together responsive properties using the space toggle technique. https://miragecraft.com/blog/responsive-css-properties https://miragecraft.com/blog/responsive-css-properties This is what I use for my own site.