Skip to content

jacklightbody/postcss-variable-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postcss Variable Colors

This is a simple node package to support converting colors into the css custom attribute detailed here.

Installation

npm install postcss-variable-colors

Usage

var converter = require('postcss-variable-colors');
var convertedCss = converter.convertFromCss('a { color: #fff; background: red url(foo.jpg); font-size: 12px; border-top: 1px solid red}')

Command Line Usage

variable-colors input.css? output.css? -f?

Specify the f tag to force overwrite the output css file.

You can also pipe in with

cat input.css | variable-colors 

Todo

  • Add tests for cli module

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published