Skip to main content

Module hex

Module hex 

Source
Expand description

Port of src/syntax/color/hex.ts.

Functionsยง

cmyk2hex_token
cmyk2hexvalues
color2hex_token
expand_hex_value
#abc -> #aabbcc, #abcd -> #aabbccdd
hsl2hex_token
hsl2hexvalues
hwb2hex_token
hwb2hexvalues
lab2hex_token
lch2hex_token
oklab2hex_token
oklch2hex_token
reduce_hex_value
shortest representation of a hex color or a named color
rgb2hex_token
rgb2hexvalues