{
  "format": "putcode/playground@1",
  "id": "00000000-0000-4000-9000-000000000005",
  "url": "https://putcode.dev/u/putcode/s/373y7nzh7e",
  "title": "Usage rings with counters",
  "description": "Three progress rings whose arcs and percentages count up together, with no JavaScript.",
  "category": "loaders",
  "tags": [
    "property",
    "counter",
    "conic-gradient"
  ],
  "visibility": "public",
  "status": "published",
  "revision": 1,
  "author": "putcode",
  "forked_from": null,
  "created_at": "2026-12-01T23:24:56.169Z",
  "updated_at": "2026-12-01T23:24:56.169Z",
  "published_at": "2026-12-01T23:24:56.169Z",
  "source": {
    "html": "<section class=\"usage\">\n  <h2 class=\"usage__title\">Plan usage</h2>\n  <div class=\"usage__rings\">\n    <figure class=\"ring\" style=\"--value: 72; --color: #6d5cff\">\n      <div class=\"ring__dial\" role=\"img\" aria-label=\"Storage 72 percent\"></div>\n      <figcaption>Storage<span>36 of 50 GB</span></figcaption>\n    </figure>\n    <figure class=\"ring\" style=\"--value: 41; --color: #0ea5e9\">\n      <div class=\"ring__dial\" role=\"img\" aria-label=\"Bandwidth 41 percent\"></div>\n      <figcaption>Bandwidth<span>410 GB this month</span></figcaption>\n    </figure>\n    <figure class=\"ring\" style=\"--value: 93; --color: #f97316\">\n      <div class=\"ring__dial\" role=\"img\" aria-label=\"Build minutes 93 percent\"></div>\n      <figcaption>Build minutes<span>Resets in 4 days</span></figcaption>\n    </figure>\n  </div>\n</section>",
    "css": "@property --p {\n  syntax: \"<integer>\";\n  inherits: true;\n  initial-value: 0;\n}\n\nbody {\n  margin: 0;\n  min-height: 100vh;\n  display: grid;\n  place-items: center;\n  background: #f4f3ef;\n  color: #17181c;\n  font: 14px/1.4 system-ui, sans-serif;\n}\n\n.usage {\n  width: min(560px, 100% - 32px);\n  padding: 24px;\n  border: 1px solid #e3e0d9;\n  border-radius: 18px;\n  background: #fff;\n}\n\n.usage__title {\n  margin: 0 0 18px;\n  font-size: 1rem;\n}\n\n.usage__rings {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n  gap: 16px;\n}\n\n.ring {\n  display: grid;\n  justify-items: center;\n  gap: 10px;\n  margin: 0;\n  text-align: center;\n}\n\n.ring__dial {\n  --p: var(--value);\n\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 112px;\n  aspect-ratio: 1;\n  counter-reset: p var(--p);\n  animation: fill 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n\n.ring__dial::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: conic-gradient(var(--color) calc(var(--p) * 1%), #eceae4 0);\n  mask: radial-gradient(circle, transparent 0 calc(50% - 11px), #000 calc(50% - 10px));\n}\n\n.ring__dial::after {\n  content: counter(p) \"%\";\n  font-size: 1.35rem;\n  font-weight: 700;\n  font-variant-numeric: tabular-nums;\n  letter-spacing: -0.02em;\n}\n\n.ring figcaption {\n  font-weight: 600;\n}\n\n.ring figcaption span {\n  display: block;\n  color: #73767f;\n  font-weight: 400;\n  font-size: 0.8rem;\n}\n\n@keyframes fill {\n  from {\n    --p: 0;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .ring__dial {\n    animation: none;\n  }\n}",
    "js": ""
  }
}