gridss: CSS Grid microlib under 4kb (github.com)
4 months ago from Brian Gonzalez, Principal Frontend Engineer @ Dollar Shave Club. Teaching @ eggplanet.io
4 months ago from Brian Gonzalez, Principal Frontend Engineer @ Dollar Shave Club. Teaching @ eggplanet.io
Kind of defeats the purpose of CSS Grid, no? You could avoid all that markup and just be semantic by targeting the elements directly instead.
You're right, you absolutely could avoid that markup. But, some developers (and some developers for some projects) prefer to use small utility classes in this fashion.
Take a gander at tachyons, which follows a similar pattern.
Fair enough! I would actually tend to favor something like this for building large-scale apps. Semantic sounds good in theory, but in practice you'll likely be repeating yourself over and over (hence atomic frameworks such as Tachyons).
Thanks for sharing :)
Designer News
Be nice. Or else.
Designer News is a large, global community of people working or interested in design and technology.
We're Tiny Boards along with We Work Remotely, Unicorn Hunt, Fresh Gigs, Future Jobs and more.
Get in touch.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment. Remember: Be nice or else.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now