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