smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
16 lines (15 loc) • 371 B
TypeScript
export interface ColorObject {
color: number[];
valpha: number;
isDark: () => boolean;
isLight: () => boolean;
hex: () => ColorObject;
rgb: () => ColorObject;
hsl: () => ColorObject;
darken: (value: number) => ColorObject;
alpha: (value: number) => ColorObject;
}
export interface Coordinator<T> {
x: T;
y: T;
}