Section

KPI Cards — Bento Grid

Bento Grid stats layout: 4 kpi cards.

  • Section
  • Tailwind
  • HTML
  • MIT

Preview

Live section

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/sections/stats/bento-grid/
fluid · no fixed width 100%
Dependencies: Tailwind CSS (CDN) · Google Fonts Responsive · Light/dark

Install

Add to your project

terminal
npx devsnips add Tailwind/Sections/Stats/bento-grid
registry path: Tailwind/Sections/Stats/bento-grid

Source

Implementation

code.html
<!--
Snippet Name: KPI Cards — Bento Grid
Description: Bento Grid stats layout: 4 kpi cards.
Author: DevSnips Contributors
Usage Example: Drop this snippet into any Tailwind CSS page.
-->

<style>
  /* DevSnips style-helper classes (self-contained snippet) */
  .f-sans{font-family:'Inter',sans-serif}.f-mono{font-family:'JetBrains Mono',monospace}.f-disp{font-family:'Inter',sans-serif}
      .bento{background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(236,72,153,.08))}
</style>
<section class="relative w-full py-20 sm:py-28 text-white" data-section="bento-grid">
<div class="mx-auto max-w-7xl px-5 sm:px-6 lg:px-8">
<div class="mb-10 text-center mx-auto"><p class="mb-4"><span class="inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/5 px-3 py-1 f-mono text-[11px] font-medium text-white/70"><svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M22 7 13.5 15.5 8.5 10.5 2 17"/><path d="M16 7h6v6"/></svg> Stats</span></p><h2 class="f-disp text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight text-center mx-auto">Numbers that matter</h2><p class="mt-4 max-w-2xl text-center mx-auto text-base sm:text-lg leading-relaxed text-white/55">Real performance, measured every single day.</p></div><div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4"><div class="bg-white/[0.04] border border-white/10 rounded-3xl transition-transform duration-300 hover:-translate-y-1 p-6"><div class="flex items-center justify-between"><span class="flex h-10 w-10 items-center justify-center bg-white/[0.03] border border-white/10 rounded-2xl"><svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect width="20" height="14" x="2" y="5" rx="2"/><path d="M2 10h20"/></svg></span><span class="f-mono text-xs text-white/55">+18</span></div><p class="mt-4 f-disp text-3xl sm:text-4xl font-bold">$4.2M</p><p class="mt-1 text-sm text-white/55">Annual revenue</p></div><div class="bg-white/[0.04] border border-white/10 rounded-3xl transition-transform duration-300 hover:-translate-y-1 p-6"><div class="flex items-center justify-between"><span class="flex h-10 w-10 items-center justify-center bg-white/[0.03] border border-white/10 rounded-2xl"><svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/></svg></span><span class="f-mono text-xs text-white/55">+32</span></div><p class="mt-4 f-disp text-3xl sm:text-4xl font-bold">128k</p><p class="mt-1 text-sm text-white/55">Active users</p></div><div class="bg-white/[0.04] border border-white/10 rounded-3xl transition-transform duration-300 hover:-translate-y-1 p-6"><div class="flex items-center justify-between"><span class="flex h-10 w-10 items-center justify-center bg-white/[0.03] border border-white/10 rounded-2xl"><svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></span><span class="f-mono text-xs text-white/55">+0.1</span></div><p class="mt-4 f-disp text-3xl sm:text-4xl font-bold">99.9%</p><p class="mt-1 text-sm text-white/55">Uptime SLA</p></div><div class="bg-white/[0.04] border border-white/10 rounded-3xl transition-transform duration-300 hover:-translate-y-1 p-6"><div class="flex items-center justify-between"><span class="flex h-10 w-10 items-center justify-center bg-white/[0.03] border border-white/10 rounded-2xl"><svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg></span><span class="f-mono text-xs text-white/55">+12</span></div><p class="mt-4 f-disp text-3xl sm:text-4xl font-bold">1m 42s</p><p class="mt-1 text-sm text-white/55">Median reply</p></div></div>
</div>
</section>
17 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This section is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://sections/stats/bento-grid

Continue browsing

View all