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. |
lastGeneratedTheme | theme ID or null | Last theme generated by the generation flow. |
favoriteSeedColors | { color, variant }[] | Favorites; legacy string favorites migrate on read. |
lastUsedSeedColor | hex color or null | Seed generation. |
lastUsedVariant | variant or null | Seed generation. |
activeTheme | theme ID or null | User-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.