Skip to main content

Ring Offset

Utilities for controlling the offset of outline rings.

CSS Property:--tw-ring-offset-width, --tw-ring-offset-color
Classes:7

Ring Offset Classes

ClassCSS
ring-offset-0--tw-ring-offset-width: 0px;
ring-offset-1--tw-ring-offset-width: 1px;
ring-offset-2--tw-ring-offset-width: 2px;
ring-offset-4--tw-ring-offset-width: 4px;
ring-offset-8--tw-ring-offset-width: 8px;
ring-offset-white--tw-ring-offset-color: #fff;
ring-offset-black--tw-ring-offset-color: #000;

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-offset-width:value]

Responsive Variants

Apply ring offset utilities at specific breakpoints using responsive prefixes.

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