Help us shape the future of Go! Take the 2026 Go Developer Survey

gen

command
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command gen emits the web theme artifacts from the single source of truth in package theme. It is invoked via `go generate ./internal/theme/...` (see the //go:generate directive in palette.go).

Two files are generated (both build artifacts, gitignored — never edit by hand):

  • web/src/styles/tokens.generated.css : one [data-theme="<name>"] block of CSS custom properties per theme.
  • web/src/lib/themes.generated.ts : the theme registry (id, label, appearance) the picker UI iterates, so the list can't drift either.

Jump to

Keyboard shortcuts

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