mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-09-11 00:33:17 +08:00
feat: add theme and style
This commit is contained in:
11
components/theme/interface/presetColors.ts
Normal file
11
components/theme/interface/presetColors.ts
Normal file
@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user