polen
Version:
A framework for delightful GraphQL developer portals
14 lines • 458 B
TypeScript
import type { React } from '#dep/react/index';
type ThemeAppearance = `light` | `dark`;
type ThemePreference = `light` | `dark` | `system`;
interface ThemeContextValue {
appearance: ThemeAppearance;
preference: ThemePreference;
toggleTheme: () => void;
}
export declare const ThemeProvider: React.FC<{
children: React.ReactNode;
}>;
export declare const useTheme: () => ThemeContextValue;
export {};
//# sourceMappingURL=ThemeContext.d.ts.map