2022-11-30 11:48:47 +08:00
|
|
|
export const PresetColors = [
|
|
|
|
'blue',
|
|
|
|
'purple',
|
|
|
|
'cyan',
|
|
|
|
'green',
|
|
|
|
'magenta',
|
|
|
|
'pink',
|
|
|
|
'red',
|
|
|
|
'orange',
|
|
|
|
'yellow',
|
|
|
|
'volcano',
|
|
|
|
'geekblue',
|
|
|
|
'lime',
|
|
|
|
'gold',
|
|
|
|
] as const;
|
|
|
|
|
2023-01-06 11:06:46 +08:00
|
|
|
export type PresetColorKey = typeof PresetColors[number];
|
2022-11-30 11:48:47 +08:00
|
|
|
|
|
|
|
export type PresetColorType = Record<PresetColorKey, string>;
|
|
|
|
|
|
|
|
type ColorPaletteKeyIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
|
|
|
2023-03-05 20:49:26 +08:00
|
|
|
export type LegacyColorPalettes = {
|
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
2022-11-30 11:48:47 +08:00
|
|
|
[key in `${keyof PresetColorType}-${ColorPaletteKeyIndex}`]: string;
|
|
|
|
};
|
2023-03-05 20:49:26 +08:00
|
|
|
|
|
|
|
export type ColorPalettes = {
|
|
|
|
[key in `${keyof PresetColorType}${ColorPaletteKeyIndex}`]: string;
|
|
|
|
};
|