luscious v0.9.2
Luscious SASS
A Library of SASS functions/mixin/variables/stuff
Current Version: v0.9.2: Unstable Don't use this package until v1.0.0
Installation
npm install lusciousor
yarn add -D lusciousSetup
Import
In your main SASS file, import Luscious
// main.scss
@import 'node_modules/luscious/core/luscious';or, using Gulp:
// gulpfile.js
gulp.task('sass', function() {
return gulp
.src('sass/*.scss')
.pipe(
sass({
outputStyle: 'compressed',
includePaths: ['node_modules/luscious/core'],
}).on('error', sass.logError)
)
.pipe(gulp.dest('dist/css'));
});// main.scss
@import 'luscious';or, using Node-sass from the command-line
node-sass --include-path 'node_modules/luscious/core'// main.scss
@import 'luscious';Override Luscious Settings
If you want to override default settings in Luscious, copy the settings file to your styles directory and import it before Luscious in your main.scss file.
cp node_modules/luscious/scaffold/_settings.scss path/to/stylesStarting With the Boilerplate
Luscious also has a set of boilerplate files (Called 'scaffold'). They have basic styles already set for default html tags based on normalize.css. Using the scaffold is completely optional. If you decide to use it, then you'll want to copy those files directly into your project and track them in git. Tip: if you see @nrml tag in the scaffold, that is the related note about that style-rule from the normalize.css docs.
To copy the scaffold into your project replacing your current ./styles directory:
cp -r ./node_modules/luscious/scaffold/ ./stylesTo add the scaffold folder to your current ./styles directory:
cp -r ./node_modules/luscious/scaffold ./stylesLinting Your SASS
If you want to use the same linting setup that was used in the core project, copy the lint-config files to your root directory.
cp -r ./node_modules/luscious/.sasslint.yml ./.sasslint.yml
cp -r ./node_modules/luscious/.sasslint-fix.yml ./.sasslint-fix.ymlYou can also add these scripts to your package.json to make life easier:
"scripts": {
"lint": "sass-lint -c .sasslint.yml '**/*.s+(a|c)ss' -v -q",
"fix": "sass-lint-auto-fix -c .sasslint-fix.yml '**/*.s+(a|c)ss' -v -q"
}