与WASM统一Scheme定义。

This commit is contained in:
徐涛
2025-01-23 15:37:17 +08:00
parent 2a4fb7f043
commit e0d35d279f
6 changed files with 176 additions and 114 deletions

16
src/swatch_scheme.ts Normal file
View File

@@ -0,0 +1,16 @@
import { SwatchEntry, SwatchSchemeSetting } from './color_functions/color_module';
export type SwatchScheme = {
light: Record<string, string[]>;
dark: Record<string, string[]>;
};
export type SwatchSchemeSource = {
colors: SwatchEntry[];
setting: SwatchSchemeSetting;
};
export type SwatchSchemeStorage = {
source: SwatchSchemeSource;
scheme: SwatchScheme;
};