Color Elements
These are some highly experimental color-related web components. Use at your own risk, the API can change at any point.
Usage
To include all components at once:
<script src="https://elements.colorjs.io/index.js"></script>
or if using a bundler:
npm i color-elements
and then:
import "color-elements";
To cherry-pick individual components, follow the instructions within the component’s page, but it generally looks like this:
<script src="https://elements.colorjs.io/src/COMPONENT_NAME/COMPONENT_NAME.js"></script>
or
import "color-elements/COMPONENT_NAME";
Then just start using it!
All elements
Upcoming:
<color-slider>
<color-picker>
<color-plane>