postcss-link-colors
Helper function for link states
Install
With npm do:
npm install postcss-link-colors --save
Example
var postcss = ; var css = 'a{ linkColors: red, blue, green, yellow, purple; }';console; // => '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.
Similar projects
Contributing
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.
License
MIT © Steffen Müller