rework-hex-alpha

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1,369
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1,369
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i rework-hex-alpha

Weekly Downloads

1,370

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ianstormtaylor