CSS Function
repeating-conic-gradient()
The repeating-conic-gradient() function creates a repeating conic gradient pattern, useful for fan or starburst effects.
Syntax
repeating-conic-gradient([from angle] [at position,] color-stop [, color-stop]+)Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| from angle | angle | No | Starting angle of the gradient |
| at position | position | No | Center point of the gradient |
| color-stop | color [angle] | Yes | Color and angle for the repeating segment |
Examples
Starburst pattern
Alternating blue rays every 20 degrees.
css
background: repeating-conic-gradient(
#3b82f6 0deg 10deg,
transparent 10deg 20deg
);Checkerboard
A checkerboard pattern using conic gradient.
css
background: repeating-conic-gradient(
#e5e7eb 0% 25%,
white 0% 50%
) 50% / 40px 40px;Browser Support
✓
Chrome
v69++
✓
Firefox
v83++
✓
Safari
v12.1++
✓
Edge
v79++
✓
Opera
v56++
Tailwind Equivalent
You can achieve similar results in Tailwind CSS using the following utility classes:
Use arbitrary values: bg-[repeating-conic-gradient(...)]Frequently Asked Questions
How do I make even segments?▼
Divide 360deg by the number of desired segments. For 12 segments: each stop spans 30deg (360/12).
Can I create a CSS-only checkerboard?▼
Yes. repeating-conic-gradient(#ccc 0% 25%, white 0% 50%) with background-size creates a checkerboard without images.
Explore CSS Color Tools
Try our free tools to work with repeating-conic-gradient() and other CSS color functions.
Open Tools