Build a modern e-commerce admin dashboard UI for a platform called Shopall, focused on analytics and sales management. This dashboard should closely match a clean, premium SaaS layout with a left sidebar, top utility bar, KPI cards, charts, and a data table.
Visual success means a white, spacious interface with soft borders, rounded cards, purple accent branding, and a highly readable analytics-first layout.
2. Design System
Color Palette
•Primary:
#5B5AF7 (brand purple)
•Secondary:
#7C7AF9
•Background:
#F8F9FC
•Surface / Card:
#FFFFFF
•Text Primary: #111827
•Text Muted:
#6B7280
•Border:
#E5E7EB
•Accent Success:
#22C55E
•Accent Warning:
#F59E0B
•Accent Error:
#EF4444
Typography
•Font Family: Plus Jakarta Sans (fallback: Inter, sans-serif)
•H1: 28px / 700
•H2: 22px / 600
•H3: 18px / 600
•Body: 14–15px / 400–500
•Caption / Meta: 12px / 400
Spacing & Layout
•App layout: Sidebar (260px fixed) main content
•Max content width: 1200px
•Card padding: 20–24px
•Section spacing: 24–32px
•Grid: 12-column system
•Breakpoints: Mobile <640px, Tablet <1024px, Desktop ≥1280px
Borders & Radius
•Border: 1px solid
#E5E7EB
•Card radius: 12px
•Buttons / inputs: 10px
Shadows & Effects
•Cards: subtle shadow 0 4px 12px rgba(0,0,0,0.04)
•Hover: slight translateY(-1px) shadow increase
•Focus: purple ring using primary color at 30% opacity
⸻
3. Page Structure
1.Sidebar Navigation
•Logo at top (“Shopall”)
•Store selector dropdown (“Capstore”)
•Navigation groups: General, Tools, Profile
•Icons text, active item highlighted with purple background
•Footer user profile with avatar and email
2.Top Bar
•Breadcrumb: “Pages / Dashboard”
•Global search input centered/right
•Icons: notifications, settings, avatar menu
3.Upgrade Banner
•Full-width purple gradient banner
•Text: “Upgrade to Pro for unlimited analytics & real-time insights”
•Right-aligned “Upgrade Now” button
4.Overview KPI Cards
•4 cards in a grid
•Metrics: Revenue, Total Sales, Total Orders, Profit
•Each card includes icon, value, and percentage change indicator
5.Charts Section
•Left: Bar chart card (Total Sales over dates)
•Right: Line chart card (Total Revenue)
•Date filter dropdown (“Last 30 days”)
6.Last Sales Table
•Tabs: All tasks, Completed, In Progress, Pending Approval, Cancelled
•Data table with columns:
•Client Name, Date, Price, Category, Product, City, Status, Actions
•Status shown as colored badges
•Pagination controls bottom-right
⸻
4. Component Specs (shadcn/ui)
•Button
•Variants: default (primary), outline, ghost
•Sizes: sm, default
•Card
•Used for KPI cards, charts, and table container
•Badge
•Status variants: success, warning, info, destructive
•Tabs
•Used above the sales table
•Table
•With checkbox column, hover rows, actions menu
•DropdownMenu
•Filters, date selectors, row actions
•Input
•Search bar
•Avatar
•User profile and table client avatars
•Separator
•Sidebar section dividers
Ensure KPI cards and table rows are reusable components with consistent spacing and typography.
⸻
6. Images and Icons
•Use Lucide icons for all UI icons (home, chart, cart, user, settings)
•Avatars: realistic Unsplash headshots
•Charts: rendered via a chart library (Recharts or similar)
⸻
8. Implementation Notes
•Mobile-first responsive approach
•Sidebar collapses on small screens
•Ensure color contrast meets accessibility standards
•All inputs and buttons must have visible focus states
•Use realistic dummy data for metrics, names, products, and cities
•Do not leave empty placeholders or lorem ipsum text