# Build a catalogue page with the Gauge theme

You are building one page in an existing project: one category of a parts catalogue, with filters in a narrow column and a dense table of parts with their dimensions, load rating, stock state and unit price. Follow this brief closely. `DESIGN.md` decides the tokens: colors, type, spacing steps and corners. This brief decides the layout, its widths included, and which token goes where. If this brief names a color, a type size, a spacing step or a corner that `DESIGN.md` does not have, `DESIGN.md` wins.

## Before you start

1. **Check the theme is installed.** The project should have `DESIGN.md` in its root and the Gauge variables in its global CSS. If not, run `npx shadcn@latest add https://strictthemes.com/r/gauge.json` and save https://strictthemes.com/themes/gauge/DESIGN.md as `DESIGN.md` in the project root. In a project without shadcn, use https://strictthemes.com/themes/gauge/tailwind.css instead. If the global CSS still imports a font the theme does not use (a new shadcn project imports Geist), remove that import, and uninstall its package if nothing else uses it. Keep every font import the theme's install added, also one for a style no page uses yet.
2. **Read `DESIGN.md` from start to finish.** It is the source of truth for every visual decision.
3. **Look at the project before writing code.** Use its framework, router and file layout. For controls (buttons, inputs, tabs, menus, dialogs, accordions, data tables) use the components in `components/ui`, and add a missing one with `npx shadcn@latest add <name>` rather than writing your own, unless this brief names a plain element. Layout is plain elements with theme classes: sections, panels, figures and lists need no component.
4. **Teach `cn()` the theme's type classes.** shadcn's class merger does not know `text-display` or `text-h1`. It takes them for colors, so `cn("text-label text-muted-foreground")` silently drops one of the two, and a type class passed to a stock component does not replace its size. In a new shadcn project, `lib/utils.ts` only passes `cn` on from the `cn` package. Unless the file already holds the lines below, change it to:

   ```ts
   import { createCn } from "cn/config"

   // The theme's type classes are font sizes, not colors.
   export const cn = createCn({
     extend: {
       classGroups: {
         "font-size": [{ text: ["display", "h1", "h2", "body", "label"] }],
       },
     },
   })
   ```

   Then make every file in `components/ui` use it: where one has `import { cn } from "cn"`, change that line to import `cn` from the project's utils file (`@/lib/utils` in a default setup). Do the same for each component you add later. If the project uses `tailwind-merge` instead of the `cn` package, its components already import from the utils file: pass the same object to `extendTailwindMerge` and keep `clsx`.
5. **Write real content.** If the user gave you details about their product, use them. Otherwise use the sample product in this brief and write the rest of the copy yourself: specific and plain, the way the samples read. Invent the company and people names; do not use real ones. Never use lorem ipsum. A link with no destination yet points to `#`. Set the page's `<title>` and meta description.

## The theme in short

- **Fonts:** Chivo for headings, Libre Franklin for body text, Roboto Mono for labels and code.
- **Type scale** (size/weight; each class also sets line height and tracking): `text-display` 48px/800, `text-h1` 32px/700, `text-h2` 20px/700, `text-body` 15px/400, `text-label` 12px/500.
- **Font per size:** a type class does not set the font family. Headings (`<h1>` to `<h6>`) get the heading font on their own; on any other element add the font class: `font-heading` with `text-display`, `text-h1`, `text-h2`; `font-mono` with `text-label`.
- **Spacing scale**, with the Tailwind step in brackets: 4px (`1`), 8px (`2`), 12px (`3`), 16px (`4`), 24px (`6`), 48px (`12`).
- **Corners:** `rounded-sm` 2px, `rounded-md` 4px, `rounded-xl` 8px (the `lg` corner in `DESIGN.md`). `rounded-lg` is 4px as well: it is shadcn's name for the base corner, the one its stock buttons and inputs use.
- **Colors (light mode):** primary #212529, on-primary #F8F9FA, secondary #E9ECEF, on-secondary #212529, tertiary #ADB5BD, on-tertiary #212529, neutral #495057, background #F8F9FA, surface #FFFFFF, foreground #212529, border #CED4DA, error #B3261E, success #1E7B4B.

### How Gauge pages are laid out

- **Page:** steel white, dense on purpose. The outermost element is a `<div>` with `flex min-h-svh flex-col bg-background text-body text-foreground`, holding `<header>`, `<main>` (`flex-1`) and `<footer>`.
- **Container:** the header's row, the content of `<main>` and the footer's line each sit in a centered container `<div>`, `mx-auto w-full max-w-[1280px] px-4`: a 16px gutter at every width. This width is the one arbitrary value allowed. The `<main>` element itself has `py-6`; the container inside it carries the rhythm below.
- **Today:** the sample's today is Thursday 12 November 2026, a fixed date in code, never the device clock.
- **Dates and times:** a date that stands on its own (a table cell, a value, a small figure) is `12 Nov 2026`, in a `<time>` with `dateTime="2026-11-12"`. Inside a sentence a date is written out, `13 November 2026`, and is not a `<time>`, in small print too. A time is on the 24-hour clock, `15:00`, and is a `<time>` only where it stands on its own. Dates and times take `tabular-nums` only where they are `font-mono`.
- **Sample organisation:** "Torvale Bearings Ltd", an invented supplier of industrial bearings with its works and stores in Brigholt. Prices are in pounds and exclude VAT, dimensions are in millimetres, loads in kilonewtons. The buyer filling in the forms is "Pellam Pumps Ltd". The same parts, figures and prices appear on every page; this brief gives the ones it needs.
- **Links:** the product's name links to `/catalogue`. The nav links, in this order, are Catalogue (`/catalogue`), Compare (`/compare`), Downloads (`/downloads`) and Quote (`/quote`), the same in both navs; this brief says which is current. Any other link without a named destination is `#`. A text link is `text-foreground underline underline-offset-4 hover:decoration-2` and inherits its size: links are the text color, so the hover thickens the underline and changes no color. Add `transition-colors duration-150`.
- **Vertical rhythm:** every vertical distance between siblings comes from a `gap-*` on their parent, a `flex flex-col` or a grid. Never use `space-y-*`. Rows and cells use padding. The only margins are the Confirmations note's. The container inside `<main>` is `flex flex-col gap-6`: the page header, then each row of panels. On a page this brief divides into sections (each a `<section>` named by its `<h2>` with `aria-labelledby`), the container is `gap-12`, the spec's 48px between sections, and each section is `flex flex-col gap-4`. The other steps: `gap-1` between a label and the value under it; `gap-2` between a field and its helper text and error, between the options of a group, and between buttons in a row; `gap-3` between a label and its field or button group; `gap-4` inside a panel (between its heading row and its content, between groups, between the fields of a form), between panels and between grid columns. Where a page's own section gives another value, the page wins.
- **Grid:** where this brief puts panels side by side, they are items of a 12-column grid, `grid grid-cols-1 gap-4 lg:grid-cols-12`, a single column below `lg`. "Three columns" means `lg:col-span-3`, and so on. A column of several panels is `flex flex-col gap-4`, and its last panel has `flex-1`, so the columns of a row end level.
- **Header:** a full-width `<header>` with `border-b border-border bg-card`. Its container is the row, `flex items-center gap-6 py-3`: the product's name, "Torvale", in `font-heading text-h2 text-foreground`, no underline; then a `<nav>` with the `aria-label` "Main" and `hidden md:block`, holding a `<ul>` with `flex gap-6` of the nav links; then, at the right end (`ml-auto`), the sales line as a small figure, `Sales 01632 960 418`, with `hidden md:block`; and the "Menu" button of the note on menus below. A nav link is a label: the current page's link is `text-foreground underline underline-offset-4` with `aria-current="page"`, the others `text-muted-foreground hover:text-foreground`.
- **Footer:** a `<footer>` with `border-t border-border` across the full width. Its container has `py-6` and holds one small figure: "Torvale Bearings Ltd · Brigholt works · Prices exclude VAT · A demo: nothing is sold or sent."
- **Page header:** a row that is not a panel: `flex flex-wrap items-end justify-between gap-4`. On the left a stack with `gap-1`: the breadcrumb or label this brief gives, then the `<h1>` in `text-h1`. On the right the page's actions, `flex flex-wrap gap-2`.
- **Breadcrumb:** where this brief asks for one, it is a `<nav>` with the `aria-label` "Breadcrumb" holding an `<ol>` with `flex flex-wrap items-center gap-2`, in `font-mono text-label`: each step but the last a link in `text-muted-foreground underline underline-offset-4 hover:text-foreground`, a `/` in `text-muted-foreground` with `aria-hidden="true"` between steps, and the last step in `text-foreground` with `aria-current="page"`, not a link. Because the breadcrumb then says `page`, the header's nav link for the section it belongs to has `aria-current="true"` in place of `page`, with the same look.
- **Headings:** Chivo, sentence case, at the weight its type class sets: do not add `font-bold`, `font-semibold` or `font-medium` to a heading. A panel's or a section's `<h2>` is `text-h2`. A smaller heading inside a panel is an `<h3>` in `font-sans text-body font-bold`: body text in bold, not the heading font.
- **Panels:** a panel is a plain element with `rounded-xl border border-border bg-card p-4`, white on steel white, not the shadcn `Card`, which ships its own padding and a ring. It is `flex flex-col gap-4` when it holds a heading row and content. Never put a panel inside a panel, and never a bordered box with rounded corners inside a panel: divide a panel's parts with 1px rules (`border-t border-border`). No tinted panel: every panel is `bg-card`.
- **Panel heading:** a panel opens with a heading row, unless this brief says it has none: `flex flex-wrap items-center justify-between gap-3`. It holds the panel's `<h2>` in `text-h2` and, at its right end, anything that belongs to the whole panel: a count, a link, a filter, a badge.
- **Panels with rows:** a panel that holds a table or a list of rows has no padding of its own, no gap, and `overflow-hidden`. Its heading row is one element: the heading row's classes plus `border-b border-border px-4 py-3`, with no wrapper around it. Each row of a list has `px-4 py-3` and a 1px top border, except the first. Anything under the table inside the panel (a note, a total) is a row with `border-t border-border px-4 py-3`.
- **Labels:** table headers, field labels, the names of groups, nav links, breadcrumbs and button and badge text are labels: `font-mono text-label`, in sentence case, never `uppercase`, a short fragment and never a sentence. They are `text-muted-foreground` unless a note or this brief gives another color; button and badge text keep their component's color.
- **Small figures:** a part number under a name, a date, a count, a file size, a reference, helper text and small print are small figures: `font-mono text-label tabular-nums text-muted-foreground`, the look of a label used for a value or a sentence. A `text-foreground` in this brief replaces the muted color.
- **Numbers and units:** every number that stands on its own (a table cell, a value, a price) is `font-mono tabular-nums`; inside a sentence it stays in the body font. A quantity, a dimension, a load, a price and a file size are right-aligned in a table, and so is their column's header. A unit is given once, where the eye finds it: in a table it is in the column header, "Bore (mm)", and the cells hold the bare figure, `20`; beside a single value it follows the figure with a space, `20 mm`, `13.40 kN`. Prices have two decimals and a thousands comma (`1,137.80`); outside a priced column they carry the pound sign, `£2.94`. A minus sign is U+2212 (`−30 °C`). Never round a figure the buyer relies on: write the decimals this brief gives.
- **Part numbers:** a part number is `font-mono` and written in full everywhere (`TVL-2047-RS`), never shortened or hidden behind a click. In a table's first column it is a text link in `font-mono text-body`; under a name it is a small figure.
- **Text color:** headings, body text and values are `text-foreground`. Labels, small figures and helper text are `text-muted-foreground`, and only on the page or a panel, never on a fill.
- **Measure:** a paragraph of body text is `text-foreground`, never muted, and at most `max-w-lg` wide.
- **Buttons:** the shadcn `Button` with `className="px-4 font-mono text-label"`, its stock height and corner, in sentence case; add it with `npx shadcn@latest add button` if missing. There are two looks and no others. The default variant (graphite) is for the one main action of a view, "Add to quote" or "Request a quote": at most one enabled default button on screen. Every other button is `variant="secondary"` (pale steel with graphite text): no `outline`, `ghost` or `destructive` buttons on these pages. In `components/ui/button.tsx`, replace the `secondary` variant's stock hover class, `hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]`, with `hover:bg-secondary/80`, once, on every page (each page has a secondary button, the "Menu" button at least), and add no hover class beside it or in a `className`. A button that sends a form needs `type="submit"`: this `Button` is `type="button"` unless told otherwise. A button that is disabled before anyone clicks it, or whose click moves focus elsewhere, uses the plain `disabled` prop. This brief says whether any button gets `focusableWhenDisabled`; on a page where none does, `button.tsx` needs no `data-disabled:` classes. The stock `Button` keeps its `transition-all` and its nudge when pressed. A link styled as a button is an `<a>` with `cn(buttonVariants({ variant }), "px-4 font-mono text-label")`: `buttonVariants` alone does not merge classes.
- **Button groups:** a set of buttons where one is chosen (a filter) is a `role="group"` with `flex flex-wrap gap-1` and an `aria-label`. Every button in it is `variant="secondary"` with `aria-pressed` and the `className` `aria-pressed:border-foreground aria-pressed:font-bold` beside the Buttons note's classes: the chosen one, `aria-pressed="true"`, is marked by a 1px graphite border and bold text, never by a fill of its own. The stock button's `border-transparent` is what this border replaces.
- **Badges:** a badge marks a part: "New", "Made to order". It is the shadcn `Badge` (`npx shadcn@latest add badge`) in the `outline` variant with `className="h-auto rounded-sm border-transparent bg-tertiary px-2 py-1 font-mono text-label text-tertiary-foreground"`: mid steel with graphite text. The corner must be in this `className`, or the stock pill wins. One or two words, no icon. Steel is a fill only: never write `text-tertiary`.
- **Stock states:** a stock state is a status dot and a word, `inline-flex items-center gap-2 whitespace-nowrap`. The dot is `size-2 shrink-0 rounded-full` with `aria-hidden="true"`: `bg-success` for "In stock", `bg-muted-foreground` for "Low stock" and "Made to order", `bg-destructive` for "Discontinued". The word is `text-body text-foreground`. The dot is the only circle on these pages, and the green and the red appear nowhere but beside their word: never show a state by color alone, never color a row, a cell or a panel.
- **Inputs:** the shadcn `Input` (`npx shadcn@latest add input`) with `className="text-body md:text-body"`, its stock height and corner. In `components/ui/input.tsx`, replace the class `bg-transparent` and the class `dark:bg-input/30` with `bg-card`, so a field is white on the white panel and matches the selects; `file:bg-transparent` and the `disabled:` fills stay. A quantity field is also `font-mono tabular-nums text-right` with `inputMode="numeric"`. A field is a `flex flex-col gap-3`: a visible `<label>` with `block`, styled as a label and tied to the field with `htmlFor`; then a stack with `gap-2` holding the field, any helper text (a small figure) and the error line when there is one. Name the helper text in the field's `aria-describedby`. An optional field says so in its label, "Phone (optional)"; a required one has no mark.
- **Selects:** a native `<select>` with `h-8 w-full rounded-lg border border-input bg-card px-2 text-body text-foreground aria-invalid:border-destructive` and the focus outline from the rules (`focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring`). Set a width on an element around it, not on the `<select>`. Same label and stack as any field.
- **Checkboxes:** the shadcn `Checkbox` (`npx shadcn@latest add checkbox`) with `className="rounded-sm"`, the theme's 2px corner. Each option is a `<label>` with `flex items-center gap-2 text-body text-foreground` wrapping the `Checkbox` and a `<span>` with its text, so the whole line toggles it; the `Checkbox` also gets `aria-labelledby` naming that `<span>`'s `id`. A set of options is a `<div>` with `role="group"`, `aria-labelledby` naming its label (a `<p>` styled as a label), and `flex flex-col gap-2`, the label its first item.
- **Errors:** an error line is `flex items-start gap-2 font-mono text-label text-destructive`, not a label (a sentence), holding the `CircleAlert` icon (`shrink-0`) and a sentence that says what to do. The field gets `aria-invalid` and names the line in its `aria-describedby`. Fields are checked in code on submit, with `noValidate` on the `<form>`; focus then moves to the first field with an error. Render the error lines first and move focus after: set the errors in state and focus the field in an effect that runs when they change, so the field's `aria-describedby` already points at a line that exists. An error line is removed when its own field changes (on `input` or `change`); every other error stays until the next submit.
- **Confirmations:** a message after an action goes into a `role="status"` element that is on the page from the start, empty, or it may not be announced. It is never hidden, has no classes that draw or take space, and is never an item of a `gap-*` stack or row: put it in a plain `<div>` with the element above it. The message inside it, rendered only when there is one, carries the look and the space, such as `mt-3`. Where a message replaces a form, the form and the status element share that `<div>`. Where the message replaces the control that had focus, give its heading or first element `tabIndex={-1}` and move focus to it.
- **Description lists:** a list of properties is a `<dl>`. Each row is `flex items-baseline justify-between gap-3 py-2` with a 1px top border except the first: the `<dt>` a label in `text-muted-foreground`, the `<dd>` in `text-right`, `font-mono tabular-nums` when it is a figure and `text-body` when it is a phrase.
- **Tables:** the shadcn `Table` (`npx shadcn@latest add table`) with `text-body`. The header row is mono: header cells are labels in `text-muted-foreground`, keep their stock `h-10`, `font-medium` and `whitespace-nowrap` (so a header is one short line) and get `px-4`. Body and footer cells get `px-4 py-2`. Rows are divided by the stock 1px borders and keep the stock `TableRow` hover fill, also where a row does nothing; no zebra stripes and no colored rows. Cells that hold a sentence get `whitespace-normal`. No `<caption>`, which would scroll away: the table's visible name is the heading above its box, and the `label` prop below repeats its words. A wide table scrolls sideways in its own box, which is fine on a phone: edit `components/ui/table.tsx` to give its scroll box `tabIndex={0}`, `role="region"`, an `aria-label` from a required `label` prop, and the focus outline drawn inside (`focus-visible:-outline-offset-2`, since a table here fills a panel that clips). A total row sits in a `<tfoot>`: the stock `TableFooter` ships a fill and `font-medium`, so give it `bg-transparent`, and each of its `TableRow`s `hover:bg-transparent`.
- **Drawings:** a part is drawn in outline with plain elements, never an image file, an SVG or an icon: 1px lines in the text color (`border-foreground`) on the panel's white, with no fill of their own, and its dimensions in labels in `text-foreground`. Every bordered box of a drawing has square corners: no `rounded-*` class, since a bordered box with rounded corners inside a panel reads as a card inside a card. No circles, no gradients, no hatching and no shadows. Sizes that come from the part's millimetres are inline `style` widths and heights at the scale this brief gives. The drawing has `aria-hidden="true"`; the figure's caption gives every dimension in words.
- **Icons:** from `lucide-react`, with `size-4` and `strokeWidth={1.5}`, only where this brief or these notes name one, with `aria-hidden="true"` beside a word. Never emoji.
- **Corners:** `rounded-sm` (2px) for badges and checkboxes, `rounded-lg` (4px, what they ship with) for buttons, inputs and selects, `rounded-xl` (8px) for panels, `rounded-full` only for the status dot, which is `size-2`, under the theme's 12px limit. No avatars and no pills.
- **Surfaces:** flat. No shadows, blur or gradients in the code you write. A stock component that floats over the page keeps the one short shadow it ships with.
- **Menus on small screens:** below `md` the nav links go behind a "Menu" button (`variant="secondary"`, `md:hidden`) with `aria-expanded` and `aria-controls`, at the right end of the header's row (`ml-auto`). It opens a second `<nav>` under the row, inside the `<header>`, also named "Main" because only one of the two is ever shown: it has `md:hidden`, the `hidden` attribute while closed, the `id` that `aria-controls` names and a full-width 1px top border; in its container, a `<ul>` with `py-2`, each link a block with `py-2`. Escape closes it only while focus is inside the menu or on its button, and focus then goes to the button. Do not use a `Sheet` or a `Dialog`. Whether the menu is open is page state, and a page that has no other state still has this one.
- **Motion:** in the code you write, only colors transition. Nothing moves on scroll. Stock components keep the motion they ship with.

## The page

Where this section and the layout notes above differ, this section wins.

Sample content, if the user gave none: "Torvale Bearings Ltd" and its category "Deep groove ball bearings", sealed and shielded, from its TVL range. The part number gives the bore and the outside diameter: `TVL-2047-RS` has a 20 mm bore and a 47 mm outside diameter; `RS` means two rubber seals, `ZZ` two metal shields. The twelve parts, in this order (part number, bore d, outside diameter D, width B in mm, dynamic load rating C in kN, stock state, unit price for 1 to 49 in pounds):

1. `TVL-1026-ZZ`, 10, 26, 8, 4.75, In stock, 1.42
2. `TVL-1030-RS`, 10, 30, 9, 5.50, In stock, 1.64
3. `TVL-1232-RS`, 12, 32, 10, 7.20, In stock, 1.78
4. `TVL-1535-ZZ`, 15, 35, 11, 8.10, Low stock, 1.96
5. `TVL-1740-RS`, 17, 40, 12, 9.90, In stock, 2.38
6. `TVL-2047-RS`, 20, 47, 14, 13.40, In stock, 2.94
7. `TVL-2047-ZZ`, 20, 47, 14, 13.40, Low stock, 2.71
8. `TVL-2552-RS`, 25, 52, 15, 14.60, In stock, 3.46, with the badge "New"
9. `TVL-3062-RS`, 30, 62, 16, 20.10, Made to order, 4.88
10. `TVL-3572-ZZ`, 35, 72, 17, 26.80, In stock, 6.52
11. `TVL-4080-RS`, 40, 80, 18, 32.20, Made to order, 8.15
12. `TVL-4585-RS`, 45, 85, 19, 34.90, Discontinued, 9.40

This page uses the stock `button`, `badge`, `checkbox` and `table`; add any the project lacks with `npx shadcn@latest add button badge checkbox table`.

Build these parts in order; the footer is as the layout notes describe it.

### 1. Header

The product's name, the four nav links with Catalogue as the current page, the sales line at the right end from `md` up, and the "Menu" button below `md`.

### 2. Page header

On the left, the breadcrumb: `Catalogue` (a link to `/catalogue`), `Ball bearings` (a link to `#`) and the current step `Deep groove`. Then the `<h1>` "Deep groove ball bearings". On the right, one action: a link styled as a `secondary` button, "Range documents", to `/downloads`. This page has no default button: nothing on it is the one main action.

Under the page header row, as the next item of the container, one paragraph in `text-body`, at most `max-w-lg` wide: "Single-row bearings with a 20% grease fill, sealed or shielded on both sides. Chrome steel rings, pressed steel cage, normal clearance."

### 3. Filters

A grid row. The filters are a panel spanning three columns from `lg` up, full width below: an `<aside>` with the `aria-label` "Filters", holding a heading row with the `<h2>` "Filters" and, at its right end, a `secondary` button "Clear filters", disabled with the plain `disabled` prop while no filter is set. Under the heading row, four groups, each divided from the one before by a 1px rule: the group itself has `border-t border-border pt-4`, except the first. The panel's `gap-4` spaces them.

- **Bore:** a group labelled "Bore (mm)" with three checkboxes, "10 to 17", "20 to 30" and "35 to 45", all clear.
- **Seals:** a group labelled "Seals" with two checkboxes, "Rubber seals, RS" and "Metal shields, ZZ", all clear.
- **Stock:** a group labelled "Stock" with one checkbox, "In stock only", clear.
- **Sort:** a field with the label "Sort by" and a native `<select>` with four options: "Bore, smallest first" (chosen), "Part number, A to Z", "Load rating, highest first" and "Unit price, lowest first". It is not a filter: it does not enable "Clear filters".

The page has a native `<select>`, so set `color-scheme` as the rules say.

### 4. Parts table

The table is a panel with rows spanning nine columns from `lg` up, full width below. Its heading row holds the `<h2>` "Parts" and, at its right end, the count as a small figure in an element with `aria-live="polite"`: `12 parts` with no filter set, and `4 of 12 parts` when filters leave four (`1 of 12 parts`, `0 of 12 parts`).

The shadcn `Table` with the label "Parts", one row a part, and these columns, with these headers:

- **Part number:** the part number as a text link in `font-mono text-body`, `/part` for `TVL-2047-RS` and `#` for the others. The "New" badge of `TVL-2552-RS` follows the link in the same cell, in a `flex items-center gap-2`.
- **Bore (mm)**, **Outside (mm)**, **Width (mm)**: the bare figures, `20`, `47`, `14`, right-aligned, headers too.
- **Load C (kN):** the dynamic load rating with two decimals, `13.40`, right-aligned, header too.
- **Stock:** the stock state, a dot and a word.
- **Unit price (£):** the price with two decimals and no pound sign, `2.94`, right-aligned, header too.

There is no column for the seals: the part number's suffix gives them. Keep the headers exactly this short: nine columns of 1280px is about 930px, and these seven columns fit it at 1280px without scrolling. Below that width the table scrolls in its box.

When no part matches, the table's body is one row with one cell across all seven columns, with `px-4 py-12 whitespace-normal`: a stack with `gap-3` and `items-start` holding the sentence "No parts match these filters." in `text-body` and a `secondary` button "Clear filters".

Under the table, inside the same panel, a row with `border-t border-border px-4 py-3` holding one small figure: "Unit prices are for 1 to 49 and exclude VAT. Price breaks for larger quantities are on each part's page."

### Behavior

- All of it works on the sample data in component state.
- Within a group, the checked options add up: "10 to 17" and "35 to 45" together keep both ranges. A group with nothing checked does not filter. The groups work together: a part must pass every group that has a box checked. "In stock only" keeps the parts that are "In stock" or "Low stock".
- The sort applies to the filtered rows. Ties keep the part number order (A to Z). "Load rating, highest first" puts `TVL-4585-RS` first; with the default sort the table is in the order of the sample list.
- A filter is set when any checkbox is checked. "Clear filters", in the panel or in the empty state, clears every checkbox, leaves the sort as it is, and moves focus to the first checkbox, "10 to 17". The panel's button is disabled with the plain `disabled` prop: its click moves focus elsewhere, so no button on this page gets `focusableWhenDisabled`, and `components/ui/button.tsx` needs no `data-disabled:` classes.
- The count follows the filters at once.
- "Range documents", the part links and the nav links need no behavior beyond their `href`.

## Rules

- **Colors:** only the theme's colors, through the semantic classes (`bg-background`, `text-foreground`, `bg-card`, `bg-primary`, `text-primary-foreground`, `text-muted-foreground`, `border-border` and so on). No hex, rgb or named colors in components, and no Tailwind palette classes such as `bg-blue-500` or `text-gray-600`.
- **Spacing:** padding, margin and gap use only the scale's steps (`1`, `2`, `3`, `4`, `6`, `12`) plus 0, 1px and 2px. No arbitrary values such as `p-[18px]`, and no other steps such as `p-5` or `gap-10`. `auto` margins are fine. Widths and heights such as `w-64` or `size-4` are sizes, not spacing. This applies to the code you write: a stock component keeps the spacing inside it, unless this brief changes it.
- **Type:** every piece of text you write gets its size from one of `text-display`, `text-h1`, `text-h2`, `text-body`, `text-label`, set on the element or on a parent it inherits from. Put `text-body` on the outermost element of the page you write. No other sizes. A stock shadcn component keeps the size it ships with, unless `DESIGN.md` or this brief gives that component its own style. A type class does not replace a weight class: where a stock component ships `font-medium` and the text should be regular, add `font-normal`.
- **Fonts:** only the theme's fonts, through `font-sans`, `font-heading` and `font-mono`. Do not add a font.
- **Corners:** only the `rounded-*` classes, which the theme already sets. No arbitrary radius, and `rounded-full` only where `DESIGN.md` or this brief names a full round, such as an avatar or a status dot. The theme allows a full round on a box up to 12px across; Strict Check reports a larger one, and a pill counts by its height.
- **Contrast:** all text meets WCAG AA against its background.
- **Stock components:** a component from `components/ui`, and an `<a>` styled with `buttonVariants`, keeps the hover, pressed and disabled colors and the motion it ships with, unless this brief changes them. They are the theme's colors under other names.
- **Counts:** a number with a noun reads right at one: "1 set", not "1 sets". Where this brief gives the words for only one of the two, write the other the same way.
- **Sizes from data:** a height or a width that comes from data (a chart bar, a meter) is set with an inline `style`. That is the one use for an inline style.
- **Focus:** every link and control shows a 2px outline on keyboard focus: `focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring`. Keep `focus-visible:outline-solid` in it: in Tailwind 4 an `outline-none` on the same element, which stock components carry, otherwise hides the outline. An element that only gets focus from code (a heading or a message with `tabIndex={-1}`) gets the same outline written with `focus:` in place of `focus-visible:` (`focus:outline-solid focus:outline-2 focus:outline-offset-2 focus:outline-ring`): after a mouse click, a browser does not match `:focus-visible` on an element that code focuses. A link, a button or a field that code focuses keeps the `focus-visible:` classes it has: after a mouse click it shows no outline, which is how a browser treats every control, and is right. A stock component that ships its own focus ring (`Button`, `buttonVariants`, `Input`, `Textarea`, `Checkbox`, `Switch`, `AccordionTrigger`, the close button of a `Sheet`) must lose that ring. Do it once, in the component's file in `components/ui`, which is yours to change: replace its `focus-visible:ring-*` classes with the outline classes, and in a field replace its `aria-invalid:ring-*` classes, the `dark:` ones included, with `aria-invalid:ring-0`, or a field with an error shows a tinted ring. `Button` has two more sets. Its base classes also carry `aria-invalid:ring-*` classes: replace them with `aria-invalid:ring-0`, as in a field. Its `destructive` variant carries `focus-visible:ring-*` classes of its own, the `dark:` one included: delete them and put nothing in their place, because the base classes already give every variant the outline. Wherever this rule says replace, change the classes in the file and do not add `ring-0` beside them: an added class only wins where it comes later and passes through `cn`. The stock `focus-visible:border-ring` can stay. These ring changes go only into the files of components that this page uses and that can take focus on it: a `Badge` that is not a link keeps its ring classes. The `cn` import from the setup steps is another matter and goes into every file. A box that scrolls sideways (a code block, a wide table) gets `tabIndex={0}`, `role="region"`, an `aria-label` and the same outline, also at widths where it happens to fit. Where a focusable box touches the edges of a parent that has `overflow-hidden`, draw its outline inside it: `focus-visible:-outline-offset-2` in place of `focus-visible:outline-offset-2`.
- **Not allowed:** purple or multi-color gradients; emoji used as icons or bullets; glows and colored shadows.
- **Avoid:** a card inside a card.
- **Dark mode:** the page must work with the `dark` class on `<html>`. Because every color comes from a semantic class, this needs no extra code; do not write `dark:` color overrides. A new shadcn project follows the system's mode and switches on the `d` key: leave that as it is, and add no mode switch of your own. If the page has a native `<select>` or a date or time field, tell the browser the mode, or its list and its picker stay light in dark mode: in the global CSS, give `:root` `color-scheme: light` and `.dark` `color-scheme: dark`.

From the theme's own do's and don'ts:

- Do give every number its unit, once, where the eye finds it.
- Do keep the page grey: a state color appears only beside its word.
- Do let a table be a table: no cards for rows of comparable figures.
- Don't add an accent color, a gradient or a tinted panel.
- Don't round a figure the buyer has to rely on, or hide a part number behind a click.
- Don't introduce a color, size or radius that is not a token above.

## Check before you finish

Go through this list against the code you wrote, and fix anything that fails.

- [ ] The filters sit in a column three of twelve wide from `lg` up, and the bore, seal and stock filters and the sort order work together on the table.
- [ ] Every dimension, load and price in the table is a right-aligned mono figure with `tabular-nums`, and its unit is in the column header, not in the cells.
- [ ] Every stock state is a status dot and a word, and the green and the red appear nowhere else on the page.
- [ ] The count in the table's heading row follows the filters, and an empty result shows a sentence and a Clear filters button that moves focus to the first checkbox.
- [ ] At 375px the table scrolls sideways inside its own box, which can be reached with the keyboard, and the page itself does not scroll sideways.
- [ ] No color is written as a hex, rgb or Tailwind palette value in the page's code.
- [ ] Every padding, margin and gap in the code you wrote is a step of the spacing scale.
- [ ] Every text element you wrote gets its size from a type-scale class, its own or an inherited one. Visually hidden text is exempt.
- [ ] No file in `components/ui` imports `cn` from `"cn"` directly.
- [ ] Text contrast meets WCAG AA in light and dark mode.
- [ ] The page has one `<h1>`, headings are in order, and every image has alt text.
- [ ] Every interactive element can be reached with the keyboard and shows the focus outline from the rules.
- [ ] At 375px wide the page does not scroll sideways. Wide tables and code blocks scroll inside their own box.
- [ ] The project builds without errors or warnings.

Then tell the user which checks pass, which you could not verify, and anything in this brief you did not do and why.
