Menu

Documentation navigation

Manual

A single-page manual view for the latest docs.

This manual page renders the current version docs tree as a long-form reading view.

User Guide

Practical guidance for using the project.

This section groups the user-facing documentation pages.

Writing Your Docs

Author Markdown content for the docs site.

Write pages as Markdown files inside the documentation tree.

Keep the structure simple:

content/
  en/
    docs/
      latest/
        getting-started.md
        user-guide/
          _index.md
          writing-your-docs.md

Configuration

Configure the project for your environment.

Configure the project for your environment.

Components

Reusable content primitives and render-hook examples for docs authors.

Component library

Components

Reusable content primitives for docs authors.
Notice

Callouts

Highlight guidance and warnings with semantic labels.
Disclosure

Details

Use native <details> blocks for optional content.
Media

Figures

Keep diagrams and images inside the prose column.
Render hook

Code Blocks

Render fenced code with titles, filenames, and static output.
Document options, APIs, and endpoints as structured reference items.
Outline

Navigation

Surface child pages, section maps, and related content in one place.
Output

Print

Verify print-friendly rendering and content flow.
Navigation

Cards

Build responsive grids for section hubs and landing pages.
Panels

Tabs

Compare alternate examples while keeping the content visible.
Paths

Methods

Show multiple implementation paths without hiding any content.
Snippets

Code Groups

Present alternate commands and snippets as readable stacked blocks.
Procedure

Steps

Render tutorials and workflows as ordered content.
Layout

Landing

Compose hero, feature, and CTA blocks for section hubs.
Media

Video

Embed self-hosted clips and click-to-load YouTube videos.
Polish

Motion

CSS-only hero glow, glyph draws, and scroll reveals with reduced-motion support.
Mount poster-first 3D scenes on a vendored three.js runtime.

Presets

Color theme presets with bundled fonts and adaptive callout colors.

Visual identity

Presets

Seven swappable color themes with bundled fonts and adaptive syntax highlighting.

# Overview

The preset system replaces the previous light/dark/system triad with seven distinct color themes:

Preset Mode Description
symblix-light Light Clean, neutral light theme with blue accent
symblix-dark Dark Deep, focused dark theme with blue accent
ocean-dark Dark Deep blue-teal dark theme
forest-light Light Warm, green-tinted light theme
sunset-dark Dark Warm amber-purple dark theme
solarized-light Light Classic Solarized light palette
high-contrast Light Maximum contrast for accessibility (WCAG AAA)

# Live Preview

Select a preset using the theme switcher in the sidebar or header to see how it transforms the entire site, including:

  • Page background and text colors
  • Callout borders and backgrounds
  • Badge colors
  • Syntax highlighting (automatically switches between light/dark palettes)
  • Code block styling

# Configuration

# Site Default Preset

Set the default preset in your hugo.toml:

[params.docs.theme]
preset = "symblix-light"

This preset is applied to all visitors who haven’t selected a preference. The value must be one of the preset IDs listed above or a custom preset you’ve defined.

# Available Presets

Control which presets appear in the switcher UI:

[params.docs.theme]
preset = "symblix-light"
availablePresets = ["symblix-light", "symblix-dark", "ocean-dark"]

If availablePresets is not specified, all defined presets (theme defaults + project overrides) are available.

# Visual Preset (Density)

The visual preset controls corner rounding and spacing, separate from color presets:

[params.docs.theme]
visualPreset = "minimal"  # Options: minimal, rounded, high-contrast
density = "comfortable"    # Options: comfortable, compact, dense

# Font Configuration

Override the default bundled fonts:

[params.docs.theme]
fonts = {
  body = "MyCustomFont, ui-sans-serif, system-ui, sans-serif",
  mono = "MyCustomMono, ui-monospace, monospace"
}

# Custom Presets

# Defining Custom Presets

Create a data/docs_presets.yaml file in your project to add or override presets:

presets:
  - id: my-light
    label: My Light Theme
    description: Custom light theme for my brand
    mode: light
    colors:
      bg: "#ffffff"
      surface: "#f8f9fa"
      surface2: "#e9ecef"
      text: "#212529"
      muted: "#6c757d"
      border: "#dee2e6"
      accent: "#0d6efd"
    callouts:
      note: "#6c757d"
      tip: "#198754"
      info: "#0d6efd"
      warning: "#ffc107"
      danger: "#dc3545"
      success: "#198754"
      deprecated: "#6f42c1"
      experimental: "#fd7e14"
    badges:
      info: "#0d6efd"
      warning: "#ffc107"
      success: "#198754"
      danger: "#dc3545"

# Required Fields

Each preset must define:

Field Type Required Description
id string Yes Unique identifier (lowercase-hyphenated)
label string Yes Human-readable name
mode string Yes light or dark
colors map Yes Base color tokens

The colors map must include:

  • bg - Page background
  • surface - Card/surface background
  • surface2 - Secondary surface
  • text - Primary text color
  • muted - Muted/secondary text
  • border - Border color
  • accent - Accent/interactive color

# Optional Fields

Field Type Default Description
description string - Preset description
callouts map Derived from accent Callout colors (note, tip, info, warning, danger, success, deprecated, experimental)
badges map Derived from accent Badge colors (info, warning, success, danger)

If callouts or badges are omitted, reasonable defaults are derived from the preset’s base colors.

# Color Tokens

Each preset defines the following CSS custom properties on the <html> element:

# Base Colors

Token Purpose
--docs-bg Page background
--docs-surface Card/surface background
--docs-surface-2 Secondary surface
--docs-text Primary text color
--docs-muted Muted/secondary text
--docs-border Border color
--docs-accent Accent/interactive color

# Callout Colors

Token Purpose
--docs-callout-note Note callout
--docs-callout-tip Tip callout
--docs-callout-info Info callout
--docs-callout-warning Warning callout
--docs-callout-danger Danger callout
--docs-callout-success Success callout
--docs-callout-deprecated Deprecated callout
--docs-callout-experimental Experimental callout

# Badge Colors

Token Purpose
--docs-badge-info Info badge
--docs-badge-warning Warning badge
--docs-badge-success Success badge
--docs-badge-danger Danger badge

# Syntax Highlighting

Syntax highlighting uses a separate data-syntax attribute that is automatically synced with the preset’s mode:

  • Light presets → data-syntax="light"
  • Dark presets → data-syntax="dark"

This ensures syntax colors remain consistent and familiar across all presets, while still respecting the overall theme’s readability.

# User Experience

# Preset Selection

Users can switch presets using either:

  1. Sidebar switcher - Full list with swatches and descriptions
  2. Header switcher - Compact icon button with dropdown

Both switchers stay in sync, and the selection persists across page loads and browser sessions via localStorage.

# No-JavaScript Baseline

Without JavaScript:

  • The default preset (from configuration) is always applied
  • When the OS asks for prefers-color-scheme: dark, the light default maps to its dark tokens via a pure-CSS media query (an explicit choice always wins)
  • The preset switcher UI is hidden
  • The site remains fully readable and navigable

Switching presets is a JavaScript enhancement: static sites have nowhere to store a visitor’s choice between page loads, so persistence (and therefore the switcher) needs scripting. Visitors with JavaScript who have not picked a preset get the same OS dark-mode treatment through the pre-paint script.

# Keyboard Navigation

Both switchers are fully keyboard navigable:

  • Tab to focus the toggle or options
  • Enter/Space to activate
  • Escape to close
  • Arrow keys to navigate (in header dropdown)

# Accessibility

# Color Contrast

All presets meet WCAG 2.1 AA contrast requirements:

  • Normal text: 4.5:1 minimum ratio
  • Large text: 3:1 minimum ratio
  • UI components: 3:1 minimum ratio

The high-contrast preset exceeds these requirements, meeting WCAG 2.1 AAA:

  • Normal text: 7:1 minimum ratio
  • Large text: 4.5:1 minimum ratio

# Screen Readers

The switcher includes appropriate ARIA attributes:

  • aria-label on the switcher toggle
  • aria-current="true" on the active preset
  • Proper semantic HTML (<details>, <summary>, <button>, <ul>, <li>)

# Bundled Fonts

Symblix bundles two open-source variable font families under the SIL Open Font License 1.1:

Family Weights Files
Inter 100-900 Inter-Variable.woff2, Inter-Variable-Italic.woff2
JetBrains Mono 100-800 JetBrainsMono[wght].woff2, JetBrainsMono-Italic[wght].woff2

# Font Loading

  • Critical fonts are preloaded in the <head>
  • font-display: swap ensures text remains visible during loading
  • System font fallbacks are used if fonts fail to load

# Custom Fonts

To use custom fonts, either:

  1. Override via configuration (as shown above)
  2. Replace the bundled font files in static/fonts/
  3. Disable preloading in your layout

# Backward Compatibility

The preset system maintains backward compatibility with the previous light/dark/system theme system:

Old data-theme Maps to preset
light symblix-light
dark symblix-dark
system symblix-light

Legacy localStorage["docs-theme"] values are automatically migrated to localStorage["docs-preset"] on first load.

The window.SymblixTheme API continues to work, with set() and get() methods mapping legacy theme values to preset IDs.

# Mermaid Diagrams

Mermaid diagrams automatically adapt to the active preset’s mode via the data-syntax attribute. Light presets show light-themed diagrams, dark presets show dark-themed diagrams.

# Migration Guide

# For Site Authors

To migrate from the old theme system:

  1. Remove any data-theme attributes from your layouts (they’re now set automatically)
  2. Update your hugo.toml to use the new preset configuration:
    [params.docs.theme]
    preset = "symblix-light"
  3. Optional: Customize the available presets or create custom presets
  4. Test: Verify all pages render correctly with each preset

# For Theme Developers

If you’re extending Symblix:

  1. Add custom presets to data/docs_presets.yaml in your theme
  2. Reference preset tokens in your CSS using var(--docs-*)
  3. Avoid hardcoding color values
  4. Use data-preset and data-syntax attributes for preset-specific styling

# Technical Details

# CSS Architecture

  • Base tokens are defined in theme.css
  • Preset colors are in presets.css (generated from YAML)
  • Syntax palettes are in syntax-light.css and syntax-dark.css
  • Font declarations are in fonts.css
  • All files are compiled into a single theme.css at build time

# JavaScript API

The window.SymblixTheme object provides:

// Legacy API (backward compatible)
SymblixTheme.set("dark")  // Sets preset to "symblix-dark"
SymblixTheme.get()        // Returns current preset ID

// New API
SymblixTheme.setPreset("ocean-dark")  // Set by preset ID
SymblixTheme.getPreset()              // Get current preset ID
SymblixTheme.getSyntax()              // Get current syntax mode
SymblixTheme.getAvailable()           // Get array of available preset IDs

# Performance

  • CSS payload increase: ~25% (from ~2,700 to ~3,400 lines)
  • Font payload: ~1.07 MB (4 WOFF2 variable font files)
  • All fonts cached aggressively
  • font-display: swap prevents invisible text

# Browser Support

  • Chrome/Edge 90+: Full support
  • Firefox 88+: Full support
  • Safari 15+: Full support (with color-mix() from 16.2+)
  • Fallbacks provided for Safari < 16.2

# See Also

Callouts

Reusable alert-style shortcodes for docs authors.

More about callouts
Use callouts sparingly and keep the label honest.
Use callouts sparingly and keep the label honest.

Details

Native disclosure blocks for optional or advanced information.

Use details for advanced configuration or optional notes.

Advanced configuration

The disclosure content remains readable without JavaScript.

You can include Markdown lists:

  1. First item
  2. Second item

The disclosure content remains readable without JavaScript.

You can include Markdown lists:

  1. First item
  2. Second item
Collapsed by default
This content is hidden until expanded.
This content is hidden until expanded.

Figures

Responsive images with captions and accessibility support.

A simple docs layout diagram
Figures stay inside the content column.
Decorative images can omit meaningful alt text.

Steps

Ordered workflows for tutorials, setup, and migrations.

  1. Create the site

    Required
    hugo new site my-docs
  2. Add the theme

    Required
    git submodule add https://github.com/example/hugo-theme-symblix themes/hugo-theme-symblix
  3. Add your content

    Optional
    Write your first documentation pages and connect them to the sidebar.

Landing

Hero, feature, and CTA primitives for high-impact landing pages.

Documentation landing

Build a stronger landing page

Use a hero, feature grid, cards, and CTA blocks to turn documentation homepages into useful entry points.

Hero

Lead with a focused title, subtitle, and clear actions.

Feature grid

Summarize what the documentation site supports.

CTA

Close with a clear next step and a secondary path.

# Media layout

Set layout="media" to give every tile a media band. Tiles with an image render it flush to the tile edges; tiles with only an icon get a themed glyph band that follows the active color preset.

Versioning

Versioned trees

Keep current and archived releases navigable side by side.

Languages

Translation aware

Switch languages with per-tree fallbacks and status warnings.

Static first

Readable without JS

Everything from navigation to search fallback works as plain HTML.

# Lead layout

Set layout="lead" for an asymmetric band: the first tile becomes a large media feature spanning two columns, and the next two tiles stack beside it.

Abstract band of three preset swatch cards

Visual identity

Seven color presets

Swap the whole palette — base colors, callouts, badges, syntax, and diagram variants — through one token contract.

Bundled fonts

Inter and JetBrains Mono ship with the theme, self-hosted under the SIL OFL.

Build-time diagrams

Mermaid sources render to static SVG in the pipeline, light and dark.

Ready to publish?

Combine landing primitives to create a concise, navigable entry page.

Project front page

Release badges, install commands, and binary downloads for software project landing pages.

Project front page

Install, download, release

Compose a software project landing page: a release badge, install commands, and binary downloads — all complete without JavaScript.

The project front page shortcodes turn a homepage into a software landing page: release shows the current version, install renders copyable install commands, and downloads lists binary artifacts.

# Release badge

Latest release v0.1.0May 2026Changelog

The release shortcode renders the latest version with an optional release date and changelog link. The version, date, label, and href are plain strings — they are HTML-escaped, so author input cannot inject markup.

Param Type Required Description
version string yes Version string shown in the badge. Build fails if omitted.
date string no Human-readable release date.
href string no Changelog URL. http(s) and root-relative links are meaningful; unknown schemes are escaped.
label string no Overrides the localized “Latest release” label.

# Install commands

A single command needs no wrapper:

Install

brew install symblix

The install shortcode renders the command body as a copyable block. The command text is preserved exactly — interior whitespace, newlines, pipes, ampersands, and quotes survive — and the block carries the standard copy-to-clipboard contract as a JavaScript enhancement.

Param Type Required Description
label string no Heading for the command block. Defaults to the localized “Install” label.
id string no Anchor id for the container.
class string no Extra classes for the container.

Multi-line commands keep their interior indentation:

From script

curl -fsSL https://example.com/install.sh | sh
  && symblix --version

Special characters are rendered literally — redirects, comparisons, and HTML-lookalikes never become markup:

Redirects and comparisons

symblix render < input.md > output.html && diff <(symblix check < input.md) output.html

When the body contains two or more install-method blocks, the container renders as a tabbed switcher with keyboard and aria support:

Homebrew

brew install symblix

Script

curl -fsSL https://example.com/install.sh | sh

Each install-method is a labeled panel carrying its own copyable command. Without JavaScript the panels stack in order, each with its label visible. With JavaScript the existing tabs enhancement builds the switcher: panels switch on click or arrow keys, with aria-selected and aria-hidden kept in sync.

Param Type Required Description
label string yes Panel title shown in the switcher and the stacked list. Build fails if omitted.
id string no Panel id used for the aria wiring. Defaults to a stable id derived from the label.

Nested install inside a tab is not supported: the tab body passes content through markdown, which can reflow the command. Use install-method children for multiple commands instead.

# Downloads

The downloads container wraps one or more download rows. Every row renders unconditionally — nothing is hidden, reordered, or filtered at render time. Rows with a known platform value carry the metadata used by the optional platform-detection enhancement; unknown values render as ordinary rows and never match detection. The container accepts id and class.

Param Type Required Description
label string yes Row label shown as the download link. Build fails if omitted.
href string yes Download URL. http(s) and root-relative links are meaningful; unknown schemes are escaped.
platform string no One of linux, macos, windows. Other values render but never match detection.
size string no Human-readable file size, shown as muted text.
checksum string no URL of the checksum file, shown as a “sha256” link.
primary bool no Emphasizes the recommended row.
id string no Anchor id for the row.
class string no Extra classes for the row.

With JavaScript enabled, rows whose platform matches the visitor’s system gain a “Suggested for your system” badge and accent emphasis. Detection reads standard user-agent platform hints only — nothing is stored, transmitted, or fingerprinted — and rows are never hidden, reordered, or removed. Without JavaScript, every row renders identically with no badge.

# Placeholder URLs

The release and download URLs in the demos use https://github.com/lex/hugo-theme-symblix/... as placeholders. Replace them with the real release URLs for your project — the release tag, asset names, and checksum path must point at artifacts your release process actually publishes.

Code Blocks

Render readable fenced code with titles and filenames.

The code block render hook keeps examples readable in static HTML and in print.

# Basic example

hugo server --source exampleSite --theme hugo-theme-symblix

# With metadata

[params.docs]
root = "docs"

The render hook supports a title and filename caption through fenced-code attributes:

exampleSite/hugo.tomlexampleSite/hugo.toml
[params.docs]
root = "docs"

# What is not here

Diagrams

Render Mermaid diagrams at build time as static SVG — no JavaScript.

Mermaid fenced blocks are rendered to SVG at build time by the diagram pipeline, so published pages contain plain images and stay JavaScript-free.

Diagram

The pipeline hashes each block’s source, writes the SVG under assets/diagrams/, and caches by hash — unchanged diagrams are never re-rendered.

# Running the pipeline

npm run diagrams   # rendered by build, check, and test automatically

A block whose diagram has not been rendered yet falls back to a plain code block, so builds never break while you draft. Set params.docs.mermaid.enforce = true to turn the fallback into a build warning (which fails --panicOnWarning CI builds).

# Captions and alt text

Flowchart of the diagram pipeline
Diagram pipeline

Fenced-code attributes set the title (figcaption) and alt text; the title is also used as alt text when alt is absent.

# Dark mode

The pipeline writes one SVG per theme (<hash>.svg for light, <hash>.dark.svg for dark). The render hook emits both images and CSS swaps them with the theme switcher and the OS preference — no JavaScript involved.

Video

Embedded playback for self-hosted clips and YouTube, without third-party requests on page load.

The video shortcode embeds videos that play inside the page. Self-hosted sources use a native <video> element that works without JavaScript. YouTube sources use a static facade that loads the privacy-enhanced nocookie player only after the visitor presses play — zero third-party requests exist on page load, and without JavaScript the facade becomes an outbound link.

# Self-hosted video

A native player with controls; add a poster for a stable first frame.

A self-hosted clip rendered by the native <video> element — no JavaScript involved.

The shortcode behind the clip above:

{{< video src="/videos/symblix-demo.webm"
            poster="/videos/symblix-demo-poster.jpg"
            title="Symblix demo clip"
            caption="A self-hosted clip."
            duration="0:03" >}}

# YouTube facade

Pass a youtube video ID instead of src. The facade shows your own poster or a themed placeholder, and swaps in the nocookie player on click. This demo uses a real video ID; the player loads only if you press play.

Nothing loads from YouTube until you press play; without JavaScript this becomes a link instead of an embed.

# Parameters

Param Required Description
src one of Path or URL of a self-hosted video file.
youtube one of YouTube video ID for the click-to-load facade.
title yes Accessible name; also used as the iframe title.
poster no Poster image (self-hosted path or URL).
caption no Markdown caption rendered under the frame.
duration no Display-only chip (e.g. 2:41) on the facade.
class no Extra classes on the wrapping figure.

# What is not here

Motion

CSS-only front-page motion: eight hero glow variants, glyph stroke-draw, scroll reveals — no JavaScript, reduced-motion safe.

Everything on this page is pure CSS. No JavaScript runs, no assets load, and the zero-external-request contract holds. Three guarantees come first:

  1. Reduced motion is respected. With prefers-reduced-motion: reduce, every theme animation and transition collapses to its final state instantly, and scroll-driven choreography is not applied at all — content is simply visible.
  2. Print freezes motion. The print stylesheet suppresses all animation and transitions, so nothing prints half-faded.
  3. Motion never shifts layout. All choreography animates transform and opacity only, so the theme’s zero layout-shift behavior is unchanged.

# Pixel-dither hero glow

Set variant="pixel" on the hero shortcode to swap the smooth corner gradient for a retro, Bayer-style quantized glow: a checkerboard pixel grid masked by a stepped radial falloff, so the dither thins out toward the edge. Two phase-shifted layers alternate in hard steps — a two-frame dither shimmer in the tradition of demoscene graphics. The glow reads the active preset’s accent token, so it re-themes with all seven color presets, and it keeps the default variant’s physical top-right placement on RTL pages too, matching the smooth glow it replaces.

Motion

A hero that hums

This hero uses variant=“pixel”. The glow is two masked pseudo-elements animating opacity only — GPU-composited, no repaint, no JavaScript.

Browsers without mask-composite support render the default smooth glow instead — the variant degrades, never breaks. The shimmer stops entirely under reduced motion, and the glow layer never appears in print.

# Aurora hero glow

Set variant="aurora" for the organic counterpart to the pixel dither: two soft accent lobes sway slowly around the hero’s top-right corner like a slow aurora. The whole effect is one pseudo-element animated with a single rotate() — transform-only, GPU-composited, no repaint, no JavaScript — so it renders in every browser that renders gradients at all. Like the pixel glow it reads the active preset’s accent token, keeps the default variant’s physical top-right placement on RTL pages, and collapses to the static corner gradient under reduced motion and in print.

Motion

A glow that drifts

This hero uses variant=“aurora”. One pseudo-element, one rotate() — a slow sway around the corner, GPU-composited with zero repaints.

# Scanline hero glow

Set variant="scanline" for a CRT-flavored sweep: a soft band of accent sweeps down the corner glow like a monitor refresh, over a faint static scanline texture fading out from the corner. The band travels by transform only and rests fully above the card, so with motion disallowed nothing is visible and the variant reads as a slightly cooler default glow.

Motion

A hero that refreshes

This hero uses variant=“scanline”. A transform-only band sweeps past the corner once every five seconds over a static CRT texture.

# Pulse hero glow

variant="pulse" is the quietest option: the default corner gradient breathes gently in opacity and scale. Its static state is pixel-identical to the default variant, so it is the right choice when the glow should live but never demand attention.

Motion

A hero that breathes

This hero uses variant=“pulse”. The default glow, breathing — opacity and scale only, frozen to the exact default look when motion is disallowed.

# Beam hero glow

variant="beam" puts one soft ray of accent on a full 360° lighthouse sweep around the corner — the same pivot geometry as the aurora sway with linear timing, so the beam returns once per cycle. A dimmed static corner gradient keeps the card warm between passes.

Motion

A hero with a beacon

This hero uses variant=“beam”. One ray, one rotate(), a fourteen-second lighthouse cycle around the corner.

# Dot-grid ripple hero glow

variant="ripple" lays a calm accent dot grid fading out from the corner and sends a wave of brighter dots expanding outward from it — a sonar-style pulse through the field. The wave is one pseudo-element: a dot grid masked to an annulus around the corner, animated with scale and opacity only. With motion disallowed the wave rests invisible, leaving the calm dot grid.

Motion

A hero in a dot field

This hero uses variant=“ripple”. A wave of brighter dots expands across the field every few seconds — scale and opacity only, no repaint.

# Dot-grid ripple bounce hero glow

variant="ripplebounce" is the playful sibling of the ripple: the dot field is cut into concentric rings around the top-right corner, and adjacent rings breathe in opposite phase — the dots bounce radially, like a slow wave rolling out of the corner. Two complementary ring layers do the work with transform only, and with motion disallowed they rest interleaved into one calm grid.

Motion

A hero that bounces

This hero uses variant=“ripplebounce”. Concentric rings of dots around the corner breathe in opposite phase — transform only, one calm grid when motion is disallowed.

# Synth oscilloscope hero glow

variant="synth" turns the hero into a quiet instrument: a faint scope graticule with two dotted sine traces running the card’s width, drifting at different periods and speeds. Each trace is a row of tiled dot samples of its waveform moved by exactly one pattern period per cycle, so the waves propagate seamlessly — transform only, no repaint. With motion disallowed the traces rest as static dotted waveforms.

Motion

A hero on the scope

This hero uses variant=“synth”. Two dotted sine traces drift across a faint graticule at different periods — seamless loops, transform only.

# Glyph stroke-draw

In feature-grid layout="media", the themed glyph bands draw themselves in once as they scroll into view — a one-time stroke animation driven by CSS scroll-driven animations (animation-timeline: view()). Every shipped glyph carries pathLength="100", so a single keyframe fits every icon. Browsers without scroll-driven animation support, and readers who prefer reduced motion, see the finished glyphs immediately.

Scroll-driven

Draws on arrival

Scroll these tiles out of view and back to replay the draw.

Normalized

One keyframe

pathLength=“100” makes every glyph’s dash math identical.

Fallback

Static elsewhere

No scroll-timeline support means no draw — just the finished icon.

# Entrance and scroll reveals

On the front page (the docs-home layout only — reading pages stay quiet):

  • Hero entrance. The hero’s children rise in with a short stagger on load. Time-based, so it plays without scrolling and works everywhere.
  • Scroll reveals. Feature tiles and cards below the fold rise in as they enter the viewport, scrubbed by scroll position rather than time. Gated on animation-timeline: view() support; other browsers render everything statically.

# Opt-in 3D tilt

Tiles and cards accept a class parameter. Adding class="docs-motion-tilt" gives a hover-only, fixed-angle perspective tilt — CSS 3D transforms, no pointer tracking, no JavaScript. It is suppressed under reduced motion.

CSS 3D

Tilt on hover

Hover this tile: a restrained rotateX/rotateY perspective shift.

Opt-in

Your tiles stay calm

Without the class, tiles keep the standard hover treatment.

# Build-time text reveals

The reveal-text shortcode splits a headline into word spans at build time — zero JavaScript, zero bytes beyond the stylesheet — and CSS scrubs each word in as it scrolls into view. The full sentence lives in aria-label; the spans are hidden from assistive technology; splitting is word-level only, so screen-reader prosody survives.

Ship scenes, not spinners.

Every word of this paragraph was split by Hugo during the build, and each one rides the same scroll-driven rise you saw on the front page tiles.

Param Default Description
tag p Container element: p, h1–h4, span, or div.
stagger 4% Per-word step of the scroll-scrubbed entry range. A percentage, not a wall-clock time.
class — Extra classes on the container.

The inner content is plain text by construction — inline markdown is flattened rather than carried into spans. Without scroll-driven-animation support, or under reduced motion, the words are simply visible: text is never hidden behind an unsupported effect.

# What this is not

This tier adds identity and life without JavaScript, bytes on the wire, or new dependencies — the theme ships zero scene content and zero runtimes. Interactive 3D and heavier motion (the scaffolding-plus-runtime subsystem) is a separate, opt-in design track with its own bundle budget.

# Next step: interactive scenes

Everything above is ambient CSS motion. For interactive 3D — WebGL scenes on the vendored three.js runtime, with live palette re-theming and scroll signals — see Scenes .

Scenes

Poster-first 3D and motion scene mounts with a vendored three.js runtime — the theme ships the stage, sites ship the scenes.

The scene shortcode mounts an interactive 3D or motion scene — a WebGL canvas driven by the theme’s vendored three.js runtime — while remaining a complete, static piece of content without JavaScript. The theme ships the stage, not the scenes: you author a small scene module, the runtime owns everything else (lifecycle, resizing, pausing, re-theming, failure isolation).

Three guarantees come first:

  1. Poster-first. Without JavaScript, under prefers-reduced-motion, in print, or when a scene fails, the mount shows your poster image with the overlay content. The scene is an enhancement of complete content, never a replacement for it.
  2. No layout shift. The mount is sized entirely by CSS (ratio or height) before any script exists — scene loading cannot move the page.
  3. Same origin, zero external requests. Scene modules and posters are site assets; URLs pointing off-origin fail the build.

# Usage

{{< scene src="js/scenes/orbit.js"
           poster="/images/scene-orbit-poster.svg"
           title="Orbit — the reference demo scene" height="24rem" pointer="on" >}}
**Real text above the scene.** The overlay is ordinary HTML — readable,
crawlable, and never rendered into the canvas.
{{< /scene >}}
Orbit — the reference demo scene
Real text above the scene. A live orbit, colored by your active preset.

Switch presets in the sidebar to re-theme the wireframe. Scroll to tilt it, or move your cursor over the art to lean the camera (pointer="on"). The reference uses height="24rem" so the copy panel leaves substantial art space on narrow screens; the shortcode default remains ratio="16/9". The copy panel has an opaque backing so arbitrary artwork cannot reduce text contrast. Text remains selectable. If you override --docs-scene-scrim, verify contrast for your entire artwork range in every supported preset.

# Parameters

Param Default Description
src — required Site asset path of the scene ES module (below). Relative only; URL schemes and // fail the build.
poster — required Site asset path of the static frame shown without JS, under reduced motion, in print, and on scene failure.
title — required Accessible name — becomes the figure’s aria-label and the poster’s alt.
runtime three Adapter id. v1 ships three.
load visible Init strategy. visible: start when the mount scrolls into view. click: defer scene fetch and start until activation. A click-only page also defers the heavy runtime. Controls are hidden until bound, without JavaScript, and under reduced motion.
pointer off on delivers normalized pointer position to the scene (fine-pointer devices only).
assets — Manifest id: data/scenes/<id>.yaml, a flat map of safe names to site asset paths. Hugo validates, fingerprints, and emits the URL map; the scene reads it through ctx.assets / ctx.fetchAsset. See Asset-backed scenes .
ratio 16/9 Positive aspect ratio of the mount. Static text supplies an intrinsic minimum to prevent clipping. Mutually exclusive with height.
height — Positive definite CSS length instead of a ratio (for example 28rem or 60dvh); percentages and zero are rejected. Static text may require a larger intrinsic minimum.
class — Extra classes on the mount.

Invalid parameters are build errors, not silent fallbacks.

# The scene module contract

A scene is a dependency-free ES module in your site’s assets/js/scenes/. The runtime calls its default export once with a frozen context and expects a small instance back. This minimal scene shows the synchronous contract; the shipped orbit adds pointer easing:

export default function createScene(ctx) {
  const { THREE, canvas, gl, width, height, dpr, palette } = ctx;

  const renderer = new THREE.WebGLRenderer({ canvas, context: gl, antialias: true });
  renderer.setSize(width, height, false);
  renderer.setPixelRatio(dpr);

  const scene = new THREE.Scene();
  const camera = new THREE.PerspectiveCamera(45, width / height, 0.1, 100);
  camera.position.set(0, 0, 5);

  const material = new THREE.MeshBasicMaterial({
    color: new THREE.Color(palette.accent.css),
    wireframe: true,
  });
  const mesh = new THREE.Mesh(new THREE.IcosahedronGeometry(1.4, 1), material);
  scene.add(mesh);

  return {
    frame(t, dt, s) {
      mesh.rotation.y += dt * 0.5;
      mesh.rotation.x = Math.sin(t * 0.0002) * 0.25 + s.scroll.progress * Math.PI;
      renderer.render(scene, camera);
    },
    onPaletteChange(p) {
      material.color.set(p.accent.css);
    },
    onResize(w, h, dpr) {
      renderer.setSize(w, h, false);
      renderer.setPixelRatio(dpr);
      camera.aspect = w / h;
      camera.updateProjectionMatrix();
    },
    dispose() {
      mesh.geometry.dispose();
      material.dispose();
      renderer.dispose();
    },
  };
}

Contract rules:

  • THREE arrives via ctx — do not bundle three into your scene (that would ship a second copy); the vendored runtime provides it.
  • Use ctx.gl as the renderer’s context (the runtime pre-creates it and uses the same context for feature detection and loss recovery).
  • frame(t, dt, signals) is called per animation frame and must render. A throw permanently retires the scene for the page — the poster returns.
  • palette is a frozen snapshot of the active preset’s tokens (accent, bg, surface, surface2, text, muted, border), each with css (string) and r/g/b sRGB floats 0–1 (null for unparseable formats). mode is "light" or "dark"; preset is the preset id.

# Signals

Signal Shape Notes
signals.scroll { progress, velocity } Native scroll of the mount through the viewport, 0→1. Raw values — smooth them in your scene if you want.
signals.pointer { x, y, active } −1..1 from the mount’s center; only armed with pointer="on" and on fine-pointer devices. Raw values — ease them in your scene, as the demo does.

# Lifecycle

data-scene-state on the mount walks idle → loading → live, with paused when scrolled away or the tab hides. Returning resumes actual frames and flushes any size changes before rendering. recovering denotes the first lost GPU context; error is terminal when anything else fails (a throwing scene, missing WebGL2, a lost GPU context that cannot recover). Explicit teardown sets disposed. Errors are logged with the [symblix-motion] tag and a stable reason code. A lost GPU context gets exactly one automatic re-init; a second loss is permanent. An async scene stays in loading (internal stage ready) until its ready promise resolves and the first frame renders; rejection or the shared 10-second startup deadline is terminal. The Scene Failure Fixtures page demonstrates the isolation live with deliberately broken scenes.

# Degradation matrix

Condition Result
No JavaScript Poster + overlay; fully readable
prefers-reduced-motion: reduce Runtime never starts — poster + overlay
No WebGL2 state=error, poster + overlay
Scene throws / fails to load state=error, poster + overlay, other scenes unaffected
ready rejects or exceeds the 10 s deadline state=error, poster + overlay, generation aborted
Invalid asset manifest (hand-edited) state=error before any request for that mount
Print Canvas hidden, poster printed

# Type hints for scene authors

THREE arrives as a function argument, so editors do not type it automatically. Drop this scenes.d.ts next to your scenes to restore editor hints (the shape mirrors the contract table above):

declare namespace scene {
  export interface Color { css: string; r: number | null; g: number | null; b: number | null }
  export interface Palette {
    preset: string;
    mode: "light" | "dark";
    accent: Color; bg: Color; surface: Color; surface2: Color;
    text: Color; muted: Color; border: Color;
  }
  export interface Signals {
    scroll: { progress: number; velocity: number };
    pointer: { x: number; y: number; active: boolean };
  }
  export interface Context {
    api: 1;
    THREE: object;
    gl: WebGL2RenderingContext;
    canvas: HTMLCanvasElement;
    width: number; height: number; dpr: number;
    mount: HTMLElement;
    palette: Palette;
    signal: AbortSignal;
    onDispose(cleanup: () => void): void;
    assets: Readonly<Record<string, string>>;
    fetchAsset(name: string): Promise<Response>;
  }
}
declare function createScene(ctx: scene.Context): {
  ready?: Promise<void>;
  frame(t: number, dt: number, s: scene.Signals): void;
  onResize?(w: number, h: number, dpr: number): void;
  onPaletteChange?(p: scene.Palette): void;
  dispose?(): void;
};

Context members beyond the synchronous basics:

Member Contract
ctx.signal AbortSignal that fires when this scene generation retires (failure, teardown, motion revocation, context loss). Check it after every await.
ctx.onDispose(fn) Registers cleanup for the current generation. Call it before an async continuation so partial construction cannot leak; the runtime runs each cleanup exactly once.
ctx.assets Frozen allowlisted map of manifest name → same-origin URL. Empty without assets=.
ctx.fetchAsset(name) Fetches the captured URL with the generation signal and credentials: "same-origin"; rejects for unknown names or non-OK responses.
instance.ready Optional thenable gating the first frame. The poster stays until it resolves; rejection or the shared 10 s startup deadline is terminal. An async factory is invalid, not silently adopted.
ctx.palette The initial snapshot only — later preset changes arrive through onPaletteChange.

# Resource ownership

Factories are synchronous. ctx.signal aborts when a scene generation retires. Use ctx.onDispose(cleanup) to register resources before construction can throw; the runtime invokes each registered cleanup once, including after partial failure. The returned instance’s dispose() is a separate once-only callback: avoid registering the same resource disposal in both places.

frame(t, dt, signals) receives a millisecond performance timestamp and seconds since the previous active frame. The first frame after a pause receives dt=0 and zero scroll velocity. Accumulate dt for simulations that should stop in the background.

# Asset-backed scenes

A scene that needs data — a model, a diagram, an authored JSON layout — does not hardcode URLs. The assets parameter selects data/scenes/<id>.yaml: a flat map of safe names to site asset paths, validated, resolved, and fingerprinted by Hugo at build time. The mount receives the map as a frozen ctx.assets, and ctx.fetchAsset(name) fetches the allowlisted URL with the generation’s AbortSignal and credentials: "same-origin". Every entry is re-validated at consumption — the runtime does not trust the attribute just because its own build wrote it. Names must match ^[a-z][a-z0-9_-]{0,63}$ (at most 64 entries, no nesting, no scheme, query, fragment, or .. segment).

Example data/scenes/instrument.yaml:

model: models/instrument.json

The instance may declare an optional ready: Promise<void>. The host keeps the poster while readiness is pending, validates the thenable shape, then waits for it — and only a successful first frame marks the mount live. Module admission through readiness shares one 10,000 ms deadline; a rejection or timeout is terminal for that host (scene-ready / scene-timeout), the generation aborts, registered cleanups run once, and the poster stays. Asynchronous factories are invalid, not silently adopted — createScene must return synchronously and put its waiting in ready.

Ownership example — register disposal before each async continuation, and abort-check after it:

export default function createScene(ctx) {
  const { THREE, gl, canvas } = ctx;
  const renderer = new THREE.WebGLRenderer({ canvas, context: gl });
  const scene = new THREE.Scene();
  const camera = new THREE.PerspectiveCamera(45, 1, 0.1, 100);
  camera.position.z = 5;
  ctx.onDispose(() => renderer.dispose());

  let model = null;
  const ready = ctx.fetchAsset("model")
    .then((response) => response.json())
    .then((json) => {
      if (ctx.signal.aborted) return;
      model = new THREE.ObjectLoader().parse(json);
      ctx.onDispose(() => {
        model.traverse((n) => { n.geometry?.dispose(); n.material?.dispose(); });
      });
      scene.add(model);
      return undefined;
    });

  return {
    ready,
    frame() { renderer.render(scene, camera); },
    onResize(w, h) { renderer.setSize(w, h, false); camera.aspect = w / h; camera.updateProjectionMatrix(); },
  };
}

This mount demonstrates the full path with the shipped local model — the poster stands until the parsed instrument renders, and a withheld or failed asset leaves the poster with no dead canvas:

Instrument — the asset-backed readiness demo
Loaded from data/scenes/instrument.yaml. The JSON object is fetched through ctx.fetchAsset, parsed by three’s ObjectLoader, and revealed only after readiness — ordinary Hugo asset handling, subpath-safe and same-origin.

The ObjectLoader JSON here is a plain core-three format: the theme ships no glTF/Draco/KTX2 addon support, and loading external model formats would be a separate pinned-dependency decision. Site scenes remain responsible for any requests their own code makes beyond the helper.

# Troubleshooting

The debug setting reserves verbose diagnostics; measured startup and CPU timing will be delivered with the diagnostics slice of SYM-MOT-002. The data-scene-state attribute on the mount and window.SymblixMotion.hosts are always available for inspection.

# Budgets

Scene pages download a small same-origin bootstrap (≤ 4 KiB raw). It waits for page load, idle time, foreground visibility, motion permission, and visible or click intent before downloading the heavy runtime (three.js included, ≤ 780 KiB raw / ≤ 220 KiB gzip). Reduced motion prevents heavy runtime and scene requests. If motion is revoked after activation, scenes retire to their posters until the next navigation or reload. Scene modules are site content — keep each under ~50 KB and posters under ~200 KB. See the README for the full budget policy.

Scene Failure Fixtures

Every row of the degradation matrix, live: deliberately broken scenes demonstrating the motion runtime's error isolation.

These mounts are intentionally broken. They exist to demonstrate, live, the degradation guarantees from Scenes : a scene that misbehaves is that scene’s problem — the page, its layout, and its sibling scenes keep working, and the poster returns.

The browser console will show [symblix-motion] warnings on this page. That is the error isolation working as designed, not a bug.

# Author-code failures

Fixture — createScene throws
This scene’s createScene throws immediately. The runtime marks the mount error, logs a warning, and leaves the poster standing.
Healthy control
The healthy control: this mount starts normally while its broken siblings fail around it — one scene’s failure never affects another.
Fixture — module throws at import
This scene’s module throws during import, before any runtime code runs. The rejected fetch lands the mount in error exactly like author-code failures do.
Fixture — bad export shape
The module’s default export is not a function. The runtime validates the shape before invoking anything.
Fixture — scene API mismatch
The module declares scene API 99; the runtime ships API 1. A declared mismatch is refused up front.

# Click-gated loads

With load="click", both the module fetch and the scene start wait for the visitor to press the button. Without JavaScript or under reduced motion, activation controls are hidden and the poster is the whole content. A click-only page also defers the heavy runtime; on this mixed page, the visible control can admit the shared runtime first.

Fixture — click-gated createScene throw
Press the button: the scene fetches, starts, and throws — one strike, and the poster returns. A broken scene is not retryable.
Click-to-load control
The working click-gated control: press the button and this scene starts normally, exactly like its visible sibling above.

Tabs

Stacked tab panels that keep all content visible without JavaScript.

Tabs are rendered as stacked panels so all content remains visible without JavaScript.

Install

Run the install command for your platform.

Configure

Set the required configuration values before deployment.

Verify

Confirm the generated site builds cleanly and the docs render.

Desktop

Desktop layouts keep the tab row horizontal.

Mobile

Mobile layouts still expose the same content, just in a narrower view.

Cards

Card layouts and inline badges for docs navigation and metadata.

stable beta

Status

Badges render inline outside the card wrapper.

Reference

Structured reference blocks for configuration, APIs, commands, and status codes.

Reference components

Structured reference

Replace raw tables with scannable, linkable reference items.

params.docs.rightToc

Sincev1.0
Type
boolean
Default
true
Since
v1.0
Controls whether the right-side table of contents appears on documentation pages.

title

Required
Type
string
Required
Yes
Visible title for the component or page.

versions[].id

RequiredSincev1.0
Type
string
Required
Yes
Since
v1.0
URL segment and internal version key used for routing and version switching.

HUGO_ENV

Default
production
Controls the Hugo build environment and can be used to branch build behavior.

symblix audit

Audits documentation content and reports broken links, stale pages, and missing metadata.

symblix audit ./exampleSite

GET /v1/projects/{id}

Sincev1.0
Method
GET
Path
/v1/projects/{id}
Auth
required
Since
v1.0
Returns a project by ID.

404 Not Found

Code
404
Label
Not Found
The requested project does not exist or the caller does not have access.

Child pages, section maps, and related page discovery components.

Discovery components

Navigation and discovery

Use child-pages, section-map, and related-grid to make section pages self-explaining.

Methods

Compare alternate implementation paths in stacked, readable panels.

Implementation paths

Methods

Use methods to present alternate ways to complete the same task without hiding content behind JavaScript.

npm

Recommended

Install dependencies with the default package manager.

npm install

pnpm

Use pnpm when your project standardizes on it.

pnpm install

yarn

Use yarn when that is the repository convention.

yarn install

Code Groups

Display alternate code snippets as readable stacked blocks.

Code snippets

Code groups

Present alternate commands or snippets in a static, readable format.

npm

package manager sh
	

pnpm

package manager sh
	

yarn

package manager sh
	

Print

All-in-one print compilation for the major theme components.

This page compiles the major theme components into a single print-friendly document. Use print preview to verify that the content remains readable when navigation, TOC, and interactive chrome are hidden.

# Callouts

# Figures

A simple docs layout diagram
Figures should remain readable in print output.

# Tabs

Layout

Print keeps the article column readable while removing sidebar and TOC chrome.

Content

Headings, paragraphs, lists, tables, and figures should all remain legible.

Panels

Every tab panel prints so reviewers can inspect the full component state.

# Methods

Screen

Default
The screen layout uses compact navigation and interactive controls.

Print

The printed layout removes the chrome and shows every panel inline.

Archive

The archived view keeps the same readable structure without live UI.

# Code groups

HTML

article html
	

Markdown

fixture md
	

CSS

print.css css
	

# Cards

Use structured blocks for configs, commands, and statuses.
Sidebar

Navigation

Review the content tree and manual navigation behavior.

# Reference

params.docs.rightToc

Sincev1.0
Type
boolean
Default
true
Since
v1.0
Controls whether the right-side table of contents appears on documentation pages.

GET /v1/projects/{id}

Sincev1.0
Method
GET
Path
/v1/projects/{id}
Auth
required
Since
v1.0
Returns a project by ID in the reference documentation model.

404 Not Found

Code
404
Label
Not Found
The requested project does not exist or the caller does not have access.

# Steps

  1. Open print preview

    Required
    Use the browser print dialog or preview mode to inspect the full page.
  2. Check panels

    Required
    Confirm that tabs, methods, and code groups print all panels and snippets.
  3. Review spacing

    Optional
    Make sure cards, tables, figures, and reference blocks stay readable on paper.

# Table

Element Print behavior
Sidebar Hidden
TOC Hidden
Tabs All panels visible
Methods All methods visible
Code groups All snippets visible
Details Expanded in print

All Pages

Browse every page in the latest documentation tree.

Use this index to browse the current documentation without search.

Getting Started

Install the project, understand the content tree, and build your first example.

Start here to confirm the documentation site is wired correctly and to understand the minimum content structure the theme expects.

# Installation

The example site runs from the repository root:

hugo server --source exampleSite --theme hugo-theme-symblix

You can also build the site without the live server:

npm run build

# Basic content structure

The theme is built around a simple Hugo tree:

content/
  en/
    docs/
      latest/
        _index.md
        getting-started.md
        configuration.md
        user-guide/
          _index.md
          writing-your-docs.md

Section pages such as _index.md create navigation groups. Regular Markdown pages become leaf nodes. The sidebar is generated from the content tree or from data/docs_nav.yaml when manual navigation is enabled.

# MkDocs-to-Hugo mapping

If you are coming from MkDocs, map the concepts like this:

MkDocs Hugo equivalent
docs/index.md Section _index.md
Nested pages Folders with _index.md and child pages
Nav file Content tree or optional data/docs_nav.yaml
Markdown extensions Hugo Markdown plus render hooks and shortcodes

Technical Content

A page that exercises prose, code, tables, blockquotes, and figures.

Technical documentation has to stay readable when it gets dense.

This page exists to exercise the content styling layer. It includes long prose, inline code like hugo --source exampleSite --theme hugo-theme-symblix, a blockquote, a code block, a table, and an image.

Good docs optimize for scanning first and deep reading second.

Here is a fenced code sample:

[params.docs]
root = "docs"

And here is a wide table:

Column A Column B Column C Column D Column E Column F
One Two Three Four Five Six
Alpha Beta Gamma Delta Epsilon Zeta

Here is the same image rendered through Markdown image syntax:

A simple docs layout diagram
Markdown image caption

A simple docs layout diagram
Responsive images should stay within the prose column.

The last paragraph is intentionally long to confirm the measure remains readable and the content column does not over-expand on large screens.

See the components index for the component gallery.

# Hooked headings

Heading render hooks should preserve stable anchors and visible link targets. See the Hugo multilingual docs for a representative external link.

Code and Tables

Code-heavy and table-heavy content for visual verification.

This page is intentionally compact but dense.

set -euo pipefail
hugo --source exampleSite --theme hugo-theme-symblix --cleanDestinationDir
Setting Default Notes
root docs Documentation root section.
logoAlt Symblix Fallback logo text.
enabled true Enables search UI.

Inline code should not blow up the layout, even if it is verylongandunbrokenandkeptinlineforstress-testing.

Configuration

Configure the theme, the content tree, and the example site from scratch.

Configuration is where the theme becomes your site rather than the example site.

# Minimal Hugo config

This is the smallest useful shape for a Symblix-style site:

baseURL = "https://example.com/"
title = "My Docs"
theme = "hugo-theme-symblix"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true

[languages.en]
contentDir = "content/en"

[taxonomies]
tag = "tags"

[params.docs]
root = "docs"
rightToc = true

[outputs]
home = ["HTML", "RSS", "SearchIndex"]

[params.docs.nav]
mode = "manual"
data = "docs_nav"

The [languages] block matters even for a single language: without contentDir = "content/en", Hugo treats content/ as the content root and pages under content/en/ publish to doubled paths like /en/en/docs/…, which breaks manual-navigation lookups.

The root parameter is the name of the top-level docs section under each language’s content directory (docs in the example site, but any folder name works). Set [outputs] home so the theme publishes the per-language search-index.json used by the search page.

# Content tree

The example site expects a straightforward tree of Markdown pages:

content/
  en/
    docs/
      latest/
        _index.md
        getting-started.md
        configuration.md
        navigation.md

The example site adds more pages, but the core idea stays the same: use folders and _index.md for navigation groups, use front matter weight for ordering, and let Hugo build the tree.

# Optional parameters

Parameter Default Purpose
params.docs.root docs Section name of the documentation tree.
params.docs.rightToc true Show the “On this page” table of contents.
params.docs.favicon theme’s favicon.svg Set to any path to override the shipped icon.
params.docs.versions.noindexArchived false Adds noindex to archived versions, drops them from the sitemap, and excludes them from the search index.
params.docs.components.reference.headingLevel 3 Heading level used by reference shortcodes.
params.docs.theme.preset minimal Visual preset: minimal, rounded, or high-contrast.
params.docs.theme.density comfortable Spacing density for callouts and code blocks: comfortable, compact, or dense.
params.features.themeSwitcher off unless set Renders the light/dark/system preference control.
params.seo.openGraph / params.seo.twitterCards off unless set Emit OG and Twitter card meta tags.
params.images / page images — Image URLs used for og:image / twitter:image.

# CSS customization

The theme ships pre-built CSS at assets/css/compiled/theme.css, so a site works with hugo alone — no Node.js, npm, or security-policy changes required. The compiled stylesheet is regenerated from the Tailwind source layers with npm run build:css whenever you customize them.

If you build styles from source (see Customization ), allow the Tailwind CLI in Hugo’s security policy:

[security.exec]
allow = ['^(dart-)?sass$', '^go$', '^git$', '^node$', '^postcss$', '^tailwindcss$']

Understand automatic and manual navigation, page ordering, and browse fallbacks.

Navigation is the theme’s core structure. It is generated from the content tree by default and can be overridden with optional data when you need a curated sidebar.

# Automatic navigation

Use Hugo section pages and weight values to shape the sidebar:

content/
  en/
    docs/
      latest/
        _index.md
        getting-started.md
        navigation.md
        components/
          _index.md
          callouts.md

Automatic navigation is the default because it keeps authoring close to content.

# Manual navigation

When you need an explicit sidebar order, use data/docs_nav.yaml. The example site keeps a manual tree so it can demonstrate the override path without changing the content structure.

# Hidden pages

Pages can be hidden from navigation with front matter:

nav = { hidden = true }

That keeps draft, internal, or temporary content out of the sidebar, the search index, and the browse pages while leaving the page buildable. The flag lives inside the nav map — a bare hidden = true at the top level of front matter is not read by the theme.

# Browse fallback

If a reader wants the whole tree in one place, use the browse page at all-pages/. The no-JavaScript baseline keeps that path visible in the sidebar links.

Versioning

Publish documentation versions that track releases of your software project.

Documentation versions in this theme correspond to releases of the matching software project. When the project ships a new release, the docs for the previous release are frozen in place and a new tree carries the current documentation.

# Model

  • latest (or whatever current points to) is the live documentation for the current development state.
  • Each released version gets its own content tree (v1.0/, v2.0/, …) that is frozen when the software ships.
  • Archived versions stay browsable, are clearly labelled in the version switcher, and — with noindexArchived = true — are excluded from search engines and the sitemap so they do not compete with current docs in search results.

The example site ships a latest tree and an archived v1.0 tree:

  • /en/docs/latest/
  • /en/docs/v1.0/

# Version data

data/docs_versions.yaml declares the versions, their labels, and their release state:

current: latest
versions:
  - id: latest
    label: Latest
    weight: 100
    archived: false
  - id: v1.0
    label: v1.0
    weight: 90
    archived: true

The id must match the folder name under the docs root (in every language). weight controls the ordering in the version switcher.

# Release workflow

  1. While developing toward a release, edit pages under content/<lang>/docs/latest/.
  2. When the software ships version X.Y, copy the latest/ tree to content/<lang>/docs/vX.Y/ and freeze it.
  3. Add a vX.Y entry to data/docs_versions.yaml with archived: true.
  4. Keep fixing forward in latest/; backport only if the archived release is still supported.
  5. When an archived release reaches end of life, either mark it clearly in the switcher or remove its tree and data entry.

The current slug is not limited to the name latest — projects that prefer a stable tree can name the folder content/<lang>/docs/stable/ and set current: stable. Everything else in this page works the same.

# Versioned navigation

A version tree can ship its own sidebar navigation. Create a data file named after the base nav file plus the version id — for the default data = "docs_nav" setting, data/docs_nav_v1.0.yaml is used for every page under docs/v1.0/, while all other versions keep using docs_nav.yaml:

items:
  - title: Home
    page: /en/docs/v1.0/

  - title: Getting Started
    page: /en/docs/v1.0/getting-started/

The example site ships exactly this file, so switching to v1.0 also switches the sidebar.

# Translations and archived versions

Translated trees only need to track the current version. An archived release that exists only in the default language is normal: the version switcher and language switcher both degrade gracefully (per language, then to the version root, then to the language home).

# Resolution warnings

Two build-time warnings help catch versioning drift:

  • A warnf fires when a version id in data/docs_versions.yaml has no matching content section in any language (a data/content mismatch). A version missing from only some languages is expected and stays silent.
  • Set versions.warnUnresolved = true under [params.docs] to also warn whenever the version switcher cannot find a page equivalent and falls back to linking the version root. Useful as a lint pass when pruning or renaming pages between releases; off by default because falling back is often intended.

# Equivalent pages

Version switching keeps the reader as close to their current page as possible: it first looks for the same path in the target version, then for a sibling page with the same file name, and finally lands on the target version root.

Long Page

A long page that exercises the right-side table of contents.

This page exists to test the table of contents behavior on a heading-heavy page.

# First Section

Content under the first section.

# First Subsection

More detail under the first subsection.

# Second Section

Additional content that should appear in the TOC.

# Second Subsection

More heading content for the TOC tree.

# Third Section

One more section to keep the TOC populated.

# Third Subsection

The mobile details summary should still work without JavaScript.

# Fourth Section

Enough headings to make the TOC useful on desktop.

Multilingual

Translate the docs tree and keep language-specific fallbacks clear.

The theme is built around Hugo’s multilingual mode.

# Language configuration

The example site defines each language in exampleSite/hugo.toml:

Language Locale Direction
English en-US ltr
French fr-FR ltr
Japanese ja-JP ltr
Arabic ar rtl

# Content directories

Each language gets its own content root:

content/
  en/
  fr/
  ja/
  ar/

Use defaultContentLanguageInSubdir = true so translated URLs stay language-prefixed and predictable.

# Translation behavior

The docs shell shows translation warnings when a page is machine translated or incomplete. When a page does not exist in a target language, the theme can fall back to the equivalent page in the default language or to the version root.

What the example site demonstrates
  • lang and dir on the root <html>
  • language switcher placement in the sidebar
  • Arabic RTL layout and code blocks that remain LTR
  • translation-aware page navigation
  • lang and dir on the root <html>
  • language switcher placement in the sidebar
  • Arabic RTL layout and code blocks that remain LTR
  • translation-aware page navigation

Interactive search with a static, JavaScript-free fallback.

The docs ship an interactive search page backed by a per-language JSON index, plus a static fallback that works without JavaScript.

# How search works

  • With JavaScript, typing searches the full documentation index for the current language. Results are scoped to the current version by default, with version, type, and topic filters.
  • Without JavaScript, the interactive index is unavailable. The complete page list for the current version is rendered below the search box — use your browser’s find-in-page, or open the browse index.

Each language publishes its own search-index.json at the language root, so the payload stays small and the default scope is “current language + current version”.

# What the index contains

To keep the payload lean, the index stores prose, not markup:

  • Code blocks are stripped before indexing. Highlighted source dominates page weight but rarely improves ranking; titles, descriptions, and prose carry the match.
  • Archived versions are excluded when versions.noindexArchived = true — the same policy that keeps them out of the sitemap applies to on-site search, so results never promote pages the site tells crawlers to forget.
  • Hidden pages (nav entries with hidden = true) are excluded.
  • Results show a context snippet around the first query match, with the matched text highlighted.

The filter bar is hidden until the index loads, so readers without JavaScript never see empty selects — they get the server-rendered catalog instead.

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) from assets/css/theme.css.
  • With Node (Tailwind source build): install dependencies (npm install), edit assets/css/input.css and the component layers it imports, then regenerate the compiled file:
npm run build:css

For 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

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" line

Social 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.