lustre/ui/util/colour

Types

pub type Scale {
  Scale(
    app_background: Colour,
    app_background_subtle: Colour,
    app_border: Colour,
    element_background: Colour,
    element_background_hover: Colour,
    element_background_strong: Colour,
    element_border_subtle: Colour,
    element_border_strong: Colour,
    solid_background: Colour,
    solid_background_hover: Colour,
    text_high_contrast: Colour,
    text_low_contrast: Colour,
  )
}

Constructors

  • Scale(
      app_background: Colour,
      app_background_subtle: Colour,
      app_border: Colour,
      element_background: Colour,
      element_background_hover: Colour,
      element_background_strong: Colour,
      element_border_subtle: Colour,
      element_border_strong: Colour,
      solid_background: Colour,
      solid_background_hover: Colour,
      text_high_contrast: Colour,
      text_low_contrast: Colour,
    )

Functions

pub fn amber() -> Scale
pub fn amber_dark() -> Scale
pub fn blue() -> Scale
pub fn blue_dark() -> Scale
pub fn bronze() -> Scale
pub fn bronze_dark() -> Scale
pub fn brown() -> Scale
pub fn brown_dark() -> Scale
pub fn crimson() -> Scale
pub fn crimson_dark() -> Scale
pub fn cyan() -> Scale
pub fn cyan_dark() -> Scale
pub fn encode_scale(scale: Scale) -> Json
pub fn gold() -> Scale
pub fn gold_dark() -> Scale
pub fn grass() -> Scale
pub fn grass_dark() -> Scale
pub fn green() -> Scale
pub fn green_dark() -> Scale
pub fn grey() -> Scale
pub fn grey_dark() -> Scale
pub fn indigo() -> Scale
pub fn indigo_dark() -> Scale
pub fn iris() -> Scale
pub fn iris_dark() -> Scale
pub fn jade() -> Scale
pub fn jade_dark() -> Scale
pub fn lime() -> Scale
pub fn lime_dark() -> Scale
pub fn mauve() -> Scale
pub fn mauve_dark() -> Scale
pub fn mint() -> Scale
pub fn mint_dark() -> Scale
pub fn olive() -> Scale
pub fn olive_dark() -> Scale
pub fn orange() -> Scale
pub fn orange_dark() -> Scale
pub fn pink() -> Scale
pub fn pink_dark() -> Scale
pub fn plum() -> Scale
pub fn plum_dark() -> Scale
pub fn purple() -> Scale
pub fn purple_dark() -> Scale
pub fn red() -> Scale
pub fn red_dark() -> Scale
pub fn ruby() -> Scale
pub fn ruby_dark() -> Scale
pub fn sage() -> Scale
pub fn sage_dark() -> Scale
pub fn sand() -> Scale
pub fn sand_dark() -> Scale
pub fn scale_decoder(
  json: Dynamic,
) -> Result(Scale, List(DecodeError))
pub fn sky() -> Scale
pub fn sky_dark() -> Scale
pub fn slate() -> Scale
pub fn slate_dark() -> Scale
pub fn teal() -> Scale
pub fn teal_dark() -> Scale
pub fn tomato() -> Scale
pub fn tomato_dark() -> Scale
pub fn violet() -> Scale
pub fn violet_dark() -> Scale
pub fn yellow() -> Scale
pub fn yellow_dark() -> Scale
Search Document