@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
9 lines (8 loc) • 472 B
TypeScript
import type { Transform } from 'style-dictionary/types';
/**
* @description converts dimension tokens value to `rem`, ignores `em` as they are relative to the font size of the parent element
* @type value transformer — [StyleDictionary.ValueTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts)
* @matcher matches all tokens of $type `dimension`
* @transformer returns a `rem` string
*/
export declare const dimensionToRem: Transform;