import { colorResolver } from "https://deno.land/x/netzo@0.4.42/deps/@unocss/preset-mini/utils.ts";
Provide DynamicMatcher function to produce color value matched from rule.
Examples
Resolving 'red' from theme:
colorResolver('background-color', 'background')('', 'red')
return { 'background-color': '#f12' }
Resolving 'red' from theme: colorResolver('background-color', 'background')('', 'red') return { 'background-color': '#f12' }
Resolving 'red-100' from theme:
colorResolver('background-color', 'background')('', 'red-100')
return { '--un-background-opacity': '1', 'background-color': 'rgb(254 226 226 / var(--un-background-opacity))' }
Resolving 'red-100' from theme: colorResolver('background-color', 'background')('', 'red-100') return { '--un-background-opacity': '1', 'background-color': 'rgb(254 226 226 / var(--un-background-opacity))' }