shibro

A skill for Claude Code

shibroUI

shibroUI holds every screen Claude builds to 361 UI rules with real numbers, then checks the result in the browser with its own scripts.

Rules
361
Areas
37
Scripts
9

Install

  1. Clone the repository

    git clone https://github.com/sshibro/shibroui.git ~/Developer/shibroui
  2. Link the skill into Claude Code

    ln -s ~/Developer/shibroui/shibroui ~/.claude/skills/shibroui

Claude Code then reaches for it on any UI work. Type /shibroui to call it by name.

Before and after

Each card is real HTML and CSS. Flip it between the version shibroUI flags and the one it ships, and read the numbers that separate them.

Demos to show

Typography

Amounts you can compare at a glance

Show the version of “Amounts you can compare at a glance”
Bad
Proportional digits, amounts centred under a left-aligned header: $1,111.00 is narrower than $7,208.15, so the decimal points wander.
Good
tabular-nums gives every digit one width; names align left, amounts align right under a right-aligned header.

Hierarchy

One action leads, the rest step back

Show the version of “One action leads, the rest step back”
Bad
One size and 700 weight for label, price and details, plus three filled buttons.
Good
Price at 28px, details quiet at 380; actions step from filled to outline to text.

Optical balance

A play button that looks centred

Show the version of “A play button that looks centred”
Bad
The triangle is centred by its box, so its heavy flat side pulls the shape left of the circle’s centre.
Good
The same triangle nudged 6% of its width (translateX(6%)) toward the point, so the weight sits on the centre line.

Optical balance

Shapes that read as the same size

Show the version of “Shapes that read as the same size”
Bad
A square and a circle both 72px wide: the square fills more area, so it looks bigger.
Good
The square drops to 65px (about 10% smaller) while the circle stays 72px, so both carry the same visual weight.

Optical balance

A highlight that sits behind its label

Show the version of “A highlight that sits behind its label”
Bad
The highlight sits 6px right of “Today” (12px vs 24px) and the chip pads 12px / 28px.
Good
The highlight takes the selected day’s own box, and the chip pads 16px on both sides.

Color & contrast

Status labels you can actually read

Show the version of “Status labels you can actually read”
Bad
White on bright fills: #fff on #22c55e is 2.28:1, on #facc15 1.53:1 and on #ef4444 3.76:1, all below 4.5:1.
Good
Dark text on a pale tint of the same hue: 8.30:1, 8.07:1 and 8.20:1 in light, 7.52:1, 7.45:1 and 6.93:1 in dark.

Forms

A search row that lines up and groups cleanly

Show the version of “A search row that lines up and groups cleanly”
Bad
A 32px input beside a 40px button, and the same 16px gap between label and field as between one field and the next.
Good
Input and button share one 40px height, with 8px from label to field and 24px from field to field.

Targets & focus

Icon buttons you can hit and keyboard through

Choose Good, then press Tab to move through the toolbar and see the focus ring.

Show the version of “Icon buttons you can hit and keyboard through”
Bad
Each hit area is the 24×24 icon itself, 0–2px from its neighbours, and outline: none leaves keyboard focus invisible.
Good
The icons stay 24px inside 44×44 hit areas 8px apart, and keyboard focus draws a 2px ring at a 2px offset.

Motion

A press that answers, not one that lurches

Press and hold the button with a mouse, a finger, or Space or Enter.

Show the version of “A press that answers, not one that lurches”
Bad
The button shrinks to scale(0.84) and takes 700ms to get there and back, so a quick tap barely registers and the UI feels laggy.
Good
A press is scale(0.97) over 200ms with ease-out: small enough to feel solid, quick enough to keep up with a tap.

Motion

Change your mind halfway and it follows

Toggle it twice quickly, or press “Interrupt mid-open” to open it and close it again while it is still moving.

Show the version of “Change your mind halfway and it follows”
Bad
Two one-shot @keyframes of 300ms: close it mid-open and it jumps to fully open first.
Good
One 300ms transition retargets from where the panel is, so closing mid-open turns it back.

Motion

Arrive quickly, leave quickly, never at a constant speed

Switch the notification on and off a few times and compare how it arrives and how it leaves.

Show the version of “Arrive quickly, leave quickly, never at a constant speed”
Bad
The card moves at a constant speed with linear for 600ms both ways, so it starts and stops abruptly and a routine toggle feels slow.
Good
It eases out over 240ms when it enters and eases in over 200ms when it leaves, which keeps routine motion short and natural.

Surfaces

Corners that stay evenly spaced

Show the version of “Corners that stay evenly spaced”
Bad
The photo reuses the card’s 20px radius inside 8px of padding, so the gap swells at each corner and the curves look pinched.
Good
The inner radius is outer minus padding, 20 - 8 = 12px, so the space between the two curves stays 8px all the way around.

Surfaces

Shadows that say what is on top

Switch the page theme: in dark, the higher layers also get a slightly lighter surface so they stay visible.

Show the version of “Shadows that say what is on top”
Bad
Cards rest at level 4, the menu at level 0, the toast at level 1: the menu sinks into the page.
Good
Cards rest flat at level 0, the menu rises to level 2, the toast to level 5: top reads as top.

Product details

An empty list that tells you what to do next

Show the version of “An empty list that tells you what to do next”
Bad
A bare “No data” sits under tabs, a search box and column headers that have nothing to work on, and gives no reason and no next step.
Good
It says why it is empty (“No projects yet”), adds one line on what will appear, and offers a single primary Create a project button.

Typography

Mixed sizes in one row share a baseline

Show the version of “Mixed sizes in one row share a baseline”
Bad
The “/ month” unit is centred on the 34px figure’s box, so its baseline floats about 7px above the number’s.audit.js: SU-4 warn: text baselines differ by 7px; align-items: baseline
Good
Same row with align-items: baseline: the unit sits on the figure’s baseline, 0px apart.

Accessibility

Every icon button has a name

Show the version of “Every icon button has a name”
Bad
Three icon buttons with no accessible name, so a screen reader says “button, button, button” and none of them can be told apart.audit.js: SU-140 fail: button has no accessible name (3 instances)
Good
Each icon button carries an aria-label, so the reader announces “Edit invoice”, “Duplicate invoice” and “Delete invoice”.

Accessibility

A sticky bar never hides the focused element

Show the version of “A sticky bar never hides the focused element”
Bad
The focused “Notifications” row is scrolled in exactly where the 96px cookie banner sits, so it is fully covered.audit.js: SU-145 fail: focused element is fully covered by div.banner (96px) once scrolled into view
Good
scroll-padding-bottom: 96px matches the banner, so focus scrolls the row clear of it and it stays fully visible.

Forms

Errors are text next to the field, linked to it

Show the version of “Errors are text next to the field, linked to it”
Bad
The only label is a placeholder that vanishes once typed, and the error is a vague “Invalid input” toast away from the field.audit.js: SU-148 fail: field named only by its placeholder · SU-151 fail: field is marked aria-invalid but no visible error text is linked to it
Good
A visible label, a hint, and an error that says what to type, sitting beside the field and tied to it with aria-describedby.

Forms

Validate when the person is done, and keep submit enabled

Show the version of “Validate when the person is done, and keep submit enabled”
Bad
An error appears after two keystrokes, and the dimmed submit button (1.9:1 light, 2.2:1 dark) gives no reason why.
Good
The field stays quiet while typing, flags problems on blur or submit with :user-invalid, and submit stays enabled.

States

A skeleton holds the shape of what’s coming

Show the version of “A skeleton holds the shape of what’s coming”
Bad
A 120px spinner box is swapped for four 52px rows (208px) when the data arrives, so everything below jumps 88px.
Good
Four placeholder rows at their real 52px hold 208px before and after, and nothing moves; the shimmer stops for reduced motion.

States

A busy button keeps its size and its words

Show the version of “A busy button keeps its size and its words”
Bad
On save the button shrinks from 128px to a bare 40px spinner with no words, and Cancel lurches 88px to the right.
Good
The button stays 128px and reads “Saving…” beside the spinner, so Cancel and everything near it stays put.

States

Errors explain and recover, where they happened

Show the version of “Errors explain and recover, where they happened”
Bad
A bare “Error 500” toast blinks over an empty list and is gone in 3s, with no cause, no Retry and no next step.audit.js: SU-146 warn: message appears without role="status" or aria-live · SU-160 info: error shown in a toast disappears before it can be read or acted on
Good
The error sits where the list should be, says what failed and what to do, offers Retry and keeps the person’s filters.

Content

A confirmation names the action and its consequence

Show the version of “A confirmation names the action and its consequence”
Bad
“Are you sure?” never says about what, and the red “OK” button hides the verb for an action that cannot be undone.audit.js: SU-178 warn: dialog button "OK" does not name the action
Good
The title names the project, the body counts what goes (24 invoices, 3 members), and the button repeats the verb.

Theming

Dark surfaces are dark gray, and every pair passes in dark

Show the version of “Dark surfaces are dark gray, and every pair passes in dark”
Bad
Pure black page and card (the shadow vanishes), muted text at 2.8:1, and a pastel light-theme badge that glares.
Good
Dark gray page, a lighter raised card, muted text at 6.6:1, and a deep-tint badge at 10.0:1 that also carries an icon.

Theming

Controls keep their edges in forced colors

Show the version of “Controls keep their edges in forced colors”
Bad
In a simulated contrast theme the buttons and toggle have no border or outline, so the toggle vanishes and Cancel and Save read as loose words.audit.js: SU-168 warn: .btn:focus-visible: focus drawn only with box-shadow
Good
Every control keeps a 1px border, Save a 2px outline, and the toggle a border and thumb, so all of it survives as system colors.

Responsive

Nothing scrolls sideways at 320px

Show the version of “Nothing scrolls sideways at 320px”
Bad
At a 320px viewport the four-button toolbar and 540px table make the page 540px wide, so it scrolls sideways.audit.js: SU-170 fail: page is 540px wide at a 320px viewport
Good
The toolbar keeps one primary action plus a More menu and the table becomes stacked rows, so the page stays 320px wide.

Responsive

No actions that only appear on hover

Show the version of “No actions that only appear on hover”
Bad
On a touch screen there is no hover, so Edit and Remove never appear and every row ends in an empty 40px slot.audit.js: SU-174 warn: revealed only on :hover (.row:hover .actions)
Good
Each row keeps a visible 40×40px menu button named for its person, so touch and keyboard users can reach it.

Data viz

The chart states its point and works without color

Show the version of “The chart states its point and works without color”
Bad
The title is just “Sales”, two near-identical blues are told apart only by a legend, and 10px axis text sits at about 1.7:1 in both themes.
Good
The title states the takeaway, the series differ by solid vs dashed line with direct end labels, and 12px axis text is 6.2:1 light · 6.7:1 dark.

Performance

Images reserve their space before they load

Show the version of “Images reserve their space before they load”
Bad
With no width, height or aspect-ratio, the text sits at the top at 0.2s and drops by the image’s height at 1.4s.audit.js: SU-192 warn: no width/height attributes or aspect-ratio, so the page jumps when it loads
Good
The slot holds a 16 / 9 box from the start, so the text is in the same place at 0.2s and at 1.4s.

International

Labels have room to grow in other languages

Show the version of “Labels have room to grow in other languages”
Bad
“Save changes” grows from 12 to 20 characters in German (×1.7); the fixed 120px button cuts it to “Änderungen spei…”.audit.js: SU-200 fail: never truncate actions or errors
Good
The same labels size to their content and the rows wrap, so “Änderungen speichern” shows in full.

International

Right-to-left layouts mirror what has direction

Show the version of “Right-to-left layouts mirror what has direction”
Bad
In Arabic the back arrow points left at the far end, the bell is stranded from its label, and the 70% bar still fills from the left.
Good
Logical properties flip the layout: the back arrow is mirrored at the start, the bell sits by its label, and the 70% bar fills from the right.

Product details

Notices use a quiet tint, not a stripe on a rounded card

Show the version of “Notices use a quiet tint, not a stripe on a rounded card”
Bad
A 4px accent stripe on an 18px-radius card is the side-tab pattern shibroUI 0.3 now bans, and it gives no way to act.
Good
A tinted surface with an icon, the message and an underlined action link says the same thing: 5.7:1 link on light, 6.4:1 on dark.

Platform

Menus open in the top layer, never clipped by their card

Show the version of “Menus open in the top layer, never clipped by their card”
Bad
The menu lives inside a card with overflow: hidden, so only 2 of its 4 items show and the rest is cut off.
Good
Opened as a popover and placed with anchor positioning, the menu sits above its card: all 4 items show, at elevation level 2.

Commerce

A catalog list shows how many results, sorts by Featured and counts every filter option

Show the version of “A catalog list shows how many results, sorts by Featured and counts every filter option”
Bad
No result count, a sort named Popular, and a 7-option brand group with no counts and no Show more.
Good
31 results and a Featured sort, a count beside every option, the 0 option disabled, and the group collapses after 5 options with Show more.

Commerce

A catalog ends in a count and a Load more button, not endless scroll

Show the version of “A catalog ends in a count and a Load more button, not endless scroll”
Bad
Endless scroll: the list just keeps going, there is no Showing N of M and no button, the footer never comes into reach, and the URL stays /backpacks.
Good
Showing 48 of 128 with a 4px progress bar, a 44px Load 24 more button, ?page=2&sort=featured in the URL, and the footer within reach.

Commerce

Prices read in one glance: the current price is the biggest, with one saving

Show the version of “Prices read in one glance: the current price is the biggest, with one saving”
Bad
The struck $120 at 20px is bigger than the $96 at 18px and both sit under 3:1, two savings (-20% and Save $24), a $19 – $39 range, and no unit price or VAT.
Good
$96 at 22px bold, $120 struck at 14px and above 4.5:1, one Save 20%, From $19 for variants, $1.20 each for the bulk pack and incl. VAT.

Commerce

Variant pickers show what is chosen and what is unavailable

Show the version of “Variant pickers show what is chosen and what is unavailable”
Bad
22px swatches chosen by a ring near 1.5:1 with no color name, Slate and XL removed from the options, and L already selected.
Good
36px swatches with a 2px ring plus a check, Color: Navy, Slate and XL kept visible and struck with a return date, no size preselected and Select a size beside the sizes.

Commerce

The buy box answers delivery, shipping and returns above the fold

Show the version of “The buy box answers delivery, shipping and returns above the fold”
Bad
A 40px inline button, and delivery, shipping and returns tucked into a collapsed accordion below the fold.
Good
A 52px full-width Add to cart, then three one-line facts (delivery date, free-shipping threshold, returns link), all above the fold.

Commerce

The mobile add-to-cart bar appears only after the main button scrolls away

Show the version of “The mobile add-to-cart bar appears only after the main button scrolls away”
Bad
The bar is on from load, repeating the in-page button 100px above it, and with no safe-area padding its button sits under the home indicator.
Good
Once the button has scrolled off the top, a 56px bar slides in with a 40px thumbnail, $96, Navy · M and the same label, above a 34px safe-area inset.

Commerce

Review summaries filter, sort and show proof

Show the version of “Review summaries filter, sort and show proof”
Bad
4.6 from 1,284 ratings and one anonymous review: no distribution to filter by, no sort, no verified badge, no date and no Helpful.
Good
The average with a 5 to 1 histogram of filter buttons (4-star selected), a sort defaulting to Most helpful, a photos strip, and a review with title, date, Verified purchase, a 3-line clamp and Helpful (24).

Checkout

A cart line shows the variant, a stepper and a total, and Remove can be undone

Show the version of “A cart line shows the variant, a stepper and a total, and Remove can be undone”
Bad
A 40px thumbnail, no size text so both rows look identical, a bare quantity box and a 16px “×” that deletes the line at once.
Good
An 80px image, “Slate / Men’s 10”, a − 1 + stepper, a right-aligned $129.00 and text Remove and Save for later; removing shows an 8s Undo bar.

Checkout

The cart summary shows the real total before checkout starts

Show the version of “The cart summary shows the real total before checkout starts”
Bad
Subtotal $197.00 and “calculated at checkout”, a promo field left open, and a 36px Checkout button.
Good
Subtotal, $6.95 shipping with a bar toward free shipping, tax and total, an “Add a code” link, three 48px wallets, “or”, then a 52px Checkout.

Checkout

The mini-cart confirms the add and gives one clear next step

Show the version of “The mini-cart confirms the add and gives one clear next step”
Bad
A 260px popover with no highlight or subtotal, two equal filled buttons, a 3s auto-close and a header count that still says 2.
Good
A 420px drawer: “Added to cart”, the new beanie highlighted, subtotal $197.00, View cart as outline and a 48px filled Checkout, header badge 3.

Checkout

Checkout is one short path with guest first

Show the version of “Checkout is one short path with guest first”
Bad
“Create an account to check out” with 6 fields (confirm email, confirm password, required phone) and a 12px grey “Continue as guest”.
Good
“Checkout as guest” with Step 1 of 4, one email field, a “Sign in” text link and “You can create an account after you order”.

Checkout

The order summary stays in view and a changed total is shown and announced

Show the version of “The order summary stays in view and a changed total is shown and announced”
Bad
A delivery step with no summary: the total appears only on the last page, so choosing Express adds $9.95 with no sign.
Good
A 48px bar “Hide order summary, $84.20” open in place, the Shipping row $9.95 highlighted, and “Shipping changed: total is now $84.20”.

Checkout

Shipping options show the arrival date and the cost together

Show the version of “Shipping options show the arrival date and the cost together”
Bad
“Express 1-2 business days” in no order, the price in accent colour, no dates, so shoppers count days themselves.
Good
Cards run slow to fast: Standard “Fri 23 - Tue 27 Oct” Free, Express $14.95, Next day with “order by 2 pm”; Standard is preselected and costs sit right-aligned.

Checkout

Payment fields match the physical card

Show the version of “Payment fields match the physical card”
Bad
“4242424242424242” with “Digits only, no spaces”, Month and Year dropdowns, and a bare CVC field.
Good
4242 4242 4242 4242 with a brand icon, one 03 / 27 field hinted “MM / YY, as on the card”, and CVC “3 digits, back of card”.

Checkout

Placing the order is protected: the button names the amount and keeps its width

Show the version of “Placing the order is protected: the button names the amount and keeps its width”
Bad
“Place order” collapses to a 52px spinner, the review rows have no Edit, four trust badges and a terms checkbox sit around it.
Good
A full-width “Paying $84.20…” button that keeps its width, Edit on every review group, and one line: “Card details are encrypted. Don’t close this page.”

Checkout

The confirmation says what was ordered, by whom, and what happens next

Show the version of “The confirmation says what was ordered, by whom, and what happens next”
Bad
A big check and “Thank you!”, then two equal buttons: no order number, no total and no word on the receipt email.
Good
The heading names the person and order A-10293; items, total, card and delivery follow, the receipt email is masked, and Track order is the one primary action.

Sign-in

Sign-in is one narrow column with one full-width button

Show the version of “Sign-in is one narrow column with one full-width button”
Bad
A 520px form with a 36px auto-width Sign in, a 36px Google button, no Show button, and an error that says the email has no account.
Good
A 360px column: Forgot password? on the label row, Show in the field, a 48px full-width Sign in, an “or” divider, a 48px Google button and one neutral error.

Sign-in

Sign-up judges a password by length, not by composition rules

Show the version of “Sign-up judges a password by length, not by composition rules”
Bad
Four composition rules, a 16-character cap, a strength bar that only changes color, and a second Confirm password field.
Good
No composition rules and no cap below 64: live text for At least 8 characters and the breach check, and a Hide/Show button instead of a confirm field.

Sign-in

Password reset answers the same for every address and states the link’s lifetime

Show the version of “Password reset answers the same for every address and states the link’s lifetime”
Bad
The page answers No account found for an unknown address, which tells anyone which emails have accounts, and never says how long a link lasts.
Good
The same If an account exists answer for every address, with the 30 minutes lifetime and newest link only stated.

Sign-in

A code screen states the expiry, the resend wait and a backup route

Show the version of “A code screen states the expiry, the resend wait and a backup route”
Bad
Six 34x40px boxes, a separate Verify button, an always-on Resend link and no expiry or backup route.
Good
Six 48x56px boxes with an 8px gap that submit on the last digit, Code expires in 5 minutes, Resend code in 0:42 and Use a backup code.

Sign-in

Passkeys are offered once, named by device, and the password stays

Show the version of “Passkeys are offered once, named by device, and the password stays”
Bad
A card that cannot be dismissed, passkeys listed as Passkey (2) with raw timestamps and no Delete, and the password marked Removed.
Good
Sign in faster with a passkey comes once with Not now; each passkey is named by device and source with Delete, and the password stays available.

Sign-in

A session warns two minutes before it ends and keeps the draft

Show the version of “A session warns two minutes before it ends and keeps the draft”
Bad
The session ends with no warning: a Session expired screen, the unsaved draft discarded and one Sign in button.
Good
A Signed out in 2:00 dialog with Stay signed in as the one primary action and the draft saved.

Account and billing

Each settings group saves on its own, and unsaved edits are marked

Show the version of “Each settings group saves on its own, and unsaved edits are marked”
Bad
One Save changes button covers a text field and a switch, looks disabled after the edit, and nothing marks the unsaved name.
Good
The name group has an enabled Save changes, Discard and one Unsaved changes chip; the digest switch saves on toggle and says Saved.

Account and billing

Deleting a workspace sits in a danger zone, behind typing its name

Show the version of “Deleting a workspace sits in a danger zone, behind typing its name”
Bad
A red Delete sits beside Save in General and is confirmed with Are you sure? and Cancel / OK, with no consequences stated and no export.
Good
A last section with a 1px danger border names Delete workspace, lists 24 projects and 6 members, links an export, and asks for northwind-studio.

Account and billing

Notification preferences are a topics-by-channels matrix

Show the version of “Notification preferences are a topics-by-channels matrix”
Bad
7 flat switches that each repeat “Email me about…” with no grouping, no Pause all and a security switch that anyone can turn off.
Good
Rows are topics with a one-line description and 3 channel columns, each cell a switch; Pause all sits on top and Security alerts is locked on with its reason.

Account and billing

Sessions and API keys are lists you can audit and revoke

Show the version of “Sessions and API keys are lists you can audit and revoke”
Bad
Unnamed Chrome sessions with raw ISO times, and the full secret key printed in the list beside a bare Revoke.
Good
This device is tagged and listed first with place and last-active; the key is masked to fn_live_••••4f2a, and revoke names the key it removes.

Account and billing

The billing toggle states the saving and keeps both prices

Show the version of “The billing toggle states the saving and keeps both prices”
Bad
An on/off switch between bare Monthly and Yearly labels, and cards that show $8/mo with no billed total, no saving and no monthly price.
Good
A segmented Monthly / Annual control with Save 20% inside it; each card shows $8/mo beside the struck $10 monthly price, Billed $96 yearly, and one USD, excluding tax note.

Account and billing

The billing page shows plan, next charge, payment method and invoices

Show the version of “The billing page shows plan, next charge, payment method and invoices”
Bad
A plan name with Manage, a grey 8 / 10 seat meter, invoices with only a date and an amount, and nothing about the failed charge.
Good
A banner states the failed payment and the Oct 31 deadline; the card shows the next attempt and Visa ending 4242, an amber 8 of 10 meter, and invoices with status and PDF.

Account and billing

Cancelling is as easy as signing up, and says when access ends

Show the version of “Cancelling is as easy as signing up, and says when access ends”
Bad
Step 1 of 4, a 52px filled Keep my plan beside an 11px grey continue cancelling link, and no word on when access ends.
Good
One screen with an optional reason, one Pause plan offer, equal 44px Keep plan and Cancel plan buttons, and access until Nov 14, 2026 with an export link.

Content and help

Every blog card has the same thumbnail and the same slots

Show the version of “Every blog card has the same thumbnail and the same slots”
Bad
Thumbnails at 1:1, 16:9 and 4:3, and cards that drop the date, the excerpt or the category, so every card has to be decoded.
Good
Every card is 3:2 with category, a two-line title, a one or two line excerpt and Oct 14 · 6 min read, in the same order.

Content and help

The byline is one complete row, and sharing stays out of the text

Show the version of “The byline is one complete row, and sharing stays out of the text”
Bad
A plain By Maya Okafor with the date buried in the first paragraph, and a floating share stack sitting on the edge of the text.
Good
A 36px avatar, a linked name and Oct 14, 2026 · Updated Oct 21 · 6 min read in one row, then an inline share row of copy link plus two targets.

Content and help

The end of an article hands the reader on

Show the version of “The end of an article hands the reader on”
Bad
No author bio, a newsletter popup covering the last paragraph, and 8 tiny grey “you may also like” links at 12px.
Good
A two-line bio, one inline Get the checklist call to action with a single email field, and 3 related cards in the blog index pattern.

Content and help

The docs shell is three columns with a versioned header

Show the version of “The docs shell is three columns with a versioned header”
Bad
Two columns with text about 1000px wide (roughly 140 characters a line), no version, no shortcut hint, no contents rail and no Previous/Next.
Good
Columns of 260 / 720 / 220px, a v3.2 latest selector, a / hint in the search, Previous/Next with page titles and a last-updated date.

Content and help

Callouts come in four types, each with its own icon and label

Show the version of “Callouts come in four types, each with its own icon and label”
Bad
Four callouts with the same info icon and no labels, told apart by blue, green, amber and red alone, one of them 4 sentences long.
Good
Note, Tip, Warning and Danger each have their own icon shape, a bold label, a 4px rule and one or two sentences, with text at 4.5:1 or better.

Content and help

A help article ends with feedback and a way to reach a person

Show the version of “A help article ends with feedback and a way to reach a person”
Bad
Two 22px grey thumbs with no words and no follow-up, no related articles, and a 12px grey Support link with no context.
Good
Yes and No buttons, one What were you trying to do? field after No, the updated date, 3 related articles and a Contact support row that names the article.

Content and help

The help center home is search, categories and a way to reach us

Show the version of “The help center home is search, categories and a way to reach us”
Bad
A 220px search, 12 bare category links in three columns, no popular articles, and no way to reach a person.
Good
A full-width search, 6 cards with icon, one-line description and article count, 5 popular articles, and a contact card with hours and Replies in about 4 hours.

Content and help

The contact page is a short form with real alternatives

Show the version of “The contact page is a short form with real alternatives”
Bad
7 fields with a required phone, no reply time, no email or phone alternatives, and a 40px chat launcher sitting on the cookie banner’s Accept button.
Good
Three fields, We reply within 1 business day above the button, email, phone with hours and an address beside the form, and a 56px chat launcher clear of the banner.

Content and help

Email signup says what you get, how often, and what happens next

Show the version of “Email signup says what you get, how often, and what happens next”
Bad
A 32px field with a Submit button, no frequency or promise, and a bare Thanks! afterwards that says nothing about confirming.
Good
A 44px field and Get the weekly digest on one row, One email every Friday plus a privacy link underneath, and Check your inbox naming the address and the next click.

Display and media

Accordion headers are 48px headings over padded panels

Show the version of “Accordion headers are 48px headings over padded panels”
Bad
A 34px header row, 6px of padding around the open panel’s text, and a second accordion nested inside it.
Good
Each header is a button alone in an h3, a full-width 52px row, over a panel with 20px of padding and no nesting.

Display and media

A summary list has a fixed label column and a Change link at the far right

Show the version of “A summary list has a fixed label column and a Change link at the far right”
Bad
Bold “Label:” prefixes run into each value, four Edit links sit at four different x positions, and the empty phone row is blank.
Good
A 160px muted label column, hairline rows, Change pinned to the far right, and “Not provided” with an Add action for the empty phone.

Display and media

Ratings read as text and are entered with 44px targets

Show the version of “Ratings read as text and are entered with 44px targets”
Bad
12px yellow stars at 1.6:1 on white (1.4:1 on the track) with only “(1,284)”, and a 20px input row with no word for the choice.
Good
18px amber stars at 5.0:1 on white (3.9:1 on the track) beside “4.6 out of 5 (1,284 reviews)”, and 44px input targets with the choice written out.

Display and media

An activity feed groups by day and ages its timestamps

Show the version of “An activity feed groups by day and ages its timestamps”
Bad
Colored dots with no icon, a full timestamp with seconds on every row, and one unbroken list with no day grouping.
Good
Day headings, 24px icons with a check or cross, “12 minutes ago” for the first 7 days, and a Load earlier activity button.

Display and media

Count badges hide at zero, and avatar stacks say how many more

Show the version of “Count badges hide at zero, and avatar stacks say how many more”
Bad
Eight faces crushed together at 50% overlap with no ring, a 0 badge on the bell, and 142 stretching the cart badge.
Good
Five 36px faces at about 18% overlap with a 2px ring, initials fully visible, and a +3 button; the bell shows no badge at 0 and the cart caps at 99+.

Display and media

A lightbox is a dark dialog with a counter, a caption and big controls

Show the version of “A lightbox is a dark dialog with a counter, a caption and big controls”
Bad
A 45% scrim lets the page grid compete, the image runs flush to the edges, the close button is 20px, and there is no counter or caption.
Good
An 88% scrim, the image inset 24px with a caption, a “3 / 12” counter, and 44px close and arrow buttons.

Display and media

A video starts as a poster with a duration, and its controls are reachable

Show the version of “A video starts as a poster with a duration, and its controls are reachable”
Bad
It autoplays with sound on, the seek bar is 3px high, the icons are 14px, and there is no captions button.
Good
A poster with a 2:41 duration badge, a 24px seek target, a CC button, 32px controls, and sound only after a click.

Display and media

KPI tiles carry a signed delta against a named period

Show the version of “KPI tiles carry a signed delta against a named period”
Bad
Three tiles showing 12.4%, 3.1% and 0.4% in green and red only, with no sign, arrow or comparison period, and one date dropdown that states no range.
Good
Equal-height tiles with “▲ +12.4% vs previous 30 days”, “▼ −0.4 pts” in green for churn, a sparkline each, 7d/30d/90d presets and the range with its time zone under the title.

Advanced inputs

A verification code opens a digit pad with a Done key

Show the version of “A verification code opens a digit pad with a Done key”
Bad
A 6-digit code in a default text field: the full letter keyboard opens, the action key says return, and the SMS code is not offered.
Good
inputmode="numeric", autocomplete="one-time-code" and enterkeyhint="done": a digit pad with a Done key, and the SMS code offered above it.

Advanced inputs

The keyboard never covers the focused field or the Pay button

Show the version of “The keyboard never covers the focused field or the Pay button”
Bad
The keyboard covers the bottom of the focused Card number field and the whole fixed Pay $48.00 bar.
Good
The page scrolls so Card number sits 16px above the Pay bar, and the bar rides directly on top of the keyboard.

Advanced inputs

A character counter counts and never blocks the paste

Show the version of “A character counter counts and never blocks the paste”
Bad
A 287-character paste into maxlength="280": 7 characters vanish mid-sentence and the counter reads a calm grey 280/280.
Good
The whole paste is kept, the last 7 characters are tinted, and the border and a 14px counter turn red with an icon: You have 7 characters too many.

Advanced inputs

A phone field takes what is typed and says why it is asked

Show the version of “A phone field takes what is typed and says why it is asked”
Bad
A US-style mask with no country picker: pasting +44 7700 900982 becomes (440) 770-0900 and fails with Enter a valid phone number.
Good
A searchable GB +44 country picker and a free 20ch field holding 07700 900982 as typed, with the hint We only text you about delivery. Optional.

Advanced inputs

A stepper has 44px buttons, a typeable value and limits that say why

Show the version of “A stepper has 44px buttons, a typeable value and limits that say why”
Bad
Two 28px buttons around a static number: − and + look active at the 10-item cap and silently do nothing.
Good
Two 44px buttons around a typeable value; + is greyed at 10 and the helper says Max 10 per order.

Advanced inputs

A range slider shows its values and takes typed numbers

Show the version of “A range slider shows its values and takes typed numbers”
Bad
Two 12px thumbs and only $0 and $500 at the ends: the selected range cannot be read or typed.
Good
Two 24px thumbs with 44px hit areas, a live $40 – $220 in two number inputs above the track, and $0 and $500 at the ends.

Advanced inputs

A range calendar reads as one band, with booked days explained

Show the version of “A range calendar reads as one band, with booked days explained”
Bad
A 28px-cell calendar where each chosen day is a separate dot, booked 9–10 Dec look like open days, and the month buttons are 24px.
Good
One continuous band from 17 to 22 Dec on 40px cells with filled end days, 9–10 Dec struck through with fully booked, and 36px month buttons.

Advanced inputs

Recipient chips wrap, refuse duplicates and keep a 24px remove target

Show the version of “Recipient chips wrap, refuse duplicates and keep a 24px remove target”
Bad
One clipped line of 24px chips with 12px remove targets, the same address accepted twice, and the typing area pushed out of view.
Good
Four 32px chips wrap onto new lines with 24px remove buttons, the cursor sits beside them, [email protected] is already added and 4 of 5 recipients.

Advanced inputs

Inline editing looks like text and edits like a field

Show the version of “Inline editing looks like text and edits like a field”
Bad
The title has a pencil only on hover; clicking swaps it for a default 14px input with the text shifted and nothing to confirm or cancel.
Good
A visible 32px pencil; editing keeps the 22px title exactly in place with a 2px ring, and a tick and cross follow the field.

Advanced inputs

A rich-text toolbar is grouped, shows pressed states and holds 8 to 12 controls

Show the version of “A rich-text toolbar is grouped, shows pressed states and holds 8 to 12 controls”
Bad
Eighteen ungrouped 24px icon buttons in one dense strip, no pressed state on Bold, and nothing to tell the groups apart.
Good
Eight 36px buttons in three hairline-divided groups (style, lists, insert) plus a More button, with Bold shown as pressed.

Feedback and errors

Inline messages, banners and announcement bars have different jobs

Show the version of “Inline messages, banners and announcement bars have different jobs”
Bad
Three 36px strips in the same blue with the same icon; the payment failure has a × and can be hidden while it is still true, and the card error sits in a banner far from its field.
Good
A 36px announcement bar with a ×, one non-dismissible warning banner with Update card, and a 1-line error with its own octagon icon directly under the card field.

Feedback and errors

Copy and share actions confirm in place

Show the version of “Copy and share actions confirm in place”
Bad
The Copy button never changes, and a “Link copied to clipboard” toast appears in the far corner, away from the thing just pressed.
Good
The 104px button turns into Copied with a check for about 2s and returns to Copy at the same 104px; the URL stays visible and selectable.

Feedback and errors

Autosave shows state quietly and fails loudly

Show the version of “Autosave shows state quietly and fails loudly”
Bad
A failed save is 11px grey text at about 2.5:1 in the header with no Retry, so the person keeps writing into a document that is not being saved.
Good
13px “Not saved” in the warning color, plus a persistent bar under the header: Could not save. Retrying in 4s. with Retry and a note that a copy is kept on this device.

Feedback and errors

Offline states keep content and queue changes

Show the version of “Offline states keep content and queue changes”
Bad
A “No internet connection” modal covers all 3 cached inspections behind a dark scrim and offers only Retry.
Good
A grey status banner, the list still readable, the edited row marked Pending sync, and Upload photos disabled with “Needs a connection” beside it.

Feedback and errors

404 pages say what happened and give a way out

Show the version of “404 pages say what happened and give a way out”
Bad
Status 200 with the shop’s normal title, a 56px “Oops! 404” with no header or footer, and one Go back button.
Good
Status 404, title “Page not found”, the full site header and footer, and four labelled links to Home, Shop, Delivery and Support.

Feedback and errors

Server errors are honest and carry a reference

Show the version of “Server errors are honest and carry a reference”
Bad
“Oops! Something went wrong.” with no cause, no word on the cart and no next step, above a stack trace that lists 3 file paths.
Good
One plain statement that it’s on our side, the cart is saved, Try again and Status page, and a req_8f3a1c92 · 20 Oct 2026, 14:07 UTC box with Copy ID.

Feedback and errors

Access errors say how to get in

Show the version of “Access errors say how to get in”
Bad
A bare “403 Forbidden” with no owner, no way to ask for access, and no sign of which account is signed in.
Good
Names the owner, offers Request access with an optional note and Switch account, and shows “Signed in as [email protected]”.

Feedback and errors

Live data shows how fresh it is and updates without jumping

Show the version of “Live data shows how fresh it is and updates without jumping”
Bad
A new order is inserted live at the top: the row being read jumps down 48px, and nothing says how old the data is.
Good
“Updated 2 min ago” with a Refresh button and a “3 new orders” pill; the list stays still, with 0px shift under the reader, until the pill is pressed.

Feedback and errors

Surveys appear once, late and small

Show the version of “Surveys appear once, late and small”
Bad
A centered modal on load with a 0-10 scale, a text box and a 12px close, dimming the report and its Export button.
Good
After the export finishes, a 340px bottom-left card asks “How easy was exporting this report?” with a 5-point scale of 44px buttons and a 44px dismiss; Export stays clear.

Onboarding and notifications

The setup checklist is short, shows progress and can be hidden

Show the version of “The setup checklist is short, shows progress and can be hidden”
Bad
“Getting started” lists 9 noun-phrase topics, none checked, with no count, no bar and no way to hide it.
Good
Five verb-object steps with 1-2 min each, “Create your account” already checked, 2 of 5 done over a 6px bar, and Hide checklist with a way back from Help.

Onboarding and notifications

A product tour is short, lights up the real control and can be skipped

Show the version of “A product tour is short, lights up the real control and can be skipped”
Bad
A 400px popover floats mid-screen over an 88% scrim with no cut-out, reads “Step 2 of 11” and offers Next only.
Good
A 300px popover with an arrow sits under the lit-up Invite button over a 60% scrim, with “Step 2 of 4”, Skip tour, Back and Next.

Onboarding and notifications

Ask for notifications after a tap, with a one-sentence pre-prompt first

Show the version of “Ask for notifications after a tap, with a one-sentence pre-prompt first”
Bad
The browser’s own “wants to show notifications” prompt opens at 0 s on page load, before any tap, with Block and Allow as equals.
Good
After the reader taps Follow Ferries, an in-page card gives one benefit in 1 sentence with 2 buttons, Allow notifications and Not now; the browser prompt comes only after a yes.

Onboarding and notifications

Notification bells cap their count, hide it at zero and name it

Show the version of “Notification bells cap their count, hide it at zero and name it”
Bad
A 28px button with a 14px badge sitting on the glyph, “127” overflowing it, a “0” badge on Invites, and no accessible name.
Good
A 24px bell in a 44px button, a 20px badge offset by -7px that caps at “99+”, no badge at zero, and the name “Notifications, 127 unread”.

Onboarding and notifications

The notification panel groups by day, names the actor and links onward

Show the version of “The notification panel groups by day, names the actor and links onward”
Bad
4 rows that all read “New comment on a document you follow”, each with a grey placeholder icon, no actor, no time, and read looking the same as unread.
Good
A 400px panel with Mark all as read, All / Unread / Mentions tabs, Today and Earlier groups, 36px avatars, an unread dot plus tint, relative time and View all notifications.

Onboarding and notifications

Relative time follows one ladder, with the full date on hover

Show the version of “Relative time follows one ladder, with the full date on hover”
Bad
One feed mixes 5 strings: “0 seconds ago”, “1 minutes ago”, “180 minutes ago”, “1 days ago” and a raw ISO timestamp.
Good
Just now, 5 min ago style minutes, 3 h ago, Yesterday, a weekday for 2-6 days and “Oct 12” from 7 days on; hovering the date shows “Mon, Oct 12, 2026 at 2:03 PM”.

Collaboration

Chat groups messages by sender and keeps who said what obvious

Show the version of “Chat groups messages by sender and keeps who said what obvious”
Bad
Every message repeats the avatar, name and time, and every bubble runs 100% wide in one grey, so who said what lives only in the small header.
Good
Two Maya messages share one header, bubbles stop at 72% of the thread, Priya’s sit right in the accent fill with Read 10:04, and Today heads the thread.

Collaboration

The message field grows to the whole reply, with a 44px Send clear of the home bar

Show the version of “The message field grows to the whole reply, with a 44px Send clear of the home bar”
Bad
A one-line field clips the reply to its first words, Send is a 28px bare icon, and the home indicator is drawn over the controls.
Good
The field grows to 3 lines showing the whole reply, Send is a 44px filled button, and 34px of bottom padding clears the home indicator.

Collaboration

Comment threads nest two levels and keep Reply and Like in view

Show the version of “Comment threads nest two levels and keep Reply and Like in view”
Bad
Five levels at 32px each squeeze the deepest reply into a ~180px column with 3-line wraps, and no Reply or Like is visible.
Good
Two levels with the third reply flattened under @Tomás, Hide 2 replies, a visible Reply · Like 12 · ⋯, a Top and Newest sort and Show 21 more comments.

Collaboration

Slot pickers name the viewer’s time zone and show 44px AM/PM times

Show the version of “Slot pickers name the viewer’s time zone and show 44px AM/PM times”
Bad
Six 28px chips read “9:00 9:30 10:00” with no AM/PM, no zone and no length, so “10:00” could be anyone’s.
Good
The earliest open day is selected, the heading says 30 min, Times in Berlin (CEST) sits beside Change, and six 44px slots in two columns carry AM/PM.

Collaboration

A booking confirmation shows both time zones, a calendar link and the way out

Show the version of “A booking confirmation shows both time zones, a calendar link and the way out”
Bad
A big check, “You’re booked!” and Wed 21 Oct, 10:00 with no zone, no place, no calendar link and a single Done button.
Good
Your time is 10:00 AM Berlin (CEST) and theirs 4:00 AM New York (EDT), with Add to calendar (Google, Outlook, .ics), Reschedule and Cancel, and Free to change until Tue, Oct 20, 10:00 AM.

Collaboration

A photo upload crops on the face, previews at 96px and states its limits

Show the version of “A photo upload crops on the face, previews at 96px and states its limits”
Bad
An automatic centre-crop cuts the face in half, there is no zoom, no preview, no limits shown, and Save is the only choice.
Good
A draggable circle sits on the face with a zoom slider and a live 96px preview; PNG or JPG, up to 5 MB is stated, with Save photo, Cancel and Remove photo.

Collaboration

Selected files show a checkmark and outline, and a bar says how many

Show the version of “Selected files show a checkmark and outline, and a bar says how many”
Bad
Three selected files are only a faint tint: no checkbox, no count, and the toolbar unchanged, so nothing says what Delete would hit.
Good
Checked tiles get an accent outline and a checkmark, a 44px bar reading 3 selected with Move, Download and Delete replaces the toolbar, and the next tile shows its checkbox on hover.

Collaboration

Sortable lists have a handle, a drop line, and a menu path for every drag

Show the version of “Sortable lists have a handle, a drop line, and a menu path for every drag”
Bad
Rows have no handle and no drop line, the dragged row is removed so the list jumps up 52px, nothing is announced, and the menu offers only Edit, Duplicate and Delete.
Good
A 44px 6-dot handle, a 2px accent line between rows 3 and 4, a dimmed placeholder in row 2, a lifted preview with a shadow, an announcement, and Move up / Move down in the menu.

Search and navigation

The results page says what was searched and how many matched

Show the version of “The results page says what was searched and how many matched”
Bad
An h1 of “Search results”, an empty field, no count and no scope chips, so 128 matches look like any list.
Good
The heading reads 128 results for “jacket”, the query stays in the field, four scope chips carry counts, and matched words are bold.

Search and navigation

A no-results page offers a fix, a broader search and somewhere to go

Show the version of “A no-results page offers a fix, a broader search and somewhere to go”
Bad
“No results found” and 3 generic tips (spelling, general words, fewer keywords) with 0 links to click.
Good
The heading names rain jaket; Did you mean rain jacket? reruns it for 214 results, 4 category chips and 3 popular products follow.

Search and navigation

Autocomplete bolds the predicted text and never scrolls

Show the version of “Autocomplete bolds the predicted text and never scrolls”
Bad
The typed run is bold and the useful rest is plain, and the list stops at 6 rows with its own scrollbar while 8 suggestions exist.
Good
All 8 rows at 34px show with no scrollbar, the predicted remainder is bold, and the highlighted row is already copied into the field.

Search and navigation

Pagination says where you are and never ends in an ellipsis

Show the version of “Pagination says where you are and never ends in an ellipsis”
Bad
Pages 1 to 9 then a trailing “…”, no Next, and page 5 marked only by a darker blue in 32px targets.
Good
‹ Previous, 1 … 4 [5] 6 … 20 and Next › in 40px controls, page 5 filled, with Page 5 of 20 under the row.

Search and navigation

Languages are named in their own words, without flags

Show the version of “Languages are named in their own words, without flags”
Bad
Country flags with English names (“German”, “French”), where one flag stands for a whole language.
Good
English, Deutsch, Français and 日本語 each in their own language, no flags, the current one checked, and the region and currency set apart.

Search and navigation

The account menu has a fixed anatomy at the end of the header

Show the version of “The account menu has a fixed anatomy at the end of the header”
Bad
A 24px avatar before the icons, a 170px menu with Sign out first, and nothing to say who is signed in.
Good
A 32px avatar in a 44px target at the far right, a 260px menu with name and email first, and Sign out last after a divider.

Consent and trust

No pre-ticked extras, hidden fees or shaming declines

Show the version of “No pre-ticked extras, hidden fees or shaming declines”
Bad
A pre-ticked $4.99 cover, a $6.00 fee in 11px type outside the total, and a decline in 11px grey at about 2.1:1.
Good
The $4.99 cover is not selected, No thanks is an equal 44px button beside Add cover, and the first total, $25.99, already includes the $6.00 fee.

Consent and trust

Popups wait for engagement and leave the page and chat alone

Show the version of “Popups wait for engagement and leave the page and chat alone”
Bad
A full-page email modal on load with a 12px ×, and a 40px chat bubble sitting on the shipping bar.
Good
After about 50% scroll, a 320px non-modal corner card with a 44px close, and a 56px chat bubble 16px above the shipping bar.

Whole screens

The two scripts that grade a screen run in any browser. Run them here on the dashboard the eval started from and on a clean one, and see what each reports in every state.

Run the checks on a dashboard

Dashboard to check

The broken dashboard is measured in 5 states: default, more menu open, alerts tab open, details open, export dialog open.

The clean dashboard is measured in 4 states: default, alerts tab open, details open, export dialog open.

Running the scripts needs JavaScript. You can read them as plain files: page-map.js and audit.js.

The eval, side by side

A cluttered analytics dashboard: a purple upgrade banner, five rainbow-colored buttons, four bright metric cards in four colors and a dark sidebar.
The input: the broken dashboard
A calm analytics dashboard with a light sidebar, four white metric cards, a blue bar chart and an activity list. Export is the filled blue button.
Redesigned with v1 (component rules only)
A calm analytics dashboard with a grouped sidebar, one white metrics panel, a blue bar chart and an activity list. Create report is the filled blue button.
Redesigned with v2 (screen layer added)

Both redesigns look clean, so the gap you can see is smaller than the gap in the scores: 16 of 16 checks for v2 against 9 of 16 for v1 on this dashboard. What v2 adds is one consistent visual system and the right primary action. v1 made Export the filled button; v2 made Create report the one.

Treat the score with care. The grader is v2’s own page-map.js and audit.js, so the fair reading is that v2 reliably ships a consistent system, not that a neutral judge preferred it. Each configuration ran once, and v2 took about 40% longer. The full table is in evals/RESULTS.md.

Check a color pair

This is the math behind shibroUI’s contrast.mjs, running in your browser: the WCAG 2 contrast ratio, checked against AA and AAA for normal and large text. When a pair falls short, the fix keeps your color’s hue and changes only its lightness in OKLCH, so the result still looks like your color.

Your colors

Checking your own pair needs JavaScript. The numbers beside this are for the default pair.

Colors to check

Result

Contrast ratio3.20:1

Normal text fails AA. Large text passes AA. UI and non-text pass.

Verdict for each WCAG contrast level
CheckNeedsVerdict
Normal text, AA 4.5:1 Fail
Normal text, AAA 7:1 Fail
Large text, AA 3:1 Pass
Large text, AAA 4.5:1 Fail
UI and non-text 3:1 Pass

Nearest passing color

#7276824.54:1

Same hue as your text color; only the lightness moved, in OKLCH.

All 361 rules

Every rule has an id that findings cite, and most carry the numbers that separate bad from good.

Area

Typography SU-1–17

  1. SU-1

    Type scale. Choose sizes from a small, deliberate scale and map each role to one step.

  2. SU-2

    Readable fonts. The text face must stay legible at the size it's actually rendered.

  3. SU-3

    Font smoothing. Leave rasterization to the browser unless a tested, local override helps.

  4. SU-4

    Baselines. Align mixed text sizes on their shared baseline, not their centers.

  5. SU-5

    Line height. Match leading to the font, size and line length.

  6. SU-6

    Descriptive links. Link text names its destination.

  7. SU-7

    Text alignment. Align prose to its reading direction and avoid justified gaps.

  8. SU-8

    Letter spacing. Tighten large display text slightly and give short all-caps labels more room.

  9. SU-9

    Obvious links. Links inside running text must look clickable without relying on color alone.

  10. SU-10

    Clear characters. Make look-alike glyphs distinct in identifiers.

  11. SU-11

    Contextual punctuation. Let punctuation adapt to its neighbours.

  12. SU-12

    Headings. text-wrap: balance, giving lines of similar length.

    Not: natural wrapping leaves a lopsided last line that can strand a single word, so the title looks broken.

  13. SU-13

    Descriptions. Balanced / pretty wrap: 6 words on the last line, normal spacing.

    Not: natural wrap: 2 words on the last line, with stretched spacing.

  14. SU-14

    Long links. An even break that stays inside the container.

    Not: a URL breaks with a few characters stranded on the last line. Worse, it overflows the box.

  15. SU-15

    Line length. Long-form copy runs at about 60–75 characters per line.

  16. SU-16

    Tabular numbers. Numbers that change or get compared use equal-width (tabular) digits.

  17. SU-17

    Typographic alignment (tables). Names align to their reading edge (left), comparable amounts align right (or on the decimal), and headings follow their column.

Layout & hierarchy SU-18–203

  1. SU-18

    Breathing room. Start spacious, then tighten until related content feels connected.

  2. SU-19

    Input width. Size each field for the value people type, not the space available.

  3. SU-20

    Content-sized columns. Size fixed-content columns by what they hold, then let the main area flex.

  4. SU-21

    Scale by role. Heading, body and padding scale independently, never as one zoomed unit.

  5. SU-22

    Clear groups (proximity). Related items sit closer together than separate groups.

  6. SU-23

    Section separators. Use a quiet divider when adjacent sections need a visible boundary.

  7. SU-24

    Importance. Important information gets more emphasis than supporting details.

  8. SU-25

    Beyond size. Keep a restrained size range and show importance with weight and color.

  9. SU-26

    Action focus (de-emphasize). Quiet the competing elements before making the main one louder.

  10. SU-27

    Labels & data. Let self-explanatory data stand alone, and keep labels that are needed.

  11. SU-28

    Heading roles. The element sets structure and the class sets size.

  12. SU-29

    Action priority. Style actions by importance in this context, not by their meaning.

  13. SU-30

    Button padding with an icon. 14px on the icon side, 18px on the text side.

    Not: 18px / 18px with a leading icon: the content looks shifted right.

  14. SU-31

    Icon balance (play triangle). Nudged ~1.5px toward the point on a 24px icon (translateX(6%)).

    Not: a geometrically centered triangle looks left-heavy.

  15. SU-32

    Icon area. Square 43px, circle 48px (~10% smaller).

    Not: a square and a circle both 48px: the square looks bigger.

  16. SU-33

    Color weight. Icons at ~82% strength, text at 100%.

    Not: solid icons and text both at 100% ink: the icons look heavier than the words.

  17. SU-34

    Glyph overshoot. Round shapes overshoot ~1px top and bottom (at ~40px).

    Not: round shapes exactly the height of flat ones look short.

  18. SU-35

    Case scale. Caps 40px vs mixed case 44px (~90%).

    Not: DESIGN and Design both 44px: the caps look bigger.

  19. SU-36

    Button label vertical centering. Caps label 1px down, descender-heavy label 1px up (at ~14px).

    Not: geometric centering: an ALL-CAPS label looks high, a label with descenders looks low.

  20. SU-37

    Letter alignment (overhang). Both overhang the edge by ~2px at display sizes.

    Not: a round "G" and a pointed "T" exactly on the margin look indented.

  21. SU-38

    Hanging marks. The quote hangs fully outside, so the words align on every line.

    Not: an opening quote inside the text block pushes the first word inward.

  22. SU-39

    Weight colour. Thin text ~10% darker (on light surfaces) than the bold.

    Not: thin and bold text in the same color: the thin text looks faint.

  23. SU-137

    Centered content (labels in pills, highlights behind labels). Content meant to be centered in a control is centered to within about 2px. A separately drawn selection highlight (a segmented-control or tab pill) is centered on the item it marks.

  24. SU-203

    Control rows keep one rhythm. Items in a control row (segmented controls, tab bars, toolbars, pagination, chip rows) have equal gaps between them, to ±1px. Segments are either equal-width with centered labels, or content-hugging with equal padding, never a mix. Flanking controls (‹ › chevrons, a trailing icon) sit at the same distance from the group on both sides. A selected pill has the same inset from its track on every side.

Color & contrast SU-40–49

  1. SU-40

    Palette roles. Build neutral, primary and semantic families, not isolated swatches.

  2. SU-41

    Shade scale. Choose a base, a lightest and a darkest shade, then fill the steps (e.g. 50/100…900).

  3. SU-42

    Rich tints. Re-tune saturation (and maybe a small hue shift) at the light and dark ends.

  4. SU-43

    Visual distinction (charts). Distinguish chart series with direct labels and stroke patterns, not color alone.

  5. SU-44

    Input contrast. The field surface must differ visibly from the surface it sits on.

  6. SU-45

    Text contrast. Normal text ≥ 4.5:1, aiming for 7:1. Large text (≥24px, or ≥18.66px bold) ≥ 3:1.

  7. SU-46

    Button contrast. The label must reach ≥ 4.5:1 against the button fill.

  8. SU-47

    Text on color. Secondary text on a colored surface uses an opaque, lighter tint of that surface's hue.

  9. SU-48

    Readable color (status badges). When a solid fill is too loud or fails contrast, flip it: dark text on a pale tint of the same hue.

  10. SU-49

    Text over images. Control the image behind the text, not just the text color.

Forms & controls SU-50–154

  1. SU-50

    Clickable labels. The whole radio/checkbox label row toggles the control.

  2. SU-51

    Label selection. Short option labels shouldn't select text when clicked or dragged.

  3. SU-52

    Recognizable buttons. The main form action has a familiar button shape and an explicit label.

  4. SU-53

    Wrapped labels. A checkbox aligns with the *first line* of a long label.

  5. SU-54

    Search over scrolling. Let people type to narrow long option lists.

  6. SU-55

    One-column choices. A short checkbox list goes in one column.

  7. SU-56

    Value clarity. Show a slider's current value where people can see it while adjusting.

  8. SU-57

    Comparable options. Make familiar controls richer without losing their behavior.

  9. SU-58

    Search. Both 40px.

    Not: a 32px input next to a 40px button.

  10. SU-59

    Pagination. All 40px.

    Not: previous 40px, numbers 32px, Next 46px.

  11. SU-60

    Action toolbar. All 40px, regardless of variant.

    Not: filled 40px, outlined 32px, icon 46px.

  12. SU-148

    Every field has a visible, persistent label. A label sits above each field. Hints and format examples sit between the label and the field, linked with aria-describedby. The placeholder holds an example at most, never the label.

  13. SU-149

    Mark the exception. When most fields are required, mark the optional ones "(optional)". Otherwise mark the required ones with text, or an asterisk explained once. Use required in code either way. The marker is text at ≥ 4.5:1.

  14. SU-150

    Validate when the person is done, and keep submit enabled. Validate a field on blur once it's been touched, and always on submit. On input, re-validate only to *clear* an error. Never show errors on untouched fields or while someone is still typing. Style errors with :user-invalid or [aria-invalid="true"], never bare :invalid. Don't disable the submit button to signal invalid input. Let it submit, then explain.

  15. SU-151

    Inline errors are text, next to the field, and linked. The message sits between the label and the field, or directly under the field. It uses an icon plus text in the danger color (≥ 4.5:1). The field gets a 2px danger border (≥ 3:1), aria-invalid="true" and aria-describedby pointing at the message. The message says what's wrong and how to fix it (SU-180).

  16. SU-152

    An error summary on submit. On a multi-field form, any error on submit shows a summary above the form ("There is a problem", or Polaris-style "To save this product, make 2 changes"). It lists each error as a link to its field, in the same words as the inline message. Focus moves to it, and the page title gets an "Error: " prefix. A single-field form just focuses the field.

  17. SU-153

    Help the browser help the person. Use the right type, inputmode and autocomplete token (email, tel, given-name, postal-code, current-password, new-password, one-time-code). Never block paste or password managers. Split code boxes accept a pasted code. Use inputmode="numeric" rather than type="number", and spellcheck="false" on names, emails and codes.

  18. SU-154

    Keep what people typed, and don't ask twice. An error never clears valid fields. Multi-step forms show progress (step *n* of *m*) and prefill earlier answers ("Same as shipping address"). High-stakes submits (payment, legal, deletion) get a review step or Undo (WCAG 3.3.4, 3.3.7).

Targets, focus & status SU-61–71

  1. SU-61

    Icon targets. 44px minimum · 48px comfortable · 52–56px roomy. The icons stay 24px.

    Not: a 24×24 hit area, the same as the icon.

  2. SU-62

    Button targets. The hit area extends to ≥ 44px tall (48 comfortable) while the button looks unchanged.

    Not: the hit area equals the visible 104×40 button, so presses just past the edge miss.

  3. SU-63

    Target spacing. ≥ 8px minimum · 12px comfortable · 16px roomy · 20px spacious (it needs a wider row).

    Not: 48px buttons touching with a 0px gap.

  4. SU-64

    Target coverage. The whole button plus an extra margin catching near-misses.

    Not: only part of the button responds (e.g. only the label text is the link).

  5. SU-65

    Close buttons. A 44×44 hit area (icon still 16px) about 8px from the edge.

    Not: a 16×16 hit area tucked 22px from the corner.

  6. SU-66

    Room to swipe. A 44px swipe strip below the cards, so the names stay visible.

    Not: the swipe zone sits on the card names, so your finger hides them.

  7. SU-67

    Touch visibility. Choices below the preview, result in view.

    Not: color choices above the preview: your hand covers the result.

  8. SU-68

    Edge navigation. Full-height edge zones 48px wide (arrow still 16px).

    Not: a small 24px arrow is the only way to change the image.

  9. SU-69

    Room to click. A 12px gap between the hit areas.

    Not: cancel and Request look separate, but their padded hit areas overlap by 2px.

  10. SU-70

    Focus visibility. A focus ring at least 2px wide with a visible offset.

  11. SU-71

    Status signals. Status = color + icon + label.

Motion & response SU-72–92

  1. SU-72

    Action feedback. Pressed scale 0.95–0.98 for about 200ms (buttons, bookmark toggles, chips).

  2. SU-73

    Toggle feedback. Pressed scale 0.95–0.98 for about 200ms (buttons, bookmark toggles, chips).

  3. SU-74

    Selection feedback. Pressed scale 0.95–0.98 for about 200ms (buttons, bookmark toggles, chips).

  4. SU-75

    Sidebar. Reversible motion follows the current visible state.

  5. SU-76

    Bottom sheet. Reversible motion follows the current visible state.

  6. SU-77

    Popover. Reversible motion follows the current visible state.

  7. SU-78

    Squash & stretch. A brief squeeze to 1.058 × 0.945 over 220ms, then back.

    Not: a rigid button (1 × 1): the press has no visible response.

  8. SU-79

    Anticipation. An icon plus "Release to refresh" appears once the pull passes the real threshold.

    Not: pull-to-refresh with no cue for when letting go will refresh.

  9. SU-80

    Clear motion paths (key poses). A clean 0% → 50% → 100% path over 340ms.

    Not: the task card tilts −8° → +7° and wanders on its way to Done.

  10. SU-81

    Follow through & overlap. Folder 240ms; rows settle at 340–460ms, staggered just after it.

    Not: the files snap in (0ms) while the folder is still opening.

  11. SU-82

    Slow in & slow out (easing). 240ms cubic-bezier(.645,.045,.355,1).

    Not: 240ms linear: the indicator starts and stops abruptly.

  12. SU-83

    Arcs. A small arc over 360ms.

    Not: the item flies in a rigid straight line from "Add to bag" to the bag.

  13. SU-84

    Feedback without distraction (secondary action). A 16px check next to the message over 240ms, then it settles.

    Not: an 80px check over 650ms covers the message you just sent.

  14. SU-85

    Timing. 140ms in and 100ms out.

    Not: a tooltip at 600ms in and 600ms out: a simple check feels slow.

  15. SU-86

    Noticeable errors (exaggeration). A ±4px shake over 240ms, once.

    Not: a ±36px shake over 700ms: the error becomes hard to read.

  16. SU-87

    Readable flips (solid drawing). A 3D turn with perspective, transform-style: preserve-3d and backface-visibility: hidden, so each face reads correctly.

    Not: a flat flip shows mirrored text on the back.

  17. SU-88

    Consistent feedback (appeal). Every checkbox shares the same small, quick response.

    Not: each checkbox reacts differently: spin, slow fade, snap.

  18. SU-89

    Responsive gesture. It follows the pointer immediately from the grab point.

    Not: the swipe handle ignores the first 80px, then jumps to catch up.

  19. SU-90

    Cancelable gesture. It's dismissed on release past the threshold, and pulling back cancels.

    Not: the notification is dismissed mid-drag, before you let go.

  20. SU-91

    Continuous gesture. The drag continues anywhere until release.

    Not: the slider stops tracking when your held pointer drifts off the track.

  21. SU-92

    Responsive feedback (instant selection). The highlight changes instantly (or animates in under ~100ms without delaying the state).

    Not: the selection highlight slides and trails behind fast clicks.

Surfaces, depth & images SU-93–107

  1. SU-93

    Card + image. Inner radius = max(0, outer radius − padding).

  2. SU-94

    Input + button. Inner radius = max(0, outer radius − padding).

  3. SU-95

    Dropdown + header. Inner radius = max(0, outer radius − padding).

  4. SU-96

    Nav + highlight. Inner radius = max(0, outer radius − padding).

  5. SU-97

    Alert + badge. Inner radius = max(0, outer radius − padding).

  6. SU-98

    Tabs + selection. Inner radius = max(0, outer radius − padding).

  7. SU-99

    Base surface. Level 0, a flat quiet grid that leaves higher layers free to stand out.

    Not: resting cards at level 4: heavy shadows make everything compete.

  8. SU-100

    Dropdown layer. Level 2.

    Not: a level 0 menu that looks like part of the page.

  9. SU-101

    Raised card. Level 3: a soft broad shadow plus a tighter edge shadow.

    Not: level 0 even though the card belongs above its surroundings.

  10. SU-102

    Floating notification. Level 5, above all content.

    Not: level 1, so it looks like an ordinary card.

  11. SU-103

    Modal depth. Level 5 plus a viewport-wide scrim dimming the page (e.g. rgb(0 0 0 / .5)), with the dialog undimmed on top.

    Not: level 1 with no backdrop: the page competes with the dialog.

  12. SU-104

    Photo quality. A sharp, well-exposed, relevant photo with a considered crop.

    Not: a blurry, washed-out photo.

  13. SU-105

    Intended size. The icon near its drawn size inside a larger frame or badge.

    Not: a small icon blown up huge, so it looks chunky and dominates the message.

  14. SU-106

    Consistent frames (user images). Fixed frames (140px, same aspect ratio) with object-fit: cover.

    Not: stretched photos at uneven heights (100px vs 125px).

  15. SU-107

    Image outline. A faint inner outline gives every image a consistent edge.

Product design SU-108–118

  1. SU-108

    Feature first. Design the task before the shell around it.

  2. SU-109

    Structure first. Make the structure clear before adding decoration.

  3. SU-110

    Action placement. The same position (e.g. the right edge) on every row.

    Not: the same row action sits at the right edge, then the left edge, then inset.

  4. SU-111

    Consistent names. "Workspaces" everywhere, with a "Create workspace" button.

    Not: nav says "Workspaces", the heading says "Organizations" and the button says "Create team".

  5. SU-112

    Personality. One tone across heading, message and button.

    Not: a formal "Enterprise Access" heading with slang copy and an all-caps "LET'S GOOO" button.

  6. SU-113

    Shared styles. One shared variant for the same role.

    Not: three "Open" buttons in three different styles.

  7. SU-114

    Meaningful list icons. Small, consistent icons that hint at each item.

    Not: plain bullet dots that say nothing about each benefit.

  8. SU-115

    Accent surfaces, not stripes. A quiet tinted surface (the accent at low chroma) with an icon, the text and one action link.

    Not: a full blue fill for a simple notice.

  9. SU-116

    Quiet backgrounds. The same pattern at 5%.

    Not: a dot pattern at 35% opacity competing with the words.

  10. SU-117

    Empty states. "No projects yet", one line on what goes here, and one "Create a project" button.

    Not: "No results." under tabs and filters that have nothing to filter.

  11. SU-118

    Fewer borders. 16px gaps and a muted row background, no outlines.

    Not: an outline around every row with a 0px gap: crowded.

Screen composition SU-119–265

  1. SU-119

    One job, one focal point. Every screen has one job, and one element (or one group of peers) reads first.

  2. SU-120

    Reading order matches importance. The most important content comes first in visual order (top-left in LTR), and chrome stays quieter than content.

  3. SU-121

    One primary action per view. One filled, high-contrast button per view or region. Everything else is secondary (outline or neutral) or tertiary (text).

  4. SU-122

    Pick the layout pattern for the task. Start from a known pattern (see patterns.md), then adapt it. Don't invent a structure per screen.

  5. SU-123

    Grid, margins and content width. Content sits on a consistent grid: page margins, column gutters and a max content width.

  6. SU-124

    Shared edges. Every block aligns to something. Few alignment lines, and no near-misses.

  7. SU-125

    Spacing scale and three-tier rhythm. Every spacing value comes from one scale, and space grows with the size of the boundary it marks.

  8. SU-126

    Type budget. At most 6 font sizes (e.g. 12 · 14 · 16 · 20 · 24 · 32) and 3 weights (e.g. 400 · 500 · 600). At most 2 families (one UI face, plus optionally a mono or display face). No near-duplicate sizes (14 and 15px).

  9. SU-127

    Color budget. Palette: neutrals (about 4–6 text/surface/border steps), one accent, and semantic colors only for status. Text colors in use stay at about 8 or fewer: 2–3 neutrals, inverse, accent, and a few semantic ones. No near-duplicates: grays like #333, #343434 and #3a3a3a should not coexist. Accent area: keep accent-colored surfaces to a small share of the screen. Colored KPI tiles in four hues are "rainbow" (and usually fail contrast).

  10. SU-128

    Shape and depth budget. Radii: at most 3–4 values: control (6–8px), surface (12–16px), pill (999px), plus nested values from SU-93. Shadows: at most the elevation levels in use (usually 2–3 on one screen). Borders: one width (1px) and 1–2 colors. Icons: one style, at 16/20/24px.

  11. SU-129

    Heading outline mirrors the layout. One h1, no skipped levels, deeper headings never render larger than shallower ones, and every titled region has a real heading.

  12. SU-130

    Group with space before boxes. Separate groups with space and a heading first, a divider second, and a card only when the group is independent or interactive. Never nest cards three deep.

  13. SU-131

    Three tiers, no more. Visible emphasis has three tiers: Loud: one focal element or peer group. Strong: section titles and key labels. Quiet: body, metadata and chrome.

  14. SU-132

    Rows align. Items in a row share a top edge and height, and their internal parts line up (titles with titles, numbers with numbers, actions with actions).

  15. SU-133

    Density fits the task, and whitespace is distributed. Data tools can be dense, but the density must be even. Avoid dead zones next to cramped corners. Balance column heights, and don't leave one column half-empty while the other overflows.

  16. SU-134

    Quiet chrome, clear location. Navigation, toolbars and filters are quieter than content.

  17. SU-135

    The layout collapses in priority order. On narrow screens the focal point and primary action come first.

  18. SU-136

    Every state is reviewed. A screen isn't reviewed until its hidden states are. That means tabs, menus, accordions, dialogs, sheets, empty, loading and error states.

  19. SU-265

    One system across screens. The same role looks the same on every route. One page-header pattern, one set of tokens, and no value (font size, color, radius, shadow, control height) that only one route uses: promote it to a token or remove it.

Semantics, keyboard & assistive tech SU-138–147

  1. SU-138

    Landmarks and a skip link. One main, plus header/nav/footer where they exist. When repeated navigation comes before the content, a skip link is the first focusable element and becomes visible on focus.

  2. SU-139

    Language and title. <html lang> is set, and <title> names the page ("Billing – Acme"), changing on client-side routes.

  3. SU-140

    Every control has a name that contains its label. Every button, link and widget has an accessible name. Icon-only buttons get aria-label.

  4. SU-141

    Images and icons have alternatives. Meaningful images have alt text that says what matters; decorative ones have alt="".

  5. SU-142

    Native first, and ARIA that doesn't lie. Use <button>, <a> and <input> before roles. No positive tabindex, nothing focusable inside aria-hidden, no ARIA reference pointing at a missing id, no duplicate ids.

  6. SU-143

    Keyboard order follows reading order. Tab moves through the screen in reading order, and everything a pointer can do, a keyboard can do. Frequent actions in tools may have documented shortcuts that don't fire on a single key unless they can be turned off or remapped (WCAG 2.1.4).

  7. SU-144

    Focus is managed on every change. Focus moves with the task and never falls to body.

  8. SU-145

    Focus stays visible, and a covered ring doesn't count. Sticky headers, footers, cookie bars and chat widgets never fully hide the focused element.

  9. SU-146

    Status messages are announced. Toasts, "Saved", result counts and progress live in role="status" (or aria-live="polite") regions that exist before their text changes. role="alert" only for errors that need attention now.

  10. SU-147

    Widgets follow the ARIA pattern. Custom widgets follow the APG pattern, or use the native element.

States: loading, empty, error, success SU-155–161

  1. SU-155

    Every data region has a state matrix. For each region that shows data (tables, lists, charts, KPI rows), design these states rather than leaving them to defaults:

  2. SU-156

    Feedback matches the wait. Under 100ms: the input itself responds (pressed state, SU-72). Under 200ms: no loading indicator. 200ms–1s: an inline busy state, with no full-screen spinner flash. Once shown, keep it at least ~500ms so it doesn't flicker. 1–10s: a skeleton for a page or region whose layout is known, or a spinner for a single module. Over about 5–10s: determinate progress, an estimate and Cancel.

  3. SU-157

    A skeleton holds the shape of what's coming. Skeleton rows match the final layout in size and rhythm, so nothing shifts when data arrives (CLS, SU-192). Use quiet, neutral shapes and an optional shimmer of at least 1.5s per cycle, turned off under reduced motion. Mark the region aria-busy="true". Skip skeletons for loads under about 1s and for tiny elements (buttons, inputs, toasts).

  4. SU-158

    A busy button keeps its size and its words. While saving, the button keeps its width, shows a spinner before the label ("Saving…"), ignores repeat clicks (aria-disabled for the duration) and keeps focus. Its neighbours don't move.

  5. SU-159

    Optimistic updates only when they're safe. Use optimistic updates for frequent, reversible, high-success actions (toggle, like, reorder, rename): update at once, reconcile with the server, and on failure revert *visibly* with an inline message and Retry. Never use them for payments, irreversible deletes or anything other people see right away.

  6. SU-160

    Errors explain and recover, where they happened. Say what failed, why if known, and what to do. Offer Retry and keep the person's data.

  7. SU-161

    Confirm success where it happened; prefer Undo to "Are you sure?". In-place edits get an inline "Saved" (role="status"). Completed flows get a confirmation panel or page that says what happened and what comes next. Toasts are for non-critical news: about 5s if they dismiss themselves (Carbon); they pause on hover and focus, can be dismissed, and show one at a time; never errors (NN/g); if they hold an action, they never auto-dismiss (WCAG 2.2.1). Reversible destructive actions offer Undo (keep it for at least ~5s) instead of a confirmation dialog.

Theming, dark mode & contrast modes SU-162–169

  1. SU-162

    Three token tiers. Primitive ramps: --blue-600. Semantic roles: --surface, --surface-raised, --text, --text-muted, --border, --accent, --on-accent, --success/-warning/-danger with -surface/-text, and --focus. Component tokens (optional): --button-bg.

  2. SU-163

    Build ramps in OKLCH. Build color ramps in OKLCH with fixed lightness per step (e.g. 50 → L 0.97 … 900 → L 0.25), so the same step has similar contrast across hues. Re-tune chroma at the ends (SU-42). Out-of-gamut values are gamut-mapped by the browser. oklch() is Baseline widely available.

  3. SU-164

    Dark surfaces are dark gray, and elevation gets lighter. Base: about #121212–#1c1c1e (OKLCH L ≈ 0.16–0.22). Never #000 for app chrome; black is fine for media viewers. Elevation: each level is a lighter surface (+0.03–0.05 L), because shadows barely show on dark. Text: body text about 87–92% lightness, not pure white. Muted text still ≥ 4.5:1. ❌ A #000 page with #000 cards and a shadow nobody can see. ✅ A #121214 page and #1c1c20 cards with a 1px border.

  4. SU-165

    Every pair passes in both schemes. Every text, icon, border and focus pair meets its target in light and dark. Status badges are re-tuned for dark: light text on a deep, low-chroma tint, not the light theme's pale tint. Accents get lighter and less saturated in dark (L ≈ 0.70–0.80). Apple: aim for 7:1 on small text in custom colors in dark.

  5. SU-166

    Scheme switching. Default to the system preference, and offer System / Light / Dark. Store only an explicit choice. Set color-scheme on :root (and <meta name="color-scheme" content="light dark">) so form controls and scrollbars match. Prevent the flash of the wrong theme with a small inline script in <head>. light-dark() handles simple token pairs.

  6. SU-167

    Media in dark. Logos and illustrations have dark variants (<picture> with media="(prefers-color-scheme: dark)", or currentColor SVG). No white-background images on dark surfaces. Dim photos only if needed. Charts use their dark palette (dataviz skill).

  7. SU-168

    Controls keep their edges in forced colors. Draw boundaries and focus with border and outline (transparent is fine: forced colors turn them into system colors), never with box-shadow or background alone. Icons use currentColor. Selected and checked states need a non-color cue. Use forced-color-adjust: none only for color swatches.

  8. SU-169

    More contrast, less transparency. Under prefers-contrast: more, raise borders to 3:1+ and muted text toward 7:1. Glass and blur surfaces keep text ≥ 4.5:1 against the *worst* backdrop, and turn solid under prefers-reduced-transparency: reduce (Chromium only for now) and in forced colors.

Responsive, zoom & touch SU-170–177

  1. SU-170

    Nothing scrolls sideways at 320px. At 320 CSS px wide (1280 at 400% zoom) the page never scrolls horizontally. Toolbars collapse to one primary action plus "More", and tables become stacked rows. Wide content that really needs two dimensions (data tables, code, maps, charts) scrolls inside its own container, which has tabindex="0" and a name so keyboard users can scroll it.

  2. SU-171

    Zoom always works. Never block zoom (user-scalable=no, maximum-scale below 2). Set font sizes in rem, keep the root at 100%, and give text containers no fixed height. Nothing clips at 200% text size.

  3. SU-172

    Text spacing doesn't clip. Text boxes grow with their content. With line-height 1.5, paragraph spacing 2em, letter spacing 0.12em and word spacing 0.16em applied, nothing clips or overlaps. Truncated text always has a way to show in full (SU-200).

  4. SU-173

    Breakpoints by window size, components by container. Switch page layout at window size classes, and let components respond to their *container* with @container (container-type: inline-size), not the viewport. Fluid type uses clamp() within ±25% of the base and never shrinks body text below 16px. Keep 40–75 characters per line at every size.

  5. SU-174

    No actions that only appear on hover. Anything revealed on hover is also revealed on :focus-within, and is always visible on touch screens (@media (hover: none)). Popups opened on hover or focus can be dismissed with Escape, can be hovered without closing, and stay until dismissed.

  6. SU-175

    Touch input. Text fields are at least 16px on phones, or iOS zooms the page on focus. Use the right type, inputmode and enterkeyhint (SU-153). Every drag (sorting, reordering, swipe-to-delete, sliders) has a tap or click alternative (WCAG 2.5.7). Targets: 44px goal, 24px floor (SU-61), 48dp on Android-first products.

  7. SU-176

    Mobile viewport units and safe areas. Full-height layouts use 100dvh (or svh for minimums), not 100vh, so browser bars don't cut content. Fixed bars add env(safe-area-inset-*) (with viewport-fit=cover). Sticky bottom bars stay under about 25% of the screen and set scroll-padding-bottom to their height (SU-145).

  8. SU-177

    Mobile navigation. 3–5 top-level destinations go in a bottom bar, always with icon + label. More than that goes in a drawer or "More". The primary action sits within thumb reach. A side panel becomes a sheet or drawer, never a squeezed column. Never hide primary navigation behind a hamburger on desktop (NN/g: more than 20% less discoverable).

Content & microcopy SU-178–184

  1. SU-178

    Buttons name the outcome: verb + object. "Create invoice", "Delete 3 files", "Save changes". Dialog buttons repeat the title's verb.

  2. SU-179

    Sentence case, key word first. Headings, buttons, tabs and labels use sentence case ("Save changes"), with the key word first.

  3. SU-180

    Errors say what happened and how to fix it. In the person's terms, without blame, apology or a bare code. Field errors go next to the field (SU-151) and system errors next to the region (SU-160). Write instructions for empty fields ("Enter your name") and constraints for invalid ones ("Name must be 35 characters or less"). Avoid "invalid", "please", "sorry", "oops" and "this field is required".

  4. SU-181

    Confirmations name the action and its consequence. The title asks about the specific action and object ("Delete project "Atlas"?"). The body states the consequence ("This removes 24 invoices and 3 members' access. You can't undo this."). The primary button repeats the verb, and Cancel is never the default for a destructive action. Prefer Undo (SU-161) for anything reversible. Type-to-confirm only for irreversible, wide-reaching actions.

  5. SU-182

    Numbers, dates and units are consistent. One format per screen, with thousands separators. Relative time for under about 7 days ("13 minutes ago", "Yesterday at 10:30"), with the full date in a tooltip or title. Units sit with their values (SU-27), joined by a non-breaking space. Round to the precision people use. Format through Intl (SU-202).

  6. SU-183

    Plain language; instructions outside the field. Aim for about a 7th-grade reading level (Polaris) and split sentences over 25 words (GOV.UK). Use the audience's words, not internal jargon (SU-111). Placeholders hold an example ("[email protected]") at most, never an instruction or a label (SU-148).

  7. SU-184

    Real-looking content in builds and demos. Use plausible names, amounts and dates that vary in length; they also stress-test the layout.

Charts in the screen SU-185–191

  1. SU-185

    The chart answers the screen's job. One primary chart per dashboard, sized as the focal point or clearly below it (SU-119). A single number that matters is a KPI with a delta and a sparkline, not a one-bar chart. The title states the takeaway ("Online passed retail in May"), not the dataset ("Sales").

  2. SU-186

    Honest scales. Bar and area charts start at zero. Small multiples share a scale. No dual y-axes. Never interpolate across missing data: mark the gap. Pie slices under about 3° need a callout, or the chart should be a bar chart.

  3. SU-187

    Series stay visible and stay in the color budget. Each series' marks reach 3:1 against the plot background (WCAG 1.4.11). Adjacent series differ by more than color: line style, marker shape or a direct label. Series colors come from chart tokens (--chart-1…n, validated by the dataviz palette script), so they don't count against SU-127's single accent. Keep the same color for the same series across the page.

  4. SU-188

    Chart text is real, readable text. Axis labels, tick values and annotations are text at least 12px and at least 4.5:1, with tabular figures and units in the label. Gridlines stay quiet, and data ink is the highest contrast in the chart.

  5. SU-189

    Every chart has a text alternative. The chart has role="img" and an aria-label that states the takeaway, *plus* the data as a table or a "View as table" control. Tooltips are reachable by keyboard focus, can be dismissed, and are never the only place a value lives (WCAG 1.4.13).

  6. SU-190

    Charts have states too. Charts are part of the state matrix (SU-155): loading: an axis skeleton; empty: "No orders in this period"; error: with Retry; sparse data: a single point.

  7. SU-191

    Legends only when labels can't do it. Prefer direct labels. Drop the legend for a single series. A legend stays in series order and uses at most two lines (about 30% of chart height, per Carbon). Long names go below the chart, never squeezed into the plot.

Loading performance people can see SU-192–196

  1. SU-192

    Reserve space; nothing jumps. Images, video and embeds carry width/height attributes or an aspect-ratio. Async content renders into a slot sized for it (a skeleton, SU-157). Banners never push content down after first paint.

  2. SU-193

    Fonts load without shifting. Use at most 2 families (SU-126) and about 4 font files on first view. font-display: swap for body text, with a metric-matched fallback (size-adjust, ascent-override), or font-display: optional. Preload only the main WOFF2.

  3. SU-194

    Hero image first, the rest lazy. The largest image in the first screen is never loading="lazy". Give it fetchpriority="high" and a srcset/sizes that matches its rendered width. Images below the fold use loading="lazy" decoding="async".

  4. SU-195

    Long lists and pages stay light. Paginate or virtualize lists above about 200 rows. For long pages, use content-visibility: auto with contain-intrinsic-size: auto <estimate>; without it, offscreen sections collapse and the scrollbar jumps.

  5. SU-196

    Respond within 100ms; animate transform and opacity. Every input gets visual feedback within 100ms (SU-72), even if the work continues. Animate transform and opacity, not width, height, top, left, margin or padding, which re-run layout every frame.

Languages, direction & long strings SU-197–202

  1. SU-197

    Direction-agnostic CSS. Use logical properties (margin-inline-start, padding-inline, inset-inline-end, border-inline-start, text-align: start) and set dir on <html>. Use dir="auto" on containers of user-written text. Rows flip by themselves with flex and grid.

  2. SU-198

    Mirror what has direction, and nothing else. Mirror in RTL: back/forward arrows, chevrons in lists and breadcrumbs, sliders, linear progress (Hebrew is an exception), send/reply and other motion icons. Don't mirror: logos, checkmarks, clocks, circular progress and refresh, media controls, real-world objects, or the digits inside numbers.

  3. SU-199

    Labels have room to grow. Containers that hold UI strings grow with them. No fixed widths on buttons, tabs, labels or table headers. Budget by English length (IBM, via W3C):

  4. SU-200

    Truncate only where it's safe, and always reveal the rest. Wrap by default. Truncate only in dense single-line slots (table cells, chips, tabs), and then expose the full text with title, a tooltip on focus, or an expand control. Never truncate buttons, error messages, prices or headings. Use multi-line clamps for previews.

  5. SU-201

    Script-aware typography. Set lang on mixed-language spans: it picks fonts, hyphenation and the screen-reader voice. No letter-spacing on Arabic, Persian or Urdu, because it breaks letter joining. CJK needs a taller line-height (test at 1.5 or more; about 1.7 is common practice) and no italics. Thai and Devanagari need taller line boxes. Font stacks include fallbacks for each script.

  6. SU-202

    Locale-aware formatting and messages. Format numbers, currencies, dates, relative times and plurals with Intl.NumberFormat, DateTimeFormat, RelativeTimeFormat, PluralRules or ICU messages. Never build sentences from fragments ("You have " + n + " items"), and never hard-code "MM/DD" or "$".

Long pages SU-204–211

  1. SU-204

    Each screen has a lead. Every viewport-height band has one focal element (a heading, a visual or a number), and section heads share one strong style. The page-wide focal point (SU-119) is the hero.

  2. SU-205

    Vary the shape, keep the system. Consecutive sections don't repeat the same layout fingerprint more than twice. Alternate dense and airy bands, with one idea per band. Rhythm comes from one section padding token (e.g. 96px desktop, 64px phone), not from changing tokens.

  3. SU-206

    No false floor. The first screen never looks finished. Something from band 2 peeks in within the first viewport at 1280×800 and 375×667, and no full-width rule or large empty gap sits at the fold.

  4. SU-207

    Stay oriented on long pages. A long page always shows where you are and how to get around.

  5. SU-208

    One call to action, repeated. The primary CTA keeps one label and one style everywhere it appears: the header, the hero, after every 2–3 bands at a decision point, and the final band. Secondary CTAs stay secondary.

  6. SU-209

    Scroll reveals enhance; they never hide. Content is visible by default. The hidden start state applies only once JS has run (html.js .reveal) and never to content already in view at load.

  7. SU-210

    Band backgrounds band gently. Alternating section backgrounds use the base surface and at most one or two neighbouring steps (ΔL ≤ 0.04 in OKLCH), plus at most one full-bleed brand band per page. Boundaries come from space and surface, not a stack of borders.

  8. SU-211

    Long pages stay fast. Bands below the second screen use content-visibility: auto with contain-intrinsic-size: auto <height> (SU-195). Images below the fold are lazy (SU-194). Nothing below the fold blocks first paint.

Page patterns SU-212–221

  1. SU-212

    The hero says one thing and shows the product. A headline of about 10 words or fewer that names the outcome, a short subhead, one primary CTA, and a visual that is the product. All of it fits the first screen at 1280×800 and 375×667.

  2. SU-213

    Proof is specific. Logos (SU-260) or 2–4 numbers with units and a source. Testimonials carry a real name, role, company and photo, quoted in ≤ ~40 words with hanging quotes (SU-38). Proof sits right after the hero or right before a CTA.

  3. SU-214

    Features are benefits with evidence. 3–6 features per band. Each band or card leads with the benefit as its heading ("Ship previews on every PR"), then one sentence, then the proof (a screenshot crop, a code sample, a number).

  4. SU-215

    Bento grids have one hero cell and one gap. A 12- or 6-column grid with spans, one gap equal to the gutter, at most two cell sizes besides the hero cell (≤ 3 cell sizes in all), one message per cell, and the same text inset in every cell. Cells in a row share height (SU-132). Not every cell gets a picture.

  5. SU-216

    Pricing compares at a glance. 3–4 plans in one row (stacked on phones, the recommended plan first), all cards the same height.

  6. SU-217

    FAQ answers objections. 5–10 real questions in <details>/<summary> (or the APG accordion). The whole header row is the target (NN/g), with a caret or plus at the end. Several can be open at once, and every answer is reachable by in-page search (hidden="until-found" where supported).

  7. SU-218

    The footer is quiet and complete, not a link farm. Only the links people look for (product, company, support, legal), in ≤ ~4 short groups under short headings at 14px muted (≥ 4.5:1). The legal row comes last, and the primary CTA appears once more above the footer (SU-208).

  8. SU-219

    Article layout: one reading column, wider media. Prose at 60–75ch. Figures, tables and code may break out to ~80–100ch (or full bleed for images). Captions are 14px muted directly under their figure. A sticky TOC sits beside the column from ~1200px (SU-207). Headings have anchor links that appear on hover *and* focus.

  9. SU-220

    Headings belong to what follows. Space above a heading is about 1.5–2× the space below it, in prose and in sections, so each heading groups with its content (proximity, SU-22). Paragraph spacing ≈ the line height.

  10. SU-221

    Code blocks read and copy cleanly. Mono 13–14px at line-height 1.5–1.6 and tab-size: 2. Overflow scrolls inside the block (never the page, SU-170) with tabindex="0" and a name. A "Copy code" button announces "Copied" (SU-146). Syntax colors are ≥ 4.5:1 on the block's background in both schemes. Wrap only prose-like blocks; shell output stays unwrapped.

Data components: tables, row actions, pagination, filters SU-222–227

  1. SU-222

    One density per table. Rows are 32 (compact) · 40 (default) · 48 (comfortable) px; 64 only for two-line rows. The header row matches the row height. Cell inline padding is 12–16px.

  2. SU-223

    Columns are sized by their content. Fixed widths for selection (40–48px), status, dates and amounts; the name or description column flexes. Text cells truncate, numbers and IDs never do. Headers stick when the table is taller than the screen; the first column (the human-readable identifier) sticks when the table scrolls sideways.

  3. SU-224

    Sort and select are visible state. The header label is a <button> inside the th. Only the sorted column carries aria-sort and shows its icon; a sortable table starts sorted by one column. A selection column has a header checkbox (indeterminate when some rows are selected). Selecting a row swaps the toolbar for a batch bar.

  4. SU-225

    Row actions sit at the end and are always visible. One or two actions in the last column plus "⋯" for the rest, named per row ("Actions for INV-2041"), never revealed only on hover (SU-174).

  5. SU-226

    Paginate tables and search results; scroll feeds. Tables show the range and total ("1–50 of 1,240"), with pagination below the table at row height, the page size in a menu (25 / 50 / 100 by convention) and the page in the URL. Infinite scroll only for aimless browsing of similar items.

  6. SU-227

    Filters show what's applied. Search plus 2–3 visible filters; the rest behind "Filters". Applied filters appear as removable chips with "Clear all". The result count updates in a role="status" region; filters live in the URL.

Navigation components: sidebar, top nav, tabs, breadcrumbs, command palette SU-228–232

  1. SU-228

    Sidebar navigation. 220–280px wide (SU-123), items 32–40px tall with a pointer (44–56px on touch), 16–20px icons and 14px labels, group labels 12px muted, at most two levels. The current item has a tinted fill, full ink and aria-current="page". Collapsed, it becomes a 48–80px rail with a tooltip per item.

  2. SU-229

    Top navigation and mega menus. Header 56–64px (SU-134), ≤ ~7 items, the current section marked. Mega menus open on click, or after ~0.5s of hover and then appear within 0.1s; they tolerate diagonal pointer paths, close ~0.5s after the pointer leaves and on Escape, and group links under headings.

  3. SU-230

    Tabs switch views of one thing. 40–48px tall (64 with icon and label), a 2–3px indicator at least 24px wide, ≤ ~7 tabs before they scroll (with arrow buttons and an edge fade; scrollable tabs ≥ 90px wide). Never tabs for sequential steps, or for links to other pages (those are nav links with aria-current).

  4. SU-231

    Breadcrumbs show where, not where you've been. Only for hierarchies of 3+ levels. The current page is either the last crumb as plain text with aria-current="page" (NN/g) or left out (GOV.UK), and never a link to itself. Separators are aria-hidden; on phones show 1–2 levels (or the first and last); chevrons mirror in RTL (SU-198).

  5. SU-232

    Command palette. ⌘K / Ctrl+K plus a visible button that shows the shortcut; optional scope prefixes (GitHub: > commands, # issues, @ people). 560–640px wide, ~15–20% from the top, a 48–56px input; grouped results with headings, ≤ 10 visible on desktop (4–8 on phones), recent items when empty, matched characters highlighted, shortcuts right-aligned.

Overlay components: menus, tooltips, popovers, dialogs, drawers, toasts SU-233–238

  1. SU-233

    Menus. Items 32–40px tall with a pointer, 44–48px on touch; 160–288px wide. Icons on every item or on none, in a fixed 16px column; shortcuts right-aligned and muted. Most important items first, groups split by dividers, high-impact actions (delete) set apart by a divider and the danger color (conventionally last). Context menus ≤ 12 items so they never scroll, otherwise group or add search. Submenus one level deep and ≤ ~5 items.

  2. SU-234

    Tooltips label; they don't explain. Short (≤ ~75 characters, max width 200–320px, 12–14px text). One show delay for the whole product, and 0ms when moving between neighbouring tooltips; the 140ms fade is separate (SU-85). Shown on focus too, dismissible with Escape, hoverable (WCAG 1.4.13), and absent on touch. Never essential information, never interactive content (use a popover), never on a disabled button (it can't take focus).

  3. SU-235

    Popovers hold interactive content. 240–360px wide, 12–16px padding, anchored and flipped at the edges (popover + anchor positioning, SU-100). Focus moves in when they hold controls and returns to the trigger on close.

  4. SU-236

    Dialogs are for short decisions. Sizes ~380–400px for confirmations, ~560–640px by default, ~960px for complex content; never a horizontal scroll (go up a size, or to a page). Max height ~85–90vh with a fixed header and footer, a scrolling body and a fade at its bottom edge. Title is the dialog's name; footer has Cancel and the verb (SU-178), the primary at the end, three buttons at most; a 44–48px close target. One dialog at a time. On phones: full screen or a bottom sheet.

  5. SU-237

    Side panels and drawers. 320–480px by default, 640px for complex panels (detail panels 320–400px, SU-123), full width under ~600px. A modal drawer has a scrim and traps focus; a non-modal side panel leaves the page usable and doesn't trap. Sticky header with title and close; a detail panel's selection lives in the URL.

  6. SU-238

    Toasts don't cover the work. One consistent corner for the whole product, above any bottom nav on phones, about 288–420px wide and ≤ 2 lines. At most ~3 stacked, 8px apart, the newest nearest the edge; never over the primary action. Whatever a toast links to is also reachable elsewhere. Timing and content are SU-161.

Input components and small display pieces SU-239–247

  1. SU-239

    One control size scale. Three heights for every control, and mixed sizes never share a row (SU-58–60).

  2. SU-240

    Switch for "now", checkbox for "on save". A switch applies its effect immediately (settings); a checkbox is a choice submitted with a form. The label names the setting, not the state. role="switch" with aria-checked; the state is shown by thumb position and a shape cue, not color alone.

  3. SU-241

    Pick the control by option count. 2–5 options that all fit → radios (or a segmented control when it switches a view or mode); 6–15 → a select; more → a searchable combobox (SU-54). Multi-select up to ~7 → checkboxes; more → a combobox with chips.

  4. SU-242

    Dates people know are typed. Distant, known dates (a birthday) are typed: three numeric fields (day and month 2 characters wide, year 4, inputmode="numeric", autocomplete="bday-*", no auto-tab) or one field with the format shown. Dates within about a year get a calendar *and* a typed input; ranges get presets ("Last 7 days"); ≤ ~10 possible dates can be a list. No split dropdowns.

  5. SU-243

    File upload works without dragging. A button plus a drop zone; accepted types and the size limit stated before choosing. One row per file with name (long names end in an ellipsis with the full name on focus, SU-200), size, its own status (uploading, done, error with the fix and Retry) and Remove. Errors about the whole upload sit in an inline notification above the list.

  6. SU-244

    Search fields fit the query. Wide enough to show a typical query (27+ characters), a visible box rather than a link, a visible label or aria-label, a clear button, Enter submits. ≤ 10 suggestions on desktop and 4–8 on phones with the match highlighted; recent searches on focus.

  7. SU-245

    Avatars. Sizes from one scale (Primer: 16 · 20 · 24 · 28 · 32 · 40 · 48 · 64). Circles for people, rounded squares for organizations, teams and bots. alt with the name unless it's printed beside it. A fallback of initials (1–2 letters, on a tint chosen from the name, ≥ 4.5:1) or a default image. Stacks overlap with a 2px ring in the surface color and "+N" after 3–5.

  8. SU-246

    Badges and chips. Badges and tags 18–24px tall with 12px text for status and counts (SU-48, SU-71), with a max width and truncation (Carbon: 208px). Chips are 32px for filters and tokens; their remove button is named ("Remove filter: Paid") with a ≥ 24px target. Counts cap at "99+".

  9. SU-247

    Shortcuts are shown and platform-aware. <kbd> in menus, tooltips and the command palette; ⌘ on Apple platforms, Ctrl elsewhere; single-key shortcuts can be turned off or remapped (WCAG 2.1.4).

Interaction states SU-248–252

  1. SU-248

    Every interactive component specifies its state matrix. List the states that apply (default, hover, pressed, focus-visible, selected/checked, disabled, read-only, loading, error), design each one, and show them all in a specimen. No state is identical to default, except where the platform has none (no hover on touch).

  2. SU-249

    States change paint, not layout. Hover, pressed and selected change color, background, shadow or transform. They never change padding, border width, font size or the width of the label. A label that turns bold when selected reserves the bold width, or uses a grade axis (font-variation-settings: "GRAD" …) that doesn't change width.

  3. SU-250

    Every state keeps its contrast. Hover, pressed and selected text stays ≥ 4.5:1 on its own background, and focus rings ≥ 3:1.

  4. SU-251

    Selected is obvious without color. A selected option, tab or nav item differs from its siblings by a non-color cue: weight plus indicator, a check icon, or a fill change of ≥ 3:1 against the unselected fill.

  5. SU-252

    Disabled means "not now", and says why. Prefer hiding what someone can never do, and explain what they can't do yet.

Visual craft SU-253–264

  1. SU-253

    Shadows are layered and tinted. Each elevation is 2–3 layers: contact, key and ambient (the elevation table in surfaces-images.md). On a colored or tinted background the shadow takes that hue at low chroma instead of pure black. Levels above 1 have ≥ 2 layers; no single shadow has alpha above ~0.25 or blur above ~64px.

  2. SU-254

    Edges are hairlines with alpha. Borders and dividers are 1px in a translucent ink, so one token works on every surface.

  3. SU-255

    Gradients interpolate in OKLCH and stay in one family. linear-gradient(in oklch, …) with 2–3 stops of neighbouring hues. Distant hues mixed in sRGB pass through a muddy gray middle.

  4. SU-256

    One icon family, one stroke, sized to the text. One set in one style (outline or filled; filled is reserved for the selected state in nav) with one stroke width (1.5px at 20px, scaled with size and matched to the text weight beside it).

  5. SU-257

    Neutrals carry a trace of the brand. Gray ramps take the accent's hue at chroma ~0.005–0.02 (OKLCH), so the page reads as one palette instead of an accent on dead gray. The accent covers about 10% of the area or less.

  6. SU-258

    Display type is set, not scaled. Display sizes (48–96px desktop, clamped to 32–44px on phones) get tracking −0.02 to −0.04em, line-height 1.0–1.1, a measure of about 10–20ch and text-wrap: balance. Use the font's optical size (font-optical-sizing: auto, or the display cut). Light text on dark gets +0.05–0.1 line-height (impeccable reference/brand.md). Display sizes are their own tier and count as one entry each in the SU-126 budget.

  7. SU-259

    Product imagery is crisp and framed one way. Marketing screenshots are rendered at 2× device pixel ratio (naturalWidth ≥ 2 × rendered width) and cropped to the part that matters, not a full window at 40% scale with unreadable text (SU-105). They share one frame: the surface radius, a 1px alpha border (SU-107) and one elevation level.

  8. SU-260

    Logos are balanced by area, not width. Logo walls show 5–8 marks in one ink (monochrome, ~60–70% of text contrast), each scaled so its *area* matches (wide wordmarks shorter, square marks taller), on one baseline row. Areas stay within ±15%.

  9. SU-261

    Depth effects are rare and earned. At most one glow or spotlight per screen (≤ 1 per band), behind the focal element. Glass panels:

  10. SU-262

    Whitespace scales with the medium. Marketing and editorial pages run larger than apps: body 17–20px at line-height 1.55–1.7, section padding 96–160px desktop (64–96px phone), one idea per band. App screens stay at SU-125's app tier.

  11. SU-263

    The small finishes are on. These one-liners are set: scrollbar-gutter: stable on scrolling app layouts (no shift when a dialog locks scroll). overscroll-behavior: contain on dialogs, drawers and inner scroll panels. ::selection in an accent tint that keeps text ≥ 4.5:1. accent-color and caret-color set to the accent. -webkit-tap-highlight-color: transparent only when a pressed state replaces it. touch-action: manipulation on controls.

  12. SU-264

    Squint and compare. Before handing off, compare the screen with a reference of the same kind that the team admires (or the product's best existing screen) at the same width, band by band: spacing density, type contrast, image quality, how much is on screen. Say what is still behind.

Commerce: listings and product pages SU-266–273

  1. SU-266

    Catalog lists have a count, a sort and a filter rail. The list header shows the result count ("31 results") and a sort select aligned right. Name the default sort "Featured" or "Relevance", never "Popular", and make sure every product type above 10% of the catalog appears in the first ~20 items on desktop and ~10 on mobile. Filters sit in a 240-280px left rail from 1024px up, each option with its count and a zero-result option disabled, and in a bottom sheet below that whose apply button shows the count ("Show 31 results"). Applied-filter chips follow SU-227.

  2. SU-267

    Load more beats infinite scroll for catalogs. Product and result grids end in a "Load more" button (or numbered pages) with a count line ("Showing 48 of 128") and a thin progress bar; page size 24-48. The footer stays reachable, page, filters and sort live in the URL, Back restores the loaded count and scroll position, and focus moves to the first newly loaded item while the addition is announced politely.

  3. SU-268

    Prices read in one glance. The current price is the largest, boldest figure; the original price is struck through after it in a muted color that still passes 4.5:1. Show one saving (percent or amount, not both). A product with variants shows "From $19" instead of a range, figures are tabular and use one number format per list, tax or VAT is stated where the region needs it ("incl. VAT"), and bulk items show a per-unit price. Screen readers get "Now $96, was $120", not two bare numbers.

  4. SU-269

    Variant selectors show what is chosen and what is unavailable. Swatches are 32-40px visuals with a 44px hit area; the selected one gets a 2px ring plus a check (not color alone) and the label reads "Color: Navy". Sizes are text buttons at least 48px wide in a wrapping grid (up to about 14), not a select. Unavailable options stay visible, dimmed with a diagonal strike and named as sold out, with the return date or a backorder where stock allows. Nothing is preselected for size: pressing Add without one shows "Select a size" beside the sizes and moves focus there. Choosing a variant swaps image and price in place with no layout shift.

  5. SU-270

    One product gallery with a visible thumbnail strip. All product images live in one gallery. On desktop show a main image with a rail or row of 64-80px thumbnails: show every thumbnail up to about 10; with more, cut the last visible one off (optionally labelled "+N") so the rest is signposted. On mobile the main image swipes with a "3 / 14" counter (dots only for 5 or fewer). The main image has a fixed ratio, zoom reaches at least 2x native (source 2000px or more), video is a thumbnail with a play badge, and thumbnails are buttons with aria-current.

  6. SU-271

    The buy box answers the purchase questions above the fold. Order inside the box: title, rating, price, variant, quantity, one primary Add to cart button (48-56px, full width in the box), the secondary save/wishlist, then three one-line facts with icons: delivery date, shipping cost or free-shipping threshold, and a returns-policy link. Stock text appears only when it is real and low ("3 left"). At 1280x720 the whole box is visible without scrolling; at 390x844 the price and Add to cart are, with the facts directly beneath.

  7. SU-272

    The mobile add-to-cart bar appears only after the main button leaves. A bottom bar at least 56px tall plus safe-area-inset-bottom shows a 40px thumbnail, the price with a variant summary, and the same button label. It appears only once the in-page button has scrolled out of view above the viewport, sits below sheets and never over the consent banner or a focused field, and if no variant is chosen its tap opens the variant sheet. It slides in with a 200ms transform.

  8. SU-273

    Review summaries filter, sort and show proof. The summary shows the average to one decimal with stars and the count ("4.6 (1,284)") and a 5-to-1 histogram whose bars are filter buttons, expanded by default. Below it: a sort select (Most helpful by default, then Newest, Highest, Lowest) and a customer-photos strip. Each review shows stars, a title, date, a verified badge, a 3-5 line clamp with "Read more", and a Helpful button. The rating beside the product title links to this block.

Commerce: cart, checkout and confirmation SU-274–282

  1. SU-274

    Cart lines carry the whole decision. Each cart line shows a 72-96px image, a linked title, the variant, unit price, a quantity stepper and a right-aligned line total in tabular figures. Remove is a text button that offers Undo for 8 seconds, and Save for later sits beside it. Price changes and stock problems are flagged on the affected line with the fix already applied.

  2. SU-275

    The cart summary shows the real total before checkout starts. The summary lists subtotal, shipping (an estimate, or a progress bar toward the free-shipping threshold), tax estimate and total. The promo field hides behind an "Add a code" link. Express wallets sit above one full-width Checkout button, both 48-56px tall, separated by an "or" divider. At desktop widths the summary is a sticky 320-400px right column.

  3. SU-276

    The mini-cart drawer confirms the add. After Add to cart, open a 400-440px drawer with the just-added item highlighted, up to 5 lines visible before it scrolls, a subtotal, "View cart" as secondary and "Checkout" as primary. Focus moves in and returns to the trigger on close; Esc closes it. The header count updates and is announced. Never auto-close while hovered or focused.

  4. SU-277

    Checkout is one short path with guest first. Make guest checkout the most prominent option and put sign-in in a text link above the form. Budget about 12 form elements in total: no confirm-email field, phone optional with a stated reason, no forced password. Use 3-4 steps (Contact, Delivery, Payment, Review) labelled "Step 2 of 4", or one page. Finished steps collapse to a summary with an Edit link, and Back keeps everything typed.

  5. SU-278

    The order summary stays in view and the total never changes silently. On desktop keep a 320-400px sticky right column with thumbnails, quantities, discounts, shipping, tax and total. On mobile show a collapsed bar at the top ("Show order summary, $84.20") that expands in place. Editing items links back to the cart. When shipping or tax changes the total, highlight the changed row and announce it politely.

  6. SU-279

    Shipping options show arrival date and cost together. List options in one column of radio cards (SU-55). Each shows the method name, an arrival range as dates ("Fri 23 - Tue 27 Oct") and the cost right-aligned, with "Free" in plain text. Order by speed and preselect the cheapest. Choosing an option updates the order summary at once. Format dates in the viewer's locale and state a cutoff time when it matters.

  7. SU-280

    Payment fields match the physical card. Methods form a one-column radio list with 24px-high logos; wallets come first only on devices that support them, and the selected method expands inline. Card number uses autocomplete="cc-number" and inputmode="numeric", accepts pasted spaces and groups digits 4-4-4-4 (Amex 4-6-5) with a brand icon. Expiry is one "MM / YY" field with an automatic slash. CVC has a hint. Never type="number". Entered values survive a server error, and hosted (iframe) fields match the height of your other inputs.

  8. SU-281

    Placing the order is protected and final. The final button names the amount ("Pay $84.20"), keeps its width while busy (SU-158) and blocks a second submit with an idempotency key. If the response takes over 30 seconds, say so and offer a safe check of order status. The review step shows contact, address, method and items, each with Edit. Terms sit as a line under the button unless a checkbox is legally required. One lock icon with plain security text sits by the button, not a wall of badges.

  9. SU-282

    Order confirmation answers "did it work". Lead with the name and order number ("Thanks, Sam. Order A-10293 is confirmed"), then items, total, last 4 digits of the card, address, delivery estimate and "Confirmation sent to s*@mail.com". Give one primary action (Track order) and one text link (Continue shopping). Offer account creation here with the email prefilled and one password field. Reloading is safe, creates no second order and the page does not auto-clear.

Sign-in, sign-up and recovery SU-283–288

  1. SU-283

    Sign-in is one narrow column. Put sign-in in a centered column 360-400px wide: visible email and password labels, a Show button on the password, "Forgot password?" aligned right on the password label row, and one full-width primary button 44-48px tall. Failure messages never say which half was wrong, paste stays allowed, and focus starts in the first field.

  2. SU-284

    Sign-up asks for the least and judges passwords by length. The first step is email plus password only. Accept at least 8 characters (15 when the password is the only factor) up to 64 or more, impose no composition rules, set no maxlength below 64, and check the password against a breached or common list. Feedback is live text, and a Show toggle replaces the confirm field.

  3. SU-285

    Password reset leaks nothing and recovers fully. The request page has one field and answers identically whether or not the account exists ("If an account exists, we sent a link"), with matching response time. The token is single-use, lives 15-60 minutes and only the newest works. An expired link says so and offers "Request a new link"; after a reset, end other sessions (or ask), email a notice and send the person to sign in.

  4. SU-286

    One-time code screens state the expiry, a resend cooldown and a backup route. Paint the code as six boxes of at least 48x56px (one real input, or segmented boxes that accept a pasted code) and auto-submit on the last digit with a busy state; an error keeps focus and clears the boxes. State how long the code lives, show a 30-60s resend cooldown as a countdown, and offer "Use a backup code". Magic-link screens show the address, the expiry and Resend.

  5. SU-287

    Passkeys are offered after sign-in and never replace the fallback. Give the email field autocomplete="username webauthn" so a saved passkey appears in autofill. After a successful password sign-in, show a dismissible "Create a passkey" card once with a one-line benefit and remember the dismissal for 30 or more days. In settings, name each passkey by device and source, let people delete it, and always keep a password or code path.

  6. SU-288

    Expiring sessions and lockouts preserve work and say how long. Warn at least 2 minutes before a timed session ends and offer "Stay signed in"; re-authenticate in place, or return to the same validated URL with the form data kept. Lockouts and rate limits state the wait ("Try again in 15 minutes") and a recovery link, using one counter and one message for every identifier so they do not reveal that an account exists.

Account settings and billing SU-289–295

  1. SU-289

    Settings save per section, and unsaved edits are marked. Each group of text fields has its own Save button that stays enabled, plus Discard, an "Unsaved changes" marker and a warning before leaving with unsaved edits. Switches apply immediately and show a brief "Saved". Never mix the two models in one form. Layout follows the Settings pattern: 220-260px nav, content capped at 640-720px, and below 768px the nav becomes a list that drills into sections.

  2. SU-290

    Destructive account actions live in a danger zone with proportionate friction. Put destructive actions in the last section, set apart by a 1px danger-tone border and a heading that names the action. State the consequences and link a data export first. Reversible actions use a plain confirm; irreversible ones require typing the account or workspace name; account deletion re-authenticates, offers a 14-30 day recovery window and sends a confirmation email. A sole owner must transfer ownership first.

  3. SU-291

    Notification preferences are a topics-by-channels matrix. Rows are topics with a one-line description; columns are at most four channels (Email, Push, In-app, SMS) with sticky headers, and each cell is a switch that saves immediately. Group topics under headings, add a master "Pause all", and lock security and receipt notices on with a stated reason. On mobile each row stacks with its channel switches beneath. Every marketing email ends with one-click unsubscribe.

  4. SU-292

    Sessions and API keys are lists you can audit and revoke. A session row shows device and browser, approximate location and relative last-active, tags the current one "This device" and lists it first, with Sign out per row and "Sign out of all other sessions". An API key row shows its name, a masked key (prefix plus last 4), created, last used and scope. The full secret appears once at creation in a read-only field with Copy, a warning and an "I have copied it" step, and revoke buttons name the key.

  5. SU-293

    The billing toggle states the saving and keeps both prices. Use a two-option segmented control, "Monthly" and "Annual", with the saving inside it ("Annual, save 20%"). Cards show the per-month equivalent and the billed amount ("$8/mo, billed $96 yearly"), the monthly price stays visible, prices change in place with no layout shift and the change is announced politely. State currency and tax once.

  6. SU-294

    The billing page shows plan, next charge, payment method and invoices. The top card shows the plan, price and interval, the next charge date and amount, and the payment method (brand plus last 4) with Update. Usage meters read "8 of 10 seats", warn from 80% and offer an upgrade at 100%. The invoice table has date, number, amount, a status badge and a PDF link. Plan changes show a proration preview ("Charged $12.40 today") before confirming, and a failed payment shows a persistent banner with Update card and the deadline.

  7. SU-295

    Cancelling is as easy as signing up, and trials disclose their end. Cancel is within 2 clicks of the billing page. One screen holds an optional, skippable reason, at most one retention offer (pause or discount), and "Keep plan" and "Cancel plan" as equal-size buttons. The confirmation states the access end date and what is lost, links a data export and offers a way to resubscribe. Trials show the end date and the price after it before any card is taken, and a reminder email goes out 3-7 days before the first charge.

Content, docs, help and legal pages SU-296–305

  1. SU-296

    Blog index items show title, date, time and excerpt on one pattern. Every post card uses one thumbnail ratio (16:9 or 3:2) and the same slots in the same order: category, title (2-3 lines), 1-2 line excerpt, date and reading time. At most one featured post is larger. Show 9-12 posts per page with pagination or Load more, up to 8 category chips, and make the whole card one link.

  2. SU-297

    The article byline block is complete and compact. Directly under the title: an optional one-line deck, then one byline row with a 32-40px avatar, a linked author name, the published date, an "Updated" date only when the change is material, and reading time. Sharing is a compact inline row (copy link plus 2-3 targets), never a floating bar over the text.

  3. SU-298

    The end of an article hands the reader on. After the body, in this order: a 2-line author bio, one call to action that matches the topic, and 3 related items in the same card pattern as the blog index (3-up on desktop, stacked on mobile). Series get previous/next links with titles. A newsletter sign-up is a single email field in the flow, never a popup over the text. Comments come last.

  4. SU-299

    The docs shell is three columns with a versioned header. Sidebar 240-280px, content 680-760px (up to 75ch), on-page contents 200-240px. The header search shows its shortcut (/ or Cmd K) and a version selector shows the current version and "latest". Under 1024px the contents column collapses into an "On this page" list at the top; under 768px the sidebar becomes a drawer. Old versions show a banner linking to current. Each page ends with Previous/Next links that carry page titles, Edit this page and a last-updated date.

  5. SU-300

    Callouts come in four types and stay short. Allow Note, Tip, Warning and Danger only. Each has a distinct icon shape, a text label, a tint with text at 4.5:1, a left rule of 3-4px, and 3 sentences at most. No nesting, and use them sparingly: one or two per screen of text. Use role="note", not alert, because the content is static. Warning text in forms and policies is bold, with an icon and a visually hidden "Warning".

  6. SU-301

    Help articles end with feedback and an escalation. At the foot of each article: "Was this helpful?" with Yes and No buttons; on No, a labelled free-text field that opens in place; the last-updated date; up to 5 related articles; and a "Contact support" link that carries the article title into the form. The help link sits in the same place on every page. Submitting feedback keeps the reader's scroll position.

  7. SU-302

    The help center home is search, categories and a fallback. Top to bottom: a heading and one search field, full width up to a 560-720px container; 6-8 category cards (icon, name, one-line description, article count); 5-8 popular articles; and a "Contact us" card at the bottom with hours and expected response time. No second search box if the header already has one.

  8. SU-303

    The contact page offers a short form and real alternatives. Form: name, email and message, plus a topic select only if it routes the message (3-5 fields at most). State the response time above the button and show a confirmation that repeats the email address used. Beside the form: email, phone with opening hours and time zone, and the postal address. Chat launchers are 56-60px, sit bottom-right and are offset above sticky bars and consent banners.

  9. SU-304

    Legal pages are readable documents with dates and summaries. Use the article layout: one column at most 75ch, a table of contents, "Effective" and "Last updated" dates, a 4-6 line plain-language summary at the top, numbered sections with stable anchors, and a link to the previous version when terms change materially. Footer links to Terms, Privacy and cookie settings stay on every page.

  10. SU-305

    Email signup says what, how often, and what happens next. Put one email field and its button on the same row, both 44px tall (40-48px), stacking below 480px. The button names the outcome ("Get the weekly digest"), and the lines under the field state the frequency, what you send and a privacy link. After submit, replace the form with a message that says what to do next ("Check your inbox"). Consent wording and the unticked box follow SU-360. Demo-request and lead-gen forms follow the same pattern with at most 4 fields, each non-obvious one (work email, company size) with its reason beside it.

Display components and media SU-306–315

  1. SU-306

    Carousels rotate only with a pause control and few slides. Use at most 5 slides, and never auto-rotate on phones or under prefers-reduced-motion. A carousel that does rotate has a pause button as its first tab stop, shows each slide for 5s or more, stops on hover and focus, loops instead of ending, and sets aria-live to off while rotating and polite when paused. Label each slide by name, or "2 of 5" when it has none.

  2. SU-307

    Carousel controls signal more content and are big enough. Arrows are 44px, vertically centered on the media, and the previous arrow is disabled on the first slide unless the carousel loops. Dots are 8-10px inside 24px minimum targets and become an "n / total" counter above 7 slides. A content row peeks the next item by 10-20% and scrolls natively (overflow-x: auto plus scroll-snap-type) with 8-16px gaps; it never captures vertical scrolling.

  3. SU-308

    Accordion headers are 48px headings over padded panels. Each header is a button that is the only child of a heading, spans the full row (SU-217) and is at least 48px tall, over a panel with 16-24px of padding. One level only: never put an accordion inside a panel. A URL hash opens its panel, and content everyone needs is not hidden. Add role="region" to panels only when about 6 or fewer can be open at once.

  4. SU-309

    Key-value summaries use a description list with row actions. Use dl: a fixed 160-240px label column in muted 14px, a fluid value column in the primary text color, hairline dividers between rows, and a "Change" link at the far right with hidden context ("Change email"). Stack the label above the value below 640px. An empty value reads "Not provided" with an Add action. Keep labels only where the value needs one (SU-27); not for tabular data.

  5. SU-310

    Ratings read as text and enter with large targets. Display stars at 16-20px with partial fill, and always next to text ("4.6 out of 5" plus the review count). The star fill must reach 3:1 against both the empty track and the page. For input, use five stars with 44px hit areas, a hover preview, arrow-key support, and let a second click on the current star clear it. Half stars are optional.

  6. SU-311

    Timelines and activity feeds group by day and age their timestamps. Draw a 1-2px rail with 8-12px dots or 24px icons by event type. Each entry reads actor, verb, object, then a relative time for the first 7 days and an absolute date after that, in a time element whose title holds the full date. Day headings group entries, newest first, 20-50 per batch with a "Load earlier" button. Status uses an icon as well as color.

  7. SU-312

    Count badges hide at zero and avatar stacks end in a +N button. Count badges are at least 16px tall, use tabular figures, cap at "99+", disappear at zero, and put the count in the control's name ("Cart, 99+ items"). Avatar stacks (SU-245) overlap 25-30% with a 2px ring in the surface color, show at most 5 of one size (24, 32 or 40px), then a "+N" button that opens the full list. Names appear in tooltips and accessible names.

  8. SU-313

    Lightboxes are dialogs with a counter, zoom and neighbor preloading. Open from a thumbnail with a 200-300ms transition into a scrim of at least 85% black. Esc, arrow keys and swipe navigate; close is a 44px button at the top right; focus is trapped and returns to the thumbnail. Show a "3 / 12" counter and a caption, fit the image with 16-24px margins, support pinch or double-tap zoom, preload the neighbors, and give every image alt text.

  9. SU-314

    Video players keep controls reachable and never autoplay with sound. Reserve the aspect ratio and show a poster with a duration badge. Autoplay only muted, looping, decorative video, with a pause control when it runs over 5s, and honor prefers-reduced-motion. Controls are play, a seek bar with a 24px-high target, time, captions, volume and fullscreen, at 44px on touch. Space or K plays, arrows seek 5s, F, M and C toggle. Speech has captions, and heavy embeds load as a click-to-load poster.

  10. SU-315

    Dashboard overview: KPI tiles, named comparisons and range presets. A KPI tile has a label, a value in tabular numerals, a delta against a named period ("▲ +12.4% vs previous 30 days") and an optional sparkline; all tiles in a row are the same height. The delta carries a sign, an arrow and a color together, and the color follows whether the change is good for that metric (churn down is green). Lay tiles out 3-4 across on desktop, 2 on tablet, 1 on phone. The date control sits top right with presets (Today, 7d, 30d, 90d, Custom), and the selected range plus time zone is repeated under the page title. Order the page: headline KPIs, trend chart, breakdown table, recent activity.

Advanced inputs and form controls SU-316–325

  1. SU-316

    Every field gets the right type, inputmode and enterkeyhint. Set type, inputmode, enterkeyhint and autocomplete from what the field holds, so the phone opens the right keyboard with the right action key. Digit-only identifiers (verification codes, numeric postcodes, card and account numbers) use inputmode="numeric", never type="number".

  2. SU-317

    The keyboard never hides the focused field or the submit button. When the on-screen keyboard opens, the focused field stays visible with a gap above the keyboard, and the submit action stays reachable on top of it instead of underneath. Field text stays at 16px or larger (SU-175) so iOS Safari does not zoom in on focus.

  3. SU-318

    Character counters count and never block. Put a counter at the bottom right of the field in 14px muted text ("0/280" or "120 characters remaining"), shown from 75% of the limit when the limit is long. Never stop typing or paste with maxlength: over the limit, the counter turns to the error color with an icon and says "You have 7 characters too many", and the pasted text is kept.

  4. SU-319

    Phone fields accept what people type and explain the request. Use type="tel" with autocomplete="tel" and accept spaces, hyphens, brackets and a leading "+"; never mask while typing. Put a searchable country picker (name plus dial code, defaulted from the locale) to the left of the number, validate with a phone library on blur, and say why the number is wanted or make it optional. Width about 20ch.

  5. SU-320

    Number steppers are for small counts with a sensible default. Use a stepper only when one value is the usual answer and changes are small (cart quantity, guests, nights). Minus on the left, plus on the right, each 44px; the value is a typeable field wide enough for the maximum digits; a button disables at the minimum or maximum and says why. Large or continuous ranges use a plain number field.

  6. SU-321

    Sliders show their value and pair with a number input when precise. Label above, the current value always visible, min and max labels at the ends, and a track of about 4px with a visible thumb of 20-24px inside a 44px hit area. Ranges (a price filter) use two thumbs plus min and max number inputs and a minimum gap between thumbs. Ranges as wide as 1-1000, or as narrow as 1-3, do not use a slider.

  7. SU-322

    Range calendars read as one band on 40px cells, with unavailable days explained. A range calendar fills the days between start and end as one continuous band with filled end days, on 40-44px day cells and 36-44px month buttons. Unavailable days are dimmed and struck through (not colour alone) and the reason is stated. Show two months at 768px and wider and one below. Typed fields and presets (SU-242) sit beside it.

  8. SU-323

    Token inputs behave like text. Chips are 32px tall with 8px gaps and wrap onto new lines instead of scrolling sideways. Each remove button has a 24px minimum target and a name. Enter or comma adds a token, paste splits on commas and whitespace, Backspace on an empty input highlights then removes the last token, duplicates are refused with a message, and limits are stated ("4 of 5").

  9. SU-324

    Inline editing looks like text and edits like a field. The read state shows the value with a visible edit control (never hover-only). The edit state keeps the same font size, weight and position, so nothing shifts. Enter saves and Esc cancels; short single-line text can save on blur, while long text stays open with Save and Cancel. A 32px tick and cross sit at the field end, saving shows a small spinner, and an error keeps the field open.

  10. SU-325

    Rich-text toolbars are real toolbars. The container is role="toolbar" with a roving tabindex (one tab stop, arrow keys move). Buttons are 32-36px (44px on touch), grouped by hairlines (text style, lists, insert), and toggles use aria-pressed. Show at most 8-12 controls and put the rest under "More". The toolbar stays at the top of the editor, the editing area is at least 160px tall, and pasting offers plain text.

Feedback, system states and error pages SU-326–334

  1. SU-326

    Inline messages, banners and announcement bars have different jobs. Use an inline message next to the thing it is about (1-2 lines, icon + text, not auto-dismissed), one banner at a time under the header for account-level or loss-of-function problems (not dismissible while true), and a 1-line announcement bar for news (dismissible, remembered). Each of the four types (info, success, warning, error) has its own icon shape, and space is reserved so nothing is pushed down after load.

  2. SU-327

    Copy and share actions confirm in place. A copy button changes its own label and icon to "Copied" for about 2 seconds at the same width, announces it politely, then reverts. If copying fails, select the text so Ctrl+C works. Secrets (API keys, tokens) get a one-time warning that they will not be shown again. Share uses navigator.share() on phones and a popover with a read-only URL field plus Copy elsewhere; no toast.

  3. SU-328

    Autosave shows state quietly and fails loudly. Save 500-1000ms after typing stops and on blur. Show status as 12-14px muted text: "Saving…" only if the save takes over 200ms (kept at least ~500ms, SU-156), then "Saved 2 min ago". A failed save becomes persistent and visible ("Could not save. Retrying…") with a Retry button and a local draft; warn before leaving with unsaved changes. Don't autosave submit-once or sensitive forms.

  4. SU-329

    Offline states keep content and queue changes. When the connection drops, show a persistent top banner ("You are offline. Changes will sync when you are back.") in role="status". Keep cached content visible, disable only the controls that need the network and say why, and queue writes with a visible "Pending sync" badge. On reconnect show "Back online" for ~3s and retry with backoff (1s, 2s, 4s). Never block with a modal.

  5. SU-330

    404 pages say what happened and give a way out. Return a real 404 status (use 410 only if you removed the page on purpose), never a 200 "soft 404". Use the plain headline "Page not found", a line saying the page cannot be found, the full site header and footer, 3-5 useful links (home, top sections, support), a search field only if the header has none, and the document title "Page not found".

  6. SU-331

    Server errors and maintenance pages are honest and carry a reference. A 500 page says once, in plain words, that the problem is on our side, says what happened to the person's work, gives Try again and a status-page link, and shows a copyable request ID with a timestamp for support. Never show a stack trace. A maintenance page returns 503 with Retry-After, states the return time in the viewer's time zone, and says what still works; announce planned work with a banner 24 hours ahead.

  7. SU-332

    Access errors (401, 403, 429) say how to get in. 401: "Sign in to view this" with a button that returns to the same URL after login. 403: say access is missing, name the owner or offer "Request access", and show which account is signed in; don't reveal private resources to anonymous people. 429: state the wait from Retry-After, never auto-retry in a loop, and keep whatever was typed.

  8. SU-333

    Live data shows how fresh it is and updates without jumping. Show "Updated 2 min ago" with a Refresh button near the data, pause polling in background tabs, and let new items arrive behind a "3 new" pill instead of moving the list while someone reads it. Live regions announce summaries, not every tick.

  9. SU-334

    Surveys and feedback prompts appear once, late and small. Ask right after a completed task, never on load or in a first session. Start with one question, in a bottom-left card 320-360px wide with a 44px dismiss, and remember a dismissal for 90 days. Don't cover CTAs, consent banners or open forms. Use a thumbs or 5-point scale first and show free text only after the rating.

App patterns: onboarding and notifications SU-335–340

  1. SU-335

    Onboarding asks little and shows progress. Ask at most 3 first-run questions, each with a visible "Skip for now". A setup checklist has 3-5 verb-object items with a time estimate each, starts with "Create your account" already checked, shows "2 of 5" plus a 6px bar, and can be hidden and resumed from Help. Label demo data "Sample" and offer one "Delete sample data" action.

  2. SU-336

    Product tours are short, anchored and skippable. A tour has 3-5 steps (7 at most), shows "Step 2 of 4" and "Skip tour" on every step, and closes on Esc. Each step lights up the real control with a ~60% scrim and a 280-320px popover anchored to it, never covering it. It starts after the person has context (not at first paint), never replays after dismissal, and can be reopened from Help.

  3. SU-337

    Ask for permissions after context, with a pre-prompt. Request notifications, location or camera only after a user gesture that needs it, and put a one-sentence in-page pre-prompt first: the benefit, "Allow" and "Not now". Call the browser prompt only after a yes. After "Not now" or a denial, wait 30 days or more, then offer again from a setting that explains how to re-enable. Never ask on page load.

  4. SU-338

    Notification bells cap and name their counts. Put the 24px bell in a 44px button. The badge is at least 16px tall (20px reads better), a circle for one digit and a pill after that, hangs off the icon corner without covering the glyph, uses tabular figures, is hidden at zero and caps at "99+". Name the button "Notifications, 3 unread", announce count changes politely at most once a minute, and mirror the count in the document title as "(3)".

  5. SU-339

    The notification panel groups, marks and links onward. A 360-420px popover, at most 70vh tall. The header holds the title, "Mark all as read" and a settings link; tabs split All / Unread (and Mentions where relevant). Each item has a 32-40px actor avatar, a one-sentence summary naming who did what, relative time (SU-340), an unread dot plus tint, and opening it marks it read. Group by Today / Earlier, show "You are all caught up" when empty, load 20 at a time, and end with "View all" to a full inbox with filters and bulk mark/archive.

  6. SU-340

    Relative time follows one ladder. Use one product-wide ladder: "Just now" under 1 minute, "5 min ago" under an hour, "3 h ago" under a day, "Yesterday", the weekday for 2-6 days, then a short date ("Oct 12", with the year when it is not the current one) from 7 days on. Always render a time element with datetime and the full local timestamp in title; tick only while the page is visible; build strings with Intl.RelativeTimeFormat, never by concatenation.

App patterns: messaging, scheduling and files SU-341–348

  1. SU-341

    Chat threads group messages and anchor scroll. Group same-author messages sent within 5 minutes under one avatar, name and time. Bubbles max out at 70-75% of the thread width, and sent and received differ by alignment and fill, with text at 4.5:1. Each sent message shows Sending, Sent, Read or Failed (with Retry). Stay pinned to the bottom only when the reader is within about 100px of it, otherwise show a "New messages" pill, and keep the visible message in place when older ones load.

  2. SU-342

    Composers grow, send and keep drafts. The message field starts at 1 line, grows to 5-6 lines, then scrolls. On desktop Enter sends and Shift+Enter inserts a newline, with the hint shown; on touch devices Enter inserts a newline and a 44px Send button sends. Send stays visible and looks inactive when the field is empty. Drafts persist per thread, focus returns to the field after sending, and the bottom padding includes the safe area.

  3. SU-343

    Comment threads nest two levels with visible actions. Indent replies 24-32px on phones (24-40px on desktop) for two levels only; deeper replies stay at level 2 and start with "@name". Reply, Like and a ⋯ menu (Report, Block) are always visible, "Hide 5 replies" collapses a thread, and the list offers Sort: Top and Newest. Long comments clamp at 6 lines with "Show more"; load 10-20 top-level comments, then "Show more comments".

  4. SU-344

    Slot pickers show the viewer's time zone and the earliest times. A calendar plus a slot list. Slots are 44px-high buttons in 2-3 columns, with AM/PM or 24 h to match the locale. Times show in the viewer's zone with its name ("10:00 AM, Berlin (CEST)") and a zone selector in the main panel, not a footer. Preselect the earliest day with availability so its first slots are visible without scrolling. Past or full days are disabled with a reason, a waitlist is offered when none remain, and the duration is stated.

  5. SU-345

    Booking confirmations show both zones, a calendar link and a way out. The confirmation shows the date and time in both people's zones, the location or link, "Add to calendar" (Google, Outlook, .ics), and Reschedule and Cancel with the policy deadline. The email repeats all of it, and cancelling names the booking. If a slot is held first, show a mm:ss countdown (5-10 minutes), warn at 1 minute, say what happens at zero ("Your slot is released") and let the person extend.

  6. SU-346

    Image and avatar uploads preview, crop and can be removed. State accepted types and the size limit before the person chooses. After choosing, show the image in a square or circular crop with drag and zoom, a live preview at the real size, Save and Cancel; later, offer Remove. Show the avatar at 96-128px on profile pages with an initials fallback (SU-245). Reject with the specific fix, such as "The selected file must be smaller than 5MB" or "The selected file must be a PNG or JPG".

  7. SU-347

    Bulk selection shows a checkbox, a count and an action bar. Selectable items in a grid or list show a checkbox on hover and focus (always visible on touch), and a checkmark plus outline when selected, never a tint alone. Shift+click selects a range. Once anything is selected, a 40-48px action bar replaces the toolbar with "3 selected", the actions and a cancel, and row actions are disabled meanwhile. Remember the Grid / List choice per user.

  8. SU-348

    Reordering: drag handles, drop lines, keyboard and menu alternatives. A sortable list shows a 6-dot handle with a 44px hit area on the leading edge, a 2px accent drop line between items, a lifted preview with a shadow at about 0.9 opacity, and the original left in place dimmed to 0.4 so the layout does not jump. Pick-up, moves and drops are announced through an aria-live region ("Picked up Design review, position 2 of 5"). Keyboard: Space to pick up, arrows to move, Space to drop, Esc to cancel. Every drag also has a non-drag path: "Move up / Move down" in the row menu, or "Move to column" on a kanban card.

Search and navigation extras SU-349–355

  1. SU-349

    Search results pages restate the query and the count. The results page says what ran: a heading with the count and the query ("128 results for “jacket”"), the query kept in the field, and the page title carrying it too. Offer up to 5 scope chips with counts, and mark matched terms with bold or <mark>, never color alone. When the engine corrects the query, say "Showing results for X" with a link to search for the original. Count, sort and filter placement follow SU-266.

  2. SU-350

    No-results pages recover instead of apologizing. Say plainly that nothing matched, keep the query editable in the field, then offer ways forward: a spelling suggestion, a broader query, 3-6 categories and a few popular items. Generic tips on their own are not a recovery. Keep it a normal page (a 200 with noindex), not a 404: the URL is a search, not a missing page (SU-330).

  3. SU-351

    Autocomplete emphasizes the predicted text and never scrolls. Bold the predicted remainder, not what the person typed. Show the list at its natural height with no inner scrollbar (rows 34-44px, at most 10 on desktop and 4-8 on phones, as in SU-244). Arrow keys move through the list and copy the highlighted suggestion into the field; Enter submits it. On focus with an empty field, show recent searches with a Clear control at 44px or more.

  4. SU-352

    Pagination controls never end in an ellipsis and say where you are. Show the first page, the last page, the current page and one or two neighbours, with an ellipsis only between numbers. Mark the current page with a fill and aria-current="page", keep Previous and Next at both ends, and put the page in the page title ("Page 5 of 20"). On phones collapse to Previous, "Page 5 of 20" and Next at 44px.

  5. SU-353

    Back links name their destination and restore state. Put the back link at the top left, before the main content, labelled with where it goes ("Back to Orders", not "Back"). It returns to the previous page as the person last saw it, with the same filters, page and scroll. Do not combine it with breadcrumbs. On phone detail screens it is the primary way out, with a 44px target.

  6. SU-354

    Language and region switchers use native names and keep your place. List each language in its own language ("Deutsch", "日本語"), without flags, with lang and hreflang on each link and aria-current on the active one. Keep it in one place (header or footer). Switching opens the same page translated, keeps form data, and remembers the choice. Suggest a locale from the browser or IP; never force it. Region and currency are a separate control.

  7. SU-355

    The account menu is a fixed anatomy at the end of the header. The avatar button sits at the far right, after search and notifications, 32-40px with a 44px hit area. The menu is 240-280px wide: a name-and-email header, then Profile, Settings, Billing, Help, and Sign out last after a divider. A workspace switcher is a separate control. Signed out, the header shows a "Sign in" text link and one primary "Sign up".

  1. SU-356

    Consent banners give reject the same weight as accept. The first layer offers Accept, Reject and Manage as buttons of the same size, weight and contrast, with no pre-ticked boxes and no cookie wall. Scrolling or closing is not consent. Prefer an in-flow banner at the top of the page; a fixed bottom bar stays under about 25% of the viewport height and the page gets scroll-padding-bottom (SU-145). Put it in the DOM before the skip link, the one exception to SU-138's "skip link first", so keyboard users meet it first. No non-essential scripts load before consent. Remember the choice for up to 12 months.

  2. SU-357

    The preference centre is granular and can be reopened. List the categories (Necessary locked on, Analytics, Marketing, Personalisation) as unticked checkboxes, each with a one- or two-sentence description and a vendor list link. Save choices, Accept all and Reject all are equal buttons. A permanent "Cookie settings" link in the footer reopens the centre. Saved changes apply at once, and withdrawing is as easy as agreeing.

  3. SU-358

    No dark patterns in choices, urgency or pricing. Pass these checks: decline options use neutral wording ("No thanks"), never shame; countdowns and scarcity ("Only 2 left") come from real data; nothing is pre-selected that costs money; mandatory fees are in the first price shown; there are no double negatives; the decline control has 4.5:1 contrast and at least 44px height; advertising is labelled.

  4. SU-359

    Popups, interstitials and widgets wait and stay clear of the task. No full-screen interstitial or app-install wall before content, and no popup in the first 5 seconds. Trigger after engagement (about 50% scroll or desktop exit intent), at most once per session, as a 320-360px corner card (like SU-334) with a 44px visible close and Escape, and remember the dismissal 7-30 days. A chat widget is 56-60px at a 16-24px inset, kept clear of sticky bars and the consent banner. App banners are one line, dismissible and not shown on the first visit.

  5. SU-360

    Consent at sign-up is separate, unticked and linked. Terms are accepted by a line of text next to the button ("By creating an account you agree to the Terms of Service and Privacy Policy") with both linked, or by an unticked checkbox. Marketing opt-in is its own unticked, optional checkbox. A newsletter form is one email field with the consent text beneath, double opt-in and a "Check your inbox" confirmation.

  6. SU-361

    Links that leave, download, call or write say so. A link that opens a new tab shows an icon after the text, carries visually hidden "opens in a new tab", and has rel="noopener"; use target="_blank" only when leaving would lose work (a form or checkout) or the page is a reference to compare against. A download link puts the file type and size in or beside the text ("Annual report 2025 (PDF, 2.4 MB)"). mailto: and tel: links show the address or number as the link text, and tel: is a link on phones only.

How it works, and what it changes

The skill works top-down: a screen whose layout is wrong doesn’t get fixed by recolouring its buttons. Then it measures its own work, and so do the evals.

The workflow

  1. Read the screen

    Render it at 1280 × 900 and 375 wide, run page-map.js, and write down the job, what reads first, the primary action, the regions and the states to visit.

  2. Plan the composition

    Pick a layout pattern, draw the target as a text wireframe, and set the budgets as tokens: six sizes, three weights, one accent, a few radii, a spacing scale.

  3. Build top-down

    Tokens, then layout, rhythm and hierarchy, then the components, then every state: empty, error, loading, open menus and dialogs.

  4. Verify every state

    Run page-map.js and audit.js in the default view and again with each tab, menu, accordion and dialog open. Fix every fail in all of its instances.

  5. Report coverage

    Screen-level changes first, then component fixes by region with rule ids, then a table of every region and state checked, and an honest line on what wasn’t.

Eval results

Whole screens: the screen layer (v2) against v1
100% vs 57%
Components: with the skill (v1) against plain Claude Code
97.8% vs 96.1%
Whole screens: the screen layer (v2) against v1
Evalv2v1v2 timev1 time
Redesign the cluttered 100+ element dashboard 16/169/16 989 s599 s
Build a full settings screen: 6 sections, tables, a dialog 12/127/12 704 s599 s
Mean pass rate 100%57% 847 s599 s
Components: with the skill (v1) against plain Claude Code
EvalWithWithoutWith timeWithout time
Build an invoices card 14/1514/15 417 s142 s
Review and fix a settings page 20/2019/20 467 s148 s
Animate a share sheet and a toast 10/1010/10 235 s175 s
Mean pass rate 97.8%96.1% 373 s155 s

Read these with care

  • The screen evals were graded with page-map.js and audit.js, which are v2’s own tools, so v2 could check itself against the grader. Read the gap as “v2 reliably ships one consistent system”, not as a neutral judge’s verdict.
  • Every configuration ran once. A point or two either way is noise.
  • v2 is slower: about 40% more time and 18% more tokens, because it opens and checks every state.
  • Plain Claude Code already avoids the big mistakes on component tasks, so the skill’s gain there is small: mostly 44px targets and contrast checked with tools instead of by eye.

Full write-up: evals/RESULTS.md on GitHub.