@universal-material/web
Version:
Material web components
26 lines • 1.03 kB
TypeScript
import { TonalPalette } from '@material/material-color-utilities';
import { ThemeColor } from './theme-color.js';
export declare class ThemeBuilder {
#private;
cssClass: string | null;
colors: ThemeColor[];
private partial;
private constructor();
static create(primaryColorHex: string): ThemeBuilder;
static createPartial(primaryColorHex: string): ThemeBuilder;
addColorFromHex(name: string, hex: string): ThemeBuilder;
addColorFromPalette(name: string, palette: TonalPalette): ThemeBuilder;
addStaticColor(name: string, hex: string, tone?: number): ThemeBuilder;
setCssClass(cssClass: string): ThemeBuilder;
private ensureCssClassStartsWithDot;
private ensureThemeColors;
private ensureStatusColors;
private getNeutralVariables;
private getNeutralVariantVariables;
getColorVariables(color: ThemeColor): string;
private getColorsVariables;
private addColors;
private addToneColor;
build(): string;
}
//# sourceMappingURL=theme-builder.d.ts.map