@kenkaiiii/ggcoder 5.86.3 → 5.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +23 -31
  2. package/assets/skills/bulletproof/SKILL.md +2 -0
  3. package/assets/skills/compliance-guard/SKILL.md +1 -1
  4. package/assets/skills/lean/SKILL.md +2 -0
  5. package/dist/app-sidecar/progress-manager.d.ts +2 -20
  6. package/dist/app-sidecar/progress-manager.js +2 -15
  7. package/dist/app-sidecar/progress-manager.js.map +1 -1
  8. package/dist/app-sidecar/royale.d.ts +26 -24
  9. package/dist/app-sidecar/royale.js +85 -187
  10. package/dist/app-sidecar/royale.js.map +1 -1
  11. package/dist/app-sidecar.js +32 -40
  12. package/dist/app-sidecar.js.map +1 -1
  13. package/dist/core/autopilot-gate.js +2 -3
  14. package/dist/core/autopilot-gate.js.map +1 -1
  15. package/dist/core/bundled-agents.js +7 -27
  16. package/dist/core/bundled-agents.js.map +1 -1
  17. package/dist/core/checklist-items.d.ts +0 -8
  18. package/dist/core/checklist-items.js +0 -8
  19. package/dist/core/checklist-items.js.map +1 -1
  20. package/dist/core/code-retrieval.d.ts +1 -1
  21. package/dist/core/code-retrieval.js +2 -2
  22. package/dist/core/code-retrieval.js.map +1 -1
  23. package/dist/core/mcp/deferred-catalog.d.ts +1 -1
  24. package/dist/core/mcp/deferred-catalog.js +1 -1
  25. package/dist/core/skills.d.ts +6 -0
  26. package/dist/core/skills.js +11 -3
  27. package/dist/core/skills.js.map +1 -1
  28. package/dist/core/subagent-policy.d.ts +6 -0
  29. package/dist/core/subagent-policy.js +21 -2
  30. package/dist/core/subagent-policy.js.map +1 -1
  31. package/dist/core/subagent-receipt.d.ts +2 -2
  32. package/dist/core/subagent-receipt.js +5 -8
  33. package/dist/core/subagent-receipt.js.map +1 -1
  34. package/dist/core/trophies/catalog-more.js +0 -20
  35. package/dist/core/trophies/catalog-more.js.map +1 -1
  36. package/dist/core/trophies/engine.js +0 -4
  37. package/dist/core/trophies/engine.js.map +1 -1
  38. package/dist/core/trophies/types.d.ts +1 -1
  39. package/dist/core/trophies/types.js +0 -2
  40. package/dist/core/trophies/types.js.map +1 -1
  41. package/dist/goals-agent/goal-team.js +3 -4
  42. package/dist/goals-agent/goal-team.js.map +1 -1
  43. package/dist/modes/acp-mode.js +0 -1
  44. package/dist/modes/acp-mode.js.map +1 -1
  45. package/dist/tools/index.d.ts +0 -2
  46. package/dist/tools/index.js +0 -6
  47. package/dist/tools/index.js.map +1 -1
  48. package/dist/tools/operations.js +1 -1
  49. package/dist/tools/operations.js.map +1 -1
  50. package/dist/tools/prompt-hints.js +0 -6
  51. package/dist/tools/prompt-hints.js.map +1 -1
  52. package/dist/tools/skill.js +11 -5
  53. package/dist/tools/skill.js.map +1 -1
  54. package/dist/tools/tool-tiers.d.ts +2 -1
  55. package/dist/tools/tool-tiers.js +2 -3
  56. package/dist/tools/tool-tiers.js.map +1 -1
  57. package/dist/ui/components/SkillsOverlay.js +2 -1
  58. package/dist/ui/components/SkillsOverlay.js.map +1 -1
  59. package/package.json +6 -5
  60. package/assets/skills/clarify/SKILL.md +0 -39
  61. package/assets/skills/code-review/SKILL.md +0 -82
  62. package/assets/skills/code-review/references/agent-diffs.md +0 -27
  63. package/assets/skills/code-review/references/tests.md +0 -19
  64. package/assets/skills/evidence-led-ui/LICENSES.md +0 -79
  65. package/assets/skills/evidence-led-ui/SKILL.md +0 -95
  66. package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
  67. package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
  68. package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
  69. package/assets/skills/evidence-led-ui/references/direction.md +0 -116
  70. package/assets/skills/evidence-led-ui/references/methodology.md +0 -64
  71. package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
  72. package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
  73. package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
  74. package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
  75. package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
  76. package/assets/skills/refactoring/SKILL.md +0 -72
  77. package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
  78. package/assets/skills/refactoring/references/legacy.md +0 -70
  79. package/assets/skills/refactoring/references/smells.md +0 -71
  80. package/assets/skills/root-cause/SKILL.md +0 -46
  81. package/assets/skills/shared-language/SKILL.md +0 -32
  82. package/assets/skills/tdd/SKILL.md +0 -42
  83. package/dist/app-sidecar/royale-bug.d.ts +0 -19
  84. package/dist/app-sidecar/royale-bug.js +0 -112
  85. package/dist/app-sidecar/royale-bug.js.map +0 -1
  86. package/dist/app-sidecar/royale-deploy.d.ts +0 -5
  87. package/dist/app-sidecar/royale-deploy.js +0 -76
  88. package/dist/app-sidecar/royale-deploy.js.map +0 -1
  89. package/dist/tools/code-nav.d.ts +0 -29
  90. package/dist/tools/code-nav.js +0 -299
  91. package/dist/tools/code-nav.js.map +0 -1
  92. package/dist/tools/search-code.d.ts +0 -10
  93. package/dist/tools/search-code.js +0 -90
  94. package/dist/tools/search-code.js.map +0 -1
@@ -1,95 +0,0 @@
1
- ---
2
- name: evidence-led-ui
3
- description: Use when building, changing or reviewing UI: pages, sections, components, layout, styling, visual polish, accessibility. Do NOT use for behaviour-only changes.
4
- license: See LICENSES.md
5
- compatibility: Full review requires filesystem inspection and rendered screenshots (deferred `screenshot` tool); web research and device tooling are optional and unavailable checks must be reported as unverified. Baseline rows, WCAG 3.0 status and ADA Title II dates re-verified 22 October 2026.
6
- ---
7
-
8
- # Evidence-Led UI
9
-
10
- Pick your mode, then follow only that section:
11
-
12
- | Situation | Mode | Go to |
13
- | --- | --- | --- |
14
- | One control, state, border, icon inset, focus bug, or token tweak | Small edit | § Small-edit path |
15
- | New screen/page/component, redesign, or "make it look less generic" | Build | § Build loop |
16
- | "Review this UI", audit screens or flows, pre-ship look | Review | § Review mode |
17
-
18
- Every mode obeys § Binding defaults. Preserve the project's visual language unless the user asked for a redesign.
19
-
20
- ## Small-edit path
21
-
22
- Skip the design workflow, not verification:
23
-
24
- 1. Read the shared primitive, tokens, state rules, and callers. Reproduce the reported sequence before editing.
25
- 2. Focus, borders, glass, or dropdown icons: read `references/craft-rulings.md` § Control icon insets and § No sticky pointer focus. Find the rule that paints the defect before adding an override.
26
- 3. Fix the shared owner, not each screen. Check variants; remove superseded local treatments in scope. Added copy must pass § Copy must earn its space.
27
- 4. Run the applicable interaction regression matrix in `references/craft-rulings.md` via browser checks. Screenshots alone cannot pass interaction checks. Report actual evidence and unverified platforms.
28
-
29
- ## Build loop
30
-
31
- One design thesis, one author. Do not blend directions.
32
-
33
- 1. **Inspect.** Read nearest routes, components, tokens, type, icons, motion, and states. Reuse the local system; add no library just for a look. React and nothing local fits: read `references/ui-libraries.md` and use `ui_registry`/`ui_adopt` (via `tool_search`) for real Bklit/Kokonut source, never a lookalike.
34
- 2. **Content first.** Write real headline, labels, section copy, and realistic data (longest, empty, 0/1/many) before layout. Rank it. Delete sections with nothing true to say. Never invent metrics, testimonials, logos, or ratings; label fixtures. Details: `references/direction.md` § 1.
35
- 3. **Read the job.** Surface type, audience, single job, risk, platform, constraints. Infer from the project and state the inference; ask only for genuine taste or product decisions. Net-new or redesign: read the matching section of `references/archetypes.md`.
36
- 4. **Write the thesis** using the template in `references/direction.md` § 2: signature, type roles, OKLCH colour tokens with intended contrast pairs, spacing/density, radius/material, imagery, motion, rejected defaults. Broad work goes in `DESIGN.md`.
37
- 5. **Slop check the thesis** against `references/anti-defaults.md`. Every tell is replaced or justified with "This belongs because…". Run the neighbour test (§ 7 there).
38
- 6. **Plan states:** loading, empty, error, retry, success, disabled, destructive; hover, focus-visible, press, selected, expanded, pending; keyboard order, overlays, narrow/wide, reduced motion, zoom/reflow, long and localized text. Apply the accessibility sections of `references/production-contract.md`; the full contract for forms, navigation, data/AI, native, or release work.
39
- 7. **Implement** the complete flow with real content. Decision-critical information and the primary action stay visible or one obvious action away on desktop and mobile.
40
- 8. **Verify rendered output** (§ Rendered verification loop).
41
-
42
- ## Rendered verification loop
43
-
44
- 1. Load `screenshot` via `tool_search`. Capture desktop (~1440 px) and mobile (~390 px), plus key states.
45
- 2. Compare each capture against the written thesis line by line, then against `references/anti-defaults.md`.
46
- 3. Score with `references/quality-rubric.md`. Measure contrast of real rendered pairs; record pass/fail/unverified for applicable contract checks.
47
- 4. Fix the weakest criterion and every contract failure. Remove one decorative idea that does not serve the job. Re-capture.
48
- 5. Stop after one revision unless the gate still fails. Gate: **20/24 or higher**, no zero in accessibility, consistency and flow, responsive behaviour, state completeness, or content authenticity, and no applicable WCAG A/AA failure. Small components: 2 on every applicable floor criterion.
49
-
50
- No screenshot tool or browser available: say so, mark visual checks unverified, never claim the look was verified.
51
-
52
- ## Review mode
53
-
54
- Inspect code and rendered output. Return findings ordered by impact, each with screenshot or file:line evidence, label (`RUNTIME` observed, `CODE` read in source, `DEDUCED`, `SNAPSHOT` dated source), and the fix. Separate floor defects (accessibility, states, broken layout) from aesthetic opportunities (slop tells). Recommend one resolved direction.
55
-
56
- ## Binding defaults
57
-
58
- Details and fixes: `references/craft-rulings.md`.
59
-
60
- - **No emoji UI.** One coherent icon family; reuse the project's.
61
- - **Uniform geometry and one content rail.** Shared max-width, gutters, and breakpoint padding for nav, header, main, footer. Break alignment only for a stated content reason.
62
- - **Control icon insets.** Chevrons and trailing icons get a deliberate inline-end inset plus reserved text padding; never touch the edge or overlap text; logical properties for RTL.
63
- - **Reuse first.** Existing components, variants, tokens, focus rings, motion curves before new ones.
64
- - **Focus is not selection or decoration.** Diagnose the painted layer; one shared focus treatment separate from borders, glass, selected, expanded, error. No stacked rings. Prefer native `:focus-visible`; custom modality handling needs a reproduced defect and the regression matrix.
65
- - **No soft semantic tint-on-tint** unless requested or required by an existing variant.
66
- - **Motion:** no generic hover lift, no `transition: all`, named properties, tokens, reduced-motion path.
67
- - **Intentional type and colour:** see `references/direction.md`. Not Inter/violet-gradient by default on brand surfaces.
68
- - **Copy must earn its space.** No automatic subtitles, helper paragraphs, or footer notes; supporting text adds information the interface lacks. Named-outcome CTAs.
69
- - **No em dashes in UI copy** unless requested or exact supplied copy.
70
- - **WCAG 2.2 Level AA is the accessibility floor** for every applicable A/AA criterion across complete flows; native apps add WCAG2ICT and platform rules. Stricter project or legal rules win. Accessibility is never traded for aesthetics or speed.
71
- - **No unsupported accessibility claims.** Never say `ADA compliant`, `WCAG conformant`, or "accessible" from source review or scanners; that needs a defined scope, per-criterion evidence, manual keyboard and assistive-technology testing, and owner/legal review. Dated legal context: `references/production-contract.md` § 2.
72
-
73
- ## Scaling: one agent or several
74
-
75
- - Stay single-threaded for small edits, builds, redesigns, and reviews of one or two flows you can render yourself. One thesis, one author; never split a design across children.
76
- - Fan out a review of many screens, flows or apps: read-only repo helpers, one per disjoint flow, each owning ledger rows (flow × {slop tells, states, accessibility contract, responsive}) and capturing desktop and mobile screenshots; they read `references/anti-defaults.md`, `references/quality-rubric.md` and the accessibility sections of `references/production-contract.md`.
77
- - One researcher for a dated legal or platform claim. Fixes stay on the main thread (or editors on disjoint files) against the single thesis.
78
-
79
- Helper types, brief contents and merge rules come with the skill loader.
80
-
81
- ## Reference map
82
-
83
- Load only what the task needs; resolve paths from the skill root.
84
-
85
- - `references/direction.md`: content-first, thesis template, type, OKLCH colour, spacing, imagery, motion, stable Baseline features, INP practice.
86
- - `references/anti-defaults.md`: slop tells with replacement moves and the neighbour test.
87
- - `references/craft-rulings.md`: icons, geometry, insets, focus vs selection, regression matrix, type loading, contrast, copy rules.
88
- - `references/production-contract.md`: pass/fail semantics, WCAG/ADA/EAA context, forms, performance, platform, trust, AI, release evidence.
89
- - `references/quality-rubric.md`: rendered scoring gate.
90
- - `references/ui-libraries.md`: Bklit/Kokonut adoption and Motion APIs.
91
- - `references/archetypes.md`: surface-specific direction and upstream source slugs.
92
- - `references/observed-patterns.md`: measured corpus observations; read only the section that answers a question; keep numerator/denominator with any claim.
93
- - `references/methodology.md`, `references/provenance.md`, `LICENSES.md`: method, sources, standards status, licences, Refero boundary.
94
-
95
- The raw corpus is not bundled; to audit one claim, read that source at the pinned upstream commit listed in `references/provenance.md`. Corpus frequencies are observations of public surfaces, not brand truth or a reason to pick a colour, font, or layout. Mobile/native has no corpus documents; use platform guidance. Refero only through an authorized MCP or user export.
@@ -1,110 +0,0 @@
1
- # Slop Tells and Replacement Moves
2
-
3
- ## Contents
4
-
5
- 1. How to use this list
6
- 2. Composition tells
7
- 3. Colour, type, and surface tells
8
- 4. Content and copy tells
9
- 5. Motion and interaction tells
10
- 6. Craft regressions
11
- 7. Calibration: the default clusters
12
- 8. Final slop review
13
-
14
- ## 1. How to use this list
15
-
16
- A tell is not a ban. It is a choice that appears whatever the subject, so it signals "nobody decided this". Where the user's brief or the existing product pins down a direction, follow it exactly, even if it matches a tell. Where an axis is free, do not spend it on a tell.
17
-
18
- For each tell found in a plan or render, apply the replacement move, or keep it only if the "Keep when" condition holds and you write one sentence: **"This belongs because…"** naming the product, audience, or content reason. "Modern", "premium", "clean", "engaging", or "on brand" is not a reason.
19
-
20
- Run the list twice: on the written design thesis before code, and on desktop + mobile screenshots after.
21
-
22
- ## 2. Composition tells
23
-
24
- | Tell | Replacement move | Keep when |
25
- | --- | --- | --- |
26
- | Centered gradient hero: oversized centered headline, violet/blue glow, two CTAs, floating screenshot below | Open with the most characteristic thing in the subject's world: real product state, real data, a working demo, a strong photograph, or a plain typographic claim. Choose alignment after content. | The brand owns the gradient/light, the page has one conversion job, and the centered pause serves the narrative. |
27
- | Three equal icon-title-copy feature cards | Rank the content; give the main point more space; show the feature working; use a list or table for true peers. | Exactly three peer choices exist and comparison is the task. |
28
- | Bento grid by default | Map module size to priority and reading order; use a sequence or list otherwise. | A genuine overview of heterogeneous modules that users scan or rearrange. |
29
- | SaaS card kit: everything in identical rounded cards, one radius, same soft grey shadow | Group with whitespace and alignment. Containers only for real objects (selectable, draggable, separate records). Radius varies by role. | The items really are separate records. |
30
- | Decorative eyebrow: tracked ALL-CAPS or mono label above every heading | Delete it. | It names real taxonomy, step, status, or technical context. |
31
- | Numbered markers (01 / 02 / 03) on non-sequential content | Remove numbers. | The content is a real sequence: steps, timeline, ranking. |
32
- | Big-number stat strip ("10x faster", "99.9%", "50k+") | Show a sourced metric with unit, time frame, and consequence, or remove it. | The metric is auditable and central to the screen's decision. |
33
- | Floating tilted screenshot or fake dashboard mockup | Real UI at readable scale, cropped to the part that proves the adjacent claim. | Spatial overview matters, the image is current, perspective hides nothing. |
34
- | Fake terminal or code theatre | Real, copyable, versioned commands and output, or ordinary product evidence. | The user's task is genuinely code/CLI. |
35
- | Pills everywhere: nav, buttons, filters, badges, inputs | Pills for toggles/tags only; a small radius vocabulary elsewhere. | The product already uses a capsule motif deliberately. |
36
- | Icon medallion: line icon in the same tinted square above every section | Remove icons that repeat the heading. | Icons speed navigation, status scanning, or a real category system. |
37
- | Logo wall of invented or unlicensed customers | Real, permitted logos, or no social proof. | Supplied and approved. |
38
-
39
- ## 3. Colour, type, and surface tells
40
-
41
- | Tell | Replacement move | Keep when |
42
- | --- | --- | --- |
43
- | Purple/indigo/violet gradient as the default brand; Tailwind `indigo-500`/`violet-600` primary | Derive the hue from the subject, materials, or existing brand; build an OKLCH ramp (`references/direction.md` § Colour). | The existing brand is that hue. |
44
- | Out-of-box shadcn/Tailwind look: `slate`/`zinc` greys, `rounded-lg` everywhere, `ring-2 ring-offset-2`, default button set | Keep primitives for behaviour; restyle tokens: neutrals tinted toward the brand hue, a deliberate radius scale, the project's own focus treatment. | The project already ships that look; then preserve it. |
45
- | Inter, Geist, or bare `system-ui` as the whole aesthetic; Arial/Helvetica by neglect | Choose a family or pairing for this subject (`references/direction.md` § Type). | The existing system uses it, native fidelity is the goal, webfonts are prohibited, or it is dense app chrome. |
46
- | One headline word accented in gradient, italic, or colour | Let the whole headline carry the treatment, or make emphasis carry meaning (a value, a name). | The accented word is data. |
47
- | Glass cards: blurred translucent panels over colour blobs | One clear material model (flat, tonal, bordered, or measured elevation), one reason per layer. | Content sits over live media/map/video, or translucency is the local platform material. |
48
- | Dark equals premium; near-black `#0B0B0B`/`#111` with one acid-green or vermilion accent | Choose theme from environment, task duration, and media. If dark, tune OKLCH neutrals and measure contrast in both themes. | Media needs darkness, low-light use, or a tested dark-first brand. |
49
- | Warm cream (~`#F4F1EA`) + high-contrast serif + terracotta (~`#D97757`) | Anthropic names this its own Claude-interaction look; on a user's brief it reads as a tell. Choose another direction. | The brief asks for it. |
50
- | Broadsheet pastiche: hairline rules, zero radius, dense columns | Editorial structure only for editorial content. | The surface is editorial. |
51
- | Soft semantic tint-on-tint (low-opacity hue bg + same-hue text/icon/border) | `references/craft-rulings.md` § No soft semantic tint-on-tint. This one is a binding default, not a style preference. | The user requests it or scope requires reusing an existing variant. |
52
- | Huge type (96–160px) as the only idea | Build contrast from wording, measure, weight, width, and placement before size. | Campaign/editorial, short phrase, localization tested, type is the signature. |
53
- | Monospace for small data labels by reflex | Mono only for code and IDs; tabular numerals of the body face for figures. | Technical context the user reads as code. |
54
-
55
- ## 4. Content and copy tells
56
-
57
- | Tell | Replacement move | Keep when |
58
- | --- | --- | --- |
59
- | Lorem ipsum or "Feature one / Feature two" in review | Write real copy first (content-first rule in SKILL.md). | Never in review; label fixtures as fixtures. |
60
- | Fake metrics, testimonials, ratings, avatars, customer names, precise business data | Real content, or plainly labelled example data, or omit. | The user supplies approved fixtures or asks for a clearly marked prototype dataset. |
61
- | Generic CTAs: "Get started", "Learn more", "Submit", "Unlock the power of…" | Name the outcome ("Create invoice", "Book a table"). Keep the verb through the flow ("Publish" → toast "Published"). | Never as a default. |
62
- | Hype voice: "seamless", "effortless", "supercharge", "next-level", "revolutionize" | Say what it does in the user's own words. | Supplied brand copy. |
63
- | Middle-dot meta strings, `WORD — fragment` labels, `→` on every link | Plain sentence-case labels; arrows only where direction is literal. | Supplied copy. |
64
- | Emoji as icons, bullets, status, empty-state art | One coherent icon family (`references/craft-rulings.md` § 1). | Requested, or emoji is the content itself. |
65
- | Placeholder illustration: blob people, abstract 3D shapes, generic stock, unrelated generated hero art | Real product imagery, photography, data, or no image. | Requested and appropriate to the subject. |
66
- | Subtitle under every heading restating it | `references/craft-rulings.md` § Copy must earn its space. | It adds information needed here. |
67
- | Em dashes in UI copy | Full stop, comma, colon, parentheses, or two sentences. | Requested, or exact supplied/quoted/legal copy. |
68
- | Apologetic or vague errors ("Oops! Something went wrong") | Say what happened and how to fix it; no apology. | Never. |
69
-
70
- ## 5. Motion and interaction tells
71
-
72
- | Tell | Replacement move | Keep when |
73
- | --- | --- | --- |
74
- | Fade-and-slide-up on every section as it scrolls in | At most one orchestrated moment; content readable with motion off. | A single deliberate narrative beat. |
75
- | Hover lift, bob, or scale on every card/button | Colour, border, underline, icon-fill, opacity, or restrained shadow; stable geometry. | Movement communicates real drag, depth, or direct manipulation. |
76
- | Ambient perpetual motion: particles, gradient drift, marquees, auto-rotating cards | Still resting screen; animate state change only. Pause control if > 5 s. | Motion is the content (audio, time, live activity) and works paused. |
77
- | `transition: all` | Name properties; shared duration/easing tokens. | Never. |
78
- | Abrupt state swaps; layout shift on load | Short transitions on interpolable properties; skeletons matching final geometry; focus visible immediately. | Reduced motion or urgent feedback needs an instant change. |
79
- | Whole card clickable with nested buttons | One link target per card, or explicit buttons; never nested interactive elements. | Never. |
80
-
81
- ## 6. Craft regressions
82
-
83
- Treat each as a tell when found in a render; fixes live in `references/craft-rulings.md`:
84
-
85
- - accidental misalignment and drifting content rails;
86
- - a local button, modal, card, status colour, or focus ring duplicating an existing primitive with slightly different values;
87
- - mixed icon families (package icons, hand-drawn SVG, text glyphs together);
88
- - sticky pointer focus, stacked focus rings, edge-hugging dropdown chevrons.
89
-
90
- ## 7. Calibration: the default clusters
91
-
92
- Generated UI clusters into a few looks that appear whatever the subject (SNAPSHOT/DEDUCED; sources in `references/provenance.md` § Slop-tell sources). Recognise them in your own plan:
93
-
94
- 1. Purple-to-blue SaaS: centered hero, glow, Inter, three feature cards, logo wall, three-tier pricing.
95
- 2. shadcn default: zinc greys, `rounded-lg` cards, outline buttons, four KPI cards over a line chart.
96
- 3. Dark "premium": near-black, one neon accent, glass cards, grid-line background, mono labels.
97
- 4. Warm editorial: cream, serif display, terracotta accent, hairline rules.
98
- 5. Template chrome: ALL-CAPS eyebrows, middle-dot meta, `→` on links, emoji section markers.
99
-
100
- Ask: "Would I produce this same plan for a neighbouring product?" If yes, change the most transferable axis (usually colour, type, or hero composition) and state what changed and why.
101
-
102
- ## 8. Final slop review
103
-
104
- On the rendered desktop and mobile screenshots:
105
-
106
- 1. Cover the logo and accent colour. Can you still name the product and task?
107
- 2. Does any tell from §§ 2–5 remain without a "This belongs because…" sentence?
108
- 3. Is every number, quote, and logo traceable to real content or labelled as a fixture?
109
- 4. Is there exactly one memorable device, with everything around it quiet, and does it survive mobile without clutter?
110
- 5. Remove one decorative element. If the screen did not get worse, leave it removed.
@@ -1,97 +0,0 @@
1
- # Archetype Guidance
2
-
3
- ## How to choose
4
-
5
- Choose the archetype by the screen’s job, not the company category. A developer company’s billing console is application UI; its API reference is documentation; its launch page is marketing/brand. Hybrid screens may borrow one secondary archetype, but one must lead.
6
-
7
- All coverage and counts come from extraction version 1 of [`VoltAgent/awesome-design-md`](https://github.com/VoltAgent/awesome-design-md) at commit `664b3e78fd1a298ba11973822da988483256d4b4`. Each section names two aligned references and one contrast by upstream slug: the source is `https://github.com/VoltAgent/awesome-design-md/blob/664b3e78fd1a298ba11973822da988483256d4b4/design-md/<slug>/DESIGN.md`. References are observational analyses, not templates to copy.
8
-
9
- Every archetype also follows `craft-rulings.md`: no emoji UI, one coherent icon family, uniform key lines, reuse of local primitives, purposeful non-abrupt feedback without generic hover lift, intentional typography, measured contrast, consistent flow, and no generated em dashes in UI copy. Every implemented surface must also pass the applicable `production-contract.md` checks; archetype evidence never overrides semantics, accessibility, resilience, performance, platform, or trust requirements.
10
-
11
- ## Marketing and brand
12
-
13
- **Coverage:** **29/74 documents**. Dark **17/29**, mixed **7/29**, light **5/29**; motion mentioned in **19/29**. This is the largest and most technology-heavy group, so avoid exporting its conventions to product screens.
14
-
15
- **Design read:** Establish one claim, one audience, and one conversion. Let content cadence determine whether the composition is cinematic, editorial, demonstrative, or direct.
16
-
17
- **Direction:** Use a strong typographic or media hierarchy, variable section rhythm, and one subject-specific signature. Motion may stage narrative transitions, but it must not delay comprehension or interaction. Keep conversion hierarchy unmistakable.
18
-
19
- **Aligned evidence:** `apple`, `sanity`. **Useful contrast:** `figma`.
20
-
21
- **Reject:** A centered gradient headline, generic dashboard mockup, three equal feature cards, and floating glass shapes that could advertise any SaaS.
22
-
23
- ## Application UI
24
-
25
- **Coverage:** **7/74 documents**. Focus mentioned in **7/7**, disabled state in **6/7**, motion in **5/7**, keyboard language in only **1/7**. The sample is small and still based on public-site analyses.
26
-
27
- **Design read:** Name the repeated task, frequency, consequence of error, user expertise, and information that must remain visible while acting.
28
-
29
- **Direction:** Optimize stable navigation, predictable control placement, concise hierarchy, and fast state recognition. Use density appropriate to task frequency. Keep decorative layers behind the work surface. Add keyboard and loading/empty behavior even though the corpus documents it poorly.
30
-
31
- **Aligned evidence:** `linear.app`, `superhuman`. **Useful contrast:** `intercom`.
32
-
33
- **Reject:** Marketing-scale headings, scroll-led reveals, and oversized cards that turn repeated work into a tour.
34
-
35
- ## Dashboards and data-dense tools
36
-
37
- **Coverage:** **5/74 documents**. Dense language in **4/5**, focus in **5/5**, keyboard in **3/5**, error in **5/5**. Theme is dark **3/5**, light **1/5**, mixed **1/5**; the denominator is too small to prescribe a theme.
38
-
39
- **Design read:** Identify the decision the dashboard supports, update frequency, comparison axis, alert severity, and the smallest unit users scan repeatedly.
40
-
41
- **Direction:** Build a scan path before styling cards. Prefer alignment, separators, restrained surface steps, and semantic status encoding. Preserve row/column context, expose units, support keyboard navigation, and make filters visibly affect results. Charts should answer named questions rather than fill grid slots.
42
-
43
- **Aligned evidence:** `airtable`, `sentry`. **Useful contrast:** `miro`.
44
-
45
- **Reject:** Random metric tiles, equal visual weight for all data, unlabeled sparklines, and decorative gradients that compete with status colors.
46
-
47
- ## Commerce and marketplaces
48
-
49
- **Coverage:** **12/74 documents**. Theme is light **5/12**, dark **4/12**, mixed **3/12**; subtle-shadow policy appears in **8/12**; loading in **3/12** and empty state in **1/12**. Coverage spans retail, fintech, travel, and payments, so transaction risk varies widely.
50
-
51
- **Design read:** Resolve discovery versus purchase, inventory variability, trust burden, comparison behavior, and the role of imagery.
52
-
53
- **Direction:** Make product evidence, price, availability, trust, and primary transaction action legible in that order. Let imagery dictate card geometry when imagery is decision-critical. Use material softness only when it supports tactility or approachability. Design unavailable, loading, saved, and failure states explicitly.
54
-
55
- **Aligned evidence:** `airbnb`, `nike`. **Useful contrast:** `binance`.
56
-
57
- **Reject:** Generic product cards with fake ratings, identical crops, hidden fees, or a brand accent applied equally to navigation, price, badges, and purchase action.
58
-
59
- ## Editorial and content
60
-
61
- **Coverage:** **5/74 documents**. Asymmetry appears in **3/5**, full-bleed composition in **4/5**, motion in **1/5**, sharp-corner language in **3/5**. This is a small sample dominated by technology and media.
62
-
63
- **Design read:** Name the reading mode, expected session length, content hierarchy, recirculation goal, and whether imagery or text carries authority.
64
-
65
- **Direction:** Design reading rhythm through measure, leading, headline contrast, captions, metadata, and deliberate interruption. Use asymmetry when it clarifies editorial priority. Keep controls quiet and persistent enough to support progress, saving, or navigation.
66
-
67
- **Aligned evidence:** `wired`, `theverge`. **Useful contrast:** `spotify`.
68
-
69
- **Reject:** SaaS feature cards, pill labels on every taxonomy term, animated ornaments beside long-form copy, and uniform modules that erase editorial priority.
70
-
71
- ## Documentation and developer tools
72
-
73
- **Coverage:** **16/74 documents**. Dark **11/16**, mixed **4/16**, light **1/16**; sidebar language **8/16**; focus **13/16**; keyboard language **0/16**. The category is well represented but heavily biased toward developer marketing surfaces.
74
-
75
- **Design read:** Determine whether the user is learning, looking up, debugging, or copying; identify versioning, code-language, and navigation depth.
76
-
77
- **Direction:** Prioritize information scent, stable navigation, readable prose measure, copyable code, visible current context, and search. A technical accent or monospace register can support meaning, but code should not become decoration. Add keyboard access and command discoverability despite the corpus gap.
78
-
79
- **Aligned evidence:** `mintlify`, `vercel`. **Useful contrast:** `hashicorp`.
80
-
81
- **Reject:** Terminal theater, fake logs, neon syntax everywhere, hidden navigation, and dark mode chosen solely to look “developer.”
82
-
83
- ## Mobile and native surfaces
84
-
85
- **Coverage:** **0/74 documents**. The corpus cannot support a quantitative mobile/native house style.
86
-
87
- **Design read:** Resolve platform, input mode, reach zones, navigation convention, offline behavior, permissions, interruption, and whether the surface is phone, tablet, watch, or desktop native.
88
-
89
- **Direction:** Preserve the project’s platform conventions and native controls. Use official platform guidance and rendered/device testing as primary evidence. Borrow only content hierarchy and brand semantics from the closest corpus archetype. Plan touch, keyboard, pointer, dynamic type, safe areas, orientation, and reduced motion as applicable.
90
-
91
- **Aligned evidence:** none in this corpus. **Closest structural references:** `airbnb`, `superhuman`. **Useful contrast:** `apple` marketing analysis, which must not be mistaken for native UI guidance.
92
-
93
- **Reject:** Shrinking a desktop web composition into a phone viewport or inventing gestures without discoverable alternatives.
94
-
95
- ## Cross-archetype rule
96
-
97
- Select **two aligned references and one contrast**, then write why each is relevant to this exact screen. If the same palette, radius, font stack, composition, or motion policy survives unchanged across unrelated briefs, the thesis is under-specified.
@@ -1,242 +0,0 @@
1
- # Interface Craft Rulings
2
-
3
- ## Contents
4
-
5
- 1. Icons, never emoji
6
- 2. Uniform geometry and alignment
7
- 3. Reuse before invention
8
- 4. Motion without generic hover lift
9
- 5. Typography and Google Fonts loading
10
- 6. Contrast as a release requirement
11
- 7. Consistency and flow
12
- 8. UI copy punctuation
13
- 9. Final craft check
14
-
15
- These are binding defaults for UI implementation and review. They reflect Ken's product taste, current accessibility guidance, current web-font delivery guidance, established design-system motion/grid practices, and the pinned observational corpus. Override one only when the user explicitly requests the exception or the existing product has a stronger documented rule.
16
-
17
- ## 1. Icons, never emoji
18
-
19
- Do not use emoji as interface icons, bullets, status marks, empty-state decoration, or visual shorthand unless the user explicitly requests emoji.
20
-
21
- 1. Inspect the project for an existing icon system and reuse it.
22
- 2. If none exists and adding a dependency is allowed, choose one coherent stack-specific package. Default to Lucide for a restrained line system. Use Material Symbols when variable fill/weight/optical sizing fits an existing Google/Material language. Use Phosphor when the product needs a broader weight range and a softer illustrative voice.
23
- 3. Do not mix icon families within one product surface.
24
- 4. Do not hand-draw substitute SVGs when the selected package already has the icon.
25
- 5. Match icon stroke/fill weight, optical size, control size, and color role across repeated components.
26
- 6. Prefer visible text beside unfamiliar actions. Decorative icons are hidden from assistive technology. Icon-only buttons receive an accessible name on the button, a visible tooltip where useful, and at least a 44 by 44 CSS-pixel target.
27
-
28
- Lucide's current accessibility guidance recommends visible labels in most cases, consistent icon treatment, keyboard access, adequate contrast, and a 44 by 44 target wrapper. Material Symbols provides variable fill, weight, grade, and optical-size axes; use those axes systematically rather than mixing arbitrary styles.
29
-
30
- ## 2. Uniform geometry and alignment
31
-
32
- Uniformity means shared geometry, not equal visual importance.
33
-
34
- - Establish container edges, columns, gutters, spacing tokens, control heights, border positions, and text baselines before styling individual sections.
35
- - Repeated sections align to the same key lines. Cards in the same family share padding, header placement, border treatment, and action placement.
36
- - Vertical dividers meet related horizontal boundaries cleanly. Avoid one-pixel drift, almost-aligned edges, arbitrary indents, and section widths that change without a content reason.
37
- - Use one spacing rhythm. Prefer existing project tokens; otherwise derive a compact 4 or 8 pixel scale appropriate to density.
38
- - Preserve alignment through responsive recomposition. Mobile may change order or layout, but repeated controls and content edges remain internally consistent.
39
- - Break the grid only to express real hierarchy, media behavior, or editorial emphasis. A deliberate exception should be visible as an exception, not look accidental.
40
-
41
- ### Shared content rails and spacing ownership
42
-
43
- Establish one page-shell or container primitive that owns the default max-width and responsive inline gutters. Reuse it for navigation, headers, breadcrumbs, main content, adjacent sections, and footers. A full-bleed background or divider may span the viewport, but its inner content returns to the shared rail. A navbar that is slightly wider or narrower than the page body, or neighboring sections with almost-matching edges, is a craft failure unless the user or content explicitly requires a different composition.
44
-
45
- Use the project's spacing tokens for repeated section padding, stack gaps, grid gaps, and component insets. The parent layout owns spacing between siblings; each component owns its internal padding. Do not combine ad hoc child margins, wrapper padding, and arbitrary offsets until one section merely looks close to another. A deliberate nested rail, breakout, or asymmetric section needs a visible hierarchy or content reason and must resolve cleanly at every breakpoint.
46
-
47
- Test by drawing vertical guides through navigation, header, main, repeated sections, and footer at narrow, intermediate, desktop, and wide sizes. Their inner edges and breakpoint changes must align exactly by default. Compare repeated vertical gaps and section padding side by side; equal roles use equal tokens.
48
-
49
- ### Control icon insets
50
-
51
- A select, dropdown, or combobox chevron is part of the control anatomy, not decoration pasted onto its edge. Give every trailing icon a deliberate `inset-inline-end` that follows the control's horizontal-padding token. Reserve `padding-inline-end` for the outer inset, icon width, and a readable gap so labels, selected values, placeholders, loading indicators, clear buttons, and long or localized content never collide with it. An icon at `right: 0`, touching the border, or squeezed into an unreserved text area is a craft failure.
52
-
53
- Keep the icon optically centered and preserve the full control hit area. Native select text padding does not reliably reposition the browser-drawn arrow. Choose one path: retain native appearance and verify it on supported platforms, or reuse a shared native-select wrapper with `appearance: none` and one decorative custom chevron. Do not build a custom ARIA select merely to move an arrow.
54
-
55
- For the custom-arrow path, the wrapper owns positioning, the select reserves `padding-inline-end`, and the icon has its own `inset-inline-end`, `pointer-events: none`, and assistive-technology hiding. Reserve at least inset + icon width + text gap using shared tokens; 40px is not a universal requirement. Remove the native indicator only with a visible replacement, including in forced-colors mode. Check that exactly one arrow renders and clicking directly on it still opens the select. Use logical inline properties and verify RTL rather than hard-coding right-side geometry.
56
-
57
- Test every control size with the longest plausible value, 200% text zoom, narrow width, RTL, disabled/error/loading states, and both native and custom rendering paths. The trailing inset should visually belong to the same spacing rhythm as the leading content inset.
58
-
59
- Carbon's grid guidance uses consistent mini-unit multiples, key lines, fixed padding within breakpoints, and type aligned to box padding. Apply the principle through the project's own grid rather than copying Carbon's exact values.
60
-
61
- ## 3. Reuse before invention
62
-
63
- Before creating any token, component, style, or interaction:
64
-
65
- 1. Search the project for the same semantic role.
66
- 2. Reuse the existing component and variant when it meets the need.
67
- 3. Extend the nearest primitive when the need is genuinely new.
68
- 4. Create a new primitive only when reuse or extension would distort semantics.
69
-
70
- Do not duplicate button systems, card shells, form controls, modal behavior, status colors, spacing scales, icon wrappers, focus rings, or motion curves. Reuse class utilities and design tokens where they already exist. Same function means same label, icon, accessible name, state treatment, and placement across pages.
71
-
72
- ## 4. Motion without generic hover lift
73
-
74
- Every interactive component must provide clear feedback for relevant hover, focus, press, selected, expanded, loading, success, and error states. Feedback should not feel abrupt when an interpolated transition improves comprehension.
75
-
76
- Default motion behavior:
77
-
78
- - Do not use generic `translateY` hover lift, bobbing, floating, card jumping, or indiscriminate scale-up.
79
- - Prefer background, foreground, border, underline, icon fill/weight, opacity, and restrained shadow transitions.
80
- - Press feedback should feel connected to activation. Prefer color, inset, fill, or a brief controlled compression only when it matches the material model.
81
- - Animate state and continuity, not decoration. Do not add ambient or perpetual motion to make a static layout feel designed.
82
- - Never use `transition: all`. Name the properties that are allowed to interpolate.
83
- - Avoid animating layout properties such as `width`, `height`, `top`, and `left` unless spatial change is the meaning and performance is verified.
84
- - Keep focus indication immediate and visible. A transition must never delay awareness of keyboard focus.
85
-
86
- ### No sticky pointer focus
87
-
88
- DOM focus can legitimately remain after a click or native popup dismissal. Having focus and painting a focus indicator are separate decisions. Text-entry controls may legitimately match `:focus-visible` after pointer activation; user/browser preferences may also require visible focus. Do not treat these as stale-ring bugs. Genuine selected, expanded, validation, and drag states must retain their own semantics and styling.
89
-
90
- #### Diagnose the painted layer first
91
-
92
- Reproduce the exact interaction sequence. Inspect the active element, `:focus`, `:focus-visible`, ancestor `:focus-within`, state attributes/classes, and computed styles on the control, wrapper, and `::before`/`::after`. Trace outlines, borders, box shadows (including ring utilities), backgrounds, and glass reflections to their winning rules. Record which layer draws the unwanted edge and which event leaves it visible. A screenshot cannot distinguish these causes.
93
-
94
- Fix that owner and inspect its callers. One shared primitive or utility owns the focus indicator and its width, offset, and color tokens. Do not add a second editor-local ring, blanket ancestor highlight, specificity escalation, or `!important` patch over the shared rule. Keep material decoration and selection separate from focus. Reuse the established restrained indicator, but never force a universal hairline at the expense of visibility, contrast, forced colors, or platform requirements. Verify the combined painted result, not outline width alone.
95
-
96
- #### Modality without keyboard regressions
97
-
98
- Prefer native `:focus-visible` and existing accessible primitives. Add or change custom modality handling only for a reproduced supported-browser defect; use one shared policy, not per-control document listeners.
99
-
100
- - Pointer interaction may hide only the inappropriate pointer-originated treatment; it must not blur the control or clear real selection.
101
- - Tab and Shift+Tab reveal focus immediately. Composite widgets must also reveal focus when their supported navigation keys move it. Preserve keyboard and assistive-technology focus return after overlays and programmatic moves.
102
- - Do not equate every `keydown` with navigation. Space, Enter, typing, modifier-only keys, and global shortcuts must not blindly resurrect a stale ring on the last pointer-focused control. Nor should they blindly clear an existing keyboard indicator. Keep activation and text-entry behavior intact; if a key opens a menu or moves focus, the destination still needs appropriate focus feedback.
103
- - Never fix rings using blanket `outline: none`, a Tab-only global accessibility policy, prevented native key behavior, or forced blur.
104
-
105
- #### Required interaction regression matrix
106
-
107
- For changes to focus, control edges, or dropdown anatomy, run applicable rows in a real browser. Add regressions to existing browser tests where available; otherwise record manual steps and results. Do not invent a new test suite just for this check.
108
-
109
- | Sequence or state | Required result |
110
- |---|---|
111
- | Pointer open → choose option or dismiss → Space/Enter or an unrelated shortcut → Tab → click blank space | No custom stale ring is resurrected merely by a keydown; native activation still works; Tab immediately reveals the correct focus target; pointer cleanup preserves genuine states. Test selection and dismissal separately. |
112
- | Tab/Shift+Tab → activate → Escape/close → resume navigation | Visible focus throughout keyboard use, correct return target, no trap; supported arrow-key navigation also works. |
113
- | Pointer into text input → type; keyboard into input → type | Caret, editing, and appropriate visible focus remain intact. |
114
- | Selected/expanded/error control inside a glass wrapper, with and without keyboard focus | Each state remains correct; no duplicate local/shared ring or unintended container-wide edge. Inspect computed styles and rendered output. |
115
- | Every affected shared-control variant, long value, narrow width, 200% text zoom, RTL | One chevron; measured inset and reserved text area do not collide; arrow hit area works. |
116
- | Supported browser/webview, themes, forced colors, and touch where applicable | Focus and chevron remain visible and operable; record unavailable combinations as unverified. Native popup behavior needs native interaction, not just a programmatic value change. |
117
-
118
- Report the reproduced cause, shared owner changed, tested sequences and browser/platform, and any remaining uncertainty. An initial-state screenshot, class-name assertion, or source review alone does not establish that interaction regressions passed.
119
-
120
- Reuse existing motion tokens first. If none exist, begin with these restrained bands, then tune by component size and distance:
121
-
122
- | Role | Typical duration | Use |
123
- |---|---:|---|
124
- | Immediate micro-feedback | 70 to 110 ms | button, toggle, icon fill, press |
125
- | Standard state change | 140 to 200 ms | color, border, background, small disclosure |
126
- | Entrance or panel continuity | 180 to 240 ms | menu, popover, drawer, inserted feedback |
127
- | Exit | 120 to 180 ms | dismissal and removal |
128
-
129
- For a neutral productive curve, Carbon documents `cubic-bezier(0.2, 0, 0.38, 0.9)` for standard productive motion, with separate entrance and exit curves. Use local easing when available.
130
-
131
- The pinned observational corpus supports restrained hover treatment: Tesla and Lamborghini explicitly prefer color-only interactions over scale/translate; Vercel uses underline or surface changes; Linear uses a controlled color/surface state; Sanity uses a consistent interactive color. These are observations of selected surfaces, not universal brand rules. Refero content was not accessed because no authorized Refero MCP or user-provided export was available.
132
-
133
- Reduced motion is mandatory. Under `prefers-reduced-motion: reduce`, remove non-essential travel, parallax, scale, and spatial choreography. Preserve state feedback through immediate color, border, text, icon, or opacity changes. WCAG 2.2 SC 2.3.3 treats disabling non-essential interaction animation as the accessible direction.
134
-
135
- ## 5. Typography that carries intent
136
-
137
- Reuse the project's established type system first. For net-new web work without an established type system, choose an intentional family or pairing that matches the subject, language coverage, density, and reading mode.
138
-
139
- Do not choose Arial, Helvetica, or a bare `system-ui` stack as the visible design direction for net-new aesthetic work. They remain acceptable technical fallbacks and may remain correct for an existing system or native-platform surface.
140
-
141
- ### Current Google Fonts inspiration
142
-
143
- The following families were present in Google Fonts metadata fetched 14 July 2026. Popularity positions in that metadata included DM Sans 23, Manrope 37, Lora 43, Bricolage Grotesque 45, Plus Jakarta Sans 51, Space Grotesk 79, Instrument Serif 92, Geist 125, IBM Plex Mono 129, Source Serif 4 133, Instrument Sans 140, Newsreader 148, Geist Mono 149, and DM Mono 168. Popularity is discovery evidence, not a command to use the highest-ranked family.
144
-
145
- | Pairing | Best fit | Role split |
146
- |---|---|---|
147
- | Instrument Sans + Instrument Serif | editorial brands, culture, thoughtful commerce | sans for UI/body, serif for display or pull quotes |
148
- | Manrope + IBM Plex Mono | precise product UI, operations, technical SaaS | sans for interface, mono for data and technical labels |
149
- | Plus Jakarta Sans + Source Serif 4 | trustworthy services, education, research | sans for navigation/UI, serif for long reading |
150
- | DM Sans + DM Mono | clean application UI, data products | sans for hierarchy, mono for identifiers and code |
151
- | Space Grotesk + Newsreader | modern editorial/product hybrids | grotesk for display/UI, serif for narrative |
152
- | Bricolage Grotesque + Lora | playful or crafted consumer products | expressive sans for display, serif for supporting warmth |
153
- | Geist + Geist Mono | restrained developer tools | sans for UI, mono for code/data |
154
- | Noto Sans + Noto Serif | multilingual products | broad-script sans/serif system |
155
-
156
- Use one family when role, weight, width, size, and tracking provide enough hierarchy. Add a second family only for a clear role contrast. Two families are usually sufficient; a third requires a specific content role.
157
-
158
- ### Loading Google Fonts
159
-
160
- When network font loading is acceptable, connect the selected pair through the Google Fonts CSS API. Request only used families, styles, scripts, and weights. Use `display=swap`, preconnect to both Google Fonts origins, and test fallback metrics and layout shift.
161
-
162
- ```html
163
- <link rel="preconnect" href="https://fonts.googleapis.com" />
164
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
165
- <link
166
- rel="stylesheet"
167
- href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap"
168
- />
169
- ```
170
-
171
- Do not connect Google Fonts when privacy, offline operation, CSP, performance budgets, or project policy prohibit third-party font requests. Self-host approved WOFF2 files instead. Google and web.dev guidance recommends early discovery, preconnect for third-party font origins, explicit `font-display`, limited variants, and testing cumulative layout shift.
172
-
173
- ## 6. Contrast is a release requirement
174
-
175
- Never use faint light-gray text on white, faint dark-gray text on black, or low-contrast borders/icons merely to look refined.
176
-
177
- - Normal text meets at least 4.5:1 against its actual background.
178
- - Large text meets at least 3:1.
179
- - Meaningful icons, control boundaries, focus indicators, and graphical objects meet at least 3:1 against adjacent colors.
180
- - Muted, secondary, placeholder, metadata, and disabled text remain intentionally legible. Disabled controls have a WCAG exception, but their meaning should not disappear.
181
- - Do not round a failing ratio upward. W3C explicitly notes that 4.499:1 fails 4.5:1.
182
- - Aim above the minimum for small, thin, long-form, or mission-critical text. Verify computed colors rather than judging from a screenshot alone.
183
- - Do not use color as the only status cue. Pair color with text, shape, icon, or pattern.
184
-
185
- ### No soft semantic tint-on-tint
186
-
187
- Do not default badges, buttons, toasts, alerts, cards, selected states, status rows, or icon medallions to the familiar `soft`, `subtle`, `surface`, or `tonal` formula: a low-opacity red, green, amber, blue, or purple background paired with saturated same-hue text or icons, often finished with a same-hue border. The border is optional; the same-hue tinted surface plus same-hue foreground is the rejected pattern.
188
-
189
- Choose the replacement from the product's existing aesthetic and the component's role. Viable directions include a neutral surface with an isolated semantic icon, dot, or edge; a solid semantic fill with neutral high-contrast text; monochrome treatment; a product accent; plain typography; or another coherent local material model. These are options, not a new house style. Preserve hierarchy, measured contrast, and a non-color cue for status.
190
-
191
- Retain tint-on-tint only when the user explicitly asks for it or exact reuse of an established design-system variant is required by scope. Existing examples are evidence to inspect, not permission to spread the treatment into new component families.
192
-
193
- ## 7. Consistency and flow
194
-
195
- A polished interface feels like one system from section to section, component to component, and page to page.
196
-
197
- - Repeated navigation stays in the same relative order.
198
- - Repeated functions keep the same component, label, icon, accessible name, and state behavior.
199
- - Page templates share container widths, header logic, spacing cadence, and section transitions.
200
- - A section should hand off to the next through intentional spacing, border, surface, continuation, or hierarchy. Avoid random background bands and arbitrary rhythm resets.
201
- - Keep primary action placement predictable within a flow. Do not move the same action between card header, footer, and floating affordance without a reason.
202
- - Preserve user orientation during loading, filtering, navigation, and responsive changes.
203
- - Review adjacent screens together, not as isolated screenshots.
204
-
205
- WCAG 2.2 SC 3.2.3 requires repeated navigation to keep the same relative order, and SC 3.2.4 requires components with the same function to be identified consistently. These accessibility requirements also reduce visual and cognitive friction for everyone.
206
-
207
- ## 8. UI copy punctuation
208
-
209
- Do not generate em dashes in user-facing UI copy unless the user explicitly requests them or supplied brand/source copy already uses them and must remain unchanged.
210
-
211
- Prefer a period, comma, colon, parentheses, or a rewritten sentence. Preserve exact quoted or legal source text. This is a product voice ruling, not a claim that em dashes are inaccessible.
212
-
213
- ### Copy must earn its space
214
-
215
- Apply this to new UI and changed components, regardless of product, platform, or visual style. Sufficient information at the right moment is the goal, not maximum brevity.
216
-
217
- - **Labels first:** Start with clear labels, controls, and relevant status. Do not automatically fill components with subtitles, descriptions, helper paragraphs, or footer notes simply because a slot exists.
218
- - **Justify supporting text:** Include it only to resolve ambiguity, prevent a likely mistake, explain a meaningful consequence, or help recovery. Ask: “Does this text add information needed here that the interface does not already communicate?” Remove it if not.
219
- - **One fact, one place:** Do not restate headings, labels, actions, status, or nearby explanations in supporting prose. Repeat only when a separate decision context genuinely requires it; accessible names and necessary instructions must remain complete.
220
- - **Right information, right moment:** Show state-specific guidance in that state. Make optional setup details and troubleshooting available through discoverable, accessible contextual help. Complete states through behavior and timely feedback, not permanent paragraphs explaining every possible outcome.
221
- - **Essential guidance stays visible:** Keep necessary instructions, safety warnings, costs, consent, and irreversible consequences visible at the point of decision before action. Do not hide them in tooltips or disclosures merely to simplify the screen. Preserve required legal and supplied exact wording.
222
- - **Familiar words:** Describe what people can do and what happens. Use implementation details only when the audience needs them for the task; accuracy alone does not justify their presence.
223
- - **Remove before compressing:** Reduce redundant content before shrinking text, squeezing spacing or hit targets, truncating necessary information, or accepting avoidable scrolling. There is no universal word limit, sentence limit, or ban on scrolling; substantive content, localization, and accessibility may require more space.
224
- - **Verify in context:** Inspect the rendered screen at its intended window sizes and relevant states, including text scaling. Check repeated meaning, reading effort, and whether supporting copy delays reaching the task, not merely whether everything fits. Check that removing or relocating text has not made the next action or its consequences ambiguous. Source review alone leaves the rendered check unverified.
225
-
226
- ## Final craft check
227
-
228
- Before calling UI work complete, verify:
229
-
230
- - no emoji used as UI imagery;
231
- - one coherent icon family, with accessible names and target sizes;
232
- - shared key lines, control heights, spacing, borders, and component geometry;
233
- - existing components/tokens reused before new ones were created;
234
- - every relevant interaction has purposeful, non-abrupt feedback;
235
- - no generic hover lift or `transition: all`;
236
- - reduced motion preserves state meaning;
237
- - typography is intentional, loaded efficiently, and stable during fallback;
238
- - all text and meaningful non-text contrast is measured;
239
- - no soft semantic tint-on-tint treatment was introduced without an explicit user request or required existing-system match;
240
- - repeated navigation/actions remain consistent across sections and pages;
241
- - supporting copy adds necessary information at the right moment, without redundant descriptions or avoidable scrolling; essential instructions and consequences remain visible;
242
- - generated UI copy contains no em dashes unless explicitly allowed.