A dark, SEO-friendly theme for Docusaurus 3.x — Syne and IBM Plex typography, cyan accent, minimal CSS. Perfect for documentation sites, developer portals, and open-source project docs. MIT licensed.
Live demo: the-khan-labs.github.io/khanlab-docusaurus-theme
A lightweight, dark-mode-first Docusaurus theme that improves readability and discoverability for technical documentation. No JavaScript bloat — just clean CSS that works with Docusaurus 3.x out of the box.
| Benefit | Description |
|---|---|
| SEO-friendly | Fast, minimal CSS. No bloat. Better Core Web Vitals. |
| Dark mode first | Easy on the eyes for long reading sessions. |
| Typography | Syne for headings, IBM Plex Sans for body, IBM Plex Mono for code. |
| Collapsible sidebar | Clean navigation, uppercase section headers, easy to scan. |
| Docusaurus 3.x | Compatible with the latest Docusaurus. |
Add the theme to your Docusaurus site in 3 steps:
# 1. Copy the theme CSS
cp custom.css your-docusaurus-site/src/css/
# 2. Add to docusaurus.config.js (under presets → classic → theme)
theme: { customCss: './src/css/custom.css' },
# 3. Enable dark mode (optional)
colorMode: { defaultMode: 'dark', respectPrefersColorScheme: true }| Feature | Description |
|---|---|
| Typography | Syne (headings), IBM Plex Sans (body), IBM Plex Mono (code) |
| Colors | Dark base #0a0a0f, cyan accent #22d3ee |
| Sidebar | Collapsed by default, uppercase section headers, easy to scan |
| Tables | Minimal borders, hover states, readable |
| Code blocks | Dracula-inspired syntax highlighting, good contrast |
-
Copy the CSS — Download
custom.cssfrom this repo or clone it, then place it in your Docusaurus project'ssrc/css/folder. -
Configure Docusaurus — In
docusaurus.config.js, add the theme under the classic preset:theme: { customCss: './src/css/custom.css' }
-
Enable dark mode (optional) — In
themeConfig:colorMode: { defaultMode: 'dark', respectPrefersColorScheme: true, }
-
Rebuild — Run
npm run buildoryarn build.
See themeConfig.example.js for prism (syntax highlighting) and other options.
- Documentation sites — API docs, user guides, tutorials
- Internal wikis — Team knowledge bases, runbooks
- Developer portals — SDK docs, integration guides
- Homelab docs — Self-hosted project documentation
- Open-source project docs — GitHub Pages, project websites
The theme uses CSS variables. Override them in your own custom.css:
| Variable | Default | Purpose |
|---|---|---|
--accent |
#22d3ee |
Links, active states |
--bg-base |
#0a0a0f |
Background |
--font-display |
Syne | Headings |
--font-body |
IBM Plex Sans | Body text |
MIT. Use it anywhere.
docusaurus · theme · dark-theme · documentation · open-source · developer-tools · documentation-site · css · typography