UNPKG

use-css-dom

Version:

React hook to read and convert CSS variables from the DOM

4 lines (3 loc) 204 B
type ColorType = "oklch" | "rgb" | "rgba" | "hex" | "hsl" | "hsla" | "original"; export declare function useCSSVariable(variableName: string, opacity?: number, returnType?: ColorType): string; export {};