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) 643 B
import { FontFamilyValue, FontFamilyValueWithVariables } from '../types'; export type { FontFamilyValue, FontFamilyValueWithVariables }; /** * Parses a CSS font-family property value * @param value - The CSS font-family property string * @returns Parsed font family object or null if invalid */ export declare function parse(value: string): FontFamilyValueWithVariables | null; /** * Converts a parsed font family back to a CSS value string * @param parsed - The parsed font family object * @returns CSS value string or null if invalid */ export declare function toCSSValue(parsed: FontFamilyValueWithVariables | null): string | null;