Collapsible labeled primary navigation shell with configurable chrome, search, groups, workspace switcher, and account menu.
Also known as: app sidebar, navigation sidebar, vertical nav, primary nav, side navigation, nav shell
Install with the CLI, or copy the component source into your project.
Add sidebar (npm)
npx --yes -p github:itsvigneshv/default-file-ui#main df-ui add sidebar
Expanded primary IA with workspace switcher, search, section groups, project swatches, and account menu.
Icon-only density with tooltips. CollapseTrigger restores the labeled shell.
Collapsible labeled primary navigation shell. Compose Header, Search, Content, Nav, Group, Item, Workspace, User, Separator, Shortcut, and CollapseTrigger. Prefer Tool Rail for icon mode switching and Dock Panel for persistent inspectors. Chrome is tokenized via --df-sidebar-* and semantic --sidebar*.
Theme defaults live on :root. Override these globally or on a local host.
| Token | Type | Default | Notes |
|---|---|---|---|
| --df-sidebar-width | CSS length | calc(68 * var(--spacing-unit)) | Expanded shell width. |
| --df-sidebar-width-collapsed | CSS length | calc(16 * var(--spacing-unit)) | Collapsed shell width. |
| --df-sidebar-bg | CSS color | var(--sidebar) | Shell background. |
| --df-sidebar-fg | CSS color | var(--sidebar-foreground) | Shell foreground. |
| --df-sidebar-border | CSS color | var(--sidebar-border) | Shell border. |
| --df-sidebar-accent | CSS color | var(--sidebar-accent) | Hover and selected fill. |
| --df-sidebar-accent-fg | CSS color | var(--sidebar-accent-foreground) | Hover and selected foreground. |
| --df-sidebar-primary | CSS color | var(--sidebar-primary) | Primary accent. |
| --df-sidebar-primary-fg | CSS color | var(--sidebar-primary-foreground) | Primary accent foreground. |
| --df-sidebar-ring | CSS color | var(--sidebar-ring) | Focus ring. |
| --df-sidebar-shadow | CSS box-shadow | var(--df-shadow-panel) | Shell elevation. |
| --df-sidebar-radius | CSS length | var(--radius-2xl) | Shell radius. |
| --df-sidebar-item-radius | CSS length | var(--radius-lg) | Item and trigger radius. |
| --df-sidebar-padding | CSS length | calc(3 * var(--spacing-unit)) | Shell padding. |
| --df-sidebar-gap | CSS length | calc(2 * var(--spacing-unit)) | Gap between major regions. |
| --df-sidebar-section-gap | CSS length | calc(4 * var(--spacing-unit)) | Gap between nav sections. |
| --df-sidebar-item-gap | CSS length | calc(0.5 * var(--spacing-unit)) | Gap between rows in a group. |
| --df-sidebar-swatch-size | CSS length | calc(2.5 * var(--spacing-unit)) | Project swatch size. |
| --df-sidebar-swatch-radius | CSS length | var(--radius-sm) | Project swatch radius. |
| --df-sidebar-shortcut-fg | CSS color | var(--muted-foreground) | Shortcut chip color. |
| --df-sidebar-group-label-fg | CSS color | var(--muted-foreground) | Group action and label quiet color. |
| --df-corner-shape | CSS corner-shape | var(--df-corner-shape-round) | Theme corner curve for all kit chrome. round = circular arcs; smooth = continuous squircle. Set with df-ui init --corner-shape, or override on :root. Default round. |