Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Benchmark · December 5, 2026

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

Checks passed
48 of 48
In all three runs: navigation, dialogs, validation, theme and phone layout.
axe findings
0
WCAG A and AA rules on every page, in all three runs.
CLI cost estimate per run
$1.56–$1.62
At API prices, not a bill. The other libraries’ lowest run: $1.65.
Agent minutes per run
8.0–8.8
Wall-clock, with all five libraries running side by side.

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

LibraryLowest run Highest run
  • 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
LibraryLowest runHighest run
Lumen1.96M2.53M
shadcn/ui2.33M3.30M
Material UI2.87M3.65M
Ant Design2.22M4.41M
Mantine3.19M4.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

LibraryLowest run Highest run
  • 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
LibraryLowest runHighest run
Lumen8.08.8
shadcn/ui15.518.6
Material UI9.012.8
Ant Design8.313.4
Mantine11.712.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

LibraryLowest 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
View chart data
LibraryLowest runHighest 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
Medians of three runs. Peak context is the largest single prompt in a run.
LibraryTotal tokensFieldnote tokensTeam page tokensLedger tokensRequestsMinutesCost estimatePeak contextMCP callsMCP result charactersFieldnote JS, gzip
Lumen2.27M1.01M0.51M0.75M408.2$1.5890K13179K90K
shadcn/ui2.35M1.31M0.47M0.93M4717.9$1.6790K1415K168K
Material UI3.03M1.59M0.72M0.76M5411.2$1.94101K10139K177K
Ant Design3.89M3.12M0.44M0.34M3913.3$2.09163K60431K351K
Mantine3.60M1.56M1.05M0.68M4512.4$2.24153K53327K177K

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.

axe counts add up the three sessions. The Team page session checks Fieldnote’s pages again, so one Fieldnote issue can count twice.
LibraryRun 1Run 2Run 3
Lumen48/48 checksNo axe findings or overflow48/48 checksNo axe findings or overflow48/48 checksNo axe findings or overflow
shadcn/ui48/48 checksNo axe findings or overflow48/48 checksaxe: 1 node, scrollable-region-focusable48/48 checksNo axe findings or overflow
Material UI48/48 checksA page ran 1,271 px past the viewport48/48 checksaxe: 12 nodes, color-contrast48/48 checksaxe: 12 nodes, color-contrastA page ran 1,201 px past the viewport
Ant Design48/48 checksaxe: 12 nodes, color-contrast48/48 checksaxe: 12 nodes, color-contrast46/48 checksCreating a project added no row
Mantine47/48 checksFocus didn’t return to the button that opened a dialog48/48 checksA page ran 229 px past the viewport48/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.

  • Fieldnote dashboard, light theme, in a 1440-pixel window, built with Lumen
    Lumen
  • Fieldnote dashboard, light theme, in a 1440-pixel window, built with shadcn/ui
    shadcn/ui
  • Fieldnote dashboard, light theme, in a 1440-pixel window, built with Material UI
    Material UI
  • Fieldnote dashboard, light theme, in a 1440-pixel window, built with Ant Design
    Ant Design
  • Fieldnote dashboard, light theme, in a 1440-pixel window, built with Mantine
    Mantine
  • Fieldnote dashboard, dark theme, in a 1440-pixel window, built with Lumen
    Lumen
  • Fieldnote dashboard, dark theme, in a 1440-pixel window, built with shadcn/ui
    shadcn/ui
  • Fieldnote dashboard, dark theme, in a 1440-pixel window, built with Material UI
    Material UI
  • Fieldnote dashboard, dark theme, in a 1440-pixel window, built with Ant Design
    Ant Design
  • Fieldnote dashboard, dark theme, in a 1440-pixel window, built with Mantine
    Mantine
  • Fieldnote dashboard on a 390-pixel phone screen, built with Lumen
    Lumen
  • Fieldnote dashboard on a 390-pixel phone screen, built with shadcn/ui
    shadcn/ui
  • Fieldnote dashboard on a 390-pixel phone screen, built with Material UI
    Material UI
  • Fieldnote dashboard on a 390-pixel phone screen, built with Ant Design
    Ant Design
  • Fieldnote dashboard on a 390-pixel phone screen, built with Mantine
    Mantine
  • Team page added in the second session, in a 1440-pixel window, built with Lumen
    Lumen
  • Team page added in the second session, in a 1440-pixel window, built with shadcn/ui
    shadcn/ui
  • Team page added in the second session, in a 1440-pixel window, built with Material UI
    Material UI
  • Team page added in the second session, in a 1440-pixel window, built with Ant Design
    Ant Design
  • Team page added in the second session, in a 1440-pixel window, built with Mantine
    Mantine
  • Ledger, the second app built in the third session, in a 1440-pixel window, built with Lumen
    Lumen
  • Ledger, the second app built in the third session, in a 1440-pixel window, built with shadcn/ui
    shadcn/ui
  • Ledger, the second app built in the third session, in a 1440-pixel window, built with Material UI
    Material UI
  • Ledger, the second app built in the third session, in a 1440-pixel window, built with Ant Design
    Ant Design
  • Ledger, the second app built in the third session, in a 1440-pixel window, built with Mantine
    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.

What each session installed and loaded.
LibraryPackagesAgent tooling
Lumen@santi020k/lumen-react 6.0.0, an unpublished build from f80e8d3e9The lumen-ui skill and the Lumen MCP server
shadcn/uishadcn/ui 4.24.1 with Base UI and Tailwind CSS 4.3.5The shadcn skills (shadcn-ui/ui at 28ec0d7) and the shadcn MCP server
Material UI@mui/material and @mui/icons-material 9.6.0 with EmotionThe MUI Claude Code plugin skills (mui/material-ui at eb5ec30) and @mui/mcp 0.1.11
Ant Designantd 6.7.2 and @ant-design/cli 6.7.2What antd setup --client claude writes: a skill, a CLAUDE.md and its MCP server
Mantine@mantine/core, @mantine/hooks and @mantine/notifications 9.9.0The 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 used DatePicker, 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.