How Colord's plugin system works
masterColord uses a built-in plugin system to extend its core functionality. To use a plugin, you must import the extend function and the specific plugin from its package path, then pass the plugin(s) to extend(). Once extended, the new methods and color space support become available on all colord instances.
import { colord, extend } from "colord";
import a11yPlugin from "colord/plugins/a11y";
extend([a11yPlugin]);
// Now you can use methods provided by the plugin
colord("#000000").luminance();