Returns a variation of colour with its opacity multiplied by amt.
amt
// Return a colour string for blue that is 50% opaqueopacity(`blue`, 0.5);// eg: `rgba(0,0,255,0.5)`// Returns a colour string that is 50% more opaqueopacity(`hsla(200,100%,50%,50%`, 0.5);// eg: `hsla(200,100%,50%,25%)` Copy
// Return a colour string for blue that is 50% opaqueopacity(`blue`, 0.5);// eg: `rgba(0,0,255,0.5)`// Returns a colour string that is 50% more opaqueopacity(`hsla(200,100%,50%,50%`, 0.5);// eg: `hsla(200,100%,50%,25%)`
Named colours
A valid CSS colour
Amount to multiply opacity by
String representation of colour
Returns a variation of colour with its opacity multiplied by
amt
.Named colours