UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

9 lines (8 loc) 488 B
import type { Transform } from 'style-dictionary/types'; /** * @description replaces tokens value with `rgba` color using the tokens `alpha` property to specify the value used for alpha * @type value transformer — [StyleDictionary.ValueTransform](https://github.com/amzn/style-dictionary/blob/main/types/Transform.d.ts) * @matcher matches all tokens of $type `color` with an `alpha` property * @transformer returns `rgba` string */ export declare const colorToRgbAlpha: Transform;