Let's Build a Colour Picker Web Component
Let's build a colour picker web component using HTML, CSS, and a little bit of JavaScript. In the end, we'll have a custom element that:
- Displays a colour spectrum using CSS Gradients
- Tracks the mouse position using a Reactive Controller
- Updates it's Shadow DOM via a small class mixin
- Fires a Custom Event when the user clicks or drags