4 ms·
Back when grid was new, i had the feeling it would fundamentally change the way we build (responsive) web layouts by basing everything on template areas and jus
by endofreach 2y ago
Back when grid was new, i had the feeling it would fundamentally change the way we build (responsive) web layouts by basing everything on template areas and just reassigning on breakpoints etc.
I never got around to build some kind of internal framework for this, i ended up hacking away with flex (which was already the gamechanger – hail to the OGs from the times before flexbox).
Then tailwind came along and after disregarding it for a long time, it ended up to fulfil every need i had for quickly doing responsive frontends quickly.
Still wondering if anyone knows good frameworks or examples of people using template areas as the main fundament for their layouting?
I'd like to try, but it's not important enough for me to build something well enough that can be used as a general base. Or maybe that doesn't even make much sense or much of a difference. Haven't even thought about it much.
Any thoughts on this are welcome.
Ah, also: nice work OP. I like it. Maybe you have some ideas about template areas yourself. I will definitely use your tool next time i fiddle around with grids.
- hinnisdael 2y agoI would argue you no longer need a framework when using CSS grid. Creating template areas once per breakpoint and assigning them once per container really is all there‘s to it. Sure, you can build another abstraction on top of that, but I doubt it‘ll get any simpler than the underlying handful of grid declarations.