Skip to main content

Ring Color

Utilities for controlling the color of outline rings.

CSS Property:--tw-ring-color
Classes:8

Ring Color Classes

ClassCSS
ring-inherit--tw-ring-color: inherit;
ring-current--tw-ring-color: currentColor;
ring-transparent--tw-ring-color: transparent;
ring-black--tw-ring-color: #000;
ring-white--tw-ring-color: #fff;
ring-blue-500--tw-ring-color: #3b82f6;
ring-red-500--tw-ring-color: #ef4444;
ring-green-500--tw-ring-color: #22c55e;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[--tw-ring-color:value]

Responsive Variants

Apply ring color utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:ring-inherit
768px+md:md:ring-inherit
1024px+lg:lg:ring-inherit
1280px+xl:xl:ring-inherit
1536px+2xl:2xl:ring-inherit