StealThis .dev

Bento UI

Grid-based bento box layouts with asymmetric cards, rounded corners, and clean modular sections — inspired by Apple's product pages.

Open in Lab
html css javascript
Targets: JS HTML

Code

Bento UI

Bento UI takes its name from the Japanese bento box — a compartmentalized container where each section has a clear purpose and proportion. In web design, this translates to asymmetric grid layouts where cards of varying sizes sit together in a harmonious, visually balanced arrangement.

The hallmark of Bento UI is the use of CSS Grid with grid-template-columns and grid-template-rows to create cards that span different numbers of columns and rows. Large feature cards sit beside smaller stat tiles and medium info panels, creating visual hierarchy without relying on typography alone. Generous border-radius (typically 20–28px) and subtle shadows give each tile a soft, tactile quality.

Color palettes are restrained — usually a dark or near-black background with cards in slightly elevated tones (rgba(255,255,255,0.05) to 0.08), accented with a single vibrant color for CTAs and highlights. This approach lets the layout itself be the star.

Key characteristics

  • Asymmetric CSS Grid with cards spanning 1–3 columns and 1–2 rows
  • Large border-radius (20–28px) for soft, rounded containers
  • Dark background with subtle card elevation differences
  • Accent color used sparingly for highlights and interactive elements
  • Clean typography with strong hierarchy (size contrast)
  • Hover effects that subtly lift or highlight individual tiles

When to use it

Bento UI is perfect for dashboards, feature showcases, product landing pages, portfolio overviews, and settings panels. It works best when you have multiple distinct pieces of content to display simultaneously with clear visual hierarchy.