
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
postcss-color-hwb
Advanced tools
PostCSS plugin to transform W3C CSS hwb() color to more compatible CSS (rgb() (or rgba()))
PostCSS plugin to transform W3C CSS hwb() color to more compatible CSS (rgb() (or rgba())).
$ npm install postcss-color-hwb
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var colorHwb = require("postcss-color-hwb")
// css to be processed
var css = fs.readFileSync("input.css", "utf8")
// process css
var output = postcss()
.use(colorHwb())
.process(css)
.css
Using this input.css
:
body {
color: hwb(90, 0%, 0%, 0.5);
}
you will get:
body {
color: rgba(128, 255, 0, 0.5);
}
Checkout tests for more examples.
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/postcss/postcss-color-hwb.git
$ git checkout -b patch-1
$ npm install
$ npm test
FAQs
PostCSS plugin to transform W3C CSS hwb() color to more compatible CSS (rgb() (or rgba()))
The npm package postcss-color-hwb receives a total of 102,928 weekly downloads. As such, postcss-color-hwb popularity was classified as popular.
We found that postcss-color-hwb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.