@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
20 lines (19 loc) • 658 B
TypeScript
import { CmykColor, Color, LabColor, RgbColor, SpotColor } from "@aurigma/design-atoms-model/Colors";
export interface IColorParser {
parse(colorString: string): Color;
}
export interface IRgbColorParser {
parse(colorString: string): RgbColor | null;
}
export interface ICmykColorParser {
parse(colorString: string): CmykColor | null;
}
export interface ILabColorParser {
parse(colorString: string): LabColor | null;
}
export interface ISpotColorParser {
parse(colorString: string, colorParser: IColorParser): SpotColor | null;
}
export interface INamedColorConverter {
convert(colorName: string): string | null;
}