UNPKG

color-theme-generator

Version:

Generates random color themes that are based in color theory.

15 lines (14 loc) 597 B
import { ColorThemeData } from './ColorThemeData.js'; import { MultiHueColorThemeFactory } from './MultiHueColorThemeFactory.js'; export declare class AnalogousThemeFactory extends MultiHueColorThemeFactory { #private; constructor(); /** * Generates an analogous color theme. * * @param numberOfColors - The number of colors to include ranging from 3 to 5. * @returns An object containing data about the generated color theme. * @throws Error if the arguments does not pass the validation. */ getColorTheme(numberOfColors: number): ColorThemeData; }