{
  "id": "goal-progress-card",
  "name": "Goal Progress Card",
  "category": "cards",
  "tags": [
    "progress ring",
    "goal",
    "conic-gradient",
    "dashboard",
    "kpi",
    "percentage"
  ],
  "description": "A metric card with a conic-gradient progress ring, set by one custom property, next to the goal amount.",
  "url": "https://copy-css.com/snippets/goal-progress-card",
  "markdown": "https://copy-css.com/snippets/goal-progress-card.md",
  "html": "<article class=\"goal-card\">\n  <div class=\"goal-card-ring\" style=\"--p: 72\" role=\"img\" aria-label=\"72% of goal reached\">\n    <span>72%</span>\n  </div>\n  <div>\n    <p>Monthly goal</p>\n    <strong>$7,200 <small>/ $10,000</small></strong>\n    <span>18 days left</span>\n  </div>\n</article>",
  "css": ".goal-card {\n  --ring: #db2777;\n  display: flex;\n  align-items: center;\n  gap: 16px;\n  width: 270px;\n  padding: 16px 18px;\n  border-radius: 18px;\n  background: #fff;\n  box-shadow: 0 8px 24px -12px rgba(131, 24, 67, 0.35);\n  color: #500724;\n  font-family: system-ui, sans-serif;\n}\n\n.goal-card-ring {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 72px;\n  height: 72px;\n  border-radius: 50%;\n  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #fce7f3 0);\n}\n\n.goal-card-ring span {\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  border-radius: 50%;\n  background: #fff;\n  font-size: 15px;\n  font-weight: 800;\n}\n\n.goal-card p {\n  margin: 0;\n  color: #9d4b73;\n  font-size: 12px;\n}\n\n.goal-card strong {\n  display: block;\n  margin: 2px 0;\n  font-size: 20px;\n}\n\n.goal-card small {\n  color: #be8aa5;\n  font-size: 12px;\n  font-weight: 500;\n}\n\n.goal-card-ring + div > span {\n  color: var(--ring);\n  font-size: 12px;\n  font-weight: 600;\n}",
  "features": [
    "conic gradients",
    "box shadows",
    "CSS Grid",
    "Flexbox",
    "custom properties"
  ],
  "customProperties": [
    {
      "name": "--ring",
      "value": "#db2777"
    }
  ]
}
