Five UI libraries, one AI agent, three runs each.
We asked Claude Code to build and extend the same apps with Lumen, shadcn/ui, Material UI, Ant Design and Mantine, each with the agent skill and MCP server it publishes. Every session ran three times. This page shows what that cost, how long it took and what the checks found, including where the other libraries did better.
By Santiago Molina ·
How Lumen did
Tokens, time and cost
A run is three sessions. Fieldnote builds a project dashboard from an empty React project. Team page adds a page to that Fieldnote in a new session. Ledger builds a second app that has to look like part of the same product. Each line runs from a library’s lowest run to its highest.
Total tokens per run
Every token the model read or wrote across the three sessions, cached input included.
Lumen: 1.96M–2.53M; shadcn/ui: 2.33M–3.30M; Material UI: 2.87M–3.65M; Ant Design: 2.22M–4.41M; Mantine: 3.19M–4.40M
- Lumen1.96M 2.53M
- shadcn/ui2.33M 3.30M
- Material UI2.87M 3.65M
- Ant Design2.22M 4.41M
- Mantine3.19M 4.40M
View chart data
| Library | Lowest run | Highest run |
|---|---|---|
| Lumen | 1.96M | 2.53M |
| shadcn/ui | 2.33M | 3.30M |
| Material UI | 2.87M | 3.65M |
| Ant Design | 2.22M | 4.41M |
| Mantine | 3.19M | 4.40M |
Agent minutes per run
Wall-clock time for the three sessions, with all five libraries running at once.
Lumen: 8.0–8.8; shadcn/ui: 15.5–18.6; Material UI: 9.0–12.8; Ant Design: 8.3–13.4; Mantine: 11.7–12.8
- Lumen8.0 8.8
- shadcn/ui15.5 18.6
- Material UI9.0 12.8
- Ant Design8.3 13.4
- Mantine11.7 12.8
View chart data
| Library | Lowest run | Highest run |
|---|---|---|
| Lumen | 8.0 | 8.8 |
| shadcn/ui | 15.5 | 18.6 |
| Material UI | 9.0 | 12.8 |
| Ant Design | 8.3 | 13.4 |
| Mantine | 11.7 | 12.8 |
CLI cost estimate per run
Claude Code’s estimate at API prices for the three sessions. It is not a bill.
Lumen: $1.56–$1.62; shadcn/ui: $1.65–$1.86; Material UI: $1.88–$2.27; Ant Design: $1.81–$2.42; Mantine: $2.15–$2.61
- Lumen$1.56 $1.62
- shadcn/ui$1.65 $1.86
- Material UI$1.88 $2.27
- Ant Design$1.81 $2.42
- Mantine$2.15 $2.61
View chart data
| Library | Lowest run | Highest run |
|---|---|---|
| Lumen | $1.56 | $1.62 |
| shadcn/ui | $1.65 | $1.86 |
| Material UI | $1.88 | $2.27 |
| Ant Design | $1.81 | $2.42 |
| Mantine | $2.15 | $2.61 |
| Library | Total tokens | Fieldnote tokens | Team page tokens | Ledger tokens | Requests | Minutes | Cost estimate | Peak context | MCP calls | MCP result characters | Fieldnote JS, gzip |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Lumen | 2.27M | 1.01M | 0.51M | 0.75M | 40 | 8.2 | $1.58 | 90K | 13 | 179K | 90K |
| shadcn/ui | 2.35M | 1.31M | 0.47M | 0.93M | 47 | 17.9 | $1.67 | 90K | 14 | 15K | 168K |
| Material UI | 3.03M | 1.59M | 0.72M | 0.76M | 54 | 11.2 | $1.94 | 101K | 10 | 139K | 177K |
| Ant Design | 3.89M | 3.12M | 0.44M | 0.34M | 39 | 13.3 | $2.09 | 163K | 60 | 431K | 351K |
| Mantine | 3.60M | 1.56M | 1.05M | 0.68M | 45 | 12.4 | $2.24 | 153K | 53 | 327K | 177K |
Where other libraries came out ahead
- Adding a page. shadcn/ui (0.47M) and Ant Design (0.44M) used fewer tokens on the Team page than Lumen (0.51M), at the median.
- Building the second app. Ant Design (0.34M) and Mantine (0.68M) used fewer tokens on Ledger than Lumen (0.75M).
- Lookup size. shadcn/ui’s MCP results came to 15K characters a run at the median; Lumen’s came to 179K.
- Fewer calls. Material UI made 10 MCP calls a run at the median, against Lumen’s 13. Ant Design sent 39 model requests a run at the median, against Lumen’s 40.
- Team page consistency. At the median, Ant Design’s and Mantine’s Team pages added 0 style values that no other page used, and shadcn/ui’s added 1. Lumen’s added 2 in every run.
- Overlapping ranges. Ant Design’s lowest run (2.22M) used fewer tokens than Lumen’s highest (2.53M), and shadcn/ui’s median (2.35M) falls inside Lumen’s range.
At the median, Fieldnote, the session that starts from an empty project, has the widest spread between libraries. The later sessions, which can reuse Fieldnote’s code, are closer.
What the checks and axe found
Each run has 48 browser checks: 18 for Fieldnote, 23 for the Team page, which repeats Fieldnote’s, and 7 for Ledger. They cover navigation, theme switching, dialog focus, form validation, menus, keyboard tabs and the phone drawer. axe-core ran its WCAG A and AA rules on every page at 1440 and 390 pixels wide, and the harness measured horizontal overflow.
| Library | Run 1 | Run 2 | Run 3 |
|---|---|---|---|
| Lumen | 48/48 checksNo axe findings or overflow | 48/48 checksNo axe findings or overflow | 48/48 checksNo axe findings or overflow |
| shadcn/ui | 48/48 checksNo axe findings or overflow | 48/48 checksaxe: 1 node, scrollable-region-focusable | 48/48 checksNo axe findings or overflow |
| Material UI | 48/48 checksA page ran 1,271 px past the viewport | 48/48 checksaxe: 12 nodes, color-contrast | 48/48 checksaxe: 12 nodes, color-contrastA page ran 1,201 px past the viewport |
| Ant Design | 48/48 checksaxe: 12 nodes, color-contrast | 48/48 checksaxe: 12 nodes, color-contrast | 46/48 checksCreating a project added no row |
| Mantine | 47/48 checksFocus didn’t return to the button that opened a dialog | 48/48 checksA page ran 229 px past the viewport | 48/48 checksNo axe findings or overflow |
What each library built
Screenshots from run 1, taken from each app’s production build. Every library kept its own look; the prompts asked for a working light and dark theme, not a shared design.

Lumen 
shadcn/ui 
Material UI 
Ant Design 
Mantine

Lumen 
shadcn/ui 
Material UI 
Ant Design 
Mantine

Lumen 
shadcn/ui 
Material UI 
Ant Design 
Mantine

Lumen 
shadcn/ui 
Material UI 
Ant Design 
Mantine

Lumen 
shadcn/ui 
Material UI 
Ant Design 
Mantine
How it ran
Every session ran in its own folder with its own Claude Code process and the same prompt, apart from the library’s name and setup. Each prompt told the agent to load the library’s skill first and to get every component’s documentation from its MCP server or skill before using it, instead of writing the API from memory. The exact prompts are in the repository.
| Library | Packages | Agent tooling |
|---|---|---|
| Lumen | @santi020k/lumen-react 6.0.0, an unpublished build from f80e8d3e9 | The lumen-ui skill and the Lumen MCP server |
| shadcn/ui | shadcn/ui 4.24.1 with Base UI and Tailwind CSS 4.3.5 | The shadcn skills (shadcn-ui/ui at 28ec0d7) and the shadcn MCP server |
| Material UI | @mui/material and @mui/icons-material 9.6.0 with Emotion | The MUI Claude Code plugin skills (mui/material-ui at eb5ec30) and @mui/mcp 0.1.11 |
| Ant Design | antd 6.7.2 and @ant-design/cli 6.7.2 | What antd setup --client claude writes: a skill, a CLAUDE.md and its MCP server |
| Mantine | @mantine/core, @mantine/hooks and @mantine/notifications 9.9.0 | The mantinedev/skills skills at cc099a7 and @mantine/mcp-server 9.9.0 |
Limits of this round
- Three runs show the spread, not a statistical difference.
- One model at one effort level, and only the setups with each library’s tooling. An earlier single-run round with Claude Opus 5.5 also tried each library without it; the benchmark README has both rounds.
- Lumen ran from
f80e8d3e9, before 6.0.0 was published. In run 3 its Fieldnote usedDatePicker, which then pulled in the whole icon catalog (254K of gzipped JavaScript instead of about 90K); 6.0.0 includes the fix. - In run 2 the Material UI MCP server failed to connect in two sessions. Both ran again with the server connected; the failed attempts aren’t counted.
- The sessions could read this machine’s global Git settings, so in run 3 the shadcn/ui settings page in Fieldnote and the Team page prefills the Git user name. The harness now hides those settings from future runs.
- Lumen’s maintainer wrote and ran this benchmark. The other setups follow each library’s published agent instructions.
Check it, rerun it, or tell us it’s wrong
The harness, prompts, every session’s measurements and the apps the agent built are in examples/ai-benchmark. The numbers on this page come from replicate-results.json.
If a library’s setup doesn’t match how its maintainers recommend using it with an agent, open an issue and we’ll rerun it with the corrected setup.