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.
Synopsis
Section titled “Synopsis”template-kit theme [template] [--all] [--no-auto-update]Arguments
Section titled “Arguments”| 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 |
Exit codes
Section titled “Exit codes”| Code | When |
|---|---|
0 |
every selected template’s theme CSS was written |
1 |
the workspace holds no template, or a theme fails validation |
Constraints
Section titled “Constraints”- The generated
theme.cssis build output — re-run this after changingtheme.tsrather than editing it.
See also
Section titled “See also”- Every command — the rest of the CLI’s surface.
- This CLI drives any kit in
^9.0.0;template-kit --versionprints the pair.