UNPKG

@wix/css-property-parser

Version:

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

12 lines (11 loc) 529 B
import { BoxShadowValue } from '../types'; export type { BoxShadowValue, BoxShadowExpanded, BoxShadowComponent } from '../types'; /** * Parses a CSS box-shadow property string into structured components * Follows MDN specification: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow */ export declare function parse(value: string): BoxShadowValue | null; /** * Converts a parsed box-shadow value back to CSS string representation */ export declare function toCSSValue(parsed: BoxShadowValue | null): string | null;