Global syntax highlighting theme.
Maps token types to {color, [effects]} pairs. Colors are resolved
through Pote's theme system, so they accept atoms, hex strings, or
"theme:<key>" strings.
When rendering, the lookup order is:
- Language-level colors (
lang.colors) - Global
Syntax.Theme - Hardcoded defaults
Example
%Theme{
name: "dracula",
colors: %{
keyword: {:pink, [:bold]},
string: {:yellow, []},
comment: {:cyan, [:italic]},
number: {:purple, []}
}
}
Summary
Functions
Returns the default theme with hardcoded fallback colors.
Resolves a token type's color and effects through a theme chain.