Sign Up

Themes

Doctave provides a number of ways for you to customize the look and feel of your documentation with your doctave.yaml file.

You can customize your color scheme, your theme's roundedness (border radius), your logo, and favicon.

Doctave documentation sites are fully-featured with a modern look and feel out of the boxDoctave documentation sites are fully-featured with a modern look and feel out of the box

Colors

Your theme is customized in your project's doctave.yaml project file.

doctave.yaml
theme:
  radius: small
  colors:
    accent: "#F76B15"
  logo:
    src: _assets/logo.svg
    src_dark: _assets/logo-dark.svg
  favicon:
    src: _assets/favicon.ico

Accent and grayscale

Doctave will generate a 12-step color scale from your brand accent color for your docs. This scale will be used in different parts of your documentation.

You can also specify a matching grayscale, which subtly changes the background and monochrome elements of your docs:

  • gray is the default grayscale, and works with most colors

  • mauve works well with red and purple colors

  • slate works well with blue colors

  • sage works well with teal and green colors

  • olive works well with lime and green colors

  • sand works well with yellow and orange colors

doctave.yaml
theme:
  colors:
    accent: "#F76B15"  # Specify an accent color
    grayscale: sand    # And a matching grayscale

Dark mode

Your docs will automatically compute a matching dark-mode color palette for your documentation.

If you want to disable either light or dark mode entirely, you can use the color_mode field:

doctave.yaml
theme:
  color_mode: "dark"  # Dark mode, always

Border radius

You can override the border radius of the elements in your docs with the radius field. This will impact the roundedness various elements of your documentation.

Here you can see the impact of changing the border radius on buttons:


Full
Sign Up

Large
Sign Up

Medium
Sign Up

Small
Sign Up

None
Sign Up

The default radius is medium.

doctave.yaml
theme:
  # Must be either full, large, medium, small or none
  radius: full

Logo

You can specify a logo to show in the top left side of the page header. You can customize the logo in both light and dark mode.

logo:
  src: _assets/logo.svg
  src_dark: _assets/logo-dark.svg
  • The logo must be located under the _assets directory.
  • We recommend that you use svg logos, but also support png and jpeg formats.

Favicon

You can customize the site identity further with a favicon. The favicon is shown in browser tabs and bookmarks. To set up a favicon, you need a favicon file. You can use an online generator or pick one from your existing brand assets. Recommended file formats are svg or ico.

favicon:
  src: "_assets/favicon.ico"

Was this page helpful?