UNPKG

retro-react

Version:

A React component library for building retro-style websites

9 lines (8 loc) 249 B
/** * Convert hex string to RGBA color. * * @see https://gist.github.com/danieliser/b4b24c9f772066bcf0a6 * @example * rgba('#000', 0.5) // rgba(0, 0, 0, 0.5) */ export declare const rgba: (hexCode: string, opacity?: number) => string;