UNPKG

@atlrdsgn/kit

Version:

An ever–expanding library of React components, primitives, and tools

10 lines • 363 B
import { Context } from 'react'; /// <reference types="react" /> export type KitMode = 'light' | 'dark' | 'system'; export type KitContextValue = { theme: KitMode; toggleTheme: (mode: KitMode) => void; }; export declare const KitContext: Context<KitContextValue>; export declare const useTheme: () => KitContextValue; //# sourceMappingURL=context.d.ts.map