tca-cli
CLI tool for managing TCA themes. Themes are base24 YAML files stored in $XDG_DATA_HOME/tca/themes/ (default: ~/.local/share/tca/themes/).
Installation
Or from source:
Commands
tca validate <theme>
Validates a base24 YAML theme file. Checks that the file parses correctly and reports WCAG contrast warnings/errors for all UI and semantic color pairs.
Exit code is non-zero if any contrast errors are found.
tca list
Lists all available themes: built-in themes and any themes installed in the user themes directory.
tca add [OPTIONS] [THEME]...
Adds one or more themes to the user themes directory. Each argument can be:
- A path to a
.yamltheme file. - A path to a directory, all
.yamlfiles in it are copied. - A theme name, downloaded from the remote theme repository.
tca init [OPTIONS]
Creates a default config file and writes the built-in themes to the user themes directory.
tca config [SUBCOMMAND]
Shows or sets user configuration. Config is stored at $XDG_CONFIG_HOME/tca/tca.toml (default: ~/.config/tca/tca.toml).
Theme names can be in any standard case ("Tokyo Night", "tokyo-night", "TokyoNight" all work).
Theme Directory
Themes are base24 YAML files (*.yaml) in $XDG_DATA_HOME/tca/themes/ (default ~/.local/share/tca/themes/).
Use tca init or tca add to populate this directory.
License
MIT