VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-grayscale/

⇱ Tailwind CSS Grayscale - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Grayscale

Last Updated : 23 Jul, 2025

The Grayscale class is used to apply a filter to the image to set the grayscale of the image. In CSS, we do that by using the CSS grayscale() Function. Tailwind CSS newly added feature brightness in 2.1 version.

Grayscale:

  1. grayscale-0: This class is used to represents the original image.
  2. grayscale: This class is used to represents the linear multipliers on the effect.

Syntax:

<element class="filter grayscale | grayscale-0">..</element>

Example:

Output:

👁 Image
Comment