mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 18:39:29 +08:00
24 lines
920 B
Text
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;
|