Add opacity to hex color code

Best practice to use hex color in opacity colors instead of rgba.

$the-color: #E1B4C0;
background-color: transparentize( $the-color, 0.25);

Now don’t need to find the rgb of $the-color
before: background-color: rgba(225, 180, 192, 0.75);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s