theme-color-plugin
v1.0.6
Published
基于andt1.x换肤
Downloads
9
Readme
Install
npm i -D theme-color-plugin
Config
const initThemeColorPlugin = require("theme-color-plugin");
const createThemeColorReplacerPlugin = initThemeColorPlugin('默认主题色');
vue.config.js
module.exports = defineConfig({
...,
plugin:[createThemeColorReplacerPlugin()]
})
Use
const ThemePlugin = require("theme-color-plugin/update-theme");
ThemePlugin.setProxyCssUrl("是否需要代理css地址");
ThemePlugin.updateTheme("新的颜色");