Sources indicate that color pickers are a common part of modern web applications. Whether you're building a design tool, dashboard, page builder, theme editor, or visual customization interface, you'll probably need one eventually.

I wanted a React color picker that could handle more than just HEX values.

So I built color-zone β€” a flexible, zero-dependency React color picker with gradient editing, multiple color formats, and a headless hook for building completely custom interfaces. (Related: Architectural Choices in China's Open-Source AI Ecosyst...)

Website: https://color-zone.devnax.com/.

GitHub: https://github.com/devnax/color-zone.

An intuitive saturation/value canvas with smooth dragging, alongside dedicated hue and opacity sliders.

Switch between HEX, RGB, and HSL directly inside the picker. (Related: AssetOpsBench: Bridging the Gap Between AI Agent Benchm...)

This is one of the main features I wanted.

You can pass a CSS gradient directly as the value prop. The picker automatically switches to gradient mode.

Users can add, move, and remove gradient stops interactively.

You can use the hook to build your own color picker interface.

The hook exposes color channel setters, gradient controls, conversion methods, and more.

On supported Chromium browsers, users can sample colors directly from their screens using the native EyeDropper API.

I wanted something that works as both a ready-to-use component and a foundation for building custom color interfaces.

The headless hook makes it useful beyond the default UI, while native CSS gradient support makes it suitable for more advanced design tools.

It's open source and available under the MIT license.

Recent findings suggest that if you're building something with React, give it a try. Feedback, suggestions, and contributions are welcome!

β†’ Read original article