UNPKG

next-prefers-theme

Version:

Next.js css media query prefers-* system preference detection & theming.

11 lines (10 loc) 409 B
export interface PrefsProps { theme?: string | null; motion?: string | null; contrast?: string | null; data?: string | null; } export declare const DEFAULT_PREFS: PrefsProps; export declare const DEFAULT_ATTRIBUTES: PrefsProps; export declare const NULL_PREFS: PrefsProps; export declare const PrefQueryData: (prefs: PrefsProps, disabledPrefs: string[], setSystemPrefsPublic: Function) => {};