Get Color.js

Quick use

If you just want to play around ASAP, the quickest way is to import the entire library, either as a module in your JS:

import Color from "https://colorjs.io/dist/color.js";

To be able to use import statements in your JS, your <script> element needs type="module"

Or, if you'd rather just have Color as a global variable, the classic way, just include the following script in your HTML:
<script src="https://colorjs.io/dist/color.global.js"></script>

You can also add .min right before the .js extension to get a minified file.

You can also import individual functions and use the tree-shakeable API.

Via npm

Run:

npm install colorjs.io

Custom bundle

Custom bundle generator coming soon! Until then, you can import individual modules yourself, either from https://colorjs.io/src/ or your local node_modules/colorjs.io if using npm.