Skip to content

metaory/color-input-debounce-demo

Color Input Debounce Demo

Color Input Debounce Demo

Interactive demonstration comparing color input performance with and without debounce.

Overview

Two color inputs side-by-side: one updates state immediately, the other uses debounce. Each input performs heavy computations on every change:

  • Color space conversions (RGB, HSL, LCH)
  • Palette generation (complementary, triadic, analogous)
  • Color variations (tints, shades, tones)
  • Contrast ratio calculations
  • Background color updates

The update counter shows the performance difference: non-debounced triggers on every change, debounced batches updates.

Live Demo

http://metaory.github.io/color-input-debounce-demo/

Tech Stack

  • React 19
  • Vite
  • Vanilla JavaScript

Development

npm install
npm run dev

Build

npm run build

License

MIT

About

Interactive demonstration comparing color input performance with and without debounce

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks