seed-color-scheme
Color scheme system pack for Seed
Install
npm install @seedcss/seed-color-scheme --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:
const gulp = require("gulp");
const sass = require("gulp-sass");
const pathfinder = require("sass-pathfinder");
const pack = require("@seedcss/seed-color-scheme");
gulp.task("sass", function() {
return gulp
.src("./sass/**/*.scss")
.pipe(
sass({
includePaths: pathfinder(
pack
)
})
)
.pipe(gulp.dest("./css"));
});
Once that is setup, simply @import
seed-color-scheme as needed in your .scss
file:
@import "pack/seed-color-scheme/_index";
Options
The following variables can be found in _config.scss
@import "./functions/color";
@import "./mixins/color";
@if not global-variable-exists(SEED_COLOR_SCHEME__GLOBAL) {
$SEED_COLOR_SCHEME__GLOBAL: true !global;
@include _color((
white: #fff,
black: #000,
))
// Colors
@include _color((
// Primary
blue: (
default: #22A1F0,
50: #D3ECFC,
100: #A7D9F9,
200: #7AC7F6,
300: #4EB4F3,
400: #22A1F0,
500: #1E88D1,
600: #186FB2,
700: #125793,
800: #0D3E74,
900: #082555
),
charcoal: (
default: #313F4A,
50: #93A1AF,
100: #7F8D9B,
200: #6C7A87,
300: #586673,
400: #44525E,
500: #313F4A,
600: #1D2B36
),
ash: (
default: #B3BEC7,
50: #F9FAFA,
100: #EBEEF0,
200: #DDE2E6,
300: #CFD6DC,
400: #C1CAD1,
500: #B3BEC7,
600: #A5B2BD
),
// Secondary
gold: (
default: #FFC555,
50: #FFF3DD,
100: #FFE8BB,
200: #FFDC99,
300: #FFD177,
400: #FFC555,
500: #F0AB49,
600: #E0913D,
700: #D17731,
800: #C15D25,
900: #B24319
),
green: (
default: #56C288,
50: #DDF3E7,
100: #BBE7CF,
200: #9ADAB8,
300: #78CEA0,
400: #56C288,
500: #45A471,
600: #34865A,
700: #226742,
800: #11492B,
900: #002B14
),
pink: (
default: #FFB3C3,
50: #FFF0F3,
100: #FFE1E7,
200: #FFD1DB,
300: #FFC2CF,
400: #FFB3C3,
500: #FD9AAE,
600: #FB8199,
700: #F86784,
800: #F64E6F,
900: #F4355A
),
lavender: (
default: #9FA6FF,
50: #ECEDFF,
100: #D9DBFF,
200: #C5CAFF,
300: #B2B8FF,
400: #9FA6FF,
500: #868DDD,
600: #6D73BA,
700: #535A98,
800: #3A4075,
900: #212753
),
indigo: (
default: #527CEB,
50: #DCE5FB,
100: #BACBF7,
200: #97B0F3,
300: #7596EF,
400: #527CEB,
500: #4368CB,
600: #3354AA,
700: #24408A,
800: #142C69,
900: #051849
),
whaletail: (
default: #8AABF1,
50: #E8EEFC,
100: #D0DDF9,
200: #B9CDF7,
300: #A1BCF4,
400: #8AABF1,
500: #7190CE,
600: #5874AC,
700: #405989,
800: #273D67,
900: #0E2244
),
), default);
@include _color((
brand: (
primary: _color(blue, 500),
danger: _color(pink, 500),
error: _color(pink, 500),
info: _color(blue, 500),
success: _color(green, 500),
warning: _color(gold, 500),
),
), default);
@include _color((
background: (
body: #fff,
ui: (
default: #fff,
lighter: _color(ash, 200),
light: _color(ash, 300),
),
),
), default);
@include _color((
border: (
default: _color(ash, 400),
divider: _color(ash, 300),
ui: (
default: _color(ash, 500),
dark: _color(ash, 600),
),
),
), default);
@include _color((
text: (
default: _color(charcoal, 600),
subtle: _color(charcoal, 400),
muted: _color(charcoal, 200),
),
), default);
@include _color((
link: (
default: _color(blue, 500),
hover: _color(blue, 400),
),
), default);
@include _color((
state: (
danger: (
background-color: _color(pink, 100),
border-color: _color(pink, 500),
color: _color(pink, 800)
),
error: (
background-color: _color(pink, 100),
border-color: _color(pink, 500),
color: _color(pink, 800)
),
info: (
background-color: _color(blue, 50),
border-color: _color(blue, 300),
color: _color(blue, 800)
),
success: (
background-color: _color(green, 50),
border-color: _color(green, 300),
color: _color(green, 800)
),
warning: (
background-color: _color(gold, 50),
border-color: _color(gold, 300),
color: _color(gold, 800)
),
),
), default);
}