Need private packages and team management tools?Check out npm Teams »

swatcher

0.0.0 • Public • Published

swatcher

Make CSS variables via JavaScript

npm install swatcher --save

Usage

var swatcher = require('swatcher')

swatcher().assign({
  orange: '#f60',
  black: '#000'
}).css()

Methods

  • .assign(swatches): set swatch values
  • .lookup(name): get swatch value
  • .object(): get JavaScript object
  • .json(): get json string
  • .css(): get css string
  • .scss(): get scss string
  • .less(): get less string

Install

npm i swatcher

DownloadsWeekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • avatar