Skip to content

lesjoursfr/colorpicker

 
 

Repository files navigation

npm version QC Checks

@lesjoursfr/colorpicker

Modular color picker

Requirements

To work this library needs :

How to use

import { Colorpicker } from "@lesjoursfr/colorpicker";

/* Initialize the Colorpicker */
new Colorpicker(document.querySelector("#colorpicker"), {
	color: "#C83E2C",
	useAlpha: true,
});

License

The MIT License (MIT). Please see the License File for more information.

Credits

Based on Javi Aguilar's color picker (2021).

Languages

  • TypeScript 84.6%
  • SCSS 9.4%
  • JavaScript 3.0%
  • HTML 3.0%