ant-design/components/theme/themes/ColorMap.ts
MadCcc f27cfe54d4
feat: v4 algorithm (#37152)
* feat: v4 theme

* feat: v4 dark theme

* feat: algorithm

* refactor: rename
2022-08-19 13:57:19 +08:00

21 lines
411 B
TypeScript

import type { NeutralColorMapToken } from 'antd/es/theme/interface';
export interface ColorMap {
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
9: string;
10: string;
}
export type GenerateColorMap = (baseColor: string) => ColorMap;
export type GenerateNeutralColorMap = (
bgBaseColor: string,
textBaseColor: string,
) => NeutralColorMapToken;