Skip to content
HomePagesHomePages template kit

template-kit theme

The `template-kit theme` command — its arguments, flags, exit codes and constraints.

Generate a template’s theme CSS from its theme.ts.

Terminal window
template-kit theme [template] [--all] [--no-auto-update]
Argument Required What it does
template no Generate one template’s theme by its key. Omitted, the template is inferred from the current directory, or is the workspace’s only one.
Flag Type Default What it does
--all boolean false Generate every template in the workspace
--no-auto-update boolean false Skip the package refresh this command runs first when the workspace is behind the published release
Code When
0 every selected template’s theme CSS was written
1 the workspace holds no template, or a theme fails validation
  • The generated theme.css is build output — re-run this after changing theme.ts rather than editing it.
  • Every command — the rest of the CLI’s surface.
  • This CLI drives any kit in ^9.0.0; template-kit --version prints the pair.