Themes & Customization

Docboot is styled with a modern, high-contrast developer aesthetic and includes built-in theme presets, reading font controls, and visibility toggles.


1. Theme Modes #

Docboot supports three theme modes:

  • system (Default): Automatically tracks OS appearance preferences (prefers-color-scheme).
  • dark: High-contrast dark palette tailored for code reading.
  • light: Clean, crisp daylight reading palette.

Anti-Flash Bootstrapping #

An inline head script checks localStorage and system preferences before page render, completely preventing white-flash when loading dark mode.


2. Six Color Presets #

Docboot includes six curated accent palettes designed for developer documentation:

PresetCharacter & StylePrimary Tone
zinc (Default)Minimalist & modern monochrome (Tailwind / Linear aesthetic)Neutral Zinc
oceanDeep navy & high-contrast cyan-indigoCyan Indigo
emeraldSlate with vibrant mint green (Supabase / Mintlify aesthetic)Vibrant Mint
violetNeon amethyst & purple (Vite / Nuxt aesthetic)Amethyst Purple
amberWarm obsidian & amber gold (Rust / Astro / Claude aesthetic)Warm Amber
roseModern ruby & coral pinkVibrant Rose

You can configure the default preset in docboot.config.js:

docboot.config.js
JAVASCRIPT
export default {
  theme: {
    preset: "ocean",       // "zinc" | "ocean" | "emerald" | "violet" | "amber" | "rose"
    defaultMode: "system"  // "system" | "dark" | "light"
  }
};

3. Reader Typography & Font Scaling #

Readers can personalize their reading experience directly from the UI:

  • Font Size Scaling: A- / A+ buttons in the header, breadcrumbs, and right-hand table of contents allow stepping through font sizes (sm, base, lg, xl).
  • Font Families: Support for Sans (Inter), Geometric (Outfit), Serif (Editorial), and System Native fonts (SF Pro, Segoe UI).

4. Header Controls Visibility #

If you want a minimal header layout without theme switches or font size toggles, you can disable them via configuration:

docboot.config.js
JAVASCRIPT
export default {
  theme: {
    preset: "zinc",
    defaultMode: "dark",
    themeToggle: true,       // false to hide ☀️/🌙 theme toggle icon
    presetMenu: true,        // false to hide 🎨 palette and font customizer
    fontSizeControl: true    // false to hide A- / A+ stepper buttons
  }
};

Next Steps #

2 min read · Updated