
These eight sidebar sets cover application navigation, compact icon rails, nested sections and documentation. Choose a layout that fits the number of destinations and the screen size, then open the exact framework source.
Preview the demos without an email. Confirm your email for a complete ZIP; newsletter signup is optional. Individual snippet code remains open on the linked code pages.
Quick picks by use case
- Mobile navigation that opens over the page
- Grouped application sections
- A documentation outline with section tracking
Test the chosen pattern at a narrow width and with the keyboard. For overlays, verify Escape and focus return. For dropdowns and nested sections, use named controls and visible expanded states. Keep the current destination clear and avoid making essential navigation depend only on hover.
The sets
1. Classic App Sidebars

Three everyday app sidebars: section headings with an accent bar, a tinted rail with a filled pill and project colours, and a compact finance sidebar with dividers and balances.
Use them as the starting point for an admin or dashboard. The current page is styled from aria-current and the footer links are pinned to the bottom with margin-top:auto.
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
2. Collapsible Icon Rail Sidebars

A sidebar that collapses to a 72px icon rail with tooltips, a Material-style labelled rail with a compose button, and a dark rail that widens on hover or focus.
Reach for these when content needs the width. The collapse button uses a short script and aria-pressed; the other two rails are pure CSS.
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
3. Nested Sidebar Menus

Multi-level menus built on native details: a three-level admin accordion, a monospace file tree, and a settings accordion where only one section opens at a time.
They need no JavaScript, because the browser opens, closes and announces each group, and the parent of the current page is highlighted with :has().
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
4. Off-Canvas Sidebars

A dashboard sidebar that sits in the layout from 992px and turns into a slide-in drawer below it, and a phone app whose menu is a drawer at every width.
The Bootstrap version uses .offcanvas-lg and .offcanvas; the plain CSS and Tailwind versions use the popover attribute, so Esc and outside clicks close them without a script.
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
5. Profile & Search Sidebars

A workspace sidebar with a switcher, search, favourites, a storage meter and the signed-in user, and a profile sidebar with a cover, status, stats and footer actions.
Use them for team tools and profile-centred apps. Search fields have real labels, the meter exposes its value, and the icon-only Log out button is named.
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
6. Docs Sidebars with Scroll-Spy

A docs layout with section navigation and an On this page list that follows the scroll, and a tutorial sidebar whose numbered steps fill in as you read.
Bootstrap uses its ScrollSpy plugin; the other versions use a short script that moves aria-current, and finished steps turn green through :has().
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
7. Dark Sidebars

Three dark sidebars: a glowing accent with environment status, an app rail beside a project panel, and a floating dark card inside a light page.
Muted text is tuned to 4.5:1 on near-black, status is written out as well as coloured, and focus rings use a bright accent that stays visible.
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
8. Modern CSS Sidebars

A sidebar that collapses through :has() and compacts itself with a container query, and a modal dialog drawer opened with invoker commands and animated with @starting-style.
Both do in CSS and HTML what usually takes JavaScript. They work in current Chrome, Safari and Firefox, and a small script covers browsers without invoker commands.
Live Demo CSS, Bootstrap & Tailwind code · CSS, Bootstrap and Tailwind code
Frequently asked questions
Are these sidebars free to use?
Yes. All eight sets are free for personal and commercial projects, including client work and products you sell. Attribution is optional but always welcome. The full terms are on the uiCookies licence page.
Do the sidebars need JavaScript?
Most do not. Links, nested menus, the hover rail, the off-canvas drawer in plain CSS and Tailwind, and the modern set are HTML and CSS only. The collapse button in set 2 and the scroll-spy in set 6 use a few lines of vanilla JavaScript, and the Bootstrap versions of sets 4, 5 and 6 load the Bootstrap bundle for Offcanvas, Dropdown and ScrollSpy.
Are the sidebars accessible?
Each sidebar is a nav landmark with a label, the current page is marked with aria-current, icon-only controls have accessible names, and every link and button shows a visible focus outline. All sets pass an axe-core WCAG 2.1 AA check, and animations switch off when the reader prefers reduced motion.
Which frameworks are covered?
Every set comes as plain CSS with no dependencies, as Bootstrap 5.3.8 using Bootstrap’s own nav, badge, button, offcanvas, dropdown and scrollspy components, and as Tailwind CSS 4 utility classes. The three versions of a set look the same, so you can switch stacks without redesigning.
How do I make a Bootstrap sidebar collapse on mobile?
Wrap the sidebar in .offcanvas-lg (or -md, -xl) and add a button with data-bs-toggle="offcanvas" that is hidden from that breakpoint up. Above the breakpoint the sidebar sits in the layout; below it Bootstrap turns it into a drawer with a backdrop, Esc to close and focus kept inside. Set 4 shows the full markup with a matching plain CSS version built on the popover attribute.


