rework-hex-alpha
Convert hex colors with alpha values into their RGBA equivalents for more browser support.
Last updated 12 years ago by ianstormtaylor .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (12 years ago)

4 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |