Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avigoldman/postcss-colornames-to-hex
PostCSS plugin to convert color names to hexadecimal values
https://github.com/avigoldman/postcss-colornames-to-hex
colornames colors hexidecimal plugin postcss
Last synced: about 8 hours ago
JSON representation
PostCSS plugin to convert color names to hexadecimal values
- Host: GitHub
- URL: https://github.com/avigoldman/postcss-colornames-to-hex
- Owner: avigoldman
- Created: 2017-09-02T01:44:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T15:45:58.000Z (about 7 years ago)
- Last Synced: 2024-10-31T17:20:20.627Z (18 days ago)
- Topics: colornames, colors, hexidecimal, plugin, postcss
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# postcss-colornames-to-hex
This plugin will convert CSS color names like `blue` or `black` to their hexadecimal equivalent.
### Installation
```sh
npm install postcss-colornames-to-hex --save
```### Usage
```js
postcss([ require('postcss-colornames-to-hex') ])
// do your processing here 🎉
```Or use it in some other [PostCSS way](https://github.com/postcss/postcss#usage).
### Example
You put this in....
```css
a {
color: blue;
}
```and you get this out...
```css
a {
color: #0000FF;
}
```