Spinner: agentic color variant
Problem
AI/agentic surfaces (AgenticButton, pds-ai-active-border) use the AI gradient. The loading state on those surfaces needs a Spinner that matches, instead of the single-color default.
Proposal
Extend the existing PDS v2 Spinner (not a new component). The color prop already takes any CSS color or var(--token); add one named value, color='agentic', that paints the arc and track with --pds-gradient-ai-active, the same token pds-ai-active-border uses.
Constraints
- Same sizes (
sto6xl), label,isInlineand reduced-motion behavior as Spinner. - Track at reduced opacity, as with the single-color spinner.
- Tokens only.
--pds-gradient-ai-activeis a CSSlinear-gradient()value (one value for light and dark), so it cannot be an SVG stroke paint. Seedecisions.md.
Source
Erika's screenshot (~/Desktop/Spinner.png): row 1 gradient, row 2 current Spinner, nine sizes. No Figma or Jira links.