与WASM统一Scheme定义。
This commit is contained in:
16
src/swatch_scheme.ts
Normal file
16
src/swatch_scheme.ts
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user