seed-width
Width utility pack for Seed!
Install
npm install seed-width --save
Documentation
Check out our documentation of this pack.
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
var gulp = ;var sass = ;var seedWidth = ; gulp;
Once that is setup, simply @import
seed-width as needed in your .scss
file:
// Packs
Note: Because seed-width has dependencies, it's includePaths output will be an array
. If you're including other paths in addition to seed-width, you will need to flatten the array. An easy way to do this is to use sass-pathfinder.
Example with sass-pathfinder:
var gulp = ;var sass = ;var seedWidth = ;var pathfinder = ; gulp;
Options
The following variables can be found in _config.scss
// Namespace // Widths 0: 0%, 1: 8 2: 16 3: 25%, 4: 33 5: 41 6: 50%, 7: 58 8: 66 9: 75%, 10: 83 11: 91 12: 100%,) !