rework-hex-alpha

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

MIT 4 个版本
安装
npm install rework-hex-alpha
yarn add rework-hex-alpha
pnpm add rework-hex-alpha
bun add rework-hex-alpha
README

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

版本列表
1.0.0 2014-03-14
0.0.3 2013-12-17
0.0.2 2013-12-17
0.0.1 2013-12-16