# `Tayori.Category`
[🔗](https://github.com/hattoriai/tayori/blob/v0.1.0/lib/tayori/category.ex#L1)

A category of entries ("New", "Improved", "Fixed"): a key, its name in
each language, a colour and its place in the list. Entries keep the keys
of their categories.

The colour is one of `colors/0`, a name the themes give a hue to
(`--tayori-category-blue`, say), so that a category looks right in
every theme, light and dark.

# `t`

```elixir
@type t() :: %Tayori.Category{
  __meta__: term(),
  color: String.t(),
  inserted_at: term(),
  key: String.t() | nil,
  names: %{optional(String.t()) =&gt; String.t()},
  position: integer(),
  updated_at: term()
}
```

# `colors`

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

The colours a category can have.

# `name`

```elixir
@spec name(t(), String.t() | nil, [String.t()]) :: String.t()
```

The name of a category in a language, else in the first of `locales`,
else its key.

---

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