Urara-Blog/node_modules/.pnpm-store/v3/files/51/a4de4de16cd3f78df7482471e7002d7dfde634d2b83f6591990bd6cc0ed3ce6a8b5d3d5cf558e402d9ac18fbbad9658710ee2ea010c5ff89dcf7bd5d286112
2022-08-14 01:14:53 +08:00

24 lines
920 B
Text

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;