UNPKG

@vitus-labs/rocketstyle

Version:

Rocketstyle is ultra powerful and extensible styling system for building React components blazingly fast, easily and make them easily extensible and reusable.

22 lines 1.23 kB
import type { ThemeModeCallback } from "../types/theme"; export declare const themeModeCallback: ThemeModeCallback; type OptionFunc = (...arg: any) => Record<string, unknown>; type GetThemeFromChain = (options: OptionFunc[] | undefined | null, theme: Record<string, any>) => ReturnType<OptionFunc>; export declare const getThemeFromChain: GetThemeFromChain; type GetDimensionThemes = (theme: Record<string, any>, options: Record<string, any>) => Record<string, any>; export declare const getDimensionThemes: GetDimensionThemes; type CalculateChainOptions = (options: Array<OptionFunc> | undefined | null, args: any[]) => Record<string, any>; export declare const calculateChainOptions: CalculateChainOptions; export type GetTheme = (params: { rocketstate: Record<string, string | string[]>; themes: Record<string, Record<string, any>>; baseTheme: Record<string, any>; }) => Record<string, unknown>; export declare const getTheme: GetTheme; export type GetThemeByMode = (object: Record<string, any>, mode: 'light' | 'dark') => Partial<{ baseTheme: Record<string, unknown>; themes: Record<string, unknown>; }>; export declare const getThemeByMode: GetThemeByMode; export {}; //# sourceMappingURL=theme.d.ts.map