It is about extracting colours from css file by importing it into the javascript code.
Certainly! Here's a basic outline for this GitHub repository:
This simple JavaScript program (color.js
) extracts color codes from a provided CSS file and outputs the hexadecimal representations of those colors.
-
Setup: Clone or download this repository to your local machine.
-
Run the Script: Open a terminal or command prompt and navigate to the directory containing the
color.js
file.node color.js style.css
Replace
style.css
with the name of your CSS file. -
Output: The script will display the extracted color codes from the specified CSS file in hexadecimal format.
- Node.js installed on your machine.
• #1d4ed8
• #1e40af
• #ccc
• #27272a
• #323232
Feel free to contribute by submitting pull requests or opening issues if you encounter problems or have suggestions for improvements.
This project is licensed under the MIT License.