Configuration reference
~/.tg.json stores CLI state, not a complete target configuration. Unknown keys survive writes; missing or malformed files recover with defaults.
| Field | Type | Owner |
|---|---|---|
customThemes | string[] | Theme discovery during generation. |
lastAppliedTheme | theme ID or null | Generation and application flow state. |
favoriteSeedColors | { color, variant }[] | Favorites; legacy string favorites migrate on read. |
lastUsedSeedColor | hex color or null | Seed generation. |
lastUsedVariant | variant or null | Seed generation. |
lastUsedThemes | optional { 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.