vite-plugin-theme的修改版本,用以支持vite4 [![npm][npm-img]][npm-url] [![node][node-img]][node-url] 用于动态更改界面主题色的 vite 插件。 在vite 处理 css 后,动态解析 css 文本内符合插件配置的颜色值的时候,从所有输出的 css 文件提取指定的颜色样式代码。并创建一个仅包含颜色样式的app-theme...
vite-plugin-theme是一个用于动态更改界面主题色的vite插件。在vite处理css后,动态解析css文本内符合插件配置的颜色值的时候,从所有输出的css文件提取指定的颜色样式代码,并创建一个仅包含颜色样式的app-theme-style.css文件,动态插入到指定的位置(默认body底部),然后将所使用的自定义样式/组件库样式颜色替换为新的颜色...
Breadcrumbs vite-plugin-theme /.github /workflows / publish.yml View Runs Latest commit Cannot retrieve latest commit at this time. HistoryHistory File metadata and controls Code Blame 28 lines (23 loc) · 560 Bytes Raw name: Npm Publish on: push: branches: - main jo...
vite version:>=2.0.0 yarn add vite-plugin-theme -D or npm i vite-plugin-theme -D Usage Config plugin in vite.config.ts. In this way, the required functions can be introduced as needed import{ defineConfig, Plugin }from'vite';importvuefrom'@vitejs/plugin-vue';import{ viteThemePlugin, ...
"^4.2.4", "vite": "^2.3.4" }, "dependencies": { "@types/node": "^14.17.1", "@types/tinycolor2": "^1.4.2", "chalk": "^4.1.1", "clean-css": "^5.1.2", "debug": "^4.3.2", "esbuild": "^0.11.23", "esbuild-plugin-alias": "^0.1.2", "tinycolor2": "^1.4.2"...
vite version:>=4.3.0 pnpm i vite-vue-plugin-theme -D or npm i vite-vue-plugin-theme -D Usage Config plugin in vite.config.ts. In this way, the required functions can be introduced as needed import{defineConfig,Plugin}from'vite';importvuefrom'@vitejs/plugin-vue';import{viteThemePlugin...
fix(clean-css): ensure the normal use of clean-css,fixvbenjs#4 May 26, 2021 README License @xlaoyu/vite-plugin-theme 原作者的vite-plugin-theme不再维护, 所以 fork 新仓库解决一些 vite 适配问题 English|中文 Vite plugin for dynamically changing the theme color of the interface ...
fix bugvbenjs#27修复 vite 升级 3 版本后插件出现变量未定义的报错。 fix bugvbenjs#26修复生产环境切换主题失效的问题。 0.8.1(2021-05-29) Bug Fixes remove console.log (8d7ae1d) clean-css:ensure the normal use of clean-css, fix#4(7aa8c1d) ...
Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} tt-sevth / vite-plugin-theme Public Notifications You must be signed in to change notification settings Fork 1...
slice(4, 6), 16); return [r, g, b]; } export function dropPrefix(colorStr) { return colorStr.replace('#', ''); } export function pad2(num) { let t = num.toString(16); if (t.length === 1) t = '0' + t; return t; } // export function isValid(color: string): ...