# `Alaja.Syntax.Theme`
[🔗](https://github.com/Lorenzo-SF/alaja/blob/2.1.0/lib/alaja/syntax/theme.ex#L1)

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:

  1. Language-level colors (`lang.colors`)
  2. Global `Syntax.Theme`
  3. Hardcoded defaults

## Example

    %Theme{
      name: "dracula",
      colors: %{
        keyword:  {:pink,    [:bold]},
        string:   {:yellow,  []},
        comment:  {:cyan,    [:italic]},
        number:   {:purple,  []}
      }
    }

# `t`

```elixir
@type t() :: %Alaja.Syntax.Theme{colors: map(), name: String.t()}
```

# `default`

Returns the default theme with hardcoded fallback colors.

# `resolve`

Resolves a token type's color and effects through a theme chain.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
