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.
- 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.
To run this project locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/freddyfavour/color-picker.git cd color-picker
-
Install Dependencies: Make sure you have Node.js and npm installed. Then run:
npm install
-
Start the Development Server:
npm start
This will start the development server and open the application in your default browser at
http://localhost:3000
.
- 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.
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.
- 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.
If you would like to contribute to this project, please follow these steps:
- Fork the Repository.
- Create a New Branch:
git checkout -b feature-branch
- Make Your Changes and Commit:
git commit -am 'Add new feature'
- Push Your Changes:
git push origin feature-branch
- Create a Pull Request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
- React and Tailwind CSS for providing the tools and libraries to build this project.
- Tailwind CSS Documentation for responsive design utilities.
If you have any questions or feedback, feel free to reach out:
- Email: alfredfavour76@gmail.com
- GitHub: freddyfavour