Skip to content
Related Articles

Related Articles

Tailwind CSS Filter

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

The filter class is used to set the visual effect of an element. This class is mostly used in image content. In CSS, we do that by using the CSS filter property. Tailwind CSS newly added feature filter in 2.1 version.

Filter Classes: 

  • filter: This class is used to enable filters.
  • filter-none: This class is used to remove filters.


<element class="filter">..</element>



<!DOCTYPE html>
    <link href=
<body class="text-center mx-4 space-y-2">
    <h1 class="text-green-600 text-5xl font-bold">
    <b>Tailwind CSS Filter Class</b>
    <div class="grid grid-flow-col text-center p-4">
        <img class="rounded-lg filter brightness-50" 
        <img class="rounded-lg filter invert" 
        <img class="rounded-lg filter blur-lg" 
        <img class="rounded-lg filter contrast-125" 
        <img class="rounded-lg filter grayscale" 


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!