Back
DashboardLayout
View All Styles
Layout System

Dashboard
Layout

Data-driven layout for SaaS admin panels and analytics platforms. Dark sidebar, crisp topbar, KPI grid, charts, and data tables — all snapping into place with precision micro-interactions.

Sidebar
w-64 bg-gray-900
Topbar
bg-white border-b
Content
flex-1 bg-gray-50
Live Demo

Working dashboard mockup

Full interactive dashboard with dark sidebar, KPI cards, bar chart, and data table. Toggle viewport to see responsive behavior.

app.dashboard.io/overview
DataPanel
AC
Alice Chen
Admin

Overview

Feb 21, 2026
AC
Revenue
$48,230
+12.5%
Orders
1,842
+8.1%
Customers
12,420
-2.3%
Conversion
3.64%
+0.3%

Revenue Trend

Last 7 months
Aug
Sep
Oct
Nov
Dec
Jan
Feb

Traffic Sources

Organic
40%
Referral
26%
Direct
17%

Recent Orders

OrderCustomerAmountStatus
#4821Alice Chen$299Paid
#4820Marcus Webb$899Paid
#4819Priya Sharma$49Pending
#4818Tom Nakamura$299Failed
#4817Sara Liu$899Paid

Desktop: sidebar w-64 + 4-col KPI grid + chart split (2:1) + full table

Anatomy

Layout zones

Three zones working in concert. Each zone has a clear role and a defined Tailwind class pattern.

Sidebar

bg-gray-900 w-64

Primary navigation, branding, user identity. Dark and persistent — always visible on desktop.

bg-gray-900
w-64
text-white
flex-shrink-0

Topbar

bg-white border-b

Contextual actions: search, notifications, user avatar. Sticky at the top of the content column.

bg-white
border-b border-gray-200
px-6 py-3
flex items-center

Content

flex-1 bg-gray-50

KPI cards, charts, tables, and page-specific data. Scrolls independently of the sidebar.

flex-1
bg-gray-50
p-6
overflow-auto

Responsive Breakpoints

BreakpointSidebarKPI GridCharts
xl (1280px+)w-64 visiblegrid-cols-42fr 1fr split
lg (1024px)w-56 visiblegrid-cols-42fr 1fr split
md (768px)w-48 compactgrid-cols-2single column
sm (375px)hiddengrid-cols-2hidden / tab
Components

Component gallery

All interactive. Hover to see micro-interactions. Each component enforces the 150ms crisp SaaS feel from the aiRules.

KPI Card — group-hover float + number scale + color shift

Revenue
$48,230
+12.5%vs last month
Orders
1,842
+8.1%vs last month
Customers
12,420
-2.3%vs last month
Conversion
3.64%
+0.3%vs last month

group-hover:scale-[1.05] group-hover:text-indigo-600 — KPI Focus rule
hover:bg-gray-50 hover:shadow-md hover:-translate-y-0.5 — Hover Hinting rule
transition-all duration-150 ease-out — Crisp SaaS Feel rule

Interaction Rules

Animation principles

Four named rules from the aiRules spec — each demonstrated with a live interactive element. Hover and click to feel the SaaS precision.

Crisp SaaS Feel

All micro-interactions use duration-150 ease-out — fast and precise. No sluggishness, no spring overshoot.

duration-150 ease-out everywhere

Click any button — notice the instant, precise response.

KPI Focus

KPI card hover causes slight upward float + core number grows via group-hover:scale-105 group-hover:text-indigo-600

hover:-translate-y-0.5 + group-hover:scale-[1.05]

Monthly Revenue+12.5%
$48,230

vs. $42,890 last month

Hover the card — number scales and turns indigo.

Hover Hinting

Data rows, panels, and actionable cards get explicit bg on hover: hover:bg-gray-50

hover:bg-gray-50 on every interactive row

Dashboard OverviewActive
Revenue AnalyticsBeta
User Management
Export ReportsNew

Hover any row — gray-50 signals interactivity.

Action Precision

Button click has clear press feedback: active:scale-[0.97] + visible focus ring for a11y.

active:scale-[0.97] + focus:ring-2

Click — immediate press feedback. Tab to focus — visible ring.

Design Rules

Do & Don't

The rules that separate a professional SaaS dashboard from a cluttered mess. Distilled from the style definition.

Do

  • bg-gray-900 w-64 for the dark sidebar — always
  • bg-white/10 for the active nav item
  • grid grid-cols-4 for KPI cards on desktop
  • Large font-bold numbers for KPI values
  • text-green-500 for growth, text-red-500 for decline
  • aspect-video or aspect-[2/1] for main chart
  • col-span-2 for main chart, single for supplementary
  • duration-150 ease-out on all interactive elements
  • active:scale-[0.97] on every button for press feedback
  • hover:bg-gray-50 on all data rows and panels

Don't

  • Sidebar and content area with mismatched proportions
  • Inconsistent padding between data panels
  • Skip loading and empty states in data panels
  • Make all KPI cards the same visual size
  • Use decorative elements that compete with data
  • Slow transitions — keep them under 200ms
  • Buttons without active:scale or visible focus ring
  • Plain gray for status — always use semantic colors
  • Dense grids with no visual hierarchy or whitespace
  • Expose raw API or DB values without formatting

Color System Reference

#111827
Primary
Sidebar / Text
#6366f1
Accent
Indigo — CTA
#10b981
Success
Growth / Up
#f59e0b
Warning
Neutral / Stable
#ef4444
Error
Decline / Down
DashboardLayout

Data-driven SaaS layout system. Dark sidebar, crisp topbar, KPI cards, charts, and tables — precision micro-interactions throughout.

StyleDocumentationShowcaseCover
StyleKitHomeAll Styles
CompatibleCorporate CleanDark ModeMinimalist FlatFluent Design
Dashboard Layout — StyleKit Design System
Back to StyleKit