Button component pack for Seed
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
example
scripts
scss/pack/seed-button
test
.gitignore
.npmignore
.sass-lint.yml
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

seed-button Build Status npm version dependencies Status

Button component pack for Seed!

Install

npm install seed-button --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 = require('gulp');
var sass = require('gulp-sass');
var pack = require('seed-button');

gulp.task('sass', function () {
  return gulp.src('./sass/**/*.scss')
    .pipe(sass({
      includePaths: pack
    }))
    .pipe(gulp.dest('./css'));
});

Once that is setup, simply @import seed-button as needed in your .scss file:

// Packs
@import "pack/seed-button/_index";

Options

This Pack's variables can be found in _config.scss.

This Pack also has additional configs specifically for color, found in /configs/_color.scss.

Tests

seed-button has tests written with seed-barista (powered by Mocha).

Run tests locally:

npm test