2ui-sass 中文文档教程
2ui-sass
UI Tools, Sass
Local Dev
输出main.css
,并观察变化
npm start
生成Sassdocs,并在浏览器中打开(没有自动重新加载,每次变化后都需要构建)
npm run sassdoc
Usage
在你的项目中使用
npm install --save @2ui/sass
Include CSS in your Sass file
这将取决于你的配置,但是像这样
@import "~@2ui/sass";
Include Sass in your Sass file
如果你想在你的 Sass 文件中使用函数
@import "~@2ui/sass/src/lib";
并且你可以在导入之前覆盖现有变量,因为变量是使用 Sass !default
2ui-sass
UI Tools, Sass
Local Dev
To output main.css
, and watch for changes
npm start
To generate Sassdocs, and open in a browser (no auto reload, and need to build after every change)
npm run sassdoc
Usage
To use in your project
npm install --save @2ui/sass
Include CSS in your Sass file
This will depend on your configuration, but something like this
@import "~@2ui/sass";
Include Sass in your Sass file
If you want to use the functions in your Sass file
@import "~@2ui/sass/src/lib";
And you can override existing variables before importing, because variables are declared using Sass !default