CSSEx.HSLA.new_hsla

You're seeing just the function new_hsla, go back to CSSEx.HSLA module for more information.

Specs

new_hsla(String.t()) ::
  {:ok, %CSSEx.HSLA{a: term(), h: term(), l: term(), s: term()}}
  | {:error, term()}

Accepts any value in the form of a binary "hsla(0, 10%, 20%, 0.5)" or "hsl(0, 10%, 20%)", any hexadecimal representation in binary in the form of "#xxx", "#xxxx", "#xxxxxx" or "#xxxxxxxx", rgb/a as "rgba(100,100,100,0.1)" or "rgb(10,20,30)", or any literal color name defined as web colors (CSSEx.Colors) - returns a %CSSEx.HSLA{} struct.