unocss-preset-radix-ui-colors
Version:
A preset for UnoCSS to easily use Radix UI color palette with P3 support and optimized generated CSS size .
18 lines (16 loc) • 532 B
TypeScript
import { Alpha, RadixHue, Step, StepAlpha } from './types';
export type ColorProperties = {
step: Step;
alpha: Alpha;
hue: RadixHue | "black" | "white";
};
export type ColorInUse = {
stepsInUse: Record<StepAlpha, ColorProperties>;
};
export type ColorsInUse = Record<RadixHue | "black" | "white", ColorInUse>;
export declare function getColorsInUse(): Readonly<ColorsInUse>;
export declare function addColor({ hue, step, alpha }: {
hue: RadixHue | "black" | "white";
step: Step;
alpha: Alpha;
}): void;