VOOZH about

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

⇱ Tailwind CSS Ring Opacity - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Ring Opacity

Last Updated : 23 Jul, 2025

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

Ring Opacity class:

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

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

Syntax:

<button class="ring-{opacity}">...</button>

Example:

Note: Currently the browsers are not supported by Tailwind CSS Ring Width, so for the output, refer to the link of the output.(Tailwind CSS Playground)

Output: 

👁 Image
ring opacity

Refer: https://play.tailwindcss.com/oyrZcKTljL

Comment