UNPKG

593 BTypeScriptView Raw
1declare const _default: <T extends {
2 rootSelector?: string;
3 colorSchemeSelector?: "media" | "class" | "data" | string;
4 colorSchemes?: Record<string, any>;
5 defaultColorScheme?: string;
6 cssVarPrefix?: string;
7}>(theme: T) => (colorScheme: keyof T["colorSchemes"] | undefined, css: Record<string, any>) => string | {
8 [x: string]: Record<string, any>;
9 "@media (prefers-color-scheme: dark)": {
10 [x: string]: Record<string, any>;
11 };
12} | {
13 [x: string]: Record<string, any>;
14 "@media (prefers-color-scheme: dark)"?: undefined;
15};
16export default _default;