Bento grids are everywhere. Product pages, portfolios, feature sections, pricing: a grid of rounded tiles in different sizes, each holding one idea, looking like a tidy lunch box. On a big screen they look great.
Then you open the same page on a phone. The big tile that spanned four columns is now squeezed into one, text overflows its box, a tall tile leaves a strange gap, and a screen reader reads the tiles in an order that makes no sense. Several of this year's design trend reports say the same thing: bento grids often collapse badly on mobile and can hurt reading order.
This guide shows five rules that fix that, with the actual code from a free bento component on DeliverWebsite UI: Bento grid features with live cards. It's built with React, Tailwind CSS and Motion, and you can copy all of it.
What a bento grid is (and why it breaks)
A bento grid is a CSS grid where tiles span different numbers of columns and rows. On desktop you might use six columns: one tile spans four, the next spans two and two rows, three small ones span two each.
The trouble is that most bento grids are designed desktop-first. The designer picks spans that look balanced at 1440 px, then the developer adds "make it responsive" at the end. By then the spans, fixed heights and decorative animations are baked in, and the phone version is whatever is left after squeezing.
The fix is to flip the order of decisions. Here are the five rules.
Fix 1: Start from one column
Write the phone layout first. On a phone, a bento grid should be a simple stack: one tile per row, full width, in reading order. Columns only appear when there is room for them.
In Tailwind CSS that's one line:
<div class="grid grid-flow-dense gap-3 md:grid-cols-2 lg:grid-cols-6"> <!-- tiles --> </div> With no column classes at the base size, the grid is one column. At the md breakpoint (768 px) it becomes two columns; at lg (1024 px) it becomes six. Phones never see the six-column layout at all.
The plain CSS version:
.bento { display: grid; gap: 0.75rem; } @media (min-width: 48rem) { .bento { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 64rem) { .bento { grid-template-columns: repeat(6, 1fr); } } If your tiles live inside a container that changes width (a sidebar layout, a dashboard panel), use container queries instead of viewport breakpoints, so the grid responds to its own width.
Fix 2: Span tiles only from tablet up
A tile that spans four of six columns on desktop should be a normal row on a phone. If you write col-span-4 without a breakpoint, a one-column grid tries to create extra implicit columns and the layout falls apart.
In the DeliverWebsite UI bento, each card has a size, and every span lives behind a breakpoint:
// How much of the grid each card takes: on tablets two columns, on desktops six. const SIZE_CLASSES = { large: "md:col-span-2 lg:col-span-4", tall: "md:row-span-2 lg:col-span-2", small: "lg:col-span-2", half: "lg:col-span-3", } as const; Read it as three layouts in one object:
- Phone: no spans at all, so every card is one full-width row.
- Tablet (two columns): a large card spans both columns; a tall card spans two rows.
- Desktop (six columns): the large card takes four columns, small cards two, half cards three.
The content of each card stays the same. Only the spans change.
Fix 3: Let tiles grow with their content
Fixed heights are the most common bento bug on phones. A tile designed at 240 px tall holds a title and two lines of copy at desktop width. On a phone the same copy wraps to four or five lines, and with a fixed height it either overflows or gets cut off.
Set a minimum height instead, and let the tile grow:
.bento { grid-auto-rows: minmax(12rem, auto); } Or set it per tile, on the part that holds the visual:
<div class="relative flex min-h-80 flex-1 flex-col gap-3 p-4 sm:p-5"> <!-- the live visual --> </div> The visual gets a guaranteed amount of space (min-h-80, 20rem), and the text below it takes whatever it needs. Nothing is clipped, at any width.
A quick test: open your page at 360 px wide and set the browser text size to 125%. If any tile clips its text, it has a fixed height somewhere.
Fix 4: Keep reading order equal to visual order
grid-auto-flow: dense (Tailwind's grid-flow-dense) is what makes desktop bento grids look tidy: it fills gaps by moving smaller tiles up into holes. But it changes where tiles appear without changing their order in the HTML.
On desktop that's usually fine, because the tiles are independent ideas. On a phone, with one column, there are no gaps to fill, so dense does nothing, and the visual order matches the HTML again. That's one more reason to start from one column.
What to check:
- Put your tiles in the HTML in the order a reader should meet them.
- Look at the phone layout: it should read top to bottom in that same order.
- Tab through the page with the keyboard. Focus should move through the tiles in that same order on every screen size.
- Avoid
orderand manualgrid-row/grid-columnplacement for content tiles. They move tiles visually but not for screen readers or keyboard users.
Fix 5: Hide the decoration, not the words
Bento tiles often hold a small visual: a chart, a moving wireframe, an animated fragment of the product. On a phone that visual is still worth showing, but it's decoration. The title and the sentence below it are the content.
In the DeliverWebsite UI bento, every live visual is marked aria-hidden, and the words stay real text:
<div aria-hidden className="flex flex-1 flex-col gap-5 p-4 sm:p-5"> {/* the live fragment: a chart, a wireframe, a search */} </div> Three more details from the same component that matter even more on phones:
- The visuals only play while on screen. Each card watches whether it's in view (
useInViewfrom Motion) and pauses otherwise, so a phone isn't animating six things the visitor can't see. - Reduced motion gets a finished, still state. If the visitor asked for reduced motion, each visual shows its final frame and holds still.
- Keyboard focus gets the same reaction as the pointer. Cards can take focus, so people who don't use a mouse see the same thing.
A checklist before you ship a bento grid
- Is the base layout one column, with columns added only at
mdand up? - Does every span live behind a breakpoint?
- Do tiles use minimum heights, not fixed heights?
- Does the phone layout read top to bottom in HTML order, including keyboard focus?
- Are decorative visuals
aria-hidden, paused off screen and still for reduced motion? - Does every tile still make sense with only its title and one sentence?
How to test a bento grid on a phone in five minutes
You don't need a device lab. Five quick checks catch almost every bento problem before visitors do.
- Resize to 360 px. In your browser's dev tools, set the viewport to 360 px wide (a small Android phone). Scroll the whole grid. Every tile should be full width, one per row, with nothing cut off.
- Turn the text up. Set the browser's default font size to 125% (or zoom the page to 125%). Tiles with fixed heights will clip their text now. Fix them with minimum heights.
- Tab through it. Click just above the grid and press Tab repeatedly. Focus should move through the tiles in the order you read them. If it jumps around, the HTML order and the visual order disagree.
- Turn on reduced motion. On macOS it's in Accessibility settings, on Windows under Visual effects, and dev tools can emulate it too. Every animated visual should show a finished, still frame, not a blank box.
- Throttle the CPU. In the Performance panel, slow the CPU down 4x and scroll. If scrolling stutters, too many visuals are animating at once. Make sure each one only plays while it's on screen.
If all five pass, your bento grid will hold up on real phones too. The component linked below passes all five, which is why it makes a good starting point.
When not to use a bento grid
Bento grids work for a handful of separate, equally important ideas: features, services, results. They work less well for:
- A sequence. Steps in a process read better as a numbered list or a timeline.
- One main feature. If one thing matters most, make it the largest thing on the page, not one tile among six.
- Long text. Tiles are for short ideas. Paragraphs belong in a normal section.
A design rule I keep coming back to: not every section should be cards in a row. Mix wide visuals, split layouts, lists and a single quote, so the page has rhythm.
Get the code
The full bento section from this guide is free to copy: Bento grid features with live cards. Six cards, each a small live product fragment, six columns on desktop and one readable column on a phone. React, Tailwind CSS and Motion.
Frequently asked questions
How do I make a bento grid responsive?
Start with one column, add columns at larger breakpoints (md:grid-cols-2 lg:grid-cols-6), put every span behind a breakpoint, and use minimum heights instead of fixed heights.
Should a bento grid use grid-auto-flow: dense?
It's fine on desktop for independent tiles, but keep the HTML order equal to the reading order. On a one-column phone layout dense has no effect, which keeps the order correct there.
How many columns should a bento grid have?
Six on desktop is a good default because it divides into halves (3+3), thirds (2+2+2) and a large plus small split (4+2). Two on tablets, one on phones.
Are animated bento grids bad for performance on mobile?
Not if each visual plays only while on screen, animates only transform and opacity, and has a still state for reduced motion.
Is this bento component free for commercial use?
Yes. Every section on DeliverWebsite UI is free to copy and use in client and commercial projects.
More from me: Instagram · X · YouTube · Medium · Substack · Reddit · Pinterest · Free UI library