@mayank1513/nthul
Version:
Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.
14 lines (13 loc) • 543 B
TypeScript
/** shared constants -- keep in separate files for better tree-shaking and dependency injection */
export declare const DEFAULT_ID = "nthul";
export type ColorSchemePreference = "system" | "dark" | "light";
export interface ThemeState {
/** ColorSchemePreference */
c: ColorSchemePreference;
/** SystemColorScheme */
s: "dark" | "light";
/** Theme */
t: string;
}
/** To avoid multiple r18gs imports */
export declare const useRGSMinify: (targetId?: string) => [ThemeState, import("r18gs").SetStateAction<ThemeState>];