Autumn.Theme (Autumn v0.3.2)

View Source

A Neovim theme.

Contains the name, appearance, and a map of highlight Autumn.Theme.Style's.

Autumn bundles the most popular themes from the Neovim community, you can see the full list with Autumn.available_themes/0 and then fetch one of the bundled themes with Autumn.Theme.get/1.

Or check out all the available themes.

Example

%Autumn.Theme{
   name: "github_light",
   appearance: "light",
   highlights: %{
     "function.macro" => %Autumn.Theme.Style{
       fg: "#6639ba",
       bg: nil,
       underline: false,
       bold: false,
       italic: false,
       strikethrough: false
     },
     "variable.builtin" => %Autumn.Theme.Style{
       fg: "#0550ae",
       bg: nil,
       underline: false,
       bold: false,
       italic: false,
       strikethrough: false
     },
     "character" => %Autumn.Theme.Style{
       fg: "#0a3069",
       bg: nil,
       underline: false,
       bold: false,
       italic: false,
       strikethrough: false
     },
     ...
   }
}

Summary

Functions

Get a theme by name.

Types

t()

@type t() :: %Autumn.Theme{
  appearance: String.t(),
  highlights: map(),
  name: String.t()
}

Functions

get(name, default \\ nil)

@spec get(String.t(), any()) :: t() | nil

Get a theme by name.