Modern SaaS dashboard with data visualization
A SaaS analytics dashboard for small online shops, with sales charts, top products and a date range filter
Layout Structure
- Desktop shell: fixed left sidebar (240 px) with logo, dashboard, orders, products, reports and settings; main content area holds the page header with title, date range filter and a 12-column data grid below.
- Dashboard screen order: header row (greeting, date range picker, export button), four KPI cards (revenue, orders, average order value, conversion), a large sales line chart spanning 8 columns, a sales-by-channel breakdown in 4 columns, then a top products table (6 columns) beside an inventory alerts card (6 columns).
- Products and orders screens use a filter bar, a dense table with sticky header and a detail drawer that slides in from the right over a dimmed backdrop.
- Navigation pattern: sidebar on desktop collapses to a top bar plus bottom tab bar on phone; a global search field and account menu sit in the top right of the content header.
Color Palette
- Background (Mist Grey) #F7F8FA: page background behind all content areas.
- Surface (Pure White) #FFFFFF: cards, sidebar, tables, drawers and modals.
- Primary (Deep Teal) #0F766E: primary buttons, links, active nav item, chart series one and focus rings.
- Accent (Amber Pop) #F59E0B: highlighted chart series, badges for low stock and small emphasis marks; never for body text.
- Text Primary (Ink Navy) #1F2937: all headings and body copy on white and mist surfaces.
- Text Secondary (Slate Grey) #6B7280: captions, table meta and placeholder text on white.
- Error (Signal Red) #DC2626: error states, declining chart areas and destructive actions; Success (Leaf Green) #15803D for growth indicators and confirmations.
Typography
- Inter (Google Fonts) with fallback to system-ui, Helvetica Neue, Arial, sans-serif; weights 400, 500, 600 and 700.
- H1: 28 px / 36 px, weight 700; H2: 20 px / 28 px, weight 600; H3: 16 px / 24 px, weight 600.
- Body: 14 px / 20 px, weight 400; table and UI labels: 14 px / 20 px, weight 500.
- Small text and captions: 12 px / 16 px, weight 400, used for timestamps, table meta and helper text.
- Tabular figures enabled for all numeric table and chart values.
Spacing and Grid
- Base unit 8 px; scale 4, 8, 12, 16, 24, 32, 48, 64 px; card padding 24 px, card gaps 16 px, section spacing 32 px.
- 12-column grid, 24 px gutters, 32 px page margins on desktop; 4 columns with 16 px gutters on tablet, 1 column stacked on phone.
- Corner radius: 8 px on cards and inputs, 999 px on pills and avatars; buttons 8 px.
- Shadows: elevation 1 (0 1px 3px rgba 16,24,40,0.10) for cards, elevation 3 (0 4px 12px rgba 16,24,40,0.15) for drawers and modals.
Components
- Buttons: height 36 px, padding 16 px horizontal, 8 px radius; primary (Deep Teal), secondary (white with 1 px Ink Navy border) and ghost variants; hover darkens 10 percent, focus shows 2 px offset teal ring, disabled at 40 percent opacity.
- Date range filter: segmented pills (7 d, 30 d, 90 d) plus a calendar popover; popover 320 px wide, selected range shaded teal at 10 percent, focus ring on every control.
- KPI and chart cards: white surface, 8 px radius, 24 px padding, title in H3, delta badge in success or error colour; line and bar charts with 2 px strokes and labelled axes.
- Data table: 48 px row height, sticky header with Slate Grey 12 px uppercase labels, hover row tint #F7F8FA, sortable columns with arrow icons, pagination bar 64 px tall; empty and loading skeletons included.
- Sidebar navigation: 40 px tall items, active item teal text plus 4 px left indicator, hover surface tint #F0FDF4 tone neutralised to #F3F4F6.
Platform Guidelines
- Web application, desktop first; breakpoints: 1440 px and above full grid, 1024 to 1439 px sidebar collapses to icons, 768 to 1023 px two-column cards and horizontal table scroll, below 768 px single column, top nav plus bottom tab bar.
- Dense data views keep tables scrollable horizontally on small screens rather than hiding columns; charts swap to simplified mobile variants below 768 px.
- Keyboard use: visible focus on all controls, Enter opens the date picker, arrow keys move calendar days and table sort focus, Escape closes drawer and popover, Cmd/Ctrl+K opens global search.
- Support current Chrome, Firefox, Safari and Edge; minimum supported viewport 360 px wide.
Accessibility
- WCAG 2.2 AA: text contrast at least 4.5:1 (Ink Navy on white 14.6:1, Slate Grey on white 4.8:1, white on Deep Teal 5.1:1); never use Amber or Light tints for text.
- Minimum body text 14 px, small text 12 px only for non-essential meta; all interactive targets at least 24 by 24 px, ideally 44 px on touch layouts.
- Visible 2 px teal focus ring with 2 px offset on every focusable element, never removed; focus moves logically into drawers and popovers and returns on close.
- Charts get text alternatives, data table fallbacks and colour-independent patterns for series; respect prefers-reduced-motion by disabling chart animations and drawer transitions; all inputs have programmatic labels and aria-live updates for filter results.
User Flow
- Shop owner logs in and lands on the dashboard with the default last-30-days date range applied.
- Scans the four KPI cards to check revenue, orders, average order value and conversion at a glance.
- Reviews the sales line chart and channel breakdown to spot trends or drops.
- Opens the date range filter to compare a custom period, and charts and tables update live.
- Opens the top products table, sorts by revenue and taps a row to see the product detail drawer.
- Exports the filtered report as CSV from the header button.

