A beautiful, modern, and fully responsive color palette explorer built with React 18, JavaScript, Tailwind CSS, and Vite. Explore 150+ beautiful colors with complete color information, gradient previews, and WCAG contrast checking.
- π¨ 150+ Beautiful Colors: Predefined color palette with complete information
- π± Fully Responsive: Mobile-first design (2-col mobile, 4-col tablet, 6-col desktop)
- π Search & Filter: Search by name or HEX code
- π·οΈ Categories: Filter by All, Red, Blue, Green, Pastel, Dark, Neon
- π² Random Color: Get random colors with one click
- π Copy to Clipboard: Copy HEX, RGB, RGBA, HSL values instantly
- π Dark/Light Mode: Toggle with persistence in localStorage
- β¨οΈ Keyboard Shortcuts:
Space- Get random colorEsc- Close modal
- π Color Modal: Detailed view with all color formats
- π Gradient Preview: See 2-3 color gradients automatically generated
- βΏ WCAG Contrast Checker: Check accessibility compliance (AA/AAA)
- β¨ Smooth Animations: Framer Motion powered transitions
- π Glassmorphism UI: Modern glass-effect design
- π― Hover Effects: Scale and shadow effects on color cards
# Clone or navigate to the project
cd color-finder
# Install dependencies
npm install
# Start development server
npm run devThe app will be available at http://localhost:5173
npm run build
npm run previewcolor-finder/
βββ src/
β βββ components/
β β βββ ColorCard.jsx # Individual color card
β β βββ ColorGrid.jsx # Grid layout for colors
β β βββ ColorModal.jsx # Detailed color information modal
β β βββ SearchBar.jsx # Search input component
β β βββ CategoryTabs.jsx # Category filter tabs
β β βββ RandomColorButton.jsx # Random color generator
β β βββ DarkModeToggle.jsx # Theme switcher
β β βββ Toast.jsx # Notification toast
β β βββ GradientPreview.jsx # Gradient preview component
β β βββ ColorContrastChecker.jsx # WCAG contrast checker
β βββ hooks/
β β βββ useColors.js # Color filtering and search logic
β β βββ useModal.js # Modal state management
β β βββ useCopyToClipboard.js # Clipboard functionality
β β βββ useDarkMode.js # Dark mode with localStorage
β βββ data/
β β βββ colors.js # 150+ color definitions
β βββ App.jsx # Main application component
β βββ main.jsx # Application entry point
β βββ index.css # Global styles + Tailwind
βββ index.html
βββ vite.config.js
βββ tailwind.config.js
βββ postcss.config.js
βββ package.json
- Browse Colors: Scroll through the color grid
- Search: Type in the search bar to find colors by name or HEX
- Filter: Click category tabs to filter colors
- View Details: Click any color card to see complete information
- Copy Values: Click copy icons in the modal to copy color values
- Random Color: Click the shuffle button or press
Spacekey
When you click a color, you'll see:
- HEX:
#FF6B6B - RGB:
rgb(255, 107, 107) - RGBA:
rgba(255, 107, 107, 1) - HSL:
hsl(0, 100%, 70%) - Gradient Preview: 2-3 automatically generated gradients
- WCAG Contrast: Accessibility compliance checker
- Space: Get a random color and copy its HEX
- Esc: Close the color information modal
- React 18 - UI framework
- JavaScript (ES6+) - No TypeScript
- Vite - Build tool and dev server
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library
- React Icons - Icon library
Edit src/data/colors.js:
{
name: "Your Color Name",
hex: "#HEXCODE",
rgb: "rgb(r,g,b)",
category: "Category"
}Edit tailwind.config.js to customize:
- Gradient colors
- Glassmorphism effects
- Animation timings
Edit ColorGrid.jsx to change responsive breakpoints:
className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6"- Mobile (< 640px): 2 columns
- Tablet (640px - 1024px): 3-4 columns
- Desktop (> 1024px): 6 columns
npm install -g vercel
vercelnpm run build
# Drag and drop the 'dist' folder to Netlify- Update
vite.config.js:
export default defineConfig({
base: '/your-repo-name/',
// ...
})- Build and deploy:
npm run build
# Deploy dist folder to gh-pages branch- Automatically calculates contrast ratios
- Shows AA/AAA compliance levels
- Recommends best text color (white/black)
- Automatically generates 2-3 color gradients
- Shows different gradient directions
- Updates when color changes
MIT License - feel free to use this project for personal or commercial purposes.
Contributions are welcome! Feel free to:
- Add more colors
- Improve accessibility
- Add new features
- Fix bugs
- Improve documentation
For issues, questions, or suggestions, please open an issue on GitHub.
Made with β€οΈ using React, Tailwind CSS, and Vite