Bootstrap 5 Responsive Admin Layout with Sidebar and Tabs
An admin screen with an indigo sidebar, top bar and greeting header, plus switchable Knowledge, Activity and Friends tabs.
<section class="wdw-stage">
<div class="container" style="max-width:1100px">
<div class="adm wdw-card overflow-hidden d-md-flex">
<aside class="adm-side wdw-aurora d-flex flex-md-column p-3 gap-md-4 align-items-center align-items-md-stretch">
<div class="d-flex align-items-center gap-3 px-md-2 py-md-2">
<img class="rounded-circle" src="https://i.pravatar.cc/96?img=12" width="44" height="44" alt="Jesse Couch">
<div class="d-none d-md-block lh-sm"><div class="fw-bold">Jesse Couch</div><small class="text-white-50">Product lead</small></div>
</div>
<nav class="nav flex-md-column gap-1 ms-auto ms-md-0" aria-label="Admin">
<a class="nav-link adm-link active" href="#" aria-current="page" aria-label="Dashboard"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7" height="9" rx="1.5"/><rect x="14" y="3" width="7" height="5" rx="1.5"/><rect x="14" y="12" width="7" height="9" rx="1.5"/><rect x="3" y="16" width="7" height="5" rx="1.5"/></svg><span class="d-none d-md-inline">Dashboard</span></a>
<a class="nav-link adm-link" href="#" aria-label="Tasks"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 11 3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/></svg><span class="d-none d-md-inline">Tasks</span></a>
<a class="nav-link adm-link" href="#" aria-label="Contacts"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg><span class="d-none d-md-inline">Contacts</span></a>
<a class="nav-link adm-link" href="#" aria-label="Calendar"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg><span class="d-none d-md-inline">Calendar</span></a>
<a class="nav-link adm-link" href="#" aria-label="FAQs"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01"/></svg><span class="d-none d-md-inline">FAQs</span></a>
</nav>
</aside>
<div class="flex-grow-1 min-w-0 d-flex flex-column">
<header class="d-flex align-items-center justify-content-between gap-3 px-4 py-3 border-bottom">
<div class="d-flex align-items-center gap-2">
<span class="wdw-icon" style="width:2.25rem;height:2.25rem"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 4h16v16H4z"/><path d="M9 4v16"/></svg></span>
<span class="fw-bold">Overview</span>
</div>
<div class="d-flex align-items-center gap-1">
<button type="button" class="btn btn-sm bg-body-tertiary text-body rounded-pill position-relative border-0" aria-label="Inbox, 3 new"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6z"/></svg><span class="position-absolute top-0 end-0 translate-middle p-1 bg-warning rounded-circle" style="margin:6px 4px 0 0"></span></button>
<button type="button" class="btn btn-sm bg-body-tertiary text-body rounded-pill border-0" aria-label="Search"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg></button>
</div>
</header>
<div class="px-4 pt-4">
<p class="wdw-eyebrow mb-1">Workspace</p>
<h1 class="h3 wdw-heading mb-4">Good morning, Jesse</h1>
<ul class="nav nav-underline adm-tabs" role="tablist">
<li class="nav-item" role="presentation"><button class="nav-link active" id="t-k" data-bs-toggle="tab" data-bs-target="#p-k" type="button" role="tab" aria-controls="p-k" aria-selected="true">Knowledge</button></li>
<li class="nav-item" role="presentation"><button class="nav-link" id="t-a" data-bs-toggle="tab" data-bs-target="#p-a" type="button" role="tab" aria-controls="p-a" aria-selected="false">Activity</button></li>
<li class="nav-item" role="presentation"><button class="nav-link" id="t-f" data-bs-toggle="tab" data-bs-target="#p-f" type="button" role="tab" aria-controls="p-f" aria-selected="false">Friends</button></li>
</ul>
</div>
<div class="tab-content bg-body-tertiary p-4 adm-panes flex-grow-1">
<div class="tab-pane fade show active" id="p-k" role="tabpanel" aria-labelledby="t-k" tabindex="0">
<h2 class="h6 fw-bold">Launch checklist</h2>
<p class="text-body-secondary">Everything the team needs before the spring release: design tokens, release notes and the support playbook. Pinned articles are updated every Friday.</p>
<p class="text-body-secondary mb-0">Start with the onboarding guide, then jump to the API changelog for breaking changes.</p>
</div>
<div class="tab-pane fade" id="p-a" role="tabpanel" aria-labelledby="t-a" tabindex="0">
<ul class="list-unstyled mb-0 d-grid gap-3">
<li class="d-flex gap-3"><span class="wdw-icon rounded-circle">A</span><div><strong>Ana</strong> closed 4 tasks in <em>Billing</em><div class="small text-body-secondary">12 minutes ago</div></div></li>
<li class="d-flex gap-3"><span class="wdw-icon rounded-circle">M</span><div><strong>Marcus</strong> commented on <em>Onboarding v2</em><div class="small text-body-secondary">1 hour ago</div></div></li>
</ul>
</div>
<div class="tab-pane fade" id="p-f" role="tabpanel" aria-labelledby="t-f" tabindex="0">
<div class="d-flex gap-3 flex-wrap">
<div class="d-flex align-items-center gap-2"><img class="rounded-circle" src="https://i.pravatar.cc/80?img=32" width="40" height="40" alt="Ana Ruiz"><span class="fw-semibold">Ana Ruiz</span></div>
<div class="d-flex align-items-center gap-2"><img class="rounded-circle" src="https://i.pravatar.cc/80?img=15" width="40" height="40" alt="Marcus Hale"><span class="fw-semibold">Marcus Hale</span></div>
<div class="d-flex align-items-center gap-2"><img class="rounded-circle" src="https://i.pravatar.cc/80?img=47" width="40" height="40" alt="Priya Nair"><span class="fw-semibold">Priya Nair</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
/* Web Designer Wall library style — shared base for every Bootstrap 5 snippet.
Indigo accent, Plus Jakarta Sans, soft cards, pill buttons. Works in light and dark. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root,
[data-bs-theme="light"] {
--wdw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--bs-body-font-family: var(--wdw-font);
--bs-primary: #4f46e5;
--bs-primary-rgb: 79, 70, 229;
--bs-primary-text-emphasis: #3730a3;
--bs-primary-bg-subtle: #eef2ff;
--bs-primary-border-subtle: #c7d2fe;
--bs-link-color: #4f46e5;
--bs-link-color-rgb: 79, 70, 229;
--bs-link-hover-color: #4338ca;
--bs-link-hover-color-rgb: 67, 56, 202;
--bs-focus-ring-color: rgba(79, 70, 229, 0.25);
--bs-border-radius: 0.75rem;
--bs-border-radius-lg: 1rem;
--bs-border-radius-xl: 1.25rem;
--wdw-radius-card: 1.25rem;
--wdw-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.22);
--wdw-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.12);
--wdw-stage: #f5f6fb;
}
[data-bs-theme="dark"] {
--bs-primary: #818cf8;
--bs-primary-rgb: 129, 140, 248;
--bs-primary-text-emphasis: #c7d2fe;
--bs-primary-bg-subtle: rgba(129, 140, 248, 0.14);
--bs-primary-border-subtle: rgba(129, 140, 248, 0.35);
--bs-link-color: #a5b4fc;
--bs-link-color-rgb: 165, 180, 252;
--bs-link-hover-color: #c7d2fe;
--bs-link-hover-color-rgb: 199, 210, 254;
--bs-focus-ring-color: rgba(129, 140, 248, 0.35);
--wdw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
--wdw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
--wdw-stage: #0f1117;
}
body { font-family: var(--wdw-font); -webkit-font-smoothing: antialiased; }
/* Bootstrap compiles its blue into these components; point them at the accent. */
.btn-primary {
--bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
--bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
--bs-btn-disabled-bg: var(--bs-primary); --bs-btn-disabled-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0f1117; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; --bs-btn-hover-color: #0f1117; --bs-btn-active-color: #0f1117; }
.btn-outline-primary {
--bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
--bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn { --bs-btn-font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-sm { min-height: 36px; }
.form-control, .form-select { min-height: 44px; border-radius: .75rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--bs-primary-rgb), .6); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }
.nav { --bs-nav-link-color: var(--bs-secondary-color); --bs-nav-link-hover-color: var(--bs-emphasis-color); }
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-color: var(--bs-body-color); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--bs-primary); }
.list-group { --bs-list-group-active-bg: var(--bs-primary); --bs-list-group-active-border-color: var(--bs-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--bs-primary); border-radius: .875rem; box-shadow: var(--wdw-shadow-sm); }
.accordion { --bs-accordion-active-bg: var(--bs-primary-bg-subtle); --bs-accordion-active-color: var(--bs-primary-text-emphasis); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.badge { font-weight: 600; }
/* Library building blocks — use these instead of re-inventing them per snippet. */
.wdw-stage { min-height: 100vh; display: flex; align-items: center; background: var(--wdw-stage); padding-block: 3rem; }
.wdw-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--wdw-radius-card); box-shadow: var(--wdw-shadow); }
.wdw-card-sm { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; box-shadow: var(--wdw-shadow-sm); }
.wdw-aurora { position: relative; color: #fff; background: radial-gradient(60% 55% at 100% 0, #818cf8 0, transparent 70%), radial-gradient(65% 60% at 0 100%, #ec4899 0, transparent 65%), #1e1b4b; }
.wdw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-primary); }
.wdw-heading { font-weight: 800; letter-spacing: -.02em; color: var(--bs-emphasis-color); }
.wdw-muted { color: var(--bs-secondary-color); }
.wdw-icon { width: 2.75rem; height: 2.75rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .875rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
/* Component */
.adm { min-height: 560px; }
.adm-side { flex: none; }
@media (min-width: 768px) { .adm-side { width: 220px; } }
.adm-link { color: rgba(255,255,255,.75); display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: .75rem; min-height: 44px; font-weight: 600; font-size: .9rem; }
.adm-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.adm-link.active { color: #fff; background: rgba(255,255,255,.18); }
.adm-link:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.adm-tabs { --bs-nav-underline-link-active-color: var(--bs-primary); --bs-nav-underline-border-width: .15rem; --bs-nav-underline-gap: 1.5rem; }
.adm-tabs .nav-link { font-weight: 600; min-height: 44px; }
.adm-tabs .nav-link.active { border-bottom-color: var(--bs-primary); }
.adm-panes { min-height: 220px; }
.min-w-0 { min-width: 0; }
Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.