UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

9 lines (8 loc) 397 B
import type { Transform } from 'style-dictionary/types'; /** * @description converts color tokens value to `hex6` or `hex8` * @type value transformer — [StyleDictionary.ValueTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts) * @matcher matches all tokens of $type `color` * @transformer returns a `hex` string */ export declare const colorToHex: Transform;