UNPKG

@re-flex/styles

Version:
14 lines (13 loc) 642 B
import { CSSAttribute } from "./Gooberize"; import { SxType } from "./sx"; import { Theme } from "./Types"; declare type classesObject = { [k: string]: CSSAttribute | SxType; }; declare type RenderHookType<T, R> = (theme: T) => R; declare type MakeStylesType = <T = Theme, R extends classesObject = {}>(callBack: RenderHookType<T, R>, sxEnable?: boolean) => () => Record<keyof R, string>; export declare const makeStyles: MakeStylesType; export declare type ThemingCSSFunction = (theme: SxType) => string; export declare type UseThemingCSSHook = () => ThemingCSSFunction; export declare const useThemingCss: UseThemingCSSHook; export {};