An interactive web application for exploring and managing RGB colors.
- Interactive RGB color selection with sliders and input fields
- Real-time color display
- Color information in RGB, HEX, and HSL formats
- Standard color name identification
- Save and manage custom colors
- React
- Vite
- Tailwind CSS
- shadcn/ui components
- Lucide React icons
Before you begin, ensure you have the following installed:
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
-
Clone the repository:
git clone https://github.com/yourusername/rgb-color-swatch.git cd rgb-color-swatch
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit
http://localhost:5173
to view the application.
- Use the sliders or input fields to adjust the Red, Green, and Blue values.
- The color swatch updates in real-time to display the selected color.
- View the color information in RGB, HEX, and HSL formats.
- Click the "Save Color" button to add the current color to your saved colors list.
To create a production build, run:
npm run build
The built files will be in the dist
directory.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Vite for the fast build tool and development server
- Tailwind CSS for the utility-first CSS framework
- shadcn/ui for the beautiful and accessible UI components
- Lucide for the icon set
If you have any questions or feedback, please open an issue on this repository.