Skip to content

It is about extracting colours from css file by importing it into the javascript code.

Notifications You must be signed in to change notification settings

Naveena-19/Colour_Extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Colour_Extraction

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:


CSS Color Extractor

This simple JavaScript program (color.js) extracts color codes from a provided CSS file and outputs the hexadecimal representations of those colors.

Usage

  1. Setup: Clone or download this repository to your local machine.

  2. 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.

  3. Output: The script will display the extracted color codes from the specified CSS file in hexadecimal format.

Requirements

  • Node.js installed on your machine.

Example Output

• #1d4ed8
• #1e40af
• #ccc
• #27272a
• #323232

Contributing

Feel free to contribute by submitting pull requests or opening issues if you encounter problems or have suggestions for improvements.

License

This project is licensed under the MIT License.


About

It is about extracting colours from css file by importing it into the javascript code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published