Skip to main content

Ring Width

Utilities for creating outline rings with box-shadows.

CSS Property:box-shadow
Classes:7

Ring Width Classes

ClassCSS
ring-0box-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
ring-1box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
ring-2box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
ringbox-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
ring-4box-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
ring-8box-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);
ring-inset--tw-ring-inset: inset;

Arbitrary Values

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

[box-shadow:value]

Responsive Variants

Apply ring width utilities at specific breakpoints using responsive prefixes.

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