Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function useContrast(color?: string) {
React.useDebugValue(color);
const palette = useToken("palette");
return React.useMemo(() => contrast(color)(palette), [color, palette]);
}
export function usePalette(name?: string) {
React.useDebugValue(name);
const palette = useToken("palette");
return getPalette(palette, name);
}