feat(projects): 登录页面开始迁移

This commit is contained in:
Soybean
2022-01-04 19:09:00 +08:00
parent 035fa114c9
commit f5a36a05cb
30 changed files with 341 additions and 20 deletions

View File

@ -1,5 +1,4 @@
import { colord } from 'colord';
import { getColorPalette } from '@/utils';
import { getColorPalette, addColorAlpha } from '@/utils';
type ColorType = 'primary' | 'info' | 'success' | 'warning' | 'error';
@ -23,7 +22,7 @@ export function getThemeColors(colors: [ColorType, string][]) {
{ scene: 'Suppl', handler: color => color },
{ scene: 'Hover', handler: color => getColorPalette(color, 5) },
{ scene: 'Pressed', handler: color => getColorPalette(color, 7) },
{ scene: 'Active', handler: color => colord(color).alpha(0.1).toHex() }
{ scene: 'Active', handler: color => addColorAlpha(color, 0.1) }
];
const themeColor: ThemeColor = {};