/color-alpha

Change alpha of a color string

Primary LanguageJavaScriptMIT LicenseMIT

color-alpha stable build size

Change alpha of a color.

npm install color-alpha

import α from 'color-alpha'
α('white', .4); // 'rgba(255,255,255,.4)'

Input color is parsed with color-parse package.