An opinionated Zola theme for documentation, books, and blogs.
Beautiful, accessible, and thoughtfully designed.
Live Demo • Documentation • Book Example • Blog Example

/ for searchTanuki requires Zola 0.23 or later (Tera v2 templates, Giallo syntax
highlighting). On Zola 0.19 to 0.21, use the
zola-0.19-0.21
tag instead:
git clone --branch zola-0.19-0.21 https://github.com/raskell-io/tanuki themes/tanukicd your-zola-site
git clone https://github.com/raskell-io/tanuki themes/tanuki
Or as a git submodule:
git submodule add https://github.com/raskell-io/tanuki themes/tanukibase_url = "https://docs.example.com"
title = "My Project Docs"
theme = "tanuki"
build_search_index = true
[markdown.highlighting]
theme = "catppuccin-mocha"
style = "class"
data_attr_position = "both"
[extra]
mode = "docs"
github = "https://github.com/you/project"
# Optional: version picker
[extra.versions]
current = "2.0.0"
list = [
{ version = "2.0.0", url = "/", label = "latest" },
{ version = "1.0.0", url = "/v1/" },
]Code blocks always get a copy button and a language label. A site can also have them validated in the browser by supplying a WASM validator:
[extra.code_validation]
wasm_module = "/wasm/my_validator.js" # required to enable
language = "kdl" # default: "kdl"
playground_url = "https://example.com/play/" # optional; adds a link on success
skip_paths = ["/reference/directives"] # optional; pages of partial snippets
Blocks in language get a Validate button. On success, and only when
playground_url is set, a link appears that opens the snippet in that
playground.
The module is loaded lazily on first use and must export default (an init
function) and validate; init_panic_hook is called if exported. validate
should return { valid, errors, warnings }. Ship it from your own site's
static/, not from the theme.
Without this section the theme never loads a validator and never adds a Validate button.
base_url = "https://book.example.com"
title = "The Complete Guide"
theme = "tanuki"
build_search_index = true
[markdown.highlighting]
theme = "catppuccin-mocha"
style = "class"
data_attr_position = "both"
[extra]
mode = "book"
github = "https://github.com/you/book"base_url = "https://blog.example.com"
title = "My Blog"
theme = "tanuki"
generate_feeds = true
taxonomies = [
{ name = "tags", feed = true },
]
[markdown.highlighting]
theme = "catppuccin-mocha"
style = "class"
data_attr_position = "both"
[extra]
mode = "blog"
[extra.hero]
title = "Welcome to my blog"
subtitle = "Thoughts on code and craft"
[[extra.nav]]
name = "Blog"
url = "/blog/"
[[extra.nav]]
name = "About"
url = "/about/"With style = "class" in [markdown.highlighting], Zola writes the theme CSS
into the output directory and Tanuki links it: giallo.css for a single
theme, or giallo-light.css / giallo-dark.css (by prefers-color-scheme)
when light_theme and dark_theme are set. With the default inline style no
stylesheet is needed. data_attr_position = "both" puts data-lang on the
<pre> as well, which the language label uses in blog mode. Theme names come
from Giallo.
The reusable pieces in templates/macros/ are Tera components, available in
any template or in Markdown content without an import, for example:
{{/*<posts.post_list pages={section.pages} limit={6} />*/}}
{{/*<ui.button text="Learn more" url="/about/" />*/}}| Key | Action |
|---|---|
← / → | Previous / Next page |
/ | Open search |
Esc | Close overlays |
Modern browsers (Chrome 88+, Firefox 78+, Safari 14+, Edge 88+)
Made with care by raskell.io