apphouse
Version:
Component library for React that uses observable state management and theme-able components.
21 lines (20 loc) • 744 B
TypeScript
import { ApphousePaletteModeOptions } from '../constants/constants';
import { ColorDefinition, ColorType } from './utils/color.interface';
export declare class Color {
title?: string;
id: string;
color: ColorDefinition;
constructor(color: ColorType);
get objectify(): ColorType;
get rgbString(): string | undefined;
setColor: (color: ColorDefinition) => void;
setTitle: (title: string) => void;
setId: (id: string) => void;
}
export declare const defaultColorIdTypes: string[];
/**
* Generate colors based on the colors for this app (theming things)
* @param defaultTheme 'dark' | 'light' | 'base'
* @returns
*/
export declare const getDefaultColors: (mode?: ApphousePaletteModeOptions) => ColorType[];