mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-25 04:38:38 +08:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
|
import { viteThemePlugin, mixLighten, mixDarken, tinycolor } from 'vite-plugin-theme';
|
||
|
import { getThemeColors, generateColors } from '../../config/themeConfig';
|
||
|
|
||
|
export function configThemePlugin() {
|
||
|
const colors = generateColors({
|
||
|
mixDarken,
|
||
|
mixLighten,
|
||
|
tinycolor,
|
||
|
});
|
||
|
|
||
|
const plugin = viteThemePlugin({
|
||
|
colorVariables: [...getThemeColors(), ...colors],
|
||
|
});
|
||
|
return plugin;
|
||
|
}
|