Bento Grid Layouts in CSS and Tailwind
Updated 2026-10-28. 5 grids.
A bento grid is a layout of tiles in different sizes that fit together like the boxes of a lunch tray. Build it with CSS grid: set a few equal columns, then let key tiles span two columns or rows, or name the areas with grid-template-areas. On phones, drop to one or two columns.
Choose by what the tiles hold. The classic six-tile grid gives one big tile to the feature that sells the product and smaller ones to the rest. The launch grid fills each tile with a small drawn piece of interface, which shows the product without screenshots. The photo grid suits a studio or a portfolio, where the pictures do the talking.
The stats grid is built for an app dashboard, with numbers, a tiny chart and a progress ring sharing one tray. The editorial grid breaks the even rhythm on purpose, with a tall lead story and uneven columns, and it collapses to a single readable column on phones.
Each layout says how it reflows. Spans and named areas are set per breakpoint, so a tile that is two columns wide on a laptop becomes full width on a phone, and the order of tiles in the HTML is the order a phone and a screen reader see them. Keep the most important tile first in the markup.
Compare them
| Variant | Built with | Size (gzipped) | Running cost | Browser support |
|---|---|---|---|---|
| Bento Grid With Six Tiles and One Large Feature Tile | CSS only | 1.5 KB | Pure CSS grid with no script; one layout pass places all six tiles. | All current browsers |
| Asymmetric Editorial Bento Grid | CSS only | 1.5 KB | Text and colour blocks only, laid out by one grid with no images or script. | All current browsers |
| Photo Bento Grid Portfolio Layout | CSS only | 1.5 KB | Six lazy-loaded photos in fixed-height rows, so nothing shifts as they arrive. | All current browsers |
| Product Launch Bento Grid With Mini UI Mockups | CSS only | 2 KB | Mockups are a few dozen divs and no images, so the tiles paint with the page. | All current browsers |
| Stats Bento Grid for a Dashboard | CSS only | 1.5 KB | Two inline SVG charts and plain text tiles, with no chart library to download. | All current browsers |
Bento Grid With Six Tiles and One Large Feature Tile
A feature section for an invoicing app laid out as a classic bento: the lead feature fills a two by two tile with a small drawn invoice showing its reminder history, and five shorter features sit around it. The whole layout is three grid-template-areas maps, four columns on laptops, two on tablets and one on phones, so the lead tile always comes first.
<section class="bg6">
<div class="bg6-inner">
<p class="bg6-kicker">Ledgerly for freelancers</p>
<h2 class="bg6-title">Everything between the work and getting paid</h2>
<div class="bg6-grid">
<article class="bg6-tile bg6-lead">
<h3>Invoices that chase themselves</h3>
<p>Send once. Polite reminders go out at 3, 7 and 14 days until the client pays, then stop on their own.</p>
<div class="bg6-art" aria-hidden="true">
<div class="bg6-row"><span class="bg6-bar"></span><span class="bg6-pill">Paid</span></div>
<p class="bg6-amount">$4,820.00</p>
<ul>
<li><i></i>Reminder sent<b>Day 3</b></li>
<li><i></i>Reminder sent<b>Day 7</b></li>
<li><i class="bg6-ok"></i>Paid by card<b>Day 9</b></li>
</ul>
</div>
</article>
<article class="bg6-tile" style="grid-area: a"><h3>Paid in 40 currencies</h3><p>Clients pay in theirs, you are paid in yours.</p></article>
<article class="bg6-tile" style="grid-area: b"><h3>Receipts by photo</h3><p>Snap a receipt and the amount, date and shop are filled in.</p></article>
<article class="bg6-tile" style="grid-area: c"><h3>Tax set aside as you go</h3><p>A share of every payment moves to a separate pot, so January holds no surprises.</p></article>
<article class="bg6-tile" style="grid-area: d"><h3>Time to invoice</h3><p>Tracked hours turn into a draft invoice in one click.</p></article>
<article class="bg6-tile" style="grid-area: e"><h3>Your accountant, invited</h3><p>Give read-only access to the books without sharing a password.</p></article>
</div>
</div>
</section>
<style>
/* Change these: page tint, lead tile tint, accent, gap between tiles. */
.bg6 { --bg6-bg: #f8fafc; --bg6-lead: #eef2ff; --bg6-accent: #4338ca; --bg6-gap: 16px; }
.bg6 { background: var(--bg6-bg); padding: 88px 20px; font-family: ui-sans-serif, system-ui, sans-serif; color: #0f172a; }
.bg6-inner { max-width: 72rem; margin: 0 auto; }
.bg6-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--bg6-accent); }
.bg6-title { margin: 8px 0 0; max-width: 42rem; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.15; }
/* Phones: one column. 640px: two. 1024px: four, with the lead tile two by two. */
.bg6-grid { margin-top: 48px; display: grid; gap: var(--bg6-gap); grid-template-columns: 1fr; grid-template-areas: "lead" "a" "b" "c" "d" "e"; }
@media (min-width: 640px) { .bg6-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "lead lead" "a b" "c c" "d e"; } }
@media (min-width: 1024px) { .bg6-grid { grid-template-columns: repeat(4, 1fr); grid-template-areas: "lead lead a b" "lead lead c c" "d e e e"; } }
.bg6-tile { padding: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.bg6-tile h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.bg6-tile p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #475569; }
.bg6-lead { grid-area: lead; background: var(--bg6-lead); border-color: #c7d2fe; }
.bg6-lead h3 { font-size: 24px; }
.bg6-art { margin-top: 32px; padding: 16px; background: #fff; border: 1px solid #e0e7ff; border-radius: 12px; }
.bg6-row { display: flex; align-items: center; justify-content: space-between; }
.bg6-bar { width: 96px; height: 10px; border-radius: 99px; background: #e2e8f0; }
.bg6-pill { padding: 4px 10px; border-radius: 99px; background: #d1fae5; color: #065f46; font-size: 12px; font-weight: 500; }
.bg6-art .bg6-amount { margin: 16px 0 0; font-size: 30px; font-weight: 600; color: #0f172a; letter-spacing: -.02em; }
.bg6-art ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #334155; }
.bg6-art li { display: flex; align-items: center; gap: 12px; }
.bg6-art i { width: 8px; height: 8px; border-radius: 50%; background: #818cf8; }
.bg6-art i.bg6-ok { background: #10b981; }
.bg6-art b { margin-left: auto; font-weight: 400; color: #64748b; }
</style>
With reduced motion: Nothing moves in this layout, so it looks the same for everyone.
Running cost: Pure CSS grid with no script; one layout pass places all six tiles.
- Rearrange tiles by editing the quoted rows in grid-template-areas; each word is a tile and repeating a word stretches it across cells.
- Change --bg6-lead and --bg6-accent (or the indigo-50 and indigo-700 classes) to recolour the lead tile and the kicker together.
- Replace LeadArt with a screenshot or your own drawing; keep its fixed height so the tile does not jump while an image loads.
- Tighten or loosen the tray with --bg6-gap or the gap-4 value; 12 to 20 pixels keeps tiles reading as one group.
Full page for Bento Grid With Six Tiles and One Large Feature Tile
Asymmetric Editorial Bento Grid
A magazine contents spread for a gardening quarterly: a tall green cover story on the left, then uneven columns of shorter pieces in sand, white and rust. The columns are 5fr, 3fr and 4fr, which gives the page a printed feel rather than an even tray. Below 768 pixels the map becomes a single column in reading order, cover story first.
<section class="bed">
<div class="bed-inner">
<div class="bed-mast"><h2>The Allotment Quarterly</h2><p>Issue 19, Autumn</p></div>
<div class="bed-grid">
<article class="bed-lead"><p class="bed-k">Cover story</p><h3><a href="#">The plot that feeds a street</a></h3><p class="bed-b">Twelve neighbours, one abandoned tennis court and a rota that has kept forty households in greens since spring.</p><p class="bed-by">Words by Ines Maret</p></article>
<article class="bed-seeds"><p class="bed-k">Field notes</p><h3><a href="#">Saving seed from this year's beans</a></h3><p class="bed-b">Leave the best pods on the plant until they rattle.</p><p class="bed-by">Tom Achebe</p></article>
<article class="bed-frost"><p class="bed-k">Calendar</p><h3><a href="#">First frost: 14 November</a></h3><p class="bed-b">Fleece the chard and bring in the last squash.</p><p class="bed-by">Almanac</p></article>
<article class="bed-tool"><p class="bed-k">Workshop</p><h3><a href="#">Mending a hoe with an ash handle</a></h3><p class="bed-b">A bench, a spokeshave and an afternoon is all it takes to give a cracked tool another twenty years.</p><p class="bed-by">Petra Lind</p></article>
<article class="bed-letters"><p class="bed-k">Letters</p><h3><a href="#">Slugs, again</a></h3><p class="bed-b">Readers write in with what finally worked.</p><p class="bed-by">Your post</p></article>
</div>
</div>
</section>
<style>
/* Change these: paper colour, the three story colours, gap. */
.bed { --bed-paper: #f4efe4; --bed-green: #2f4a3a; --bed-sand: #e7d9bf; --bed-rust: #c4552f; --bed-gap: 14px; }
.bed { background: var(--bed-paper); padding: 88px 20px; font-family: ui-sans-serif, system-ui, sans-serif; color: #1c1917; }
.bed-inner { max-width: 72rem; margin: 0 auto; }
.bed-mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #1c1917; }
.bed-mast h2 { margin: 0; font: 400 clamp(30px, 5vw, 48px) ui-serif, Georgia, serif; letter-spacing: -.02em; }
.bed-mast p { margin: 0; font: italic 14px ui-serif, Georgia, serif; color: #44403c; }
@media (max-width: 639px) { .bed-mast p { display: none; } }
/* Phones: one column in reading order. 768px: three uneven columns with a tall lead. */
.bed-grid { margin-top: 32px; display: grid; gap: var(--bed-gap); grid-template-columns: 1fr; grid-template-areas: "lead" "seeds" "frost" "tool" "letters"; }
@media (min-width: 768px) { .bed-grid { grid-template-columns: 5fr 3fr 4fr; grid-template-areas: "lead seeds frost" "lead tool tool" "lead letters letters"; } .bed-lead { min-height: 520px; padding: 32px !important; } .bed-lead h3 { margin-top: auto !important; font-size: 48px !important; } }
.bed-grid article { display: flex; flex-direction: column; padding: 24px; border-radius: 2px; background: #fff; }
.bed-lead { grid-area: lead; background: var(--bed-green) !important; color: #f4efe4; }
.bed-seeds { grid-area: seeds; background: var(--bed-sand) !important; }
.bed-frost { grid-area: frost; }
.bed-tool { grid-area: tool; background: var(--bed-rust) !important; color: #fff; }
.bed-letters { grid-area: letters; }
.bed-k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.bed h3 { margin: 12px 0 0; font: 400 24px/1.15 ui-serif, Georgia, serif; }
.bed-lead h3 { font-size: 36px; }
.bed h3 a { color: inherit; text-decoration: none; border-radius: 2px; }
.bed h3 a:hover { text-decoration: underline; }
.bed h3 a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bed-b { margin: 12px 0 0; font-size: 15px; line-height: 1.6; opacity: .9; }
.bed-lead .bed-b { font-size: 18px; }
.bed-by { margin: 16px 0 0; font: italic 14px ui-serif, Georgia, serif; opacity: .8; }
</style>
With reduced motion: A static layout; only the link underline changes on hover.
Running cost: Text and colour blocks only, laid out by one grid with no images or script.
- Change the column weights in grid-template-columns (5fr 3fr 4fr) to shift how much room the lead story takes.
- Swap the four paper and ink colours in the tone strings, or --bed-green, --bed-sand and --bed-rust in the HTML.
- Add a sixth story by adding a row such as "lead notes notes" to the desktop map and an entry to the phone map.
Photo Bento Grid Portfolio Layout
A portfolio bento for a ceramics studio: six photographs of the workshop, glazes and classes in tiles of three sizes, each with a small caption pill. Rows have a fixed height and tiles span one or two columns and rows, so the tray stays tidy whatever shape each photo is. Four columns on desktop become two on phones, keeping the big studio shot on top.
<section class="pb">
<div class="pb-inner">
<div class="pb-head">
<div>
<p class="pb-kicker">Selected work, 2024 to 2026</p>
<h2>Kiln & Clay Studio</h2>
</div>
<a href="#">Book a class</a>
</div>
<ul class="pb-grid">
<li class="pb-c2 pb-r2"><img src="https://images.pexels.com/photos/3094036/pexels-photo-3094036.jpeg?auto=compress&cs=tinysrgb&w=1200" alt="Shelves and tables stacked with white handmade bowls and plates in a brick workshop" loading="lazy"><span>The studio, Bermondsey</span></li>
<li class="pb-c1 pb-r2"><img src="https://images.pexels.com/photos/8063822/pexels-photo-8063822.jpeg?auto=compress&cs=tinysrgb&w=800" alt="Glazed ceramic vases in rust, brown and cream on a wooden shelf" loading="lazy"><span>Iron glaze vases</span></li>
<li class="pb-c1 pb-r1"><img src="https://images.pexels.com/photos/6693557/pexels-photo-6693557.jpeg?auto=compress&cs=tinysrgb&w=800" alt="Hands shaping clay on a wooden table among pottery tools, seen from above" loading="lazy"><span>Hand building</span></li>
<li class="pb-c1 pb-r1"><img src="https://images.pexels.com/photos/6611415/pexels-photo-6611415.jpeg?auto=compress&cs=tinysrgb&w=800" alt="Pale handmade cups and planters lined up on a sunny window sill" loading="lazy"><span>Window sill set</span></li>
<li class="pb-c2 pb-r1"><img src="https://images.pexels.com/photos/5642023/pexels-photo-5642023.jpeg?auto=compress&cs=tinysrgb&w=1200" alt="A potter rolling out a slab of clay beside wooden tools and a sponge" loading="lazy"><span>Slab rolling class</span></li>
<li class="pb-c2 pb-r1"><img src="https://images.pexels.com/photos/32877675/pexels-photo-32877675.jpeg?auto=compress&cs=tinysrgb&w=1200" alt="Rows of unglazed cream vases waiting to be fired" loading="lazy"><span>Before the kiln</span></li>
</ul>
</div>
</section>
<style>
/* Change these: page colour, row height, gap, corner radius. */
.pb { --pb-bg: #efe9e1; --pb-row: 140px; --pb-gap: 12px; --pb-radius: 16px; }
.pb { background: var(--pb-bg); padding: 88px 20px; font-family: ui-sans-serif, system-ui, sans-serif; color: #1c1917; }
.pb-inner { max-width: 72rem; margin: 0 auto; }
.pb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pb-kicker { margin: 0; font: italic 14px ui-serif, Georgia, serif; color: #57534e; }
.pb h2 { margin: 4px 0 0; font: 400 clamp(28px, 4vw, 36px) ui-serif, Georgia, serif; letter-spacing: -.02em; }
.pb-head a { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border: 1px solid #1c1917; border-radius: 99px; color: #1c1917; font-size: 14px; font-weight: 500; text-decoration: none; }
.pb-head a:hover { background: #1c1917; color: #fff; }
.pb-head a:focus-visible { outline: 2px solid #1c1917; outline-offset: 3px; }
/* Two columns on phones, four from 768px. Spans decide tile size; fixed rows keep each box steady while photos load. */
.pb-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: var(--pb-gap); grid-template-columns: repeat(2, 1fr); grid-auto-rows: var(--pb-row); }
@media (min-width: 640px) { .pb { --pb-row: 180px; } }
@media (min-width: 768px) { .pb-grid { grid-template-columns: repeat(4, 1fr); } }
.pb-c2 { grid-column: span 2; }
.pb-r2 { grid-row: span 2; }
.pb-grid li { position: relative; overflow: hidden; border-radius: var(--pb-radius); background: #d6d3d1; }
.pb-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pb-grid li:hover img { transform: scale(1.03); }
.pb-grid span { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .pb-grid img { transition: none; } }
</style>
With reduced motion: Photos stay still on hover instead of easing slightly larger.
Running cost: Six lazy-loaded photos in fixed-height rows, so nothing shifts as they arrive.
- Change a tile's size by editing its span string, for example col-span-2 row-span-1 for a wide landscape shot.
- Set the row height with auto-rows-[180px] (or --pb-row); taller rows suit portrait work such as fashion or architecture.
- Swap the photos for your own at roughly 1200 pixels wide for big tiles and 800 for small ones, and rewrite each alt to describe the picture.
Product Launch Bento Grid With Mini UI Mockups
A dark launch section for a team calendar where every tile carries a tiny drawn piece of the product: a week of focus blocks, two switches, a row of teammate avatars, a typed command and a pair of time zone bars. It uses Tailwind spans on a six-column grid, the wide tile taking four columns, and stacks to one column below 768 pixels.
<section class="pl">
<div class="pl-inner">
<span class="pl-badge">New in Tidepool 3.0</span>
<h2 class="pl-title">A calendar that protects the hours you do real work in</h2>
<div class="pl-grid">
<article class="pl-tile pl-wide">
<div class="pl-art pl-week" aria-hidden="true"><div class="pl-day"><span>Mon</span><div><i class="pl-focus" style="top:8%;height:30%"></i><i style="top:50%;height:20%"></i></div></div><div class="pl-day"><span>Tue</span><div><i style="top:20%;height:40%"></i></div></div><div class="pl-day"><span>Wed</span><div><i style="top:6%;height:18%"></i><i class="pl-focus" style="top:34%;height:44%"></i></div></div><div class="pl-day"><span>Thu</span><div><i style="top:14%;height:26%"></i><i style="top:56%;height:22%"></i></div></div><div class="pl-day"><span>Fri</span><div><i class="pl-focus" style="top:4%;height:60%"></i></div></div></div>
<h3>Focus blocks that move themselves</h3>
<p>When a meeting lands on your focus time, the block slides to the next free slot instead of vanishing.</p>
</article>
<article class="pl-tile">
<div class="pl-art pl-stack" aria-hidden="true">
<div class="pl-switch-row">No Meeting Wednesday<span class="pl-sw on"></span></div>
<div class="pl-switch-row">Auto-decline overlaps<span class="pl-sw"></span></div>
</div>
<h3>One switch for quiet days</h3>
<p>Turn on No Meeting Wednesday for the whole team.</p>
</article>
<article class="pl-tile">
<div class="pl-art pl-people" aria-hidden="true">
<span style="background:#fcd34d">AO<b></b></span><span style="background:#7dd3fc">RK<b></b></span><span class="away" style="background:#fda4af">MV<b></b></span><span style="background:#bef264">JT<b></b></span>
</div>
<h3>Who is free, at a glance</h3>
<p>Hover a time and see the team light up.</p>
</article>
<article class="pl-tile">
<div class="pl-art pl-stack" aria-hidden="true">
<div class="pl-cmd">coffee with Rosa thu 10am<i></i></div>
<div class="pl-result">Thu 10:00 to 10:30, Rosa Kemp</div>
</div>
<h3>Type it, book it</h3>
<p>Write 'coffee with Rosa Thursday' and it is in.</p>
</article>
<article class="pl-tile">
<div class="pl-art pl-stack" aria-hidden="true">
<div><small>Lisbon</small><div class="pl-bar"><i></i><i></i><i></i><i></i><i></i><i></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i></i><i></i><i></i></div></div>
<div><small>Denver</small><div class="pl-bar"><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i class="on"></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div></div>
</div>
<h3>Time zones without maths</h3>
<p>Drag across the bar to find hours that suit Lisbon and Denver.</p>
</article>
</div>
</div>
</section>
<style>
/* Change these: page colour, tile colour, accent. */
.pl { --pl-bg: #09090b; --pl-tile: #18181b; --pl-accent: #2dd4bf; }
.pl { background: var(--pl-bg); padding: 88px 20px; font-family: ui-sans-serif, system-ui, sans-serif; color: #fff; }
.pl-inner { max-width: 72rem; margin: 0 auto; }
.pl-badge { display: inline-block; padding: 4px 12px; border: 1px solid rgba(45,212,191,.3); border-radius: 99px; background: rgba(45,212,191,.1); color: #5eead4; font-size: 12px; font-weight: 500; }
.pl-title { margin: 16px 0 0; max-width: 42rem; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.15; }
/* One column on phones; six columns from 768px, wide tile spans four, the rest two. */
.pl-grid { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pl-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(260px, auto); } .pl-tile { grid-column: span 2; } .pl-wide { grid-column: span 4; } }
.pl-tile { display: flex; flex-direction: column; padding: 24px; background: var(--pl-tile); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; overflow: hidden; }
.pl-tile h3 { margin: 24px 0 0; font-size: 18px; }
.pl-tile p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: #a1a1aa; }
.pl-art { flex: 1; }
.pl-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 176px; flex: none; padding: 12px; border-radius: 16px; background: rgba(9,9,11,.6); }
.pl-day { display: flex; flex-direction: column; }
.pl-day span { font-size: 11px; color: #71717a; font-weight: 500; }
.pl-day div { position: relative; flex: 1; margin-top: 8px; border-radius: 6px; background: rgba(39,39,42,.6); }
.pl-day i { position: absolute; left: 4px; right: 4px; border-radius: 4px; background: #52525b; }
.pl-day i.pl-focus { background: rgba(45,212,191,.8); }
.pl-stack { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pl-switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: rgba(39,39,42,.7); font-size: 14px; color: #e4e4e7; }
.pl-sw { position: relative; width: 36px; height: 20px; border-radius: 99px; background: #52525b; }
.pl-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.pl-sw.on { background: var(--pl-accent); }
.pl-sw.on::after { left: 18px; }
.pl-people { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pl-people span { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #18181b; font-size: 14px; font-weight: 600; }
.pl-people b { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 2px solid var(--pl-tile); border-radius: 50%; background: var(--pl-accent); }
.pl-people .away { opacity: .4; }
.pl-people .away b { background: #71717a; }
.pl-cmd { padding: 12px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(39,39,42,.7); font: 14px ui-monospace, Menlo, monospace; color: #e4e4e7; }
.pl-cmd i { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px; background: #5eead4; }
.pl-result { padding: 8px 16px; border-radius: 12px; background: rgba(45,212,191,.1); color: #99f6e4; font-size: 14px; }
.pl-stack small { font-size: 12px; color: #a1a1aa; }
.pl-bar { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; margin-top: 4px; }
.pl-bar i { height: 16px; border-radius: 2px; background: #3f3f46; }
.pl-bar i.on { background: rgba(45,212,191,.8); }
</style>
With reduced motion: The section is still by design; every mockup is drawn in its final state.
Running cost: Mockups are a few dozen divs and no images, so the tiles paint with the page.
- Change which tile is wide by moving md:col-span-4 to another Tile and giving the old one md:col-span-2.
- Recolour the accent by replacing teal-400 and teal-300 throughout, or --pl-accent in the HTML version.
- Edit the week array to draw a different calendar; top and h are percentages of the day column.
Stats Bento Grid for a Dashboard
A month-at-a-glance dashboard for a yoga business set out as a bento: a two by two revenue tile with a filled sparkline, a retention ring, a single big number and a wide bar list of members by plan. Numbers use tabular figures so they line up. It runs four columns on laptops, two on tablets, and one on phones with revenue first.
<section class="sb">
<div class="sb-inner">
<div class="sb-head"><h2>October overview</h2><p>Fernway Yoga, all studios</p></div>
<div class="sb-grid">
<article class="sb-tile sb-big">
<h3>Monthly revenue</h3>
<p class="sb-num sb-xl">$46,180</p>
<p class="sb-up">Up 17.9% on September</p>
<svg class="sb-spark" viewBox="0 0 300 100" preserveAspectRatio="none" aria-hidden="true">
<polygon points="0,100 0,58.7 27.3,51.7 54.5,53.5 81.8,43 109.1,46.5 136.4,36.1 163.6,30.9 190.9,32.6 218.2,23.9 245.5,18.7 272.7,22.2 300,10 300,100" fill="#d1fae5"/>
<polyline points="0,58.7 27.3,51.7 54.5,53.5 81.8,43 109.1,46.5 136.4,36.1 163.6,30.9 190.9,32.6 218.2,23.9 245.5,18.7 272.7,22.2 300,10" fill="none" stroke="#059669" stroke-width="2.5" stroke-linejoin="round" vector-effect="non-scaling-stroke"/>
</svg>
<div class="sb-axis"><span>Nov 2025</span><span>Oct 2026</span></div>
</article>
<article class="sb-tile sb-ring">
<svg viewBox="0 0 80 80" aria-hidden="true"><circle cx="40" cy="40" r="34" stroke="#f1f5f9"/><circle cx="40" cy="40" r="34" stroke="#f97316" stroke-dasharray="196.5 213.6" stroke-linecap="round"/></svg>
<div><h3>Members kept</h3><p class="sb-num">92%</p></div>
</article>
<article class="sb-tile">
<h3>Classes booked</h3>
<p class="sb-num">3,904</p>
<p class="sb-note">87% of spaces filled</p>
</article>
<article class="sb-tile sb-wide">
<h3>Members by plan</h3>
<ul class="sb-bars">
<li><span>Studio</span><span class="sb-track"><i style="width:100%"></i></span><b>412</b></li>
<li><span>Solo</span><span class="sb-track"><i style="width:70%"></i></span><b>288</b></li>
<li><span>Team</span><span class="sb-track"><i style="width:34%"></i></span><b>141</b></li>
</ul>
</article>
</div>
</div>
</section>
<style>
/* Change these: main accent, ring colour, tile border. */
.sb { --sb-accent: #059669; --sb-ring: #f97316; --sb-line: #e2e8f0; }
.sb { background: #fff; padding: 72px 20px; font-family: ui-sans-serif, system-ui, sans-serif; color: #0f172a; }
.sb-inner { max-width: 72rem; margin: 0 auto; }
.sb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.sb-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.sb-head p { margin: 0; font-size: 14px; color: #475569; }
/* One column on phones, two from 640px, four from 1024px with the revenue tile two by two. */
.sb-grid { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sb-grid { grid-template-columns: 1fr 1fr; } .sb-big, .sb-wide { grid-column: span 2; } }
@media (min-width: 1024px) { .sb-grid { grid-template-columns: repeat(4, 1fr); } .sb-big { grid-row: span 2; } }
.sb-tile { padding: 24px; border: 1px solid var(--sb-line); border-radius: 16px; }
.sb-tile h3 { margin: 0; font-size: 14px; font-weight: 500; color: #475569; }
.sb-num { margin: 8px 0 0; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-xl { font-size: 36px; letter-spacing: -.02em; }
.sb-up { margin: 4px 0 0; font-size: 14px; font-weight: 500; color: #047857; }
.sb-note { margin: 4px 0 0; font-size: 14px; color: #475569; }
.sb-spark { display: block; width: 100%; height: 112px; margin-top: 24px; }
.sb-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #64748b; }
.sb-ring { display: flex; align-items: center; gap: 20px; }
.sb-ring svg { width: 80px; height: 80px; flex-shrink: 0; transform: rotate(-90deg); }
.sb-ring circle { fill: none; stroke-width: 9; }
.sb-ring .sb-num { margin-top: 0; }
.sb-bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.sb-bars li { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; color: #334155; }
.sb-track { height: 10px; border-radius: 99px; background: #f1f5f9; }
.sb-track i { display: block; height: 100%; border-radius: 99px; background: #10b981; }
.sb-bars b { text-align: right; font-weight: 500; color: #0f172a; font-variant-numeric: tabular-nums; }
</style>
With reduced motion: Charts are drawn once in their final shape; nothing animates.
Running cost: Two inline SVG charts and plain text tiles, with no chart library to download.
- Feed real data into the revenue array; the sparkline scales itself to the highest value, so any range works.
- Set retention to a new percentage and the ring's dash length follows; in the HTML version the first dasharray number is percent times 2.136.
- Change emerald-500 on the bars and orange-500 on the ring to keep each metric in its own colour.
Performance notes
A bento grid is layout, not animation, so its cost is the first paint. CSS grid places every tile in one pass with no script, and none of these sections uses JavaScript for layout. The drawn mockups and charts are inline SVG and a few divs, so they add no requests.
The photo grid is the only one that loads images. Each photo has fixed aspect classes so the tiles keep their shape before the picture arrives, loading="lazy" so photos below the fold wait, and a width in the address so phones are not sent a desktop-sized file. Swap in your own photos at a similar size.
Questions
How do I make a bento grid in CSS?
Set display: grid on the container with grid-template-columns: repeat(4, 1fr) and a gap. Give the large tile grid-column: span 2 and grid-row: span 2, and let the rest fill in. grid-auto-flow: dense helps small tiles fill any holes.
Should I use grid-template-areas or spans?
Named areas are easier to read and to rearrange per breakpoint when the layout is fixed. Spans are better when the number of tiles changes, because new tiles flow into the next free cell without editing a map.
How do I make a bento grid in Tailwind?
Use grid with grid-cols-1 on phones, md:grid-cols-4 or lg:grid-cols-6 on larger screens, and classes such as md:col-span-2 and md:row-span-2 on the tiles that should be bigger. Fixed row heights with auto-rows-[180px] keep the tray even.
How does a bento grid work on mobile?
Most bento layouts collapse to one column, with the spans reset so each tile is full width. Some keep two small tiles side by side. Make sure the HTML order makes sense when stacked, because that is the order a phone shows.
Is a bento grid accessible?
It can be. Give the section a heading, use real headings inside tiles, and avoid reordering tiles visually with the order property, which makes keyboard focus jump around the screen.
Also in the gallery: Bento Grid Layouts: 10 Tailwind Designs with Copyable Code, Moulded Pulp Bento Tray Feature Section in WebGL Where a Glass Loupe, a Brass Key, a Spool and a Folded Card Lift into Focus.
More collections: Accordion Components in Tailwind, HTML and CSS, React Table Components With Tailwind and Plain HTML, Stacking Cards on Scroll, Expanding Cards and Image Panels. All feature sections. Start for free to have a full site built around them.
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App