howdy/ui/themes/violet
The violet theme preset. Neutral greys with a violet primary.
import howdy/ui/themes/violet
page.new("Orders")
|> page.themes(violet.themes())
The themes are named light and dark, like the built-in ones, so
ui.theme_toggle and a theme cookie work unchanged. Copy this module
with gleam run -m howdy/ui add violet to adjust it. Every text colour
meets WCAG AA contrast against the surfaces it sits on, and the focus
ring 3:1 against the page.
Values
pub fn dark() -> theme.Theme
pub fn light() -> theme.Theme