2022-11-23 20:22:38 +08:00
|
|
|
import type { PresetColorType, SeedToken } from '../internal';
|
2022-06-24 11:11:42 +08:00
|
|
|
|
|
|
|
export const defaultPresetColors: PresetColorType = {
|
2022-09-07 12:00:00 +08:00
|
|
|
blue: '#1677ff',
|
2022-06-24 11:11:42 +08:00
|
|
|
purple: '#722ED1',
|
|
|
|
cyan: '#13C2C2',
|
|
|
|
green: '#52C41A',
|
|
|
|
magenta: '#EB2F96',
|
|
|
|
pink: '#eb2f96',
|
|
|
|
red: '#F5222D',
|
|
|
|
orange: '#FA8C16',
|
|
|
|
yellow: '#FADB14',
|
|
|
|
volcano: '#FA541C',
|
|
|
|
geekblue: '#2F54EB',
|
|
|
|
gold: '#FAAD14',
|
|
|
|
lime: '#A0D911',
|
|
|
|
};
|
|
|
|
|
|
|
|
const seedToken: SeedToken = {
|
|
|
|
// preset color palettes
|
|
|
|
...defaultPresetColors,
|
|
|
|
|
|
|
|
// Color
|
2022-08-26 16:05:16 +08:00
|
|
|
colorPrimary: '#1677ff',
|
2022-06-24 11:11:42 +08:00
|
|
|
colorSuccess: '#52c41a',
|
|
|
|
colorWarning: '#faad14',
|
2022-11-25 11:43:33 +08:00
|
|
|
colorError: '#ff4d4f',
|
2022-09-07 12:00:00 +08:00
|
|
|
colorInfo: '#1677ff',
|
2022-07-05 10:35:44 +08:00
|
|
|
colorTextBase: '',
|
2022-06-24 11:11:42 +08:00
|
|
|
|
2022-07-05 10:35:44 +08:00
|
|
|
colorBgBase: '',
|
2022-06-24 11:11:42 +08:00
|
|
|
|
|
|
|
// Font
|
|
|
|
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
|
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
|
|
'Noto Color Emoji'`,
|
2022-11-01 15:06:38 +08:00
|
|
|
fontSize: 14,
|
2022-06-24 11:11:42 +08:00
|
|
|
|
|
|
|
// Line
|
|
|
|
lineWidth: 1,
|
|
|
|
lineType: 'solid',
|
|
|
|
|
|
|
|
// Motion
|
|
|
|
motionUnit: 0.1,
|
|
|
|
motionBase: 0,
|
2022-12-05 14:15:26 +08:00
|
|
|
motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
|
|
|
|
motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
|
2022-06-24 11:11:42 +08:00
|
|
|
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
2022-12-05 14:15:26 +08:00
|
|
|
motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
|
|
motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
|
|
|
|
motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
|
|
|
|
motionEaseInQuint: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
|
|
motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
|
2022-06-24 11:11:42 +08:00
|
|
|
|
|
|
|
// Radius
|
2022-11-01 15:06:38 +08:00
|
|
|
borderRadius: 6,
|
2022-06-24 11:11:42 +08:00
|
|
|
|
|
|
|
// Size
|
|
|
|
sizeUnit: 4,
|
2022-11-01 15:06:38 +08:00
|
|
|
sizeStep: 4,
|
2022-08-25 19:39:26 +08:00
|
|
|
sizePopupArrow: 16,
|
2022-06-24 11:11:42 +08:00
|
|
|
|
|
|
|
// Control Base
|
|
|
|
controlHeight: 32,
|
|
|
|
|
|
|
|
// zIndex
|
|
|
|
zIndexBase: 0,
|
|
|
|
zIndexPopupBase: 1000,
|
|
|
|
|
|
|
|
// Image
|
|
|
|
opacityImage: 1,
|
2022-09-13 11:52:56 +08:00
|
|
|
|
|
|
|
// Wireframe
|
|
|
|
wireframe: false,
|
2022-06-24 11:11:42 +08:00
|
|
|
};
|
|
|
|
export default seedToken;
|