UNPKG

@wix/css-property-parser

Version:

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

17 lines (16 loc) 683 B
import type { GridAreaValue, GlobalKeyword, CSSVariableValue } from '../types'; type GridAreaValueUnion = GridAreaValue | { type: 'keyword'; keyword: GlobalKeyword; } | CSSVariableValue; /** * Parses a CSS grid-area property string into structured components * Syntax: <grid-line> [ / <grid-line> [ / <grid-line> [ / <grid-line> ]]] * Values represent: grid-row-start / grid-column-start / grid-row-end / grid-column-end */ export declare function parse(value: string): GridAreaValueUnion | null; /** * Converts a parsed GridAreaValue back to CSS string representation */ export declare function toCSSValue(parsed: GridAreaValueUnion | null): string | null; export {};