mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
26 lines
477 B
TypeScript
26 lines
477 B
TypeScript
|
export const PresetColors = [
|
||
|
'blue',
|
||
|
'purple',
|
||
|
'cyan',
|
||
|
'green',
|
||
|
'magenta',
|
||
|
'pink',
|
||
|
'red',
|
||
|
'orange',
|
||
|
'yellow',
|
||
|
'volcano',
|
||
|
'geekblue',
|
||
|
'lime',
|
||
|
'gold',
|
||
|
] as const;
|
||
|
|
||
|
type PresetColorKey = typeof PresetColors[number];
|
||
|
|
||
|
export type PresetColorType = Record<PresetColorKey, string>;
|
||
|
|
||
|
type ColorPaletteKeyIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
||
|
|
||
|
export type ColorPalettes = {
|
||
|
[key in `${keyof PresetColorType}-${ColorPaletteKeyIndex}`]: string;
|
||
|
};
|