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 luscious
or
yarn add -D luscious
Setup
Import
In your main SASS file, import Luscious
// main.scss ;
or, using Gulp:
// gulpfile.jsgulp;
// main.scss ;
or, using Node-sass from the command-line
node-sass --include-path 'node_modules/luscious/core'
// main.scss ;
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/styles
Starting 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/ ./styles
To add the scaffold folder to your current ./styles
directory:
cp -r ./node_modules/luscious/scaffold ./styles
Linting 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.ymlcp -r ./node_modules/luscious/.sasslint-fix.yml ./.sasslint-fix.yml
You can also add these scripts to your package.json
to make life easier:
"scripts":