Skip to content

🌈 A modern, interactive color picker web app with rainbow gradients, HSL sliders, and preset colors. Built with React & Tailwind CSS.

Notifications You must be signed in to change notification settings

code0era/Rainbow-Color-Picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌈 Rainbow Color Picker

A beautiful, modern, and interactive color picker web application with a stunning rainbow gradient theme. Built with React and Tailwind CSS for a smooth and responsive user experience.

Rainbow Color Picker Tailwind CSS License

image

πŸš€ Live Demo

https://rainbow-color-picker.vercel.app/

✨ Features

  • 🎨 HSL Color Controls - Fine-tune colors with interactive Hue, Saturation, and Lightness sliders
  • 🌈 Rainbow Presets - 12 vibrant preset colors for quick selection
  • πŸ“‹ Clipboard Integration - One-click color code copying with visual feedback
  • 🎯 Custom Input - Both visual color picker and manual hex input
  • πŸ’« Smooth Animations - Beautiful hover effects and transitions throughout
  • πŸ“± Fully Responsive - Works seamlessly on desktop, tablet, and mobile devices
  • 🎭 Modern UI - Glassmorphism design with rainbow gradient background
  • πŸ”„ Real-time Preview - Instant color updates as you adjust sliders

πŸ–ΌοΈ Screenshots

Desktop View

image

πŸ› οΈ Built With

  • React 18 - JavaScript library for building user interfaces
  • Tailwind CSS - Utility-first CSS framework
  • Lucide React - Beautiful and consistent icon library
  • Create React App - Standard toolchain for React applications

πŸ“‹ Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v14.0.0 or higher)
  • npm (v6.0.0 or higher)

Check your versions:

node --version
npm --version

πŸš€ Getting Started

Installation

  1. Clone the repository
git clone https://github.com/code0era/Rainbow-Color-Picker.git
  1. Navigate to the project directory
cd Rainbow-Color-Picker
  1. Install dependencies
npm install
  1. Start the development server
npm start
  1. Open your browser

Build for Production

Create an optimized production build:

npm run build

The build folder will contain the optimized files ready for deployment.

πŸ“ Project Structure

rainbow-color-picker/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html
β”‚   └── favicon.ico
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.js              # Main application component
β”‚   β”œβ”€β”€ index.js            # Entry point
β”‚   └── index.css           # Global styles with Tailwind
β”œβ”€β”€ package.json            # Dependencies and scripts
β”œβ”€β”€ tailwind.config.js      # Tailwind configuration
β”œβ”€β”€ postcss.config.js       # PostCSS configuration
└── README.md               # Project documentation

🎨 How to Use

  1. Adjust HSL Sliders

    • Move the Hue slider to change the base color (0-360Β°)
    • Adjust Saturation for color intensity (0-100%)
    • Control Lightness from black to white (0-100%)
  2. Choose Preset Colors

    • Click any of the 12 rainbow preset color buttons
    • Instantly apply beautiful pre-selected colors
  3. Custom Color Input

    • Use the visual color picker for quick selection
    • Or type/paste a hex color code directly
  4. Copy Color Code

    • Click the "Copy Color Code" button
    • The hex code is instantly copied to your clipboard
    • Visual confirmation appears on successful copy

πŸ”§ Configuration

Tailwind CSS

The project uses Tailwind CSS with default configuration. To customize:

Edit tailwind.config.js:

module.exports = {
  content: ["./src/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {
      // Add your custom configurations here
    },
  },
  plugins: [],
}

Color Presets

To modify the rainbow preset colors, edit the rainbowColors array in src/App.js:

const rainbowColors = [
  '#FF0000', // Red
  '#FF7F00', // Orange
  // Add or modify colors here
];

🌐 Deployment

Deploy to Vercel (Recommended)

  1. Push your code to GitHub
  2. Go to Vercel
  3. Import your GitHub repository
  4. Vercel will auto-detect Create React App settings
  5. Click "Deploy"

Deploy to Netlify

  1. Build your project: npm run build
  2. Drag and drop the build folder to Netlify

Deploy to GitHub Pages

  1. Install gh-pages:
npm install --save-dev gh-pages
  1. Add to package.json:
"homepage": "https://code0era.github.io/Rainbow-Color-Picker",
"scripts": {
  "predeploy": "npm run build",
  "deploy": "gh-pages -d build"
}
  1. Deploy:
npm run deploy

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/AmazingFeature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some AmazingFeature')
  5. Push to the branch (git push origin feature/AmazingFeature)
  6. Open a Pull Request

πŸ“ License

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

πŸ‘€ Author

code0era

πŸ™ Acknowledgments

πŸ“§ Support

If you have any questions or run into issues, please open an issue on GitHub or contact me directly.


Made with 🌈 and ❀️ by code0era

⭐ Star this repo if you find it helpful!

About

🌈 A modern, interactive color picker web app with rainbow gradients, HSL sliders, and preset colors. Built with React & Tailwind CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published