import React, { useState } from 'react'; import { Palette, Copy, Check, ChevronDown, ChevronUp } from 'lucide-react'; const BrandPaletteGenerator = () => { const [selectedBrand, setSelectedBrand] = useState(''); const [copiedColor, setCopiedColor] = useState(''); const [expandedCategories, setExpandedCategories] = useState({}); const brandCategories = { 'Fast Food & Restaurants': { 'KFC': { colors: ['#DC143C', '#FFFFFF', '#000000', '#FFD700', '#8B0000'], description: 'Bold, appetizing comfort food' }, 'McDonald\'s': { colors: ['#FFD700', '#FF0000', '#FFFFFF', '#000000', '#FFA500'], description: 'Happy, welcoming fast food' }, 'Sonic': { colors: ['#0066CC', '#FF0000', '#FFFFFF', '#FFD700'], description: 'Retro drive-in fun' }, 'Taco Bell': { colors: ['#702F8A', '#FF6600', '#FFFF00', '#000000', '#FFFFFF'], description: 'Fun, bold Mexican-inspired' }, 'Burger King': { colors: ['#EC1C24', '#FDBB30', '#0066B2', '#FFFFFF', '#000000'], description: 'Flame-grilled bold flavors' }, 'Pizza Hut': { colors: ['#FF0000', '#FFFF00', '#000000', '#FFFFFF'], description: 'Pizza delivery classic' }, 'Wendy\'s': { colors: ['#E31837', '#FFD100', '#FFFFFF', '#000000'], description: 'Fresh, never frozen' }, 'Papa Murphy\'s': { colors: ['#C8102E', '#F79100', '#FFFFFF', '#000000'], description: 'Take-and-bake pizza' }, 'Domino\'s': { colors: ['#0052CC', '#E31837', '#FFFFFF', '#000000'], description: 'Pizza delivery leader' }, 'A&W': { colors: ['#8B4513', '#FFA500', '#FFFFFF', '#000000'], description: 'Root beer and burgers' }, 'Krispy Kreme': { colors: ['#00A651', '#FF0000', '#FFFFFF', '#000000'], description: 'Hot fresh donuts' } }, 'Candy & Snacks': { 'Reese\'s': { colors: ['#FF6600', '#FFFF00', '#8B4513', '#000000'], description: 'Peanut butter chocolate perfection' }, 'Skittles': { colors: ['#FF0000', '#FFA500', '#FFFF00', '#00FF00', '#8B00FF'], description: 'Taste the rainbow' }, 'M&M\'s': { colors: ['#FF0000', '#FFA500', '#FFFF00', '#00FF00', '#0066CC', '#8B00FF'], description: 'Colorful chocolate fun' }, 'Snickers': { colors: ['#8B4513', '#FFD700', '#654321', '#000000'], description: 'Satisfying chocolate bar' }, 'Jelly Belly': { colors: ['#FF0000', '#FFA500', '#FFFF00', '#00FF00', '#0066CC', '#8B00FF'], description: 'Gourmet jelly beans' }, 'Milky Way': { colors: ['#8B0000', '#FFD700', '#FFFFFF', '#000000'], description: 'Smooth chocolate bar' }, 'Twix': { colors: ['#FFD700', '#8B4513', '#654321', '#000000'], description: 'Cookie and caramel crunch' }, 'Hershey\'s': { colors: ['#8B4513', '#C0C0C0', '#FFD700', '#000000'], description: 'Classic American chocolate' }, 'Tic Tac': { colors: ['#FFFFFF', '#FF0000', '#FFA500', '#0066CC'], description: 'Tiny breath mints' }, 'Chips Ahoy': { colors: ['#0066CC', '#FFD700', '#8B4513', '#FFFFFF'], description: 'America\'s favorite cookie' }, 'Cheez-Its': { colors: ['#FFA500', '#FF0000', '#FFFFFF'], description: 'Cheesy baked snacks' } }, 'Beverages': { 'Mountain Dew': { colors: ['#66FF00', '#FFFF00', '#FF6600', '#000000'], description: 'Extreme citrus energy' }, 'Coca-Cola': { colors: ['#FF0000', '#FFFFFF', '#000000', '#C0C0C0'], description: 'Classic, timeless refreshment' }, 'Red Bull': { colors: ['#1E3A8A', '#DC2626', '#FBBF24', '#C0C0C0', '#FFFFFF'], description: 'High-energy performance' }, 'Monster': { colors: ['#00FF00', '#000000', '#FFFFFF'], description: 'Unleash the beast' }, 'Dr Pepper': { colors: ['#8B0000', '#FFFFFF', '#C0C0C0'], description: '23 flavors of uniqueness' }, 'Corona': { colors: ['#FFD700', '#0066CC', '#FFFFFF'], description: 'Beach relaxation vibes' }, 'Budweiser': { colors: ['#FF0000', '#FFFFFF', '#FFD700'], description: 'King of beers' } }, 'Technology & Gaming': { 'Xbox': { colors: ['#00FF00', '#000000', '#FFFFFF'], description: 'Gaming excellence' }, 'PlayStation': { colors: ['#0066CC', '#000000', '#FFFFFF'], description: 'Gaming innovation' }, 'Nintendo': { colors: ['#FF0000', '#FFFFFF', '#0066CC'], description: 'Fun for everyone' }, 'Microsoft': { colors: ['#00BCF2', '#80BB01', '#FFBB00', '#F25022', '#737373'], description: 'Professional productivity' }, 'Google': { colors: ['#4285F4', '#EA4335', '#FBBC04', '#34A853', '#FFFFFF'], description: 'Search and innovation' }, 'Amazon': { colors: ['#FF9900', '#232F3E', '#FFFFFF', '#146EB4', '#000000'], description: 'E-commerce convenience' }, 'Intel': { colors: ['#0071C5', '#FFFFFF', '#000000'], description: 'Processor innovation' }, 'NASA': { colors: ['#FC3D21', '#0B3D91', '#FFFFFF'], description: 'Space exploration' } }, 'Sports & Athletic': { 'Nike': { colors: ['#000000', '#FFFFFF', '#FF6600', '#C0C0C0'], description: 'Just do it' }, 'Adidas': { colors: ['#000000', '#FFFFFF', '#1E88E5', '#FFC107'], description: 'Three stripes performance' }, 'Air Jordan': { colors: ['#000000', '#FF0000', '#FFFFFF'], description: 'Basketball legend' } }, 'Entertainment & Characters': { 'Hot Wheels': { colors: ['#FFA500', '#FF0000', '#0066CC', '#FFFFFF'], description: 'Leading the way' }, 'Barbie': { colors: ['#FF69B4', '#FFFFFF', '#FFD700'], description: 'Be anything' }, 'LEGO': { colors: ['#FF0000', '#FFFF00', '#0066CC', '#00AA00', '#FFFFFF'], description: 'Build your imagination' }, 'Mickey Mouse': { colors: ['#FF0000', '#FFFF00', '#000000', '#FFFFFF'], description: 'Disney magic' }, 'SpongeBob': { colors: ['#FFFF00', '#8B4513', '#0066CC', '#FF69B4'], description: 'Bikini Bottom fun' }, 'Harry Potter': { colors: ['#8B0000', '#FFD700', '#000000', '#FFFFFF'], description: 'Wizarding world' } }, 'Retail & Shopping': { 'Walmart': { colors: ['#004C91', '#FFC220', '#FFFFFF', '#000000'], description: 'Save money, live better' }, 'Target': { colors: ['#CC0000', '#FFFFFF', '#000000', '#E50000'], description: 'Expect more, pay less' }, 'Best Buy': { colors: ['#003DA5', '#FFD100', '#FFFFFF', '#000000'], description: 'Tech solutions' }, 'Home Depot': { colors: ['#FF6600', '#FFFFFF', '#000000', '#F96302', '#232F3E'], description: 'More saving, more doing' }, 'Dollar Tree': { colors: ['#00AA00', '#FFFFFF', '#000000'], description: 'Everything\'s $1.25' }, '7-Eleven': { colors: ['#FF6600', '#00AA00', '#FF0000', '#FFFFFF'], description: 'Convenience store leader' } }, 'Office & Creative': { 'Crayola': { colors: ['#FF0000', '#FFA500', '#FFFF00', '#00FF00', '#0066CC', '#8B00FF'], description: 'Colorful creativity' }, 'Sharpie': { colors: ['#000000', '#FF0000', '#0066CC', '#FFFFFF'], description: 'Permanent marker leader' } } }; const handleCopyColor = (color) => { navigator.clipboard.writeText(color); setCopiedColor(color); setTimeout(() => setCopiedColor(''), 2000); }; const getRandomBrand = () => { const allBrands = []; Object.keys(brandCategories).forEach(category => { Object.keys(brandCategories[category]).forEach(brand => { allBrands.push(brand); }); }); const randomBrand = allBrands[Math.floor(Math.random() * allBrands.length)]; setSelectedBrand(randomBrand); }; const getSelectedBrandData = () => { for (const category of Object.keys(brandCategories)) { if (brandCategories[category][selectedBrand]) { return brandCategories[category][selectedBrand]; } } return null; }; const toggleCategory = (category) => { setExpandedCategories(prev => ({ ...prev, [category]: !prev[category] })); }; const selectedBrandData = getSelectedBrandData(); return (

Brand Palette Generator

Discover color palettes from 60+ iconic brands across all industries

{selectedBrand && selectedBrandData && (

{selectedBrand}

{selectedBrandData.description}

{selectedBrandData.colors.map((color, index) => (
handleCopyColor(color)} title={`Click to copy ${color}`} />
{color} {copiedColor === color ? ( ) : ( )}
))}

Color Codes:

{selectedBrandData.colors.map((color, index) => ( ))}

Click any color to copy to clipboard

)}

Browse Brands by Category

{Object.keys(brandCategories).map(category => (
{expandedCategories[category] && (
{Object.keys(brandCategories[category]).map(brand => ( ))}
)}
))}
); }; export default BrandPaletteGenerator;