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.
Colors
Your theme is customized in your project's doctave.yaml
project file.
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 colorsmauve
works well with red and purple colorsslate
works well with blue colorssage
works well with teal and green colorsolive
works well with lime and green colorssand
works well with yellow and orange colors
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:
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:
The default radius is medium
.
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 supportpng
andjpeg
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"