color-q/src/material-2-scheme.ts

38 lines
756 B
TypeScript

export type ColorSet = {
root: string;
variant: string;
on: string;
};
export type Baseline = {
primary: ColorSet;
secondary: ColorSet;
error: ColorSet;
background: ColorSet;
surface: ColorSet;
shadow: ColorSet;
custom_colors: Record<string, ColorSet>;
};
export type MaterialDesign2Scheme = {
white: string;
black: string;
light: Baseline;
dark: Baseline;
};
export type MaterialDesign2SchemeSource = {
primary: string | null;
secondary: string | null;
error: string | null;
custom_colors?: Record<string, string>;
};
export type MaterialDesign2SchemeStorage = {
source?: MaterialDesign2SchemeSource;
scheme?: MaterialDesign2Scheme;
cssVariables?: string;
scssVariables?: string;
jsVariables?: string;
};