@tolokoban/ui
Version:
React components with theme
22 lines • 687 B
TypeScript
import { ThemeSettings } from "../types.js";
import ClassNames from "./class-names.js";
import "./theme.css";
export * from "./styles/common.js";
export declare class Theme {
static readonly classNames: ClassNames;
static apply(options?: ThemeSettings, element?: HTMLElement | SVGElement): Theme;
private readonly vars;
constructor(options?: ThemeSettings);
/**
* Add a new CSS custom variable.
*/
private add;
private addColor;
private addColorVars;
/**
* Apply this theme to `element`.
* @param element Default to `document.body`.
*/
apply(element?: HTMLElement | SVGElement): void;
}
//# sourceMappingURL=theme.d.ts.map