catppuccin

Types

pub type Color {
  Color(
    name: String,
    order: Int,
    accent: Bool,
    hex: Hex,
    rgb: RGB,
    hsl: HSL,
  )
}

Constructors

  • Color(
      name: String,
      order: Int,
      accent: Bool,
      hex: Hex,
      rgb: RGB,
      hsl: HSL,
    )
pub type HSL {
  HSL(h: Float, s: Float, l: Float)
}

Constructors

  • HSL(h: Float, s: Float, l: Float)
pub type Hex =
  String
pub type RGB {
  RGB(r: Int, g: Int, b: Int)
}

Constructors

  • RGB(r: Int, g: Int, b: Int)

Functions

pub fn to_hex(color: Color) -> String
pub fn to_hsl(color: Color) -> HSL
pub fn to_rgb(color: Color) -> RGB
Search Document