Build it with your agent

Copy the setup prompt once per project, then the prompt for this component. Works with Claude Code, Cursor, VS Code and Codex through the Ingot MCP.

1Set up Ingot UI
Set up Ingot UI in this project.

1. Connect the Ingot UI MCP server by running:
   claude mcp add --scope user --transport http ingot-ui https://mcp.ingotui.com/mcp --header "Authorization: Bearer YOUR_API_KEY"
   Replace YOUR_API_KEY with my key from https://ingotui.com/account (ask me for it if you don't have it).
2. Call the Ingot UI tool init_project for the Spendix system and write every file it returns (token CSS, CLAUDE.md, AGENTS.md, .cursor/rules/ingot.mdc).
3. From now on build UI from Ingot components and the --fu-* tokens, never raw hex colours, and run audit_ui before you finish.
2Build this component
Add the Ingot UI "Approved this month KPI" (kpi and stats, Spendix system) to this project.

Use the Ingot UI MCP: call get_component_code with slug "spendix-approved-this-month-kpi-3632030" and write the file to the path it returns. Then place it where I need it, keep my existing layout, use the --fu-* tokens for anything new, and run audit_ui when you're done.

Specs

Approved this month KPI is 34 lines of React with 2 Ingot icons, set in Geist. It needs no packages beyond React, so it works in Next.js, Vite or Remix as pasted, and its colours can be swapped for your Spendix tokens.

Component
<ApprovedThisMonthKPI />
Size
238 × 95 px
Icons
Circle check, Dots vertical from Ingot Icons
Type
Geist, 12px, 16px, 20px, Regular and Medium
Colours
#0f172a#0474f3#ededed#ffffff#c4c4c4
Corner radius
8px
Code
34 lines of TypeScript, React only, inline styles, icons included

Use it

import { ApprovedThisMonthKPI } from "./approved-this-month-kpi";

export default function Page() {
  return <ApprovedThisMonthKPI />;
}

Accessibility

Notes for all kpi and stats components (category level). Target: WCAG 2.2 AA.

Text
The value and its label are real text, read in order.
Change
Say the direction in words (“up 12%”), not only with an arrow or green/red.
Decoration
Sparklines are decorative here: keep them aria-hidden.

Before you ship it

  • The generated code draws the design only: <div>s, text and aria-hidden icons, with no buttons, inputs, roles or ARIA. That is why it matches Figma closely, and why you add behaviour when you wire it up.
  • Group label and value (for example a <dl> or an aria-label on the card) so they are read together.

How we test and what’s known: accessibility statement.

More kpi and stats in Spendix

Copy to Figma (Pro)Copy React code (Pro)Save
Copy to Figma (Pro)Copy React code (Pro)Save
Copy to Figma (Pro)Copy React code (Pro)Save
Copy to Figma (Pro)Copy React code (Pro)Save