CSS Function

repeating-radial-gradient()

The repeating-radial-gradient() function creates a repeating radial gradient pattern, producing concentric rings or ellipses.

Syntax

repeating-radial-gradient([shape size at position,] color-stop [, color-stop]+)

Parameters

NameTypeRequiredDescription
shapekeywordNocircle or ellipse
sizekeyword | lengthNoSize of the gradient ending shape
color-stopcolor [position]YesColor and position for repeating rings

Examples

Concentric rings

Repeating blue rings with 10px gaps.

css
background: repeating-radial-gradient(
  circle,
  #3b82f6 0px,
  #3b82f6 5px,
  transparent 5px,
  transparent 15px
);

Target pattern

Alternating red and white concentric circles.

css
background: repeating-radial-gradient(
  circle at center,
  #ef4444 0px 10px,
  white 10px 20px
);

Browser Support

Chrome

v26++

Firefox

v16++

Safari

v6.1++

Edge

v12++

Opera

v12.1++

Tailwind Equivalent

You can achieve similar results in Tailwind CSS using the following utility classes:

Use arbitrary values: bg-[repeating-radial-gradient(...)]

Frequently Asked Questions

Why do my concentric rings look uneven?
Ensure equal spacing between stops. The ring spacing depends on the difference between consecutive stop positions.

Explore CSS Color Tools

Try our free tools to work with repeating-radial-gradient() and other CSS color functions.

Open Tools