deckctl theme
Handles theme lifecycle. Themes are persisted to themes.yaml — see the
configuration reference.
Synopsis
Section titled “Synopsis”deckctl theme [command] [flags]| Subcommand | Purpose |
|---|---|
list | List available themes |
get | Show one theme |
active | Show the active theme |
add | Add a theme |
set | Make a theme active |
remove | Remove a theme |
All subcommands also accept the global flags.
Table columns for list, get and active: Name, Primary, Secondary,
Accent, Muted.
deckctl theme list
Section titled “deckctl theme list”deckctl theme list [flags]No command-specific flags.
deckctl theme listdeckctl theme list -o jsondeckctl theme get
Section titled “deckctl theme get”deckctl theme get [name] [flags]deckctl theme get solarizeddeckctl theme active
Section titled “deckctl theme active”deckctl theme active [flags]Prints the currently active theme. If no themes.yaml exists, deckctl uses a
built-in default palette.
deckctl theme activedeckctl theme add
Section titled “deckctl theme add”deckctl theme add [flags]| Flag | Description |
|---|---|
-n, --name <name> | Theme name (must be unique) |
-p, --primary <hex> | Primary colour |
-s, --secondary <hex> | Secondary colour |
-a, --accent <hex> | Accent colour |
-m, --muted <hex> | Muted colour |
All four colours are required and must be hex — #rgb or #rrggbb. Run with
no flags to be prompted.
deckctl theme add --name solarized \ --primary "#93a1a1" --secondary "#268bd2" \ --accent "#b58900" --muted "#586e75"deckctl theme set
Section titled “deckctl theme set”deckctl theme set [name] [flags]Sets active in themes.yaml. The name must exist in the themes list.
deckctl theme set solarizeddeckctl theme remove
Section titled “deckctl theme remove”deckctl theme remove [flags]| Flag | Default | Description |
|---|---|---|
-n, --name <name> | — | Theme to remove |
--auto-approve | false | Skip the confirmation prompt |
deckctl theme remove --name solarizeddeckctl theme remove --name solarized --auto-approve