Skip to content

Blog

The business app UI standard, with the numbers behind each rule

By Bohuslav PoláčekPublished

Each rule with its threshold, what the review of 30 November 2026 and the audit's first run of 1 December found, and the state on 2 December (four passes: 1440 and 390px, light and dark).

Why a standard with numbers

"Looks designed" is not something a coding tool can check, and neither is "consistent". A threshold is. So every rule here has a number, and every number is measured on every screen, not reviewed once by eye.

On 30 November 2026 I went through 131 screens of our demo by hand and found, among others, what the table lists: dark mode text that passed WCAG's ratio and still read faint, eleven font sizes where the scale has fewer, figures that did not line up, long tables that lost their header, cut text with no way to read it whole, and phone controls at desktop sizes. None of the checks of the day caught any of it. The quality of a screen is also what the SaaS starters and admin frameworks we compare ourselves with do not measure, so it became the audit's job (decision 0014).

How it is measured

npm run audit finds the screens itself: for each of the nine demo apps it opens the sidebar's pages, the settings, their tabs, and a sample record of every entity. Each screen runs four times: 1440 × 900 and 390 × 844, light and dark. On the first run, 1 December 2026, that was 197 screens.

Each rule counts the elements that break it. What the first run found went into scripts/review-exceptions.mjs as a count per rule, app, screen and pass. More than the count fails the audit; fewer lowers it, and a count that reaches zero leaves the file. So the list only shrinks, and a new screen cannot add a problem the old ones are being cleared of. The column "2 Dec" in the table is that file on the day this was written.

The rules

Text contrast

Text is measured in APCA against the background it really sits on: Lc 75 under 14px, Lc 60 from 14px, Lc 45 from 24px or from 16px at weight 550, and never below WCAG's 4.5:1. In practice, 12 and 13px text uses the main text colour or one secondary grey; the faintest grey is for icons and 14px text. The contrast post has the token changes that took the count from 40,560 to zero.

Type scale

Product text 13/20, meta 12/16, a large control 14/20, panel and dialog titles 16/24, page titles 20/28, record titles 24/32. 11px only for initials, key caps and counts of up to three characters; dates and chart labels are 12px. No 15px in an app. A size that is not on the scale is a finding, even when it looks close.

Tables

A number ends at its cell's edge with tabular figures, and a unit other than the currency goes into the header. A table that can be longer than its container, over 20 rows, keeps its header in view, and its sort button takes the header's whole height. Every column declares its kind, and the kind sets width and alignment. The data tables post goes through it column by column.

Cut text

Text cut by an ellipsis or a line clamp can be read whole: a tooltip on hover, on keyboard focus and on a tap. Text cut in every row is not a tooltip's job: the column is too narrow or the words too long, so fix those.

Touch targets

Under 640px every control is hit over 44 × 44px; its label and a positioned ::before count, a link inside a sentence does not need it. On desktop the controls are 32px (28 small). This is the rule still being worked through: on a phone most controls kept the desktop sizes, and the exceptions file allows up to 5,212 findings in each phone pass while the kit's control sizes change.

Motion

Under prefers-reduced-motion: reduce no visible element has a transition or animation longer than 120ms; short fades stay. The first run found 101,110 such elements, because every screen kept its 150 to 280ms colour transitions. One rule in the kit's stylesheet fixed all of them.

Focus and names

Nothing that can take focus stays at opacity 0 once it has it (a row action shown on hover must show on keyboard focus too). A control named by aria-label contains its visible text, headings do not skip a level, and two landmarks of one role do not share a name. These four were added on 1 December and are still held as counts.

Use it on your own app

The rules hold for any business app, built with Meadowstack or not. Two ways to use them today:

  • Run UI check on a screen you have open. It is our audit's rules in a bookmarklet, scored by group, and it sends nothing anywhere.
  • Paste the rules into the file your coding tool reads (AGENTS.md, CLAUDE.md, .cursor/rules):
markdown
## UI standard (business app)
- Text contrast in APCA: under 14px Lc 75, from 14px Lc 60, from 24px or
  16px at weight 550 Lc 45; never below WCAG 4.5:1, light and dark, hover
  included. 12 and 13px text uses the main text colour or one secondary grey.
- Type sizes only from the scale: 12/16 meta, 13/20 text, 14/20 large
  controls, 16/24 panel titles, 20/28 page titles, 24/32 record titles.
  11px only for initials, key caps and counts up to three characters.
- Numbers in tables end at the cell's edge with tabular figures; the unit
  goes into the header.
- A table that can have more than 20 rows keeps its header in view.
- Cut text has a tooltip that opens on hover, keyboard focus and tap.
- Under 640px every control is hit over 44 x 44px.
- With prefers-reduced-motion, no transition over 120ms.
- Nothing focusable is invisible when it has focus.
Check 1440 and 390px, light and dark, before calling a screen done.

In Meadowstack these rules live in the root AGENTS.md and the audit in the repository. The rules and checks added on 1 and 2 December 2026 (APCA, type scale, figures, long tables, cut text, motion, focus) come with the next release; 2.1, released on 11 November, has the earlier audit with the layout rules and axe.

Sources

Questions

Why APCA on top of the WCAG contrast ratio?

WCAG 2's ratio ignores text size and polarity, so our dark mode passed it while its small grey text read faint. APCA weighs both; we keep WCAG's 4.5:1 as the floor under it.

Why 44px targets on phones when the kit's touch controls are 40px?

44px is the hit area the audit asks for under 640px, and a control may reach it with its label or an invisible extension. The kit's control sizes on phones are what is being changed now; the audit counts what is left.

Can I run these checks on an app not built with the framework?

Yes. UI check runs the same rules as a bookmarklet on any screen you have open, and the thresholds above are plain numbers you can give any coding tool.

What does 20 rows have to do with a sticky header?

It is the audit's threshold for a table that can be longer than its container. A shorter table scrolls whole; a header floating over three rows reads as a glitch.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app