@atlrdsgn/kit
Version:
An ever–expanding library of React components, primitives, and tools
24 lines (23 loc) • 806 B
TypeScript
import { StyleRule } from '@vanilla-extract/css';
export type CSSProps = Omit<StyleRule, 'selectors' | '@media' | '@supports'>;
/**
* [colorModeSelectors]
*
* The function colorModeStyle takes lightMode and darkMode styles as input.
* If either lightMode or darkMode is provided, the function generates selectors
* using makeSelector with corresponding styles for each color mode.
*
* The generated selectors and styles are combined into a single
* object and returned as a Vanilla Extract StyleRule.
*/
export declare const colorModeSelectors: {
light: string;
dark: string;
};
interface ColorMode {
lightMode?: CSSProps;
darkMode?: CSSProps;
}
export declare const colorModeStyle: ({ lightMode, darkMode, }: ColorMode) => StyleRule;
export {};
//# sourceMappingURL=mode.d.ts.map