DEV Community

Cover image for Colour Detector Camera PWA with React + Camera API + TailwindCSS
Mahmud Rahman
Mahmud Rahman

Posted on • Edited on

Colour Detector Camera PWA with React + Camera API + TailwindCSS

Hey, devs! ๐Ÿ‘‹

I recently built a Color Detector PWA that uses your device's camera to detect colors in real-time.

๐Ÿ”— Live Demo: https://color-detector-app.vercel.app/

๐Ÿ’ป Stack: React, TailwindCSS, Framer Motion, Camera API

๐Ÿš€ Features:

  • ๐Ÿ“ท Access your camera to detect colors

  • ๐ŸŽจ Shows HEX and RGB values of the color in focus

  • ๐Ÿ’พ Works offline (PWA support)

  • โšก Smooth animations with Framer Motion

  • ๐Ÿ“ฑ Responsive and mobile-first

๐Ÿ“š Why I built this:

I wanted to experiment with modern web APIs like getUserMedia and wrap it all in a performant, installable PWA with a clean UI. This was also a great excuse to polish my React and animation skills!

๐Ÿ› ๏ธ Whatโ€™s next:

  • Color palette history

  • Copy-to-clipboard feature

  • Better browser fallback support

  • Accessibility improvements

I Would love to hear your feedback!

Let me know what features you'd like to see, or feel free to contribute!

๐ŸŒ Live App

๐Ÿ“‚ GitHub Repo

Follow for more!

Top comments (0)