rework-hex-alpha
Convert hex colors with alpha values into their RGBA equivalents for more browser support.
Last updated 13 years ago by ianstormtaylor .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install rework-hex-alpha 
SYNC missed versions from official npm registry.

rework-hex-alpha

Convert hex colors with alpha values into their RGBA equivalents for more browser support.

Installation

$ npm install rework-hex-alpha

Example

var hex = require('rework-hex-alpha');

rework(css)
  .use(hex)
  .toString();

API

In your CSS, use 4-digit or 8-digit hex colors with alpha channels as if they were already supported in all browsers:

h2 {
  color: #9d9c;
}

p {
  color: #9823f8a9;
}

License

MIT

Current Tags

  • 1.0.0                                ...           latest (13 years ago)

4 Versions

  • 1.0.0                                ...           13 years ago
  • 0.0.3                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 14
Today 0
This Week 3
This Month 7
Last Day 0
Last Week 3
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE