Converts from some CSS-representation of colour to a structured OkLch format.
fromCss(`yellow`);fromCss(`rgb(100,200,90)`);fromCss(`#ff00ff`); Copy
fromCss(`yellow`);fromCss(`rgb(100,200,90)`);fromCss(`#ff00ff`);
By default returns a OkLchScalar (relative) representation. Use the flag 'scalar:true' to get back OkLchAbsolute.
Converts from some CSS-representation of colour to a structured OkLch format.
By default returns a OkLchScalar (relative) representation. Use the flag 'scalar:true' to get back OkLchAbsolute.