twelfth
11 blocks · open source (MIT) · shadcn registry

Components for category managers

The figures a buyer reads every day, in the words they read them in: price position, sales against forecast, cover, favourable and exposed. Taken from twelfth, built on shadcn, yours to copy.

Browse componentsInstall

One paste into Claude Code, Cursor or Codex sets up the registry and picks the blocks that fit.

This week

Small appliances · week of 21 Sep

Net sales

$184,260

vs LY ▲6.2%vs fcst ▼3.4%vs plan flat
Units
4,812
Margin
38.4%
OTB left
$42k

Competitors

Hover a position for the index and the lines behind it.

  • JB Hi-Fi
  • Big W
  • Harvey Norman
  • Amazon AU
  • Kmart

Units against forecast

Eight weeks sold, four forecast with a P10–P90 band.

vs fcst ▲6%MAPE 11%

Range against the market

1,032 matched lines, 8-week comparison. The counts filter the list.

9% below marketindex 91

Weeks of cover

Healthy band 4–12 weeks at the current rate of sale.

  • Kettle, 1.7 L brushed steel2.4 wks1.6 wks short
  • Toaster, 4-slice7 wksIn band
  • Stick vacuum, cordless19 wks7 wks over
  • Air fryer, 5.5 L›31 wks19 wks over
  • Pod coffee machineNo net sales

Forecast by line

Right-aligned in a cell, the way a range review reads.

Kettle, 1.7 L brushed steelvs fcst ▲6%
Toaster, 4-slicevs fcst ▼9%
Air fryer, 5.5 Lvs fcst flat

Stock on hand

Actual, then projected at the forecast rate of sale.

reorder in 2 wkscover 5.7 wks

One language for the market

Favourable and exposed, named for the reader, not the colour.

  • favourable

    We are cheaper

  • exposed

    We are dearer

  • level

    In line

  • unknown

    Too few lines

This year against last

vs LY ▲6.2%

Price index

Ours ÷ theirs × 100, and the chip for a dense column.

91.4

index vs market

12% above4% belowIn line8% below—

Add it to your app

Each block brings what it builds on.

terminal
npx shadcn@latest add https://ui.twelfth.ai/r/price-position.json

Add any block

terminal
npx shadcn@latest add https://ui.twelfth.ai/r/price-position.json
npx shadcn@latest add https://ui.twelfth.ai/r/micro-trend.json

Each block brings the pieces it builds on. Every page has a playground, the code for each variant, Open in v0, Lovable, Claude and more, and a copyable AI prompt.

Or register the namespace

components.json
{
  "registries": {
    "@twelfth": "https://ui.twelfth.ai/r/{name}.json"
  }
}

Then npx shadcn add @twelfth/price-position.

Build with AI

Every block is written to be read by an assistant as well as a person.

Set it up in one prompt

Registers @twelfth, reads the docs, finds where prices, forecasts and cover show up in your app, and installs what fits.

Set up twelfth UI in this project: open-source (MIT) shadcn components for category managers and retail buying teams (https://ui.twelfth.ai).

1. Check the project uses shadcn with Tailwind CSS v4. If there is no components.json, run `npx shadcn@latest init` first.
2. Add the @twelfth registry to components.json:
{
  "registries": {
    "@twelfth": "https://ui.twelfth.ai/r/{name}.json"
  }
}
3. Read https://ui.twelfth.ai/llms-full.txt for every block's props, examples and notes.
4. Find where this project shows prices, competitor comparisons, sales against forecast or stock cover, and install the blocks that fit with `npx shadcn@latest add @twelfth/<name>`. Each brings the pieces it builds on. The blocks:
- price-position: Where our prices sit against one competitor: 12% above, 4% below, in line. As a chip for a table cell, or a badge that opens the index and the matched-line evidence on hover or focus.
- price-scoreboard: The four numbers at the top of a pricing page: the range's position against the market with its index and trend, then how many lines are priced above, in line and below. The counts can filter the list underneath.
- price-trend: Weekly price position against the market as a small line with a dashed parity line. Hover, or focus and use the arrow keys, to read any week's position, index and change.
- price-band: A price band as a picture: how far from the market a line can sit, across shelf prices on a log scale, before it reads as priced above or below market. Tiers step the band; dollar limits narrow it. Hover for the band at any price.
- tax-basis: Whether a price includes tax, as a badge the price sits inside: filled when the tax is in the figure, hollow when it is left out. Hover explains the tax, its rate and the price on the other basis. Use it on a figure, alone in a column header, or show a price on both bases at once so an ex-tax figure can be checked against the shelf.
- micro-trend: One or more lines over time, small enough for a table cell. Forecasts read as forecasts: dashed, with a P10–P90 band and a marker where actuals stop. Hover to glide the crosshair and read every series.
- micro-stat: The figures under or beside a chart. ChangeIndicator is a movement with its verdict, toned by whether up is good or bad. MicroStat is a labelled figure. Both explain themselves in a tooltip.
- weeks-of-cover: How many weeks the stock on hand lasts at the current rate of sale, on a track against the band the buyer wants it in: short is a stockout risk, over is cash on a shelf.
- market-side: The tone every catman figure shares: favourable, exposed, level, unknown. Named after the reader's question (is this going my way) rather than the arithmetic, plus the arrow that carries it without colour and the two colour tokens behind it.
- retail-format: Money, units, percent, price index, position words and weeks, formatted the way a category manager reads them. en-AU and AUD by default.
- one-open: Keeps one hover card open at a time. Sweep across a row of badges and the card follows the pointer instead of stacking. Used by price-position and price-trend; use it for your own hover cards.
5. Wire them to this project's real data, not the example values. Keep the --color-favourable and --color-exposed theme tokens: they mean good and bad for the buyer, not up and down.

Then tell me which blocks you added and where.

Or give your assistant the MCP server

shadcn's MCP server browses and installs from every registry in components.json. With @twelfth registered, ask for “the price position badge in the products table”.

terminal
npx shadcn@latest mcp init --client claude

Every block

Pricing

Charts

Stock

Foundations

Questions

What is twelfth UI?

twelfth UI is an open-source (MIT) shadcn registry of 11 React components for category managers and retail buying teams. It covers price position against competitors, pricing scoreboards, sales against forecast with P10–P90 bands, weeks of cover, and micro charts for table cells. The components come from twelfth, a retail workspace built in Melbourne.

How do I install a component?

Run the shadcn CLI with the block's registry URL, for example npx shadcn@latest add https://ui.twelfth.ai/r/price-position.json. Each block brings the pieces it builds on. To write @twelfth/<name> instead, add the @twelfth namespace under registries in components.json.

What does it need?

A React project set up with shadcn on its Base UI styles and Tailwind CSS v4. Components are TypeScript, take plain props and fetch no data, so they sit on whatever API, warehouse or spreadsheet already holds the figures.

Where is the source?

Every component is mirrored to github.com/twelfth-ai/catman-ui, synced hourly from the live registry. Each block page also opens the code in v0, Lovable, Claude, Cursor and others, and has a prompt to paste into a coding assistant.

Can an AI assistant install them?

Yes. Copy the setup prompt on the front page into Claude Code, Cursor or Codex, or run npx shadcn@latest mcp init and register @twelfth so the shadcn MCP server can browse and install the blocks. Every page has a Markdown version at the same address plus .md, and https://ui.twelfth.ai/llms-full.txt holds every block's docs in one file.

No bad cookies on these shelves.

Essential cookies keep the store running. Analytics only if you choose.