import { parseColor } from "https://deno.land/x/netzo@0.4.72/deps/@unocss/preset-mini/utils.ts";
Parse color string into ParsedColorValue (if possible). Color value will first be matched to theme object before parsing. See also color.tests.ts for more examples.
Examples
Parseable strings:
'red' // From theme, if 'red' is available
'red-100' // From theme, plus scale
'red-100/20' // From theme, plus scale/opacity
'[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
Parseable strings: 'red' // From theme, if 'red' is available 'red-100' // From theme, plus scale 'red-100/20' // From theme, plus scale/opacity '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity