Home

stencila themes validate

Validate a theme file

Checks that the CSS can be parsed and that custom properties correspond to known builtin design tokens (see stencila themes tokens).

Usage

stencila themes validate [OPTIONS] <FILE>

Examples

# Validate a workspace theme
stencila themes validate theme.css

# Treat unknown tokens as errors
stencila themes validate theme.css --strict

# Output validation result as JSON
stencila themes validate theme.css --as json

Arguments

NameDescription
<FILE>Path to the CSS file to validate.

Options

NameDescription
--strictTreat unknown tokens as errors (non-zero exit code). Possible values: true, false.
--asOutput as a machine-readable format. Possible values: json, yaml, toml.
© 2026 Stencila