Matching light and dark themes
Both versions ship on one page and use theme tokens around the same structure. A runtime theme toggle is not included.
Neat Hub
HTML / CSS / JS component
NeatHub provides matching light and dark sidebar examples with a compact icon rail, expandable menu panel, nested navigation, badges, active states, a tooltip, search styling, and a profile card. The sample labels and creator-tool theme are only a demonstration: replace the branding, navigation, icons, colors, and profile content to use the component in virtually any website, application, client project, or internal interface. The component is built with labeled HTML, CSS, and vanilla JavaScript—no framework or build tools required. Search and menu destinations are presentation-only.
Highlights
The showcase places matching light and dark versions side by side so you can compare themes, test behavior, and adapt the repeated rail-and-panel structure to your interface.
Both versions ship on one page and use theme tokens around the same structure. A runtime theme toggle is not included.
A 70px rail keeps primary destinations, collapse control, active state, hover feedback, and avatar access visible when the panel is closed.
Close the full menu with the rail chevron or panel X, then restore it from the compact rail without leaving the page.
The Content Lab example expands and collapses three child links, demonstrating submenu behavior and editable HTML badge counts.
A styled input and visible focus state are ready for your own filtering logic. The included component does not perform a search.
Hover the calendar destination to reveal its Launch Planner label; the remaining icons retain accessible names through aria-label.
Name, email, and initials anchor the bottom of the menu panel. The included card is a placeholder link without a profile page.
Clicking a rail icon or menu link updates its own list, making both navigation layers easy to demonstrate and extend.
Section markers identify the rail, panel, themes, and behaviors. Edit labels and badges in HTML, then rebrand with CSS tokens.
Narrow screens
Below 980px, the light and dark examples stack vertically. Below 560px, each menu panel uses the width remaining beside its icon rail to prevent horizontal overflow.
Labeled for edit
Numbered section banners map the HTML, CSS, and JavaScript so you can jump directly to the rails, panels, themes, responsive rules, and interactions.
index.html Names each block: light sidebar, dark sidebar, rail, brand, search, nest, profile.styles.css Numbered map from theme tokens to the phone breakpoints.script.js Explains collapse, the Content Lab nest, and active states.Screenshots
Detailed screenshots cover the full showcase, both themes, collapsed rails, nested menu, tooltip, focused search field, and profile card.
Watch it in action
Preview both themes, panel collapse, nested navigation, tooltip, and narrow-screen stacking before opening the source.
A short walkthrough of the light and dark rails, collapse, and submenu.
What you get
Customize names and badges in HTML, theme tokens and responsive rules in CSS, and collapse, submenu, and active-state behavior in JavaScript. Search logic, routing, and a profile page are not included.
index.html Light and dark sidebars, labels, and badgesassets/css/styles.css Theme tokens, rail, panel, and phone rulesassets/js/script.js Collapse, submenu, and active statesREADME.md Setup and customization notesLICENSE.txt Template license termsGet the component
Adapt the HTML, CSS, and vanilla JavaScript sidebar to your dashboard, admin panel, workspace, or internal-tool interface.
Instant download after successful payment
Buy now — $10