DEV Community 👩‍💻👨‍💻

Cover image for Darken image with tailwind css.
Sohanur Rahman Emon
Sohanur Rahman Emon

Posted on

Darken image with tailwind css.

Sometimes making the background image darken becomes difficult for the newbies.

Let us simplify that even with a css framework like tailwind css.

Considering the following
code:

Image description
snapshot:
Image description

Now let us make this darken by adding brightness filter.
code:
Image description
snapshot:
Image description

As simple as that. This is more than easy.

Oldest comments (0)

Dream Big


Use any Linode offering to create something unique or silly in the DEV x Linode Hackathon 2022 and win the Wacky Wildcard category.

Join the Hackathon <-