UNPKG

@terrazzo/token-tools

Version:

Various utilities for token types

9 lines 566 B
import { type ColorConstructor, ColorSpace as ColorJS, type PlainColorObject } from 'colorjs.io/fn'; import type { ColorSpace, ColorValueNormalized } from './types.js'; /** Complete list of CSS Module 4 color spaces */ export declare const COLOR_SPACE: Record<ColorSpace, ColorJS>; /** Parse any color */ export declare function parseColor(color: string): ColorValueNormalized; /** Convert a color token to a Color.js color */ export declare function tokenToColor(value: ColorValueNormalized): ColorConstructor & PlainColorObject; //# sourceMappingURL=color.d.ts.map