reablocks
Version:
Component library for React
16 lines (14 loc) • 559 B
TypeScript
import { ReablocksTheme } from './themes/theme';
import { default as React, FC, PropsWithChildren } from 'react';
export interface ThemeContextProps {
theme: ReablocksTheme;
tokens: Record<string, string>;
updateTheme: (newTheme: ReablocksTheme) => void;
updateTokens: (newTokens: Record<string, string>) => void;
}
export declare const ThemeContext: React.Context<ThemeContextProps>;
interface ThemeProviderProps extends PropsWithChildren {
theme: ReablocksTheme;
}
export declare const ThemeProvider: FC<ThemeProviderProps>;
export {};