Stop the generic AI dashboard: a checkable UI contract for data-heavy interfaces A developer published a UI_RULES.md contract and a small Node checker for steering coding tools away from generic AI-generated dashboard chrome toward data-heavy interfaces. The contract restricts colors, fonts, radii and shadows to role-named tokens in a single tokens.css file, bans card stacks in place of tables, and requires right-aligned tabular numerals via a .numeric class. Running the checker on two fixtures, a compact ledger table passed while a "welcome back to your insights" panel failed with nine violations, including the gradient, glow, sparkline and empty state. I asked a coding tool for a compact ledger table, with amounts that line up and a useful empty state. What I got back was a dark card, a purple-to-pink gradient, a glow, four KPI tiles, and a decorative sparkline with no data in it. The table, such as it was, had been turned into a stack of rounded row cards. The empty state said "No data". That look is not a taste problem. It is a default. The models have seen a lot of marketing sites and generated dashboards, and they will keep emitting that chrome unless you give them a narrower contract, in the repo, that a script can also check. This is the contract I use for data-heavy screens, plus a small Node checker. I ran the checker on two fixtures: a compact ledger table passed; a "welcome back to your insights" panel failed with nine violations, including the gradient, the glow, the sparkline, and the empty state. A paragraph in a chat window lasts one session. A UI RULES.md file at the root of the frontend is still there when someone types "add a status column." It should be short, specific, and boring. The useful parts are not "make it look premium." They are constraints: tokens.css . Do not invent a colour, a font, a radius or a shadow. table . Do not fake rows with a stack of cards. .numeric class: right aligned, with tabular numerals. Point the tool at that file before it edits UI. Then check the result with a script, because the model will still try a gradient when it wants to be helpful. If the only legal colours live in one file, a generator has less room to invent a palette. Name tokens by role, not by hue. A button does not use --blue-600 . It uses --accent-fill . :root { --font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; --text: 14161a; --text-muted: 5b6270; --surface: ffffff; --surface-raised: f6f7f9; --line: e3e6eb; --accent-fill: 2f5fe0; --danger-fill: c8352b; --cell-pad: 8px 12px; --row-height: 36px; --radius: 6px; --shadow: 0 1px 2px rgb 20 22 26 / 8% ; } data-density="compact" { --row-height: 28px; --cell-pad: 4px 8px; } IBM Plex is here as an example of a typeface with tabular figures, with a system fallback so the page still works if the webfont is missing. If your product already has a font, put that on --font and do not let a tool introduce Inter as a second stack. Inter is not a bad typeface. It is just the one the models reach for when nobody has told them the product already chose. Density is a token, not a restyle. People who work through hundreds of rows a day want a shorter row. Occasional users may want more air. A data-density attribute that only changes --row-height and --cell-pad covers both without two sets of components. Accent is for actions and focus. It is not a wash behind the page, and it is not a glow around a card. The legal shadow is short and neutral. If a panel needs to sit on the surface, a one-pixel --line border is usually enough. In a ledger, a payments grid or a log, the numbers are the product. If a column of amounts jitters as the values change from 99 to 1,000, the table is harder to scan than it looks in a screenshot. .data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; } Use .numeric on amounts, counts, IDs and dates that must compare in a column. Right-align those cells; left-align labels and names. Keep the column header aligned with the cells, and keep the header visible while the body scrolls. This is also a cheap test for slop. If the generated markup has no .numeric class, the tool did not build a table for work. It built a picture of a table. A data-heavy screen can have a panel, a filter row and a dense grid. It does not need a hero, a "welcome back", or four KPI cards that repeat totals the table already shows. It does not need a sparkline unless you have a series and a reason to plot it. Use table , thead , th and td . Row height comes from --row-height . Padding comes from --cell-pad . A sticky header is enough chrome. Loading should keep that layout. A skeleton row with the same column count and the same height is useful. A centred spinner that replaces the page is not: the screen jumps when data arrives, and the user cannot tell how large the view will be. Most of a data view's life is not the happy path. The contract therefore requires four states, and the markup has to mean them.