custom-theme

command
v0.0.0-...-9a2d885 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: MIT Imports: 4 Imported by: 0

README

custom-theme example

Pass Options.CSS to override the default stylesheet wholesale. The page structure (nav, headings, code blocks, tables) stays the same so any CSS that targets body, h1, h2, nav.sidebar, code, pre, table, .muted will land cleanly.

$ go run ./examples/custom-theme ./site
$ open ./site/index.html

This example uses a deliberately-loud retro green-and-magenta theme. Replace retroCSS with your company's design tokens (or import a stylesheet via Options.CSS containing @import url(...)).

Documentation

Overview

Command custom-theme demonstrates overriding the default stylesheet with operator-supplied CSS. The page structure stays the same; only colors, typography, and spacing differ. Pair with custom Options.Title to produce branded documentation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL