Giter Site home page Giter Site logo

freddyfavour / color-picker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 117 KB

The Color Picker is a React application that allows users to select colors from a palette and copy their hexadecimal values to the clipboard. Built with React and styled using Tailwind CSS, this project demonstrates modern frontend development practices with a focus on interactive design and responsive layout.

Home Page: https://picky-colors.vercel.app

JavaScript 82.37% HTML 16.32% CSS 1.31%
color-picker reactjs tailwindcss

color-picker's Introduction

Color Picker

Color Picker Demo

A simple and interactive color picker built with React and Tailwind CSS. This application allows users to select and copy color hex codes and displays the selected color and its details.

Features

  • Interactive Color Blocks: Click on any color block to select it. The hex code of the selected color is copied to the clipboard.
  • Responsive Design: The layout adjusts to different screen sizes, displaying color blocks in a flexible and wrap-around manner.
  • Focus and Accessibility: Supports keyboard navigation and focus styles for better accessibility.

Installation

To run this project locally, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/freddyfavour/color-picker.git
    cd color-picker
  2. Install Dependencies: Make sure you have Node.js and npm installed. Then run:

    npm install
  3. Start the Development Server:

    npm start

    This will start the development server and open the application in your default browser at http://localhost:3000.

Usage

  • Select a Color: Click on any color block to select it. The color's hex code will be copied to your clipboard.
  • View Selected Color: The selected color's name and hex code will be displayed below the color blocks.

Project Structure

  • src/
    • ColorPicker.jsx: The main component for the color picker interface.
    • App.jsx: The main application component.
    • index.css: Tailwind CSS setup and global styles.
    • main.jsx: Entry point of the application where React is initialized.
  • public/
    • index.html: The HTML template for the React app.

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • Tailwind CSS: A utility-first CSS framework for styling.
  • JavaScript (ES6): The programming language used for development.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork the Repository.
  2. Create a New Branch:
    git checkout -b feature-branch
  3. Make Your Changes and Commit:
    git commit -am 'Add new feature'
  4. Push Your Changes:
    git push origin feature-branch
  5. Create a Pull Request on GitHub.

License

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

Acknowledgements

  • React and Tailwind CSS for providing the tools and libraries to build this project.
  • Tailwind CSS Documentation for responsive design utilities.

Contact

If you have any questions or feedback, feel free to reach out:

color-picker's People

Contributors

freddyfavour avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.