OPTIONS

RapiDoc properties

Spec
Theme
theme
Brand color preset, or a custom brand color as a hex code. Each preset defines a dark and a light palette.Default: ember
Color palette preset
color-scheme
Base color scheme mode. 'system' automatically matches the user's OS preference. 'auto' follows the host page: it reads the page's CSS color-scheme (for example :root[data-theme='light'] { color-scheme: light }, as Starlight sets it) and updates when the page switches theme; when the page declares none, it falls back to the OS preference.Default: dark
Dark, light, or follow the system or the page
Layout & Scrolling
render-style
Controls the overall documentation presentation layout. Three distinct modes are supported:
  • view: Optimized for interactive exploration with collapsible operations | Example
  • read: Continuous narrative page layout, ideal for reading through API specifications from top to bottom | Example
  • focused: Displays a single endpoint at a time with a dedicated sidebar, ideal for large enterprise schemas | Example
Default: read
Display mode: Read for docs, View with tabs, Focused for single endpoint
Sidebar & Navigation
show-method-in-nav-bar
Displays HTTP methods (GET, POST, etc.) alongside endpoint items in the navigation sidebar. Ensure sufficient contrast if customizing nav-bg-color.Default: false
Sidebar HTTP method badge presentation style
nav-item-spacing
Controls vertical density and padding between sidebar navigation items.Default: default
Vertical spacing between sidebar navigation items
use-path-in-nav-bar
Displays raw API URL paths in the navigation bar instead of operation summaries.
NOTE: Setting this to true displays the path only. To display the HTTP method alongside the path, also configure show-method-in-nav-bar.
Default: false
Show URL paths instead of summaries in the sidebar
Fonts
--font-sans
Main document body and heading font family