/colorshare-react-app

๐ŸŽจ A straightforward React project designed to simplify the process of sharing and managing color codes. This application allows users to easily pick, save, and share color codes in various formats.

Primary LanguageJavaScriptMIT LicenseMIT

๐ŸŽจ ColorShare

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.

๐Ÿš€ Features

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

๐ŸŽฏ Live Demo

Check out the live demo here

๐Ÿ“ฆ Installation

  1. Clone the Repository:

    git clone https://github.com/CodeskStudio/colorshare-react-app.git
    cd colorshare-react-app
  2. Install Dependencies:

    npm install
  3. Run the App:

    npm run dev
  4. Open http://localhost:5173 to view the app in your browser.

๐Ÿ› ๏ธ Usage

  1. Choose a color using the color picker or enter a specific color code.
  2. View the color code in multiple formats (HEX, RGB, HSL).
  3. Save colors to your collection for quick reference and reuse.
  4. Share saved colors with others using a generated link.
  5. Use the Dark Mode Toggle for an optimized viewing experience.

๐Ÿ“ Project Structure

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

๐Ÿงช Testing

To run tests, use the following command:

npm test

๐Ÿค Contributing

We welcome contributions! To contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-branch-name.
  3. Make your changes and commit: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature-branch-name.
  5. Open a pull request.

๐Ÿ“œ License

This project is licensed under the MIT License.

๐Ÿ“ Acknowledgments

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.