css-custom-properties-transform
Allow transformation of color values from hex to rgb and their usage in CSS Custom Properties
Last updated a year ago by motork-user .
GPL-3.0 · Repository · Original npm · Tarball · package.json
$ cnpm install css-custom-properties-transform 
SYNC missed versions from official npm registry.

CSS Custom Properties transform

Allow transformation of color values from hex to rgb and their usage in CSS Custom Properties. This module accepts both a String or an Object as input. Accepting a String allows the module to be used with Webpack's Style loader.

Installation

npm i -D css-custom-properties-transform

Example usage: passing an Object

customPropertiesTransform( {
    cssFiles: [
        '*.css',
        'css/**/*.css',
        'css/style-{elektron,elements}.css'
    ]
} );

Example usage: passing a String

const styleLoader = {
    loader: 'style-loader',
    options: {
        transform: 'node_modules/css-custom-properties-transform/index.js'
    }
}

Current Tags

  • 1.2.1                                ...           latest (a year ago)

2 Versions

  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |