pub fn try_parse_color(color: &str) -> Result<Hsla>Expand description
Try to parse the color, HEX or Tailwind Color expression.
ยงParameter color should be one string value listed below:
#RRGGBB- The HEX color string.#RRGGBBAA- The HEX color string with alpha.
Or the Tailwind Color format:
name- The color nameblack,white, or any other defined incrate::color.name-scale- The color name with scale.name/opacity- The color name with opacity,opacityshould be an integer between 0 and 100.name-scale/opacity- The color name with scale and opacity.