We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
从 https://github.com/jd-smart-fe/vue-stone 地址下载最新的 vue-stone;
vue-stone
themes.css
variables.css
├── src ├── styles ├── default-theme ├── themes.css └── variables.css
/* 智能灯主题色 */ $theme-9777fa: #9777fa;
tips:
命名格式为 $theme-{16位色值}
$theme-{16位色值}
variable.css
theme.css
/* 主题色-用于 vue-stone 组件: */ $main-color: $theme-9777fa; // vue-stone 组件中用到的颜色 $c-primary: $theme-9777fa; // vue-stone 组件中一部分组件用到的颜色 $c-primary-on: $theme-9777fa // 按钮等按住的时候颜色 /* 模板中使用主题色 */ .c-theme-color { color: $theme-9777fa; }
执行命令 npm run build 将文件打包
npm run build
vue-stone.css
├── dist ├── vue-stone.css
src
styles
main.js
// 注释以前一如的文件 // import 'vue-stone/dist/vue-stone.css'; // 加入本地文件 import '@/styles/style.css';
启动项目就可以了~
The text was updated successfully, but these errors were encountered:
No branches or pull requests
第一步 下载vue-stone
从 https://github.com/jd-smart-fe/vue-stone 地址下载最新的
vue-stone
;第二步 找到修改主题色的样式文件
themes.css
和variables.css
文件,位置如下:第三步 修改主题色
themes.css
文件中,加入用到的主题色并提交,例如:tips:
variable.css
文件中,确保已经引入theme.css
文件,并修改用到主题色的地方,如下:第四步 打包文件
执行命令
npm run build
将文件打包第五步 在项目中引入打包后的css 文件
vue-stone.css
文件,所在位置如下:src
下新建一个styles
文件夹;vue-stone.css
文件放入styles
文件夹中;main.js
文件:启动项目就可以了~
The text was updated successfully, but these errors were encountered: