Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/chrismademe/hex-codes-to-custom-properties
- Owner: chrismademe
- Created: 2020-11-14T15:47:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-14T15:51:43.000Z (over 4 years ago)
- Last Synced: 2024-11-13T19:40:39.567Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :)