UNPKG

@wix/css-property-parser

Version:

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

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