Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chrismademe/hex-codes-to-custom-properties

Give it a string of HTML, SVG, anything really and you get back named CSS Custom Properties for any hex colours it finds.
https://github.com/chrismademe/hex-codes-to-custom-properties

Last synced: about 1 month ago
JSON representation

Give it a string of HTML, SVG, anything really and you get back named CSS Custom Properties for any hex colours it finds.

Awesome Lists containing this project

README

        

# How?

Clone it

```bash
npx degit chrismademe/hex-codes-to-custom-properties
```

Change the input in `index.js`

```js
const inputFile = `./path/to/your/file.svg`;
```

Run it

```bash
node index.js
```

Copy the output :)