gen

command
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 html[data-theme="<name>"] block of CSS custom properties per theme.
  • web/src/composables/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