Back to Scalar

Themes

documentation/guides/docs/configuration/themes.md

latest1.3 KB
Original Source

Themes

The theme property sets the visual appearance of your documentation site. Scalar provides a collection of built-in themes to match your brand or style preferences.

Configuration

Set the theme in the siteConfig object of your scalar.config.json file:

json
// scalar.config.json
{
  "$schema": "https://registry.scalar.com/@scalar/schemas/config",
  "scalar": "2.0.0",
  "siteConfig": {
    "theme": "purple"
  }
}

Available Themes

ThemeDescription
defaultThe default theme
alternateAn alternative light/dark theme
moonA softer, moon-inspired palette
purplePurple accent colors
solarizedBased on the Solarized color scheme
bluePlanetBlue tones with a planetary feel
deepSpaceDark theme with deep space colors
saturnWarm, Saturn-inspired tones
keplerA cosmic, Kepler-inspired theme
marsRed and warm Mars-inspired colors
laserwaveRetro synthwave-inspired colors

To apply no theme at all (feeling dangerous, eh?), pass none:

json
// scalar.config.json
{
  "siteConfig": {
    "theme": "none"
  }
}