Skip to content
Related Articles

Related Articles

Tailwind CSS Invert

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

The invert class is an inbuilt function that is used to apply a filter to the image to set the invert version of the color of the sample image. In CSS, we do that by using the CSS invert() Function.

Invert Classes:

  • invert-0: This class is used to represent the original color.
  • invert: This class is used to represent the inverted color of that original color.


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



<!DOCTYPE html>
    <link href=
<body class="text-center mx-20 space-y-2">
    <h1 class="text-green-600 text-5xl font-bold">
    <b>Tailwind CSS Invert Class</b>
    <div class="grid grid-flow-col text-center mx-44">
        <img class="rounded-lg filter invert" 
        <img class="rounded-lg filter invert-0" 


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!