@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) • 538 B
TypeScript
import { TextShadowValue } from '../types';
export type { TextShadowValue, TextShadowExpanded, TextShadowComponent } from '../types';
/**
* Parses a CSS text-shadow property string into structured components
* Follows MDN specification: https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
*/
export declare function parse(value: string): TextShadowValue | null;
/**
* Converts a parsed text-shadow value back to CSS string representation
*/
export declare function toCSSValue(parsed: TextShadowValue | null): string | null;