@patreon/studio
Version:
Patreon Studio Design System
15 lines (14 loc) • 662 B
TypeScript
/**
* Converts a legacy unit value into a pixel value. This is a temporary helper to be used
* while we transition away from `theme.units.getValue()`
*
* @deprecated this is an escape hatch for legacy units. Please use tokens instead.
*/
export declare function convertLegacyUnitValue(unit: number): string;
/**
* Converts an array of legacy unit values into pixel values. This is a temporary helper to be used
* while we transition away from `theme.units.getValues()`
*
* @deprecated this is an escape hatch for legacy units. Please use tokens instead.
*/
export declare function convertLegacyUnitValues(values: number | number[]): string | string[];