Skip to content
Related Articles
Open in App
Not now

Related Articles

Tailwind CSS Backdrop Grayscale

Improve Article
Save Article
  • Last Updated : 23 Mar, 2022
Improve Article
Save Article

The Backdrop Grayscale class is used to apply a filter to the image to set the grayscale of the image. Tailwind CSS newly added feature brightness in 2.1 version.

Backdrop Grayscale:

  • backdrop-grayscale-0: This class is used to represents the original element.
  • backdrop-grayscale: This class is used to represents the linear multipliers on the effect of elements.


<element class="filter backdrop-grayscale | 
    /* ... */



<!DOCTYPE html>
  <link href=
<body class="text-center mx-4 ">
  <h1 class="text-green-600 text-5xl font-bold">
  <b>Tailwind CSS Backderop Grayscale Class</b>
  <div class=" mx-16 mt-18 h-36 relative">
    <div class="absolute w-full py-18">
      <img class="rounded-lg object-cover" src=
    <div class="relative h-32 flex overflow-x-auto space-x-4">
      <div class="flex-shrink-0 border-4 border-green-500 
           backdrop-filter backdrop-grayscale w-1/2">
      <div class="flex-shrink-0 border-4 border-green-500 
           backdrop-filter backdrop-grayscale-0 w-1/2">


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!