Catppuccin.Color (catppuccin v0.1.2)
Module for handling color data.
Summary
Functions
Returns if the color is an accent color.
Returns the base color for the given flavor.
Returns the blue color for the given flavor.
Returns the crust color for the given flavor.
Returns the flamingo color for the given flavor.
Returns the green color for the given flavor.
Returns the lavender color for the given flavor.
Returns the mantle color for the given flavor.
Returns the maroon color for the given flavor.
Returns the mauve color for the given flavor.
Returns the name of the color.
Return the order of the color.
Returns the overlay0 color for the given flavor.
Returns the overlay1 color for the given flavor.
Returns the overlay2 color for the given flavor.
Returns the peach color for the given flavor.
Returns the pink color for the given flavor.
Returns the red color for the given flavor.
Returns the rosewater color for the given flavor.
Returns the sapphire color for the given flavor.
Returns the sky color for the given flavor.
Returns the subtext0 color for the given flavor.
Returns the subtext1 color for the given flavor.
Returns the surface0 color for the given flavor.
Returns the surface1 color for the given flavor.
Returns the surface2 color for the given flavor.
Returns the teal color for the given flavor.
Returns the text color for the given flavor.
Returns the hex code of the color.
Returns the hsl values of the color.
Returns the RGB values of the color.
Returns the yellow color for the given flavor.
Types
Functions
Returns if the color is an accent color.
Examples
iex> Catppuccin.frappe |> Catppuccin.Color.rosewater |> Catppuccin.Color.accent
true
Returns the base color for the given flavor.
Returns the blue color for the given flavor.
Returns the crust color for the given flavor.
Returns the flamingo color for the given flavor.
Returns the green color for the given flavor.
Returns the lavender color for the given flavor.
Returns the mantle color for the given flavor.
Returns the maroon color for the given flavor.
Returns the mauve color for the given flavor.
Returns the name of the color.
Examples
iex> Catppuccin.frappe |> Catppuccin.Color.rosewater |> Catppuccin.Color.name
"Rosewater"
Return the order of the color.
Examples
iex> Catppuccin.frappe |> Catppuccin.Color.rosewater |> Catppuccin.Color.order
0
Returns the overlay0 color for the given flavor.
Returns the overlay1 color for the given flavor.
Returns the overlay2 color for the given flavor.
Returns the peach color for the given flavor.
Returns the pink color for the given flavor.
Returns the red color for the given flavor.
Returns the rosewater color for the given flavor.
Returns the sapphire color for the given flavor.
Returns the sky color for the given flavor.
Returns the subtext0 color for the given flavor.
Returns the subtext1 color for the given flavor.
Returns the surface0 color for the given flavor.
Returns the surface1 color for the given flavor.
Returns the surface2 color for the given flavor.
Returns the teal color for the given flavor.
Returns the text color for the given flavor.
Returns the hex code of the color.
Examples
iex> Catppuccin.frappe |> Catppuccin.Color.rosewater |> Catppuccin.Color.to_hex
"#f2d5cf"
Returns the hsl values of the color.
Example
iex> Catppuccin.frappe |> Catppuccin.Color.rosewater |> Catppuccin.Color.to_hsl
{10.2857142857143, 0.5737704918032784, 0.8803921568627451}
Returns the RGB values of the color.
Examples
iex> Catppuccin.frappe |> Catppuccin.Color.rosewater |> Catppuccin.Color.to_rgb
{242, 213, 207}
Returns the yellow color for the given flavor.