You can customize highlight styles by creating a theme.toml file in ~/.config/tailspin (Windows: %APPDATA%\tailspin).
Theme Structure
Styles follow this format:
style = { fg = "color", bg = "color", italic = false, bold = false, underline = false }
Generating a Default Theme
To start with a base configuration, generate the default theme:
tspin --generate-default-theme > ~/.config/tailspin/theme.toml
Customizing Groups and Keywords
Edit existing groups:
[dates]
date = { fg = "green" }
Add custom keywords:
[[keywords]]
words = ['MyCustomKeyword']
style = { fg = "green" }
[[keywords]]
words = ['null', 'true', 'false']
style = { fg = "red", italic = true }
Add custom regex highlighters:
Supports one capture group () to apply style to matched text.
[[regexes]]
regex = 'Started (.*)\.'
style = { fg = "red" }
To load a specific theme, use the --theme flag or the TAILSPIN_THEME environment variable.
tspin --generate-default-theme > ~/.config/tailspin/theme.toml