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