A simple and intuitive React project for sharing, saving, and managing color codes. ColorShare lets users easily work with color codes in various formats like HEX, RGB, and HSL, making it an essential tool for designers, developers, and color enthusiasts.
- Pick Colors: Use the integrated color picker to select colors and instantly view them in HEX, RGB, and HSL formats.
- Save & Share: Save favorite colors to a personal collection and share them through a unique link.
- Format Conversion: Seamlessly convert between HEX, RGB, and HSL color formats.
- Copy to Clipboard: Quickly copy color codes to the clipboard for convenient use in other projects.
- Dark Mode Support: Experience the app in light or dark mode, with your preference saved in local storage.
Check out the live demo here
-
Clone the Repository:
git clone https://github.com/CodeskStudio/colorshare-react-app.git cd colorshare-react-app
-
Install Dependencies:
npm install
-
Run the App:
npm run dev
-
Open
http://localhost:5173
to view the app in your browser.
- Choose a color using the color picker or enter a specific color code.
- View the color code in multiple formats (HEX, RGB, HSL).
- Save colors to your collection for quick reference and reuse.
- Share saved colors with others using a generated link.
- Use the Dark Mode Toggle for an optimized viewing experience.
Here's a brief overview of the project structure:
colorshare/
โโโ src/
โ โโโ components/
โ โ โโโ ColorCode.jsx
โ โ โโโ ColorPicker.jsx
โ โ โโโ DarkModeToggle.jsx
โ โ โโโ Footer.jsx
โ โ โโโ SavedColors.jsx
โ โโโ utils/
โ โ โโโ colorUtils.js
โ โโโ App.jsx
โ โโโ index.css
โ โโโ index.js
โโโ tailwind.config.js
To run tests, use the following command:
npm test
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make your changes and commit:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature-branch-name
. - Open a pull request.
This project is licensed under the MIT License.
Special thanks to the contributors (aka. ChatGPT
) and libraries that helped make this project possible, including react-colorful
for the color picker, color-namer
for naming color codes, react-hot-toast
for notifications, and Tailwind CSS for styling.