CSS Bento Feature Grid

A landing page feature section in bento style: one dark hero tile, two stat tiles and a wide banner.

  • bento
  • landing page
  • features
  • cards
  • saas
HTML
<section class="bento-features">
  <article class="bento-features-main">
    <h3>Ship faster</h3>
    <p>Everything you need to launch, in one place.</p>
  </article>
  <article>
    <h3>99.99%</h3>
    <p>Uptime</p>
  </article>
  <article>
    <h3>40+</h3>
    <p>Integrations</p>
  </article>
  <article class="bento-features-wide">
    <h3>Built for teams</h3>
    <p>Roles, comments and shared libraries.</p>
  </article>
</section>
CSS
.bento-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font: 14px/1.4 system-ui, sans-serif;
}

.bento-features article {
  padding: 20px;
  border-radius: 18px;
  background: #f4f4f5;
  color: #18181b;
}

.bento-features h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.bento-features p {
  margin: 0;
  color: #52525b;
}

.bento-features .bento-features-main {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #18181b;
  color: #fafafa;
}

.bento-features .bento-features-main p {
  color: #a1a1aa;
}

.bento-features .bento-features-wide {
  grid-column: 1 / -1;
  background: #d9f99d;
}

@media (max-width: 560px) {
  .bento-features {
    grid-template-columns: 1fr 1fr;
  }

  .bento-features .bento-features-main {
    grid-row: auto;
  }
}

About this CSS Bento Feature Grid

This CSS Bento Feature Grid is 52 lines of pure CSS (0.8 KB) with no JavaScript and no dependencies. It uses CSS Grid and Flexbox. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #f4f4f5
  • #18181b
  • #52525b
  • #fafafa
  • #a1a1aa
  • #d9f99d

How to use this bento feature grid

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .bento-features class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback