@laurabeatris/chakra-ui-flashless
Version:
Tools to implement flashless color modes in Chakra UI
6 lines (5 loc) • 391 B
TypeScript
import { Color, ToggleColorVariablesParameters, Variables } from './types';
import { Dict } from '@chakra-ui/utils';
export declare function createDefaultVariables(theme: Dict): Variables;
export declare function getColorValue(theme: Dict, color: Color): string;
export declare function toggleColorVariables({ theme, colorMode, customVariables }: ToggleColorVariablesParameters): void;