# Circular Progress

> A circular progress ring driven by a single --value custom property.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: progress, circle, conic-gradient, percentage, determinate
- Live preview: https://copy-css.com/snippets/circular-progress
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="progress-ring" style="--value: 72" role="progressbar" aria-valuenow="72" aria-valuemin="0" aria-valuemax="100">72%</div>
```

## CSS

```css
.progress-ring {
  --value: 0; /* 0 to 100 */
  --track: #e2e8f0;
  --fill: #8b5cf6;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79%),
    conic-gradient(var(--fill) calc(var(--value) * 1%), var(--track) 0);
  color: #1e293b;
  font: 700 20px/1 system-ui, sans-serif;
}
```

## Notes

- This CSS Circular Progress is 15 lines of pure CSS (0.4 KB) with no JavaScript and no dependencies. It uses radial gradients, conic gradients, CSS Grid and custom properties.
- Customize with: `--value`, `--track`, `--fill`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
