greglebreton 4e8a693745
Some checks failed
continuous-integration/drone/push Build is failing
add garagenum exp + maj url site projets
2023-01-08 16:50:31 +01:00

25 lines
944 B
TypeScript

import { LchaColor } from "../types";
import { Plugin } from "../extend";
declare module "../colord" {
interface Colord {
/**
* Converts a color to CIELCH (Lightness-Chroma-Hue) color space and returns an object.
* https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
* https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_model
*/
toLch(): LchaColor;
/**
* Converts a color to CIELCH (Lightness-Chroma-Hue) color space and returns a string.
* https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch()
*/
toLchString(): string;
}
}
/**
* A plugin adding support for CIELCH color space.
* https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
* https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_model
*/
declare const lchPlugin: Plugin;
export default lchPlugin;