Guppy.App.ThemeFamily (guppy v0.1.0)

Copy Markdown View Source

Validated collection of related themes.

Theme families are app/user data. They mirror Zed's idea of a named family with light/dark variants, but Guppy stores already-validated Elixir theme structs and resolves them by stable theme id.

Summary

Functions

Looks up a validated theme by id within a family.

Types

t()

@type t() :: %Guppy.App.ThemeFamily{
  author: String.t() | nil,
  id: String.t(),
  metadata: map(),
  name: String.t(),
  themes: %{optional(String.t()) => Guppy.App.Theme.t()}
}

Functions

get(arg1, theme_id)

@spec get(t(), atom() | String.t()) :: {:ok, Guppy.App.Theme.t()} | {:error, term()}

Looks up a validated theme by id within a family.