An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
September 20, 2022 09:27 pm GMT
Original Link: https://dev.to/aspnxdd/unhex-convert-colors-to-rgb-hex-or-hsl-in-bulk-9fh
Unhex - convert colors to RGB, HEX or HSL in bulk
Working on a large codebase with multiple css files, inline styles and tech lead says all colors now gotta be as HSL?
Changing 1 by 1? Forget that.
In this tutorial we will discover unhex - a nodeJS package that replaces all the colors in all the files you choose in a given directory.
Go to your project root directory and run npx unhex@latest
a CLI inquirer will appear. Select which file extensions you wish to modify, ignore any files (like node_modules) and you are ready to go!
All the files matching your configuration will be parsed and modified to whatever color representation you chose!
Original Link: https://dev.to/aspnxdd/unhex-convert-colors-to-rgb-hex-or-hsl-in-bulk-9fh
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To