Files and state
~/.tg.json stores the last generated seed, favorites, and mode-specific selection state. Missing or malformed state falls back to defaults rather than preventing the command from starting; legacy favorite data is migrated as configuration is loaded.
Included custom definitions live below the installed package root’s themes/ directory. Generated sources are separate from tool-owned live destinations, which lets selection update stable pointers or copies without regenerating every file.
Shared text writes and copies use a same-directory temporary file followed by rename, preserving atomic replacement on the target filesystem. Theme Manager does not create backups and has no global rollback. Packaged targets and privileged adapter operations own their own exceptions; inspect the catalogue before relying on a particular filesystem guarantee.