What's Styled
Every native Docusaurus element covered by the theme — applied automatically, no configuration needed.
Navbar
The navbar uses a ghost button style for all right-side items. The brand area has a | separator and the site title renders as a wordmark.
Key CSS variables:
--ifm-navbar-height: 72px;
--ifm-navbar-link-color: /* warm dark / neutral light */
--ifm-navbar-link-hover-color: #465fff;
Sidebar
Category icons via className in sidebars.js:
{
type: 'category',
label: 'Getting Started',
className: 'sidebar-cat-rocket', // ← adds Lucide rocket icon
items: ['getting-started'],
}
Available icon classes: rocket monitor pencil puzzle sliders folder server database layers grid code
The sidebar also shows a version badge pinned at the bottom (reads from package.json automatically via injectHtmlTags()).
Breadcrumb
ChevronRight separator, brand hover, muted inactive trail — automatic.
Home › Documentation › Getting Started
Tabs
- Dark (Void)
- Light (Slate)
Deep neutral blacks — Tailwind gray-950/900/800, no blue tint.
--ifm-background-color: #030712; /* gray-950 */
--ifm-background-surface-color: #111827; /* gray-900 */
Warm white backgrounds — brown-toned text, not cold blue-gray.
--ifm-background-color: #f9fafb; /* gray-50 */
--ifm-font-color-base: #1a1714; /* warm near-black */
Admonitions
Five types — Toast Showcase style: icon pinned left, semantic title, muted body.
Neutral context — supplementary information that's good to know.
Best practice, shortcut, or recommended approach.
Contextual guidance or clarification.
May cause unexpected behavior or data loss if ignored.
Destructive, irreversible, or security-critical operation.
Cards
Styled card
Border, border-radius: 16px, dark shadow, brand border on hover.
<div class="card">Your content</div>
Tags
docusaurus css-only dark-first void-palette
<span class="tag">docusaurus</span>
Details / Accordion
How does the sidebar version badge work?
The injectHtmlTags() lifecycle hook reads version from package.json and injects:
<style>:root { --cosmos-version: "cosmos v2.x.x"; }</style>
The sidebar ::after pseudo-element uses content: var(--cosmos-version).
Keyboard keys
Press Ctrl + K to open search. Press Cmd + Shift + P for the command palette.
Blockquote
Use
>markdown syntax for pull-quotes and context notes. The left border uses the brand indigo accent.
Progress bar & announcement bar
themeConfig: {
announcementBar: {
id: 'v2',
content: 'cosmos v2.1.0 is out — <a href="/changelog">see what\'s new</a>',
isCloseable: true,
},
},
The progress bar color is controlled by --docusaurus-progress-bar-color (set to brand indigo automatically).
Algolia DocSearch
All --docsearch-* variables are overridden for both Void (dark) and Slate (light). No extra configuration needed.
themeConfig: {
algolia: {
appId: 'YOUR_APP_ID',
apiKey: 'YOUR_SEARCH_API_KEY',
indexName: 'YOUR_INDEX_NAME',
},
},