Skip to content

@theme-kit/cli

`theme-kit inspect`

text
theme-kit inspect <file> [options]

Options

OptionDescription
--file <path>Theme file to inspect (or pass positionally).

Examples

bash
theme-kit inspect themes/plum-dark.json
theme-kit inspect theme.json    # a light + dark pair

Output

For a single theme:

text
1Theme: plum-dark
2Mode: dark
3Family: plum
4
5Tokens:
6  colors: 22 items
7  radius: 1 items
8
9Meta:
10  Label: Plum Dark
11  Description: N/A
12  Version: N/A

For a { light, dark } pair, each theme is printed with its own index:

text
Theme 1: indigo-light
Mode: light
Family: indigo
...
Theme 2: indigo-dark

inspect summarizes token groups by count. To see the full token values, use export --format json or read the JSON directly.

Exit codes

CodeMeaning
0Inspected successfully.
1File not found / unreadable.
2No theme file supplied.

Next: migrate.

CLI inspect — Theme Kit