defmodule OhMyExOhIrcd.Themes do
@moduledoc """
Catalog of UI themes available to the app.
Names map 1:1 to daisyUI theme plugin entries in `assets/css/app.css`.
"""
@neiam ~w(her afterdark forest sky clays stones)
@builtin ~w(light dark)
@custom ~w(blueprint)
@type theme :: String.t()
@spec all() :: [theme()]
def all, do: @builtin ++ @neiam ++ @custom
@spec neiam() :: [theme()]
def neiam, do: @neiam
@spec valid?(theme()) :: boolean()
def valid?(theme) when is_binary(theme), do: theme in all() or theme == "system"
def valid?(_), do: false
end
neiam
/oh-my-ex-oh-ircd
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
585 B · text
History
442a476