howdy/ui/themes/green

The green theme preset. Neutral greys with a green primary.

import howdy/ui/themes/green

page.new("Orders")
|> page.themes(green.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 green 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
pub fn themes() -> theme.Themes

Light by default, dark when the system prefers it.

✨ Search Document