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.

Top comments (0)

What image format should you use in your next project? 🤔