Skip to content

A simple and responsive Color Picker application built with HTML, CSS, and JavaScript. This tool generates random colors, displays their hex codes, and allows users to copy the codes with a "Copied!" message for visual feedback.

License

Notifications You must be signed in to change notification settings

shivlalsharma/color-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Picker

A simple and responsive Color Picker application that generates random colors, displays the corresponding hex code, and allows users to copy the code with a single click. A "Copied!" message appears temporarily when a color code is successfully copied.

Deployment

This project is live and accessible online. You can try it out here: Color Picker

Features

  • Random Color Generation: Generates random colors with a single click.
  • Hex Code Display: Displays the generated color's hex code in real-time.
  • Copy to Clipboard: Easily copies the hex code to the clipboard by clicking the copy icon.
  • Visual Feedback: Shows a "Copied!" message above the copy icon for 1 second after successfully copying.
  • Responsive Design: Works seamlessly across different devices and screen sizes.

Technologies Used

Frontend

  • HTML5: Structuring the UI.
  • CSS3: Styling and animations.
  • JavaScript: Functionality and interactivity.

Libraries

  • Font Awesome: For the copy icon.

How It Works

  1. Generate Color:

    • Click the "Generate Color" button to generate a random color.
    • The background color of the page changes to the generated color.
    • The corresponding hex code is displayed and styled with the generated color.
  2. Copy Hex Code:

    • Click on the copy icon to copy the hex code to the clipboard.
    • A "Copied!" message appears above the copy icon for 1 second.
  3. Visual Feedback:

    • The "Copied!" message fades in and out smoothly to inform users of successful copy operations.

Installation

follow these steps to run the project locally:

  1. Clone the repository:

    git clone https://github.com/shivlalsharma/color-picker.git
    cd color-picker
  2. Open the index.html file in your browser.

    Alternatively, you can set up a local server (e.g., using VS Code Live Server) to view the project in your browser.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Created and deployed by Shivlal Sharma.

About

A simple and responsive Color Picker application built with HTML, CSS, and JavaScript. This tool generates random colors, displays their hex codes, and allows users to copy the codes with a "Copied!" message for visual feedback.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published