2022-07-21 17:00:42 +08:00
|
|
|
import type { BgMapToken, TextMapToken } from 'antd/es/theme/interface';
|
|
|
|
|
2022-06-29 16:15:58 +08:00
|
|
|
export interface PrimaryPalettes {
|
|
|
|
1: string;
|
|
|
|
2: string;
|
|
|
|
3: string;
|
|
|
|
4: string;
|
|
|
|
5: string;
|
|
|
|
6: string;
|
|
|
|
7: string;
|
2022-07-21 17:00:42 +08:00
|
|
|
8: string;
|
|
|
|
9: string;
|
2022-06-29 16:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface SuccessPalettes {
|
|
|
|
1: string;
|
|
|
|
3: string;
|
|
|
|
6: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface WarningPalettes {
|
|
|
|
1: string;
|
|
|
|
3: string;
|
|
|
|
5: string;
|
|
|
|
6: string;
|
|
|
|
7: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ErrorPalettes {
|
|
|
|
1: string;
|
|
|
|
3: string;
|
|
|
|
5: string;
|
|
|
|
6: string;
|
|
|
|
7: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface InfoPalettes {
|
|
|
|
1: string;
|
|
|
|
3: string;
|
|
|
|
6: string;
|
|
|
|
}
|
|
|
|
|
2022-07-15 19:27:29 +08:00
|
|
|
export type GeneratePrimaryPalettes = (primaryBaseColor: string) => PrimaryPalettes;
|
|
|
|
export type GenerateSuccessPalettes = (successBaseColor: string) => SuccessPalettes;
|
|
|
|
export type GenerateWarningPalettes = (warningBaseColor: string) => WarningPalettes;
|
|
|
|
export type GenerateErrorPalettes = (errorBaseColor: string) => ErrorPalettes;
|
|
|
|
export type GenerateInfoPalettes = (infoBaseColor: string) => InfoPalettes;
|
2022-07-21 17:00:42 +08:00
|
|
|
export type GenerateTextAlphaPalettes = (textBaseColor: string) => TextMapToken;
|
|
|
|
export type GenerateBgPalettes = (bgBaseColor: string, textBaseColor: string) => BgMapToken;
|