A simple and interactive React-based Color Changer built for learning UI/UX principles and React fundamentals.
Crafted with clean animations, responsive layout, and attention to accessibility.
This mini project allows users to:
- 🟥 Change the background color of a section by clicking color-labeled buttons
- 🖼 See the selected color name displayed in real time
- ✨ Experience smooth color transitions with hover effects
- 📱 Enjoy a responsive layout for both desktop and mobile
It's the perfect demo for beginner React devs learning state, styling, and component design.
- ⚛️ React (CRA - Create React App)
- 🎨 CSS for custom styling
- 🧪 Jest and React Testing Library for testing
piratecoderz-color-changer/
├── README.md
├── package.json
├── text.txt # Design decisions & notes
│
├── public/
│ ├── index.html
│ ├── manifest.json
│ └── robots.txt
│
└── src/
├── App.js # Main component
├── App.css # Custom styles
├── index.js # Entry point
├── index.css # Global styles
├── App.test.js # Basic test
├── reportWebVitals.js
└── setupTests.js
Coming soon on Netlify or Vercel... 🚀
(You can deploy easily usingnpm run buildand connect to any static host.)
# 1. Clone the repo
git clone https://github.com/piratecoderz/color-changer.git
# 2. Navigate to the folder
cd piratecoderz-color-changer
# 3. Install dependencies
npm install
# 4. Start the dev server
npm startOpen http://localhost:3000 in your browser to view the app.
Summary from
text.txt
- ✅ Usability: Clear button labels, big text for current color, hover effects
- 🧩 Accessibility: Strong contrast and white text for clarity
- 📱 Responsiveness: Works beautifully on all screen sizes
- 🎬 Smooth UX: Transitions make the color shift feel natural
- 🎨 Custom color input (color picker or hex code)
- 🧭 Tooltips or micro-interactions on hover
- 🌙 Dark mode support for enhanced accessibility
This project is licensed under the MIT License.
Ahmad Raza Frontend Developer @ Pirate Coderz ⚓ Let’s connect → LinkedIn
Got a mini project idea or want to learn React together? Drop a DM — Let's code something cool 🔥