@themeprint/themes
Version:
10 lines (9 loc) • 341 B
TypeScript
import { Color } from '@themeprint/colors';
import { SwatchColor } from './swatches';
export interface ColorsOptions {
name: string;
color: SwatchColor;
variant?: string;
format?: (color: Color) => string;
}
export declare const swatch: ({ name, color, variant, format, }: ColorsOptions) => Record<string, unknown>;