
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
postcss-link-colors
Advanced tools
PostCSS plugin for normal, hover, active, visited, focus link colors
Helper function for link states
With npm do:
npm install postcss-link-colors --save
var postcss = require('postcss');
var css = 'a{ linkColors: red, blue, green, yellow, purple; }';
console.log(postcss([ require('postcss-link-colors') ]).process(css).css);
// => 'a{ color: red; } a:focus{ color: purple; } a:active{ color: yellow; } a:visited{ color: green; } a:hover{ color: blue; }'
You can also pass the classes in via opts.classes. See the tests for an example.
Pull requests are welcome. If you send a PR or want to maintain the module, I'll grant you repo access and publishing rights for npm.
MIT © Steffen Müller
2.0.0
Updated to postcss 5.x
FAQs
PostCSS plugin for normal, hover, active, visited, focus link colors
The npm package postcss-link-colors receives a total of 12 weekly downloads. As such, postcss-link-colors popularity was classified as not popular.
We found that postcss-link-colors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.