Dashboard Template
A complete dashboard with fixed sidebar navigation, top navbar with user menu, and responsive card-based content area. Perfect for admin panels and data-heavy applications.
The dashboard uses inline SVG icons. Replace the SVGs to customize the icons. On narrow screens, the sidebar is hidden and the orders table scrolls inside its card. If your app needs those navigation links on narrow screens, use the Sidebar mobile drawer example.
Template Features
Live Preview
Dashboard Overview
Recent Orders
| Order ID | Customer | Amount | Status |
|---|---|---|---|
| #12345 | John Smith | $129.99 | Completed |
| #12344 | Sarah Johnson | $89.50 | Pending |
| #12343 | Mike Wilson | $299.00 | Processing |
| #12342 | Emma Davis | $45.00 | Completed |
Full Template Code
Copy this complete HTML to use the dashboard template. Simply replace the placeholder content with your own data.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - My App</title>
<link rel="stylesheet" href="path/to/focus-ui.css">
<style>
.dashboard-sidebar { flex-shrink: 0; }
.dashboard-nav-toggle { display: none; }
@media (max-width: 768px) {
.dashboard-nav-toggle { display: inline-flex; }
.dashboard-sidebar:not(.focus-sidebar-open) { visibility: hidden; }
}
</style>
</head>
<body>
<!-- Top Navigation Bar -->
<nav class="focus-navbar focus-navbar-primary focus-navbar-fixed">
<div class="focus-navbar-brand">
<button type="button" class="focus-btn focus-btn-outline focus-text-white dashboard-nav-toggle"
data-focus-sidebar-mobile="dashboard-sidebar" aria-controls="dashboard-sidebar" aria-expanded="false" aria-label="Open dashboard navigation">Menu</button>
<a href="#" class="focus-text-white focus-font-bold">My Dashboard</a>
</div>
<div class="focus-d-flex">
<div class="focus-dropdown">
<button type="button" class="focus-btn focus-btn-outline focus-text-white" data-focus-dropdown>
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-6 5a6 6 0 0 1 12 0M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"></path></svg> John Doe <svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m6 9 6 6 6-6"></path></svg>
</button>
<div class="focus-dropdown-menu focus-dropdown-menu-right">
<a href="#" class="focus-dropdown-item"><svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2m12-14a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"></path></svg> Profile</a>
<a href="#" class="focus-dropdown-item"><svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 6h16M4 12h16M4 18h16M8 3v6m8 0v6m-8 0v6"></path></svg> Settings</a>
<div class="focus-dropdown-divider"></div>
<a href="#" class="focus-dropdown-item focus-text-danger"><svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 4H4v16h6m5-12 4 4-4 4m-7-4h11"></path></svg> Logout</a>
</div>
</div>
</div>
</nav>
<!-- Dashboard Layout -->
<div class="focus-container-fluid" style="margin-top: 60px;">
<div class="focus-d-flex">
<!-- Sidebar -->
<aside class="focus-sidebar dashboard-sidebar" id="dashboard-sidebar">
<nav class="focus-sidebar-nav">
<a href="#" class="focus-sidebar-item focus-sidebar-item-active">
<svg class="focus-sidebar-item-icon" aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m3 10 9-7 9 7v10h-6v-6H9v6H3Z"></path></svg><span>Overview</span>
</a>
<a href="#" class="focus-sidebar-item">
<svg class="focus-sidebar-item-icon" aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 3v18h18M8 17v-5m5 5V8m5 9V5"></path></svg><span>Analytics</span>
</a>
<a href="#" class="focus-sidebar-item">
<svg class="focus-sidebar-item-icon" aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m20 0v-2a4 4 0 0 0-3-4M16 4a4 4 0 0 1 0 8m-3-4a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"></path></svg><span>Users</span>
</a>
<a href="#" class="focus-sidebar-item">
<svg class="focus-sidebar-item-icon" aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 3h3l2 11h12l2-8H6m3 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"></path></svg><span>Orders</span>
</a>
<a href="#" class="focus-sidebar-item">
<svg class="focus-sidebar-item-icon" aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 7l9-4 9 4v10l-9 4-9-4Zm0 0 9 4 9-4m-9 4v10"></path></svg><span>Products</span>
</a>
<a href="#" class="focus-sidebar-item">
<svg class="focus-sidebar-item-icon" aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 6h16M4 12h16M4 18h16M8 3v6m8 0v6m-8 0v6"></path></svg><span>Settings</span>
</a>
</nav>
</aside>
<!-- Main Content -->
<main style="flex: 1; min-width: 0;">
<div class="focus-p-4">
<!-- Page Header -->
<div class="focus-mb-4">
<h1>Dashboard Overview</h1>
<p class="focus-text-secondary">Welcome back! Here's what's happening today.</p>
</div>
<!-- Stats Cards -->
<div class="focus-row">
<div class="focus-col-12 focus-col-sm-6 focus-col-lg-3">
<div class="focus-card focus-mb-4">
<div class="focus-card-body">
<div class="focus-d-sm-flex focus-justify-between focus-align-center">
<div>
<p class="focus-text-secondary focus-text-sm focus-mb-1">Total Users</p>
<h3 class="focus-text-xl focus-font-bold">2,543</h3>
<span class="focus-badge focus-badge-success">+12.5%</span>
</div>
<div class="focus-text-primary" style="font-size: 3rem;">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m20 0v-2a4 4 0 0 0-3-4M16 4a4 4 0 0 1 0 8m-3-4a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"></path></svg>
</div>
</div>
</div>
</div>
</div>
<div class="focus-col-12 focus-col-sm-6 focus-col-lg-3">
<div class="focus-card focus-mb-4">
<div class="focus-card-body">
<div class="focus-d-sm-flex focus-justify-between focus-align-center">
<div>
<p class="focus-text-secondary focus-text-sm focus-mb-1">Revenue</p>
<h3 class="focus-text-xl focus-font-bold">$12.4k</h3>
<span class="focus-badge focus-badge-success">+8.2%</span>
</div>
<div class="focus-text-success" style="font-size: 3rem;">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v20m5-16H9a3 3 0 0 0 0 6h6a3 3 0 0 1 0 6H7"></path></svg>
</div>
</div>
</div>
</div>
</div>
<div class="focus-col-12 focus-col-sm-6 focus-col-lg-3">
<div class="focus-card focus-mb-4">
<div class="focus-card-body">
<div class="focus-d-sm-flex focus-justify-between focus-align-center">
<div>
<p class="focus-text-secondary focus-text-sm focus-mb-1">Orders</p>
<h3 class="focus-text-xl focus-font-bold">432</h3>
<span class="focus-badge focus-badge-warning">-3.1%</span>
</div>
<div class="focus-text-warning" style="font-size: 3rem;">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 3h3l2 11h12l2-8H6m3 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"></path></svg>
</div>
</div>
</div>
</div>
</div>
<div class="focus-col-12 focus-col-sm-6 focus-col-lg-3">
<div class="focus-card focus-mb-4">
<div class="focus-card-body">
<div class="focus-d-sm-flex focus-justify-between focus-align-center">
<div>
<p class="focus-text-secondary focus-text-sm focus-mb-1">Conversion</p>
<h3 class="focus-text-xl focus-font-bold">3.6%</h3>
<span class="focus-badge focus-badge-success">+0.5%</span>
</div>
<div class="focus-text-info" style="font-size: 3rem;">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 3v18h18M7 15l4-4 4 2 5-7"></path></svg>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="focus-row">
<div class="focus-col-12 focus-col-lg-8">
<div class="focus-card focus-mb-4">
<div class="focus-card-header">
<h3 class="focus-card-title" id="recent-orders">Recent Orders</h3>
</div>
<div class="focus-card-body focus-p-0">
<div class="focus-table-responsive" role="region" aria-labelledby="recent-orders" tabindex="0">
<table class="focus-table">
<thead>
<tr>
<th>Order ID</th>
<th>Customer</th>
<th>Amount</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>#12345</td>
<td>John Smith</td>
<td>$129.99</td>
<td><span class="focus-badge focus-badge-success">Completed</span></td>
</tr>
<tr>
<td>#12344</td>
<td>Sarah Johnson</td>
<td>$89.50</td>
<td><span class="focus-badge focus-badge-warning">Pending</span></td>
</tr>
<tr>
<td>#12343</td>
<td>Mike Wilson</td>
<td>$299.00</td>
<td><span class="focus-badge focus-badge-info">Processing</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="focus-col-12 focus-col-lg-4">
<div class="focus-card focus-mb-4">
<div class="focus-card-header">
<h3 class="focus-card-title">Quick Actions</h3>
</div>
<div class="focus-card-body">
<button class="focus-btn focus-btn-primary focus-w-100 focus-mb-2">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg> New Order
</button>
<button class="focus-btn focus-btn-secondary focus-w-100 focus-mb-2">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2m10-14a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm6 2v8m-4-4h8"></path></svg> Add User
</button>
<button class="focus-btn focus-btn-secondary focus-w-100">
<svg aria-hidden="true" focusable="false" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5"></path></svg> Export Report
</button>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script src="path/to/focus-ui.js"></script>
</body>
</html>
Customization Tips
Colors
Change color classes like .focus-badge-success, .focus-text-primary to match your brand.
Grid Layout
Adjust grid columns (e.g., focus-col-md-3 to focus-col-md-4) for different layouts.
Components
Add or remove components like cards, tables, or progress bars as needed.
Responsive
Modify sidebar width or convert to collapsible mobile menu for better mobile experience.