# `ECharts.Theme`
[🔗](https://github.com/Mateus-M-Reis/echarts/blob/main/lib/echarts/theme.ex#L1)

Ready-made ECharts theme maps.

An ECharts theme is a map of component styles. The maps below match the
palettes used by the bundled examples and work in every integration:

    chart = ECharts.new(option, theme: ECharts.Theme.dark())

For the two built-in presets you can also pass `theme: :dark` (the ECharts
dark theme) or `theme: :light` (the default palette). A theme map is
useful when you want a specific background and palette that follow your
application instead of ECharts' built-ins.

# `dark`

```elixir
@spec dark() :: map()
```

A dark theme map with a near-black background and a cyan-led palette.

# `dark_palette`

```elixir
@spec dark_palette() :: [String.t()]
```

Returns the palette used by `dark/0`.

# `light`

```elixir
@spec light() :: map()
```

A light theme map with a slate background and a blue-led palette.

# `light_palette`

```elixir
@spec light_palette() :: [String.t()]
```

Returns the palette used by `light/0`.

---

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