UNPKG

@tiller-ds/theme

Version:

Theme module of Tiller Design System

15 lines (14 loc) 516 B
import * as React from "react"; import { IconConfig, Theme, ThemeConfigFactory } from "./defaultTheme"; declare type ThemeProviderProps = { themeConfig?: ThemeConfigFactory; iconConfig: IconConfig; children?: React.ReactNode; }; declare type ThemeContextType = { theme: Theme; icons: IconConfig; }; export declare function useThemeContext(): ThemeContextType; export declare function ThemeProvider({ themeConfig, iconConfig, children }: ThemeProviderProps): JSX.Element; export {};