style-dictionary-utils
Version:
Utilities to use in your style dictionary config
9 lines (8 loc) • 412 B
TypeScript
import { Transform } from 'style-dictionary/types';
/**
* @description converts color tokens rgba float with values from 0 - 1
* @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 `rgb` float object
*/
export declare const colorToRgbaFloat: Transform;