VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-text-opacity/

⇱ Tailwind CSS Text Opacity - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Text Opacity

Last Updated : 23 Jul, 2025

This class accepts lots of value in in which all the properties are covered as in class form. By using this class we can set the opacity of any text. In CSS, we do that by using the .

Text Opacity:

  • text-opacity-0: Control the opacity of an element's placeholder color using the text-opacity-{amount} utilities.

Note: The number of the opacity can be changeable from 0 to 100 with the span of 5.

Syntax:

<element class="text-{opacity}">...</element>

Example:

Output:

👁 Image
Opacity
Comment