postcss-ase-colors

0.4.1 • Public • Published

postcss-ase-colors

Build Status

PostCSS plugin that replaces color values from an Adobe Swatch Exchange file.

ASE files are color palettes used by mainly by Adobe products: Photoshop, Illustrator, InDesign, and Kuler. The file is read using the ase-util package.

For example if you have an ASE file that defines a color named brand, processing a CSS with .selector { color: brand; } it will replace brand with the hex color value in your ASE file.

Installation

npm install postcss-ase-colors --save-dev

Usage

var postcss = require('postcss');
var aseColors = require('postcss-ase-colors');
 
var css = fs.readFileSync('input.css', 'utf8');
 
var output = postcss()
  .use(aseColors({file: 'myColors.ase'}))
  .process(css)
  .css;

/postcss-ase-colors/

    Package Sidebar

    Install

    npm i postcss-ase-colors

    Weekly Downloads

    2

    Version

    0.4.1

    License

    MIT

    Last publish

    Collaborators

    • dfernandez79