tis-cli前端项目快速搭建命令行工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
lkh fae5266192 feat: update 4 years ago
..
__tests__ feat: add template 4 years ago
bin feat: add template 4 years ago
lib feat: add template 4 years ago
server feat: add template 4 years ago
theme-chalk feat: add template 4 years ago
.gitignore feat: add template 4 years ago
README.md feat: add template 4 years ago
index.js feat: add template 4 years ago
package-lock.json feat: add template 4 years ago
package.json feat: add template 4 years ago
variables.scss feat: add template 4 years ago
variables_base.scss feat: add template 4 years ago
yarn.lock feat: add template 4 years ago

README.md

theme-cli tis-design基础主题样式生成工具

如何使用

主要依赖以下命令和参数

第一步:首选需要修改variables.scss文件,将其中变量修改成为自定义想要的内容

第二步:执行打包命令即可打包出一套基于自定义变量的组件库样式css文件

执行样式打包命令:npm run build:theme -- --out theme_name --prefix true

--out参数:表述最终文件输出的根目录文件夹名字,例如--out参数设置成dark,则最终打包输出的样式文件会落在theme-files/dark文件夹下

PS:默认样式在theme_files/normal文件夹下

--prefix参数:表示打包出来的样式是否需要带上[data-theme="theme_name"]的作用域,这个是为了配合框架在做主题切换的时候可以引入样式之后,通过JS动态切换html元素的data-theme变量即可实现样式的一键切换