Customization
Customize the theme by layering CSS and shaping content with shortcodes.
Customization is done with Hugo templates, CSS layers, and content authoring.
# CSS: pre-built by default, Tailwind optional
The theme ships pre-built CSS at assets/css/compiled/theme.css. A downstream site needs only Hugo — no Node.js, no npm, no security-policy changes — and pages load a single fingerprinted stylesheet.
The stylesheet is generated from a Tailwind CSS v4 entrypoint plus plain component layers, so you can customize with or without a Node toolchain:
- Without Node: add your own plain-CSS layers in the downstream site and override the theme’s custom properties (
--docs-accent,--docs-border, spacing, and so on) fromassets/css/theme.css. - With Node (Tailwind source build): install dependencies (
npm install), editassets/css/input.cssand the component layers it imports, then regenerate the compiled file:
npm run build:cssFor live development against the source layers, npm run dev compiles the CSS on each build (it sets HUGO_PARAMS_DOCS_TAILWINDSOURCE=true, which switches the theme from the compiled file to the Tailwind pipeline). This mode requires the Tailwind CLI to be allowed in Hugo’s security policy — see Configuration
.
Styling entrypoint (source build)
@import "tailwindcss";
@import "./theme.css";
@import "./components/shortcodes.css";
@import "./components/badges.css";
@import "./components/shell.css";
@import "./components/nav.css";
@import "./components/sidebar.css";
@import "./components/toc.css";
@import "./components/browse.css";
@import "./components/content.css";@import "tailwindcss";
@import "./theme.css";
@import "./components/shortcodes.css";
@import "./components/badges.css";
@import "./components/shell.css";
@import "./components/nav.css";
@import "./components/sidebar.css";
@import "./components/toc.css";
@import "./components/browse.css";
@import "./components/content.css";# Content customization
The theme’s shortcodes cover the major documentation patterns:
- notices and callouts
- details and figures
- procedures and choice groups
- cards and landing pages
- reference blocks
- navigation and browse helpers
# Site chrome: favicon, footer, and project links
The chrome around the docs is parameterized in the site config:
[params.docs]
# Defaults to the theme's favicon.svg; drop your own favicon.svg into your
# site's static/ folder (or point this at any file).
favicon = "favicon.svg"
[[params.docs.social]]
name = "GitHub"
url = "https://github.com/you/project"
[[params.docs.social]]
name = "Mastodon"
url = "https://mastodon.social/@you"
[params.docs.footer]
copyright = "Your project authors" # defaults to the site title
licenseURL = "https://opensource.org/licenses/MIT"
licenseLabel = "MIT" # defaults to "License"
poweredBy = true # "Powered by Hugo" lineSocial links render at the top of the site footer with rel="me", so they double as identity verification links (Mastodon and friends). The footer appears on every page, docs and landing alike.
# Accessibility and performance
The theme keeps the public output static, semantic, and printable. That means any downstream customization should preserve headings, landmarks, and text-first navigation rather than replacing them with script-driven widgets.