catppuccin

Types

pub type Color {
  Color(hex: Hex, rgb: RGB, hsl: HSL)
}

Constructors

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

Constructors

  • HSL(h: Int, 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 hex(color: Color) -> String
pub fn hsl(color: Color) -> HSL
pub fn rgb(color: Color) -> RGB
Search Document