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.
lastAppliedThemetheme ID or nullGeneration and application flow state.
favoriteSeedColors{ color, variant }[]Favorites; legacy string favorites migrate on read.
lastUsedSeedColorhex color or nullSeed generation.
lastUsedVariantvariant or nullSeed generation.
lastUsedThemesoptional { dark?, light? }Mode-specific selection state.

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.