Saturday, May 18, 2024
HomeCSSIs it Time to Ditch the Design Grid?

Is it Time to Ditch the Design Grid?


I got here throughout this web site, Gridless Design lately, and it instantly struck a chord. It’s one thing I’ve been desirous about for a very long time — the best way that the standard design course of, the place designers hand off static mockups primarily based, so usually, on a 12-column grid, is just not match for objective. I do know I’m removed from the primary particular person to assume that manner, however more and more with the developments in CSS structure lately, the design grid feels extra like a hangover from print than ever. An answer to an issue that, on the internet, we merely don’t have.

CSS structure options like flexbox and Grid allow us to construct extra versatile layouts that prioritise content material. We discuss intrinsic and extrinsic sizing in CSS — sizing primarily based on each content material and context. The promised container queries specification will put much more energy within the palms of builders. But it surely feels to me just like the design course of continues to be caught up to now.

Designers will usually prescribe that a component ought to span (for instance) 4 out of 12 columns on a desktop display screen, with out the information that their thought of “columns” on the internet bears no relation to how the structure may very well be constructed. This isn’t a slight in opposition to any particular person designer, nevertheless it feels just like the business as a complete has some catching as much as do. There’s a collective failure to think about elements by way of behaviour — how layouts will reply to various kinds of content material, and atypical viewport sizes — versus mounted breakpoints.

This implies builders play a big position in filling within the gaps. Even for those who’re a developer who doesn’t consider your self as a designer, you are a designer. It’s as much as us to resolve how a structure behaves on the “in between” sizes, the sting instances, or the place the content material differs from what’s supplied within the design. This requires creativeness and design pondering on the a part of the developer.

Think about the next element, consisting of a heading, a picture and paragraph of textual content. If we’re underneath strict instruction to comply with a design grid, then as quickly as we begin to resize the display screen the structure begins to look much less pleasing.

However given the liberty to construct a extra versatile structure, we are able to prioritise the content material — utilizing the intrinsic sizes of components to dictate the distribution of area. On this video, the primary element forces every component to stay to a prescribed grid. Nearly instantly the structure begins to look damaged as we resize the viewport, as every grid youngster will get proportionally narrower. The second element retains the width of the weather, however closes the hole between them because the display screen narrows, leading to an arguably extra pleasing (to not point out legible) structure, regardless of not adhering to a strict grid.

See the Pen
Evaluating inflexible and versatile grids
by Michelle Barker (@michellebarker)
on CodePen.

Equally, this quote from the Gridless Design website sums up properly how a card structure can reply to the context, moderately than mounted columns dictated by a design.

The CSS grid syntax permits youngsters to reflow into new columns as wanted. Columns will be knowledgeable about their dimension by the content material of their youngsters or a fractional quantity of accessible area. This method may be very highly effective for card layouts, permitting playing cards to be as huge as a specified column permits and wrapping to the subsequent row when it would develop into too small.

Many builders are embracing innovation in our CSS toolset. Andy Bell and Heydon Pickering created Each Format, which helps builders study to embrace the inherent flexibility and unknowability of the net, to construct resilient layouts that work for variable content material. It might be nice to see extra innovation in design instruments to encourage designers to assume in the same manner. Good communication in the course of the design and improvement course of may also help too, though not everybody has that luxurious.

However builders aren’t solely with out blame. A part of the issue too, is CSS frameworks. Tailwind, Bootstrap and loads of others include courses that make it trivial to construct a structure that adheres to a easy grid. But when we need to construct a versatile, sturdy, content-aware structure, you might want to look past the frameworks and write some customized CSS. Paradoxically, the place CSS Grid shines is just not solely in constructing layouts that adhere to a strict design grid, however in baking flexibility into our elements. However the temptation to decide on the short and straightforward resolution, moderately than the greatest one, is difficult to withstand.

It seems like we’d like an enormous business shake-up right here. We shouldn’t be forcing content material right into a inflexible design grid to the detriment of consumer expertise. Customers received’t discover in case your design doesn’t align completely to a 12-column grid. They will discover if they’ll’t use the positioning you’ve constructed. In these instances, the grid is serving nobody however the designer’s ego. That’s why I’m completely happy to see the Gridless Design website advocating ditching the grid altogether. It would sound like a radical proposition for some, however the article does an ideal job of explaining how different gadgets, comparable to gestalt ideas of area, proximity and continuity could make for a very good design and not using a grid.

The location gives a much better rationalization than I’ve right here, so test it out.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments