color-q/src/swatch_scheme.ts
2025-02-10 16:17:59 +08:00

27 lines
620 B
TypeScript

import { SwatchEntry, SwatchSchemeSetting } from 'color-module';
export type SwatchScheme = {
light: Record<string, string[]>;
dark: Record<string, string[]>;
};
export type QSwatchEntry = {
[P in keyof SwatchEntry]: SwatchEntry[P];
};
export type QSwatchSchemeSetting = {
[P in keyof SwatchSchemeSetting]: SwatchSchemeSetting[P];
};
export type SwatchSchemeSource = {
colors: QSwatchEntry[];
setting: QSwatchSchemeSetting | null;
};
export type SwatchSchemeStorage = {
source?: SwatchSchemeSource;
scheme?: SwatchScheme;
cssVariables?: string;
scssVariables?: string;
jsVariables?: string;
};