antd-tiny-vue/components/theme/interface/presetColors.ts

12 lines
451 B
TypeScript
Raw Normal View History

2023-03-02 07:16:36 +08:00
export const PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'] as const
export 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
}