# Color Filter Image Gallery

> Color filter image gallery for React and Tailwind CSS (shadcn/ui): browse photos by color. It is built to make finding things feel like play: photos rest in black and white, and picking a color makes every matching photo bloom into full color, so a visitor thinking of something blue sees it in a second. Choose a swatch and the matching photos open in a circular bloom while the rest fade back; hover a photo and it blooms from where the pointer entered; click a photo to see everything in its color. Set each photo's color yourself or let it be detected from the image. Autoplay steps through the palette until someone picks a color, with keyboard support and a reduced-motion fallback. Use it for shop-by-color product grids, interior and fashion catalogs, portfolios and mood boards.

- Author: [DHxWhy](https://21st.dev/@dhxwhy)
- License: mit
- Tags: Gallery, Image Gallery, Filter, Interactive
- Live preview: https://21st.dev/@dhxwhy/components/color-filter-gallery

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dhxwhy/color-filter-gallery?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/gallery.md
