New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

seed-color-scheme

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seed-color-scheme

Color scheme system pack for Seed

0.0.2
Source
npm
Version published
Maintainers
1
Created
Source

seed-color-scheme Build Status npm version Dependencies

Color scheme system pack for Seed!

Install

npm install seed-color-scheme --save-dev

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-color-scheme');

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

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

// Packs
@import "pack/seed-color-scheme/_index";

Usage

Adding colors

Add colors to the global color scheme by using the _color mixin:

// My awesome custom color scheme
$my-colors: (
  red: red,
  blue: blue
);

// Add my colors to the global color scheme
@include _color($my-colors);

Using colors

After you've successfully added/defined colors in your color scheme, use the _color function to use the color:

.my-class {
  color: _color(red);
}

Keywords

bem

FAQs

Package last updated on 18 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts