source: trip-planner-front/node_modules/colord/plugins/names.d.ts@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 612 bytes
Line 
1import { Plugin } from "../extend";
2interface ConvertOptions {
3 closest?: boolean;
4}
5declare module "../colord" {
6 interface Colord {
7 /** Finds CSS color keyword that matches with the color value */
8 toName(options?: ConvertOptions): string | undefined;
9 }
10}
11/**
12 * Plugin to work with named colors.
13 * Adds a parser to read CSS color names and `toName` method.
14 * See https://www.w3.org/TR/css-color-4/#named-colors
15 * Supports 'transparent' string as defined in
16 * https://drafts.csswg.org/css-color/#transparent-color
17 */
18declare const namesPlugin: Plugin;
19export default namesPlugin;
Note: See TracBrowser for help on using the repository browser.