@primer/primitives
Version:
Typography, spacing, and color primitives for Primer design system
10 lines (9 loc) • 458 B
TypeScript
import type { PlatformConfig, TransformedToken } from 'style-dictionary/types';
/**
* alpha
* @description takes a colors string like hex or rgba and returns an rgba color with the specified alpha value
* @param color color string like a `#334455` or `rgb(255,200,100)`
* @param desiredAlpha number
* @returns rgba value
*/
export declare const alpha: (color: string, desiredAlpha: number, token?: TransformedToken, config?: PlatformConfig) => string;