UNPKG

@stencila/thema

Version:

Themes for executable documents

24 lines (23 loc) 766 B
import React from 'react'; import { ThemeObject } from '../utils'; export declare type ThemeConfigs = Record<string, ThemeObject>; declare type Props = { activeTheme: string; }; interface State { contributeModalIsOpen: boolean; themeOverrides: ThemeConfigs; themes: ThemeConfigs; } export declare class ThemeVariables extends React.Component<Props, State> { constructor(props: Props); setThemeOverrides: (variable: string, value: string, commit?: boolean) => void; openContributeModal: () => void; closeContributeModal: () => void; fetchCSS: (useQueryParams?: boolean) => void; injectOverrides: () => void; componentDidMount(): void; componentDidUpdate(prevProps: Props): void; render(): JSX.Element; } export {};