Skip to content

Configuration reference

~/.tg.json stores CLI state, not a complete target configuration. Unknown keys survive writes; missing or malformed files recover with defaults.

FieldTypeOwner
customThemesstring[]Theme discovery during generation.
lastGeneratedThemetheme ID or nullLast theme generated by the generation flow.
favoriteSeedColors{ color, variant }[]Favorites; legacy string favorites migrate on read.
lastUsedSeedColorhex color or nullSeed generation.
lastUsedVariantvariant or nullSeed generation.
activeThemetheme ID or nullUser-selected theme family; read by tman apply.

State writes use a same-directory temporary file followed by rename. This is atomic replacement for the normal state path, not a backup or rollback mechanism.

Read the configuration guide for behavior and recovery details.