UNPKG

@wix/css-property-parser

Version:

A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance

14 lines (13 loc) 499 B
import type { ColorValue } from '../types'; /** * Parses a CSS color value into structured components * @param value - The CSS color value string * @returns Parsed color object or null if invalid */ export declare function parse(value: string): ColorValue | null; /** * Converts a parsed color back to a CSS value string * @param parsed - The parsed color object * @returns CSS value string or null if invalid */ export declare function toCSSValue(parsed: ColorValue | null): string | null;