- Landing pageLive
- Pricing updateBeta
- Checkout flowDraft
One list for every release
See what is live, what is in beta and what is still a draft.
Five cards of two sizes packed into one tidy block, each with a small picture of the feature: a release list, two switches, a figure with bars, a pair of keys and a strip of your colour breaking into dots.
Five small things in one tidy grid.
See what is live, what is in beta and what is still a draft.
One summary a day. Turn on more if you want it.
Up from 91% last month.
Search, jump and ship without the mouse.
Change one value and every part follows.
import "./bento-grid.css";
import "./badge.css";
const releases = [
{ name: "Landing page", status: "Live", tone: "green" },
{ name: "Pricing update", status: "Beta", tone: "blue" },
{ name: "Checkout flow", status: "Draft" },
];
const alerts = [
{ name: "Email digest", on: true },
{ name: "Push alerts", on: false },
];
const weeks = [42, 58, 50, 71, 64, 83, 100];
function Card({ wide, art, artClass = "", title, children }) {
return (
<article className={"dh-bgrid-card" + (wide ? " dh-bgrid-card--wide" : "")}>
<div className={"dh-bgrid-art " + artClass}>{art}</div>
<h3>{title}</h3>
<p>{children}</p>
</article>
);
}
export function BentoGrid() {
return (
<section className="dh-bgrid">
<div className="dh-bgrid-head">
<h2>Everything in its place</h2>
<p>Five small things in one tidy grid.</p>
</div>
<div className="dh-bgrid-grid">
<Card
wide
title="One list for every release"
art={
<ul className="dh-bgrid-rows">
{releases.map((release) => (
<li key={release.name}>
<span>{release.name}</span>
<span className={"dh-badge" + (release.tone ? " dh-badge--" + release.tone : "")}>{release.status}</span>
</li>
))}
</ul>
}
>
See what is live, what is in beta and what is still a draft.
</Card>
<Card
title="Quiet by default"
art={
<ul className="dh-bgrid-rows">
{alerts.map((alert) => (
<li key={alert.name}>
<span>{alert.name}</span>
<i className="dh-bgrid-switch" data-on={alert.on ? "" : undefined} />
</li>
))}
</ul>
}
>
One summary a day. Turn on more if you want it.
</Card>
<Card
title="Shipped on time"
artClass="dh-bgrid-art--figure"
art={
<>
<strong>98.2%</strong>
<div className="dh-bgrid-bars" aria-hidden>
{weeks.map((height, index) => (
<i key={index} style={{ "--h": height + "%" }} />
))}
</div>
</>
}
>
Up from 91% last month.
</Card>
<Card
title="A key for everything"
art={
<div className="dh-bgrid-keys" aria-hidden>
<kbd>⌘</kbd>
<kbd>K</kbd>
</div>
}
>
Search, jump and ship without the mouse.
</Card>
<Card title="In your colour" artClass="dh-bgrid-art--bleed" art={<div className="dh-bgrid-dither" aria-hidden />}>
Change one value and every part follows.
</Card>
</div>
</section>
);
}.dh-bgrid {
container-type: inline-size;
padding: 72px 32px;
background: var(--dh-bg, #f7f7f6);
color: var(--dh-fg, #171717);
font-size: 14px;
line-height: 1.5;
}
.dh-bgrid-head {
max-width: 960px;
margin: 0 auto;
}
.dh-bgrid h2 {
margin: 0;
font-size: 36px;
font-weight: 600;
letter-spacing: -0.035em;
}
.dh-bgrid-head p {
margin: 8px 0 0;
color: var(--dh-muted, #5c5c5c);
font-size: 16px;
}
.dh-bgrid-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 12px;
max-width: 960px;
margin: 40px auto 0;
}
.dh-bgrid-card {
grid-column: span 2;
display: flex;
flex-direction: column;
min-height: 268px;
padding: 20px;
overflow: hidden;
border-radius: 16px;
background: var(--dh-raised, #fff);
box-shadow: 0 0 0 1px rgb(23 23 23 / 0.07), 0 1px 2px rgb(23 23 23 / 0.1);
}
.dh-bgrid-card--wide {
grid-column: span 4;
}
.dh-bgrid-card h3 {
margin: 0;
font-size: 15px;
font-weight: 500;
letter-spacing: -0.01em;
}
.dh-bgrid-card p {
margin: 2px 0 0;
color: var(--dh-muted, #5c5c5c);
}
.dh-bgrid-art {
flex: 1;
display: grid;
align-content: center;
margin-bottom: 20px;
}
.dh-bgrid-rows {
margin: 0;
padding: 0;
list-style: none;
}
.dh-bgrid-rows li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 0;
font-size: 13px;
}
.dh-bgrid-rows li + li {
border-top: 0.5px solid var(--dh-edge, #d6d6d2);
}
.dh-bgrid-switch {
flex: none;
display: flex;
align-items: center;
width: 34px;
height: 20px;
padding: 2px;
box-sizing: border-box;
border-radius: 999px;
background: var(--dh-edge, #d6d6d2);
}
.dh-bgrid-switch::before {
content: "";
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.dh-bgrid-switch[data-on] {
justify-content: flex-end;
background: var(--dh-accent, #2563ff);
}
.dh-bgrid-art--figure {
align-content: end;
gap: 14px;
}
.dh-bgrid-art strong {
font-size: 34px;
font-weight: 500;
line-height: 1;
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
}
.dh-bgrid-bars {
display: flex;
align-items: flex-end;
gap: 6px;
height: 72px;
}
.dh-bgrid-bars i {
flex: 1;
height: var(--h);
border-radius: 4px;
background: var(--dh-well, #ededeb);
}
.dh-bgrid-bars i:last-child {
background: var(--dh-accent, #2563ff);
}
.dh-bgrid-keys {
display: flex;
justify-content: center;
gap: 8px;
}
.dh-bgrid-keys kbd {
display: grid;
place-items: center;
width: 52px;
height: 52px;
border-radius: 12px;
background: var(--dh-raised, #fff);
color: var(--dh-fg, #171717);
font: 500 20px/1 inherit;
font-family: inherit;
box-shadow: 0 0 0 0.5px var(--dh-edge, #d6d6d2), 0 2px 0 rgb(23 23 23 / 0.1), 0 3px 4px -2px rgb(23 23 23 / 0.2);
}
.dh-bgrid-art--bleed {
align-content: stretch;
margin: -20px -20px 20px;
}
.dh-bgrid-dither {
min-height: 120px;
background: var(--dh-accent, #2563ff);
-webkit-mask-image: linear-gradient(90deg, #000 18%, transparent 62%), radial-gradient(circle, #000 1.5px, transparent 1.9px);
mask-image: linear-gradient(90deg, #000 18%, transparent 62%), radial-gradient(circle, #000 1.5px, transparent 1.9px);
-webkit-mask-size: auto, 6px 6px;
mask-size: auto, 6px 6px;
}
@container (max-width: 760px) {
.dh-bgrid-grid { grid-template-columns: repeat(2, 1fr); }
.dh-bgrid-card { grid-column: span 1; }
.dh-bgrid-card--wide { grid-column: span 2; }
}
@container (max-width: 480px) {
.dh-bgrid { padding: 48px 20px; }
.dh-bgrid h2 { font-size: 28px; }
.dh-bgrid-grid { grid-template-columns: 1fr; margin-top: 32px; }
.dh-bgrid-card, .dh-bgrid-card--wide { grid-column: auto; min-height: 240px; }
}.dh-badge {
display: inline-flex;
align-items: center;
height: 1.7em;
padding: 0 0.65em;
border-radius: 999px;
background: var(--dh-raised, #fff);
color: var(--dh-muted, #5c5c5c);
font-size: 0.88em;
font-weight: 500;
white-space: nowrap;
box-shadow: 0 0 0 1px rgb(23 23 23 / 0.08), 0 1px 2px rgb(23 23 23 / 0.1);
}
.dh-badge--green {
background: #e2f4e6;
color: #1c7a3a;
box-shadow: 0 0 0 1px rgb(28 122 58 / 0.14);
}
.dh-badge--blue {
background: #e6edff;
color: #1d4ed8;
box-shadow: 0 0 0 1px rgb(29 78 216 / 0.14);
}<section class="dh-bgrid">
<div class="dh-bgrid-head">
<h2>Everything in its place</h2>
<p>Five small things in one tidy grid.</p>
</div>
<div class="dh-bgrid-grid">
<article class="dh-bgrid-card dh-bgrid-card--wide">
<div class="dh-bgrid-art">
<ul class="dh-bgrid-rows">
<li><span>Landing page</span><span class="dh-badge dh-badge--green">Live</span></li>
<li><span>Pricing update</span><span class="dh-badge dh-badge--blue">Beta</span></li>
<li><span>Checkout flow</span><span class="dh-badge">Draft</span></li>
</ul>
</div>
<h3>One list for every release</h3>
<p>See what is live, what is in beta and what is still a draft.</p>
</article>
<article class="dh-bgrid-card">
<div class="dh-bgrid-art">
<ul class="dh-bgrid-rows">
<li><span>Email digest</span><i class="dh-bgrid-switch" data-on></i></li>
<li><span>Push alerts</span><i class="dh-bgrid-switch"></i></li>
</ul>
</div>
<h3>Quiet by default</h3>
<p>One summary a day. Turn on more if you want it.</p>
</article>
<article class="dh-bgrid-card">
<div class="dh-bgrid-art dh-bgrid-art--figure">
<strong>98.2%</strong>
<div class="dh-bgrid-bars" aria-hidden="true">
<i style="--h: 42%"></i><i style="--h: 58%"></i><i style="--h: 50%"></i><i style="--h: 71%"></i><i style="--h: 64%"></i><i style="--h: 83%"></i><i style="--h: 100%"></i>
</div>
</div>
<h3>Shipped on time</h3>
<p>Up from 91% last month.</p>
</article>
<article class="dh-bgrid-card">
<div class="dh-bgrid-art">
<div class="dh-bgrid-keys" aria-hidden="true"><kbd>⌘</kbd><kbd>K</kbd></div>
</div>
<h3>A key for everything</h3>
<p>Search, jump and ship without the mouse.</p>
</article>
<article class="dh-bgrid-card">
<div class="dh-bgrid-art dh-bgrid-art--bleed">
<div class="dh-bgrid-dither" aria-hidden="true"></div>
</div>
<h3>In your colour</h3>
<p>Change one value and every part follows.</p>
</article>
</div>
</section>.dh-bgrid {
container-type: inline-size;
padding: 72px 32px;
background: var(--dh-bg, #f7f7f6);
color: var(--dh-fg, #171717);
font-size: 14px;
line-height: 1.5;
}
.dh-bgrid-head {
max-width: 960px;
margin: 0 auto;
}
.dh-bgrid h2 {
margin: 0;
font-size: 36px;
font-weight: 600;
letter-spacing: -0.035em;
}
.dh-bgrid-head p {
margin: 8px 0 0;
color: var(--dh-muted, #5c5c5c);
font-size: 16px;
}
.dh-bgrid-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 12px;
max-width: 960px;
margin: 40px auto 0;
}
.dh-bgrid-card {
grid-column: span 2;
display: flex;
flex-direction: column;
min-height: 268px;
padding: 20px;
overflow: hidden;
border-radius: 16px;
background: var(--dh-raised, #fff);
box-shadow: 0 0 0 1px rgb(23 23 23 / 0.07), 0 1px 2px rgb(23 23 23 / 0.1);
}
.dh-bgrid-card--wide {
grid-column: span 4;
}
.dh-bgrid-card h3 {
margin: 0;
font-size: 15px;
font-weight: 500;
letter-spacing: -0.01em;
}
.dh-bgrid-card p {
margin: 2px 0 0;
color: var(--dh-muted, #5c5c5c);
}
.dh-bgrid-art {
flex: 1;
display: grid;
align-content: center;
margin-bottom: 20px;
}
.dh-bgrid-rows {
margin: 0;
padding: 0;
list-style: none;
}
.dh-bgrid-rows li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 0;
font-size: 13px;
}
.dh-bgrid-rows li + li {
border-top: 0.5px solid var(--dh-edge, #d6d6d2);
}
.dh-bgrid-switch {
flex: none;
display: flex;
align-items: center;
width: 34px;
height: 20px;
padding: 2px;
box-sizing: border-box;
border-radius: 999px;
background: var(--dh-edge, #d6d6d2);
}
.dh-bgrid-switch::before {
content: "";
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.dh-bgrid-switch[data-on] {
justify-content: flex-end;
background: var(--dh-accent, #2563ff);
}
.dh-bgrid-art--figure {
align-content: end;
gap: 14px;
}
.dh-bgrid-art strong {
font-size: 34px;
font-weight: 500;
line-height: 1;
letter-spacing: -0.04em;
font-variant-numeric: tabular-nums;
}
.dh-bgrid-bars {
display: flex;
align-items: flex-end;
gap: 6px;
height: 72px;
}
.dh-bgrid-bars i {
flex: 1;
height: var(--h);
border-radius: 4px;
background: var(--dh-well, #ededeb);
}
.dh-bgrid-bars i:last-child {
background: var(--dh-accent, #2563ff);
}
.dh-bgrid-keys {
display: flex;
justify-content: center;
gap: 8px;
}
.dh-bgrid-keys kbd {
display: grid;
place-items: center;
width: 52px;
height: 52px;
border-radius: 12px;
background: var(--dh-raised, #fff);
color: var(--dh-fg, #171717);
font: 500 20px/1 inherit;
font-family: inherit;
box-shadow: 0 0 0 0.5px var(--dh-edge, #d6d6d2), 0 2px 0 rgb(23 23 23 / 0.1), 0 3px 4px -2px rgb(23 23 23 / 0.2);
}
.dh-bgrid-art--bleed {
align-content: stretch;
margin: -20px -20px 20px;
}
.dh-bgrid-dither {
min-height: 120px;
background: var(--dh-accent, #2563ff);
-webkit-mask-image: linear-gradient(90deg, #000 18%, transparent 62%), radial-gradient(circle, #000 1.5px, transparent 1.9px);
mask-image: linear-gradient(90deg, #000 18%, transparent 62%), radial-gradient(circle, #000 1.5px, transparent 1.9px);
-webkit-mask-size: auto, 6px 6px;
mask-size: auto, 6px 6px;
}
@container (max-width: 760px) {
.dh-bgrid-grid { grid-template-columns: repeat(2, 1fr); }
.dh-bgrid-card { grid-column: span 1; }
.dh-bgrid-card--wide { grid-column: span 2; }
}
@container (max-width: 480px) {
.dh-bgrid { padding: 48px 20px; }
.dh-bgrid h2 { font-size: 28px; }
.dh-bgrid-grid { grid-template-columns: 1fr; margin-top: 32px; }
.dh-bgrid-card, .dh-bgrid-card--wide { grid-column: auto; min-height: 240px; }
}.dh-badge {
display: inline-flex;
align-items: center;
height: 1.7em;
padding: 0 0.65em;
border-radius: 999px;
background: var(--dh-raised, #fff);
color: var(--dh-muted, #5c5c5c);
font-size: 0.88em;
font-weight: 500;
white-space: nowrap;
box-shadow: 0 0 0 1px rgb(23 23 23 / 0.08), 0 1px 2px rgb(23 23 23 / 0.1);
}
.dh-badge--green {
background: #e2f4e6;
color: #1c7a3a;
box-shadow: 0 0 0 1px rgb(28 122 58 / 0.14);
}
.dh-badge--blue {
background: #e6edff;
color: #1d4ed8;
box-shadow: 0 0 0 1px rgb(29 78 216 / 0.14);
}Bento grid is not in the Figma file yet.
Use the React or HTML code for now.
No designs match that search.