@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.
- package/README.md +23 -31
- package/assets/skills/bulletproof/SKILL.md +2 -0
- package/assets/skills/compliance-guard/SKILL.md +1 -1
- package/assets/skills/lean/SKILL.md +2 -0
- package/dist/app-sidecar/progress-manager.d.ts +2 -20
- package/dist/app-sidecar/progress-manager.js +2 -15
- package/dist/app-sidecar/progress-manager.js.map +1 -1
- package/dist/app-sidecar/royale.d.ts +26 -24
- package/dist/app-sidecar/royale.js +85 -187
- package/dist/app-sidecar/royale.js.map +1 -1
- package/dist/app-sidecar.js +32 -40
- package/dist/app-sidecar.js.map +1 -1
- package/dist/core/autopilot-gate.js +2 -3
- package/dist/core/autopilot-gate.js.map +1 -1
- package/dist/core/bundled-agents.js +7 -27
- package/dist/core/bundled-agents.js.map +1 -1
- package/dist/core/checklist-items.d.ts +0 -8
- package/dist/core/checklist-items.js +0 -8
- package/dist/core/checklist-items.js.map +1 -1
- package/dist/core/code-retrieval.d.ts +1 -1
- package/dist/core/code-retrieval.js +2 -2
- package/dist/core/code-retrieval.js.map +1 -1
- package/dist/core/mcp/deferred-catalog.d.ts +1 -1
- package/dist/core/mcp/deferred-catalog.js +1 -1
- package/dist/core/skills.d.ts +6 -0
- package/dist/core/skills.js +11 -3
- package/dist/core/skills.js.map +1 -1
- package/dist/core/subagent-policy.d.ts +6 -0
- package/dist/core/subagent-policy.js +21 -2
- package/dist/core/subagent-policy.js.map +1 -1
- package/dist/core/subagent-receipt.d.ts +2 -2
- package/dist/core/subagent-receipt.js +5 -8
- package/dist/core/subagent-receipt.js.map +1 -1
- package/dist/core/trophies/catalog-more.js +0 -20
- package/dist/core/trophies/catalog-more.js.map +1 -1
- package/dist/core/trophies/engine.js +0 -4
- package/dist/core/trophies/engine.js.map +1 -1
- package/dist/core/trophies/types.d.ts +1 -1
- package/dist/core/trophies/types.js +0 -2
- package/dist/core/trophies/types.js.map +1 -1
- package/dist/goals-agent/goal-team.js +3 -4
- package/dist/goals-agent/goal-team.js.map +1 -1
- package/dist/modes/acp-mode.js +0 -1
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/index.js +0 -6
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/operations.js +1 -1
- package/dist/tools/operations.js.map +1 -1
- package/dist/tools/prompt-hints.js +0 -6
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/skill.js +11 -5
- package/dist/tools/skill.js.map +1 -1
- package/dist/tools/tool-tiers.d.ts +2 -1
- package/dist/tools/tool-tiers.js +2 -3
- package/dist/tools/tool-tiers.js.map +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -1
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/package.json +6 -5
- package/assets/skills/clarify/SKILL.md +0 -39
- package/assets/skills/code-review/SKILL.md +0 -82
- package/assets/skills/code-review/references/agent-diffs.md +0 -27
- package/assets/skills/code-review/references/tests.md +0 -19
- package/assets/skills/evidence-led-ui/LICENSES.md +0 -79
- package/assets/skills/evidence-led-ui/SKILL.md +0 -95
- package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
- package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
- package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
- package/assets/skills/evidence-led-ui/references/direction.md +0 -116
- package/assets/skills/evidence-led-ui/references/methodology.md +0 -64
- package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
- package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
- package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
- package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
- package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
- package/assets/skills/refactoring/SKILL.md +0 -72
- package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
- package/assets/skills/refactoring/references/legacy.md +0 -70
- package/assets/skills/refactoring/references/smells.md +0 -71
- package/assets/skills/root-cause/SKILL.md +0 -46
- package/assets/skills/shared-language/SKILL.md +0 -32
- package/assets/skills/tdd/SKILL.md +0 -42
- package/dist/app-sidecar/royale-bug.d.ts +0 -19
- package/dist/app-sidecar/royale-bug.js +0 -112
- package/dist/app-sidecar/royale-bug.js.map +0 -1
- package/dist/app-sidecar/royale-deploy.d.ts +0 -5
- package/dist/app-sidecar/royale-deploy.js +0 -76
- package/dist/app-sidecar/royale-deploy.js.map +0 -1
- package/dist/tools/code-nav.d.ts +0 -29
- package/dist/tools/code-nav.js +0 -299
- package/dist/tools/code-nav.js.map +0 -1
- package/dist/tools/search-code.d.ts +0 -10
- package/dist/tools/search-code.js +0 -90
- package/dist/tools/search-code.js.map +0 -1
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
# Picking a Direction
|
|
2
|
-
|
|
3
|
-
## Contents
|
|
4
|
-
|
|
5
|
-
1. Content first
|
|
6
|
-
2. The thesis template
|
|
7
|
-
3. Type
|
|
8
|
-
4. Colour (OKLCH, measured)
|
|
9
|
-
5. Spacing, density, radius
|
|
10
|
-
6. Imagery
|
|
11
|
-
7. Motion
|
|
12
|
-
8. Platform features worth using (verified Baseline status)
|
|
13
|
-
9. Responsiveness and INP practice
|
|
14
|
-
|
|
15
|
-
Use for net-new UI, redesigns, or when the existing product leaves an axis free. If the project already has a system, preserve it and skip to § 8–9.
|
|
16
|
-
|
|
17
|
-
## 1. Content first
|
|
18
|
-
|
|
19
|
-
Before any layout:
|
|
20
|
-
|
|
21
|
-
1. Write the real headline, primary action label, and the copy for every section, in the user's vocabulary.
|
|
22
|
-
2. Gather or write realistic data: longest names, empty values, large numbers, 0/1/many items, localized strings.
|
|
23
|
-
3. Rank it: what must be seen first, second, and what is the one action.
|
|
24
|
-
4. Only then pick layout. If a section has nothing true to say, delete the section, do not design a container for it.
|
|
25
|
-
|
|
26
|
-
Fixtures must be labelled as fixtures. Never invent proof (`references/anti-defaults.md` § 4).
|
|
27
|
-
|
|
28
|
-
## 2. The thesis template
|
|
29
|
-
|
|
30
|
-
Write this before code (in `DESIGN.md` for broad work, in notes otherwise). Max ~12 lines.
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
Subject + audience + single job:
|
|
34
|
-
Signature (one memorable device, from the subject's world):
|
|
35
|
-
Type: display / body / utility roles, families, scale ratio
|
|
36
|
-
Colour: 4–6 named OKLCH tokens + intended contrast pairs
|
|
37
|
-
Space/density: base unit, scale, density mode
|
|
38
|
-
Radius + material: scale by role; surface model (flat / tonal / bordered / elevated)
|
|
39
|
-
Imagery: source and treatment, or "none"
|
|
40
|
-
Motion: the one orchestrated moment + feedback durations/easing
|
|
41
|
-
Alignment: rail width, grid, left/center rule
|
|
42
|
-
Rejected defaults: which slop tells this plan avoided and what replaced them
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Then run the neighbour test from `references/anti-defaults.md` § 7 on the plan and revise once.
|
|
46
|
-
|
|
47
|
-
## 3. Type
|
|
48
|
-
|
|
49
|
-
- One family or two; if two, make them clearly different (e.g. a characterful display + a quiet text face, or a serif text + a grotesque UI face). Three only when a mono is needed for code.
|
|
50
|
-
- Choose from the subject: technical precision, warmth, editorial authority, playfulness. Name the reason in the thesis.
|
|
51
|
-
- Avoid Inter/Geist/system-ui as the identity of a marketing or brand surface. They remain fine for dense application chrome or when the project already uses them.
|
|
52
|
-
- Scale: one ratio (e.g. 1.2 for dense apps, 1.25–1.333 for marketing) mapped to named tokens; no ad-hoc sizes.
|
|
53
|
-
- Measure: body text under ~75 characters; serif body gets slightly more line-height.
|
|
54
|
-
- Use `text-wrap: balance` on headings and `text-wrap: pretty` on paragraphs as progressive enhancement.
|
|
55
|
-
- Tabular numerals (`font-variant-numeric: tabular-nums`) for columns of figures.
|
|
56
|
-
- Loading and font candidates: `references/craft-rulings.md` § 5.
|
|
57
|
-
|
|
58
|
-
## 4. Colour (OKLCH, measured)
|
|
59
|
-
|
|
60
|
-
- Start from one brand hue derived from the subject or existing brand. Not violet/indigo by default.
|
|
61
|
-
- Define tokens in `oklch()` (Baseline widely available). Build ramps by stepping lightness (L) at fixed hue; reduce chroma (C) near the light and dark ends so colours stay in gamut.
|
|
62
|
-
- Neutrals: tint toward the brand hue with very low chroma (about 0.005–0.02) instead of stock `slate`/`zinc`.
|
|
63
|
-
- Roles, not hues: `bg`, `surface`, `text`, `text-muted`, `border`, `accent`, `accent-contrast`, `focus`, `danger`, `success`. Components consume roles only.
|
|
64
|
-
- Accent covers a small share of the screen; status colours are reserved for status.
|
|
65
|
-
- Themes: `light-dark()` (Baseline newly available) or `prefers-color-scheme` tokens; tune dark neutrals separately rather than inverting.
|
|
66
|
-
- Contrast is measured, not eyeballed. WCAG 2.2 AA: 4.5:1 normal text, 3:1 large text, 3:1 for UI component boundaries, icons, and focus indicators against adjacent colours. Compute ratios from the resolved sRGB values (browser devtools, axe, or a script) for every text/background pair in both themes and record them. OKLCH lightness is a design aid, not a WCAG measurement.
|
|
67
|
-
- `color-mix()` (Baseline widely available) for hover/pressed derivations from tokens instead of new hard-coded values.
|
|
68
|
-
|
|
69
|
-
## 5. Spacing, density, radius
|
|
70
|
-
|
|
71
|
-
- One base unit (4 or 8 px) and a named scale; no off-scale values.
|
|
72
|
-
- Density by task: data-dense tools use compact rows and small gaps; marketing uses generous section spacing. Do not mix densities within one view without reason.
|
|
73
|
-
- Group with proximity first, then alignment, then borders, then fills. Shadows last and with one reason.
|
|
74
|
-
- Radius scale by role (e.g. inputs and buttons share one, overlays another, avatars full). Never one radius for everything by reflex.
|
|
75
|
-
- One shared content rail (`references/craft-rulings.md` § Shared content rails).
|
|
76
|
-
|
|
77
|
-
## 6. Imagery
|
|
78
|
-
|
|
79
|
-
Priority: real product UI at readable scale → real photography of the subject → real data visualised → typography alone. Generated or stock illustration only when requested. Every image needs dimensions (no layout shift), meaningful `alt` or empty `alt` if decorative, and responsive sources.
|
|
80
|
-
|
|
81
|
-
## 7. Motion
|
|
82
|
-
|
|
83
|
-
- One orchestrated moment per page at most (a load sequence or one reveal). Everything else is feedback to user action.
|
|
84
|
-
- Feedback: about 100–200 ms for hover/press, about 200–300 ms for panels; ease-out for entering, ease-in for leaving. Use tokens.
|
|
85
|
-
- Animate `transform` and `opacity`; name transitioned properties.
|
|
86
|
-
- Every motion has a `prefers-reduced-motion` path that keeps meaning.
|
|
87
|
-
- Auto-playing motion longer than 5 s needs pause/stop/hide (WCAG 2.2.2).
|
|
88
|
-
|
|
89
|
-
## 8. Platform features worth using (stable Baseline)
|
|
90
|
-
|
|
91
|
-
Stable rows only (SNAPSHOT, re-checked 22 Oct 2026). Baseline status moves monthly: for any feature not listed, or any "not yet Baseline" call, check https://webstatus.dev or the MDN compatibility table live before deciding, and record the date you checked.
|
|
92
|
-
|
|
93
|
-
| Feature | Baseline | Use by default? |
|
|
94
|
-
| --- | --- | --- |
|
|
95
|
-
| Container queries (size) | Widely available | Yes, for components that live in varying containers. |
|
|
96
|
-
| `:has()` | Widely available | Yes, for parent/state styling instead of JS class toggling. |
|
|
97
|
-
| `oklch()` / `oklab()`, `color-mix()` | Widely available | Yes, for tokens. |
|
|
98
|
-
| `<dialog>`, `inert` | Widely available | Yes, for modals and disabling background regions. |
|
|
99
|
-
| Subgrid | Widely available | Yes, for aligning card internals across a row. |
|
|
100
|
-
| Popover API | Newly available (Jan 2025) | Yes for menus/tooltips/popovers, with tested focus behaviour. |
|
|
101
|
-
| `text-wrap: balance`, `light-dark()`, `@starting-style`, `details name` | Newly available | Yes; content must work without the enhancement. |
|
|
102
|
-
| Same-document view transitions | Newly available (Oct 2025) | Yes as progressive enhancement with reduced-motion opt-out. |
|
|
103
|
-
| CSS anchor positioning | Newly available (Jan 2026, Firefox 147) | Yes for tooltips/menus when the support policy allows; keep a fallback position otherwise. |
|
|
104
|
-
|
|
105
|
-
"Newly available" means supported in current versions of all core browsers but not yet for 30 months; check the project's support policy before relying on it without a fallback.
|
|
106
|
-
|
|
107
|
-
## 9. Responsiveness and INP practice
|
|
108
|
-
|
|
109
|
-
Interaction to Next Paint (INP) is the Core Web Vital for responsiveness; "good" is 200 ms or less at the 75th percentile (web.dev, SNAPSHOT).
|
|
110
|
-
|
|
111
|
-
- Paint feedback first: update the pressed/pending state synchronously, then do heavy work after yielding (`await scheduler.yield()` where supported, otherwise `setTimeout`/`requestAnimationFrame` fallback).
|
|
112
|
-
- Keep event handlers small; debounce typing-driven filtering; virtualize long lists; avoid layout thrash (read then write).
|
|
113
|
-
- Prefer CSS state (`:has()`, `:focus-visible`, popover, `<details>`) over JS-driven re-renders for simple UI state.
|
|
114
|
-
- Use `content-visibility: auto` for long offscreen sections when it does not break find-in-page or anchors in the target browsers.
|
|
115
|
-
- Reserve space for images, ads, embeds, and async content to avoid layout shift.
|
|
116
|
-
- Report measurements as RUNTIME only when measured; otherwise say unmeasured.
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# Corpus Methodology
|
|
2
|
-
|
|
3
|
-
## Scope
|
|
4
|
-
|
|
5
|
-
This skill analyzes the MIT-licensed public `DESIGN.md` snapshot from [`VoltAgent/awesome-design-md`](https://github.com/VoltAgent/awesome-design-md) at commit `664b3e78fd1a298ba11973822da988483256d4b4` (retrieved 2026-07-13).
|
|
6
|
-
|
|
7
|
-
The archive contains **74/74 discovered `design-md/*/DESIGN.md` files**. The approved planning estimate said 75, while the upstream README badge at the pinned commit says 73 and omits the present `slack` file. Archive-tree enumeration is the authoritative count for this snapshot.
|
|
8
|
-
|
|
9
|
-
These files are independent analyses of public websites. They are not official brand design systems, and a frequency in this corpus is not a universal design rule.
|
|
10
|
-
|
|
11
|
-
## Deterministic extraction
|
|
12
|
-
|
|
13
|
-
The counts were produced on 13 July 2026 by a standard-library Node analyzer that verified each source's SHA-256, parsed headings and frontmatter, and wrote deterministic observations. The raw corpus, the analyzer and its generated data are not bundled (removed 22 October 2026 to keep the package small); the derived counts below and in `references/observed-patterns.md` are the retained record. Re-deriving a count means reading the sources at the pinned upstream commit.
|
|
14
|
-
|
|
15
|
-
At extraction version 1, **64/74 documents** use frontmatter plus prose and **10/74** use numbered prose without frontmatter. All **74/74** are parsed; unsupported files would be retained with an explicit reason rather than silently dropped. Counts come from extraction version 1 at source commit `664b3e…`.
|
|
16
|
-
|
|
17
|
-
## What the parser measures
|
|
18
|
-
|
|
19
|
-
- **Color:** hexadecimal values, nearby semantic role language, accent count, surface ladder, HSL distributions, hue bins, and semantic-state mentions. It never averages colors into a recommended hex value.
|
|
20
|
-
- **Typography:** family strings, display/body/utility/code role language, font sizes, weights, tracking, line-height, and explicit line-length guidance.
|
|
21
|
-
- **Layout:** declared spacing scales, inferred 4/5/8px bases only when scale evidence has at least 60% coverage, section spacing, max-width declarations, density language, and named composition patterns.
|
|
22
|
-
- **Shape and material:** radius values tied to radius language, pill/sharp-corner mentions, borders, dividers, shadows, blur, gradients, imagery, and surface-separation language.
|
|
23
|
-
- **Components and states:** buttons, inputs, cards, navigation, tables, CTA language, hover, focus, press/active, disabled, loading, empty, error, and semantic color states.
|
|
24
|
-
- **Motion and access:** motion terms, durations, easing, reduced-motion language, accessibility, focus, keyboard, and contrast language.
|
|
25
|
-
- **Rules and motifs:** explicit do/do-not lines and sentences that identify a signature, motif, or defining characteristic.
|
|
26
|
-
|
|
27
|
-
## Statistics and missing data
|
|
28
|
-
|
|
29
|
-
Numeric outputs use min, first quartile, median, third quartile, max, and an explicit sample count. Frequencies always store `{ count, denominator }`. Unknown values remain `null`, `false`, or empty arrays and do not enter numeric sample counts.
|
|
30
|
-
|
|
31
|
-
Hue is reported in 30-degree bins because linear averaging is invalid across the 0°/360° boundary. Color recommendations must use semantic role and brief fit, never a corpus-average color.
|
|
32
|
-
|
|
33
|
-
Co-occurrences mean two terms or policies appeared in the same analysis; they do not prove a causal design relationship. Representative slugs are the most extraction-complete records, not quality rankings. Contrasts are selected from a non-dominant inferred theme.
|
|
34
|
-
|
|
35
|
-
## Categories and archetypes
|
|
36
|
-
|
|
37
|
-
The manifest preserves the ten upstream README groupings, including the two-file Retro Web section, and marks the present-but-uncatalogued `slack` file separately instead of inventing an upstream category. The analyzer separately maps documents into six usable product archetypes plus a zero-coverage mobile/native category:
|
|
38
|
-
|
|
39
|
-
- marketing/brand;
|
|
40
|
-
- application UI;
|
|
41
|
-
- dashboards/data-dense tools;
|
|
42
|
-
- commerce/marketplaces;
|
|
43
|
-
- editorial/content;
|
|
44
|
-
- documentation/developer tools;
|
|
45
|
-
- mobile/native (**0 documents**).
|
|
46
|
-
|
|
47
|
-
This mapping is analytical judgment, recorded in the (unbundled) analyzer; it is not supplied by upstream. A source appears in exactly one analytical archetype so denominators remain auditable.
|
|
48
|
-
|
|
49
|
-
## Known limitations
|
|
50
|
-
|
|
51
|
-
- The corpus overrepresents technology marketing and developer products: marketing/brand has **29/74 documents**, while editorial has **5/74** and mobile/native has **0/74** (commit `664b3e…`, extraction v1).
|
|
52
|
-
- Mention detection records what an analysis discusses, including prohibitions. Policy classifiers distinguish direct “no shadows/gradients” language from subtle treatment where possible, but nuanced prose still needs human review.
|
|
53
|
-
- Font-family counts include fallbacks and substitutes; they are evidence of documented vocabulary, not the number of fonts loaded by a website.
|
|
54
|
-
- Radius vocabularies can include component exceptions. Use the component rule and local project token set before the corpus-wide distribution.
|
|
55
|
-
- The files describe selected public surfaces, often marketing pages, not every state in the underlying product.
|
|
56
|
-
- No screenshots, brand assets, paid files, private requests, fonts, website media, or Refero data are included.
|
|
57
|
-
|
|
58
|
-
## Product-owner rulings and production standards versus corpus evidence
|
|
59
|
-
|
|
60
|
-
`references/craft-rulings.md` contains Ken's binding product defaults for emoji, icons, alignment, reuse, motion, UI punctuation, typography, contrast, consistency, and flow. `references/production-contract.md` contains the separate pass/fail implementation floor for semantics, accessibility, forms, resilience, performance, platform behavior, tokens, trust, and verification. Neither document presents its requirements as corpus frequencies. `references/provenance.md` records the current standards and implementation sources that support them.
|
|
61
|
-
|
|
62
|
-
## How to use the evidence
|
|
63
|
-
|
|
64
|
-
Select the matching archetype first. Read corpus-wide findings only as context, inspect two aligned sources and one useful contrast, then test the choice against the actual product brief and existing project. If the local product contradicts the corpus, the product wins.
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# Observed Patterns
|
|
2
|
-
|
|
3
|
-
## Evidence key
|
|
4
|
-
|
|
5
|
-
Unless a paragraph says otherwise, every count below comes from a deterministic extraction (version 1) of [`VoltAgent/awesome-design-md`](https://github.com/VoltAgent/awesome-design-md) at commit `664b3e78fd1a298ba11973822da988483256d4b4`. The raw files and generated data are not bundled; read the sources upstream. Fractions are **observed documents / relevant documents**; numeric distributions state their sample count. These are observations, not defaults.
|
|
6
|
-
|
|
7
|
-
## Theme is conditional, not a premium preset
|
|
8
|
-
|
|
9
|
-
The inferred primary theme is dark in **40/74**, mixed in **19/74**, and light in **15/74** analyses. The skew reflects a corpus rich in developer tools, AI products, and cinematic brands. Commerce is much less one-sided—light **5/12**, dark **4/12**, mixed **3/12**—so “dark equals premium” is not supported as a cross-product rule.
|
|
10
|
-
|
|
11
|
-
Aligned dark references: `sanity`, `voltagent`. Useful light contrast: `airbnb`.
|
|
12
|
-
|
|
13
|
-
## Surface separation favors restraint
|
|
14
|
-
|
|
15
|
-
Shadow policy is classified as subtle in **45/74**, absent in **28/74**, and merely mentioned in **1/74** analyses. This is stronger evidence for restrained elevation than for one universal “no shadows” rule. Use borders, tonal steps, spacing, or subtle shadows according to material logic and information density.
|
|
16
|
-
|
|
17
|
-
Examples: `vercel` and `linear.app` use precise containment; `airbnb` shows where soft elevation remains appropriate for a tactile consumer marketplace.
|
|
18
|
-
|
|
19
|
-
## Gradients are disputed, not forbidden
|
|
20
|
-
|
|
21
|
-
Gradients are positively mentioned in **35/74**, directly discouraged in **23/74**, and unclassified in **16/74** analyses. A blanket gradient ban contradicts the corpus. Gradients earn their place when they carry brand, light, depth, data, or media meaning; they fail when they merely signal “modern AI.”
|
|
22
|
-
|
|
23
|
-
Aligned use: `stripe`, `framer`. Contrast: `vercel`.
|
|
24
|
-
|
|
25
|
-
## Accent count is a range, not a palette recipe
|
|
26
|
-
|
|
27
|
-
Per-document accent-role extraction has **74 samples**: Q1 **3**, median **5**, Q3 **8**. These counts include shades and semantic variants, so they do not imply five competing CTA colors. Build a semantic hierarchy—canvas, surface, text, border, action, status—then reserve the highest-chroma signal for the screen’s single job.
|
|
28
|
-
|
|
29
|
-
The hue corpus is intentionally not averaged. Role and contrast matter more than a synthetic “average blue.”
|
|
30
|
-
|
|
31
|
-
## Spacing scales converge more than compositions
|
|
32
|
-
|
|
33
|
-
A spacing base was inferable in **73/74** documents: Q1 **4px**, median **4px**, Q3 **8px**. Section-spacing extraction has **434 samples**: Q1 **24px**, median **40px**, Q3 **64px**. Treat this as evidence for a coherent scale, not permission to paste a 4px system over an existing project.
|
|
34
|
-
|
|
35
|
-
Grid language appears in **73/74** analyses, full-bleed composition in **54/74**, single-column behavior in **44/74**, sidebars in **27/74**, asymmetry in **10/74**, split layouts in **10/74**, and masonry in **1/74**. “Uses a grid” is therefore not a signature. The signature must come from content-specific composition inside the grid.
|
|
36
|
-
|
|
37
|
-
## Radius is component-specific
|
|
38
|
-
|
|
39
|
-
Extracted radius values have **764 samples**: Q1 **4px**, median **12px**, Q3 **24px**. Pill language appears somewhere in **73/74**, while sharp-corner language appears in **16/74**. Because these counts include both uses and warnings, neither pills nor square corners should become a global default.
|
|
40
|
-
|
|
41
|
-
Constrain the local vocabulary by component role: controls may be compact, media cards may follow imagery, and badges may be pill-shaped without making every container a capsule. `kraken` explicitly limits buttons to 12px; `sanity` contrasts pill CTAs with 3–6px utility surfaces; `tesla` is a sharp, reduced contrast.
|
|
42
|
-
|
|
43
|
-
## Typography separation is selective
|
|
44
|
-
|
|
45
|
-
Explicit display/body family separation appears in **11/74** analyses. Font-family vocabulary per document has **74 samples** with median **4**, but that number includes fallbacks and suggested substitutes. The useful lesson is to assign roles deliberately, not to load four fonts.
|
|
46
|
-
|
|
47
|
-
Use a second family when it creates a subject-specific register, such as editorial versus utility, human versus technical, or display versus code. Keep one family when weight, width, scale, and tracking already provide sufficient hierarchy. Compare `sanity` (display plus mono technical voice) with `mastercard` (one-font discipline). For net-new type inspiration and current Google Fonts pairings, use `craft-rulings.md`; do not convert corpus frequency into a generic font default.
|
|
48
|
-
|
|
49
|
-
## Motion is underdocumented
|
|
50
|
-
|
|
51
|
-
Motion language appears in **41/74** analyses. Only **11 extracted duration samples** exist, with Q1 **200ms**, median **200ms**, and Q3 **225ms**. Reduced-motion language appears in **0/74**. That zero is a corpus gap, not evidence that reduced-motion support is optional.
|
|
52
|
-
|
|
53
|
-
Default to no ambient motion, not no feedback. Every relevant interaction should acknowledge hover, focus, press, selection, expansion, loading, success, or error without an abrupt or generic jump. Prefer short color, border, underline, icon, opacity, or restrained shadow transitions over scale/translate hover lift, and always provide a reduced-motion path.
|
|
54
|
-
|
|
55
|
-
## Interaction coverage drops after the happy path
|
|
56
|
-
|
|
57
|
-
Mentions by state are: pressed/active **67/74**, error **62/74**, focus **61/74**, hover **57/74**, disabled **46/74**, loading **8/74**, empty **1/74**. Keyboard language appears in only **8/74** analyses.
|
|
58
|
-
|
|
59
|
-
The corpus is strongest on styling and weak on product-state completeness. Implementation must add loading, empty, keyboard, and reduced-motion behavior even when the selected reference is silent.
|
|
60
|
-
|
|
61
|
-
## Archetype differences matter
|
|
62
|
-
|
|
63
|
-
- Application UI documents mention focus in **7/7** and motion in **5/7**; use interaction precision, not a landing-page spectacle.
|
|
64
|
-
- Dashboard/data-dense documents mention focus in **5/5** and keyboard behavior in **3/5**; prioritize scan paths and operability.
|
|
65
|
-
- Documentation/developer-tool documents are dark in **11/16**, but one is light and four are mixed; dark remains a tendency, not a requirement.
|
|
66
|
-
- Editorial/content documents mention motion in only **1/5** and asymmetry in **3/5**; pacing and hierarchy matter more than animated chrome.
|
|
67
|
-
- Commerce/marketplace documents show the broadest theme split and use subtle shadow policy in **8/12**; imagery, trust, and transaction clarity determine material treatment.
|
|
68
|
-
- Marketing/brand has **29/74** documents, so its patterns must not leak unexamined into product UI.
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# Production UI Contract
|
|
2
|
-
|
|
3
|
-
## Contents
|
|
4
|
-
|
|
5
|
-
1. Semantics and interaction architecture
|
|
6
|
-
2. WCAG and ADA accessibility conformance
|
|
7
|
-
3. Forms, errors, and user control
|
|
8
|
-
4. Responsive and international resilience
|
|
9
|
-
5. Performance and visual stability
|
|
10
|
-
6. Modern platform features and progressive enhancement
|
|
11
|
-
7. Tokens and component contracts
|
|
12
|
-
8. Trust, privacy, and high-consequence flows
|
|
13
|
-
9. Native mobile and adaptive windows
|
|
14
|
-
10. Conditional content types
|
|
15
|
-
11. Required release evidence
|
|
16
|
-
|
|
17
|
-
This is a binding, pass/fail quality floor for implemented web and native UI. Apply every relevant section. Mark a section not applicable only when the product surface genuinely does not contain that behavior. A visual-rubric score cannot compensate for a contract failure.
|
|
18
|
-
|
|
19
|
-
## 1. Semantics and interaction architecture
|
|
20
|
-
|
|
21
|
-
- Use native elements and platform controls before custom widgets. A navigation action is a link; an in-place action is a button. Preserve meaningful headings, landmarks, lists, tables, labels, and DOM reading order.
|
|
22
|
-
- Add ARIA only when native semantics are insufficient. Custom dialogs, menus, tabs, comboboxes, trees, grids, and similar composite widgets must follow the matching WAI-ARIA Authoring Practices pattern and keyboard model.
|
|
23
|
-
- Keep visual, DOM, focus, and screen-reader order aligned. CSS reordering must not create a different task sequence.
|
|
24
|
-
- Modal work uses the platform dialog primitive when suitable; non-modal top-layer content uses the Popover API when suitable. Manage initial focus, containment for modal UI, Escape/close behavior, background inertness, and focus return. A popover does not automatically supply menu or dialog semantics.
|
|
25
|
-
- Preserve browser and platform navigation. Meaningful destinations and shareable state need stable URLs or routes; Back, Forward, refresh, deep links, and native back behavior must not discard work or trap the user.
|
|
26
|
-
|
|
27
|
-
## 2. WCAG and ADA accessibility conformance
|
|
28
|
-
|
|
29
|
-
WCAG 2.2 Level AA is the default technical floor for web UI. Conformance means every applicable Level A and Level AA success criterion across full pages, complete processes, responsive variants, and all relevant states, not a selected checklist of visible issues. Native apps apply WCAG2ICT where relevant plus current platform accessibility requirements. Any stricter project, procurement, contract, platform, or jurisdiction requirement wins.
|
|
30
|
-
|
|
31
|
-
ADA is a civil-rights and equal-access obligation, not a technical certification. WCAG 2.2 Level AA is the engineering baseline, but meeting it does not by itself establish full ADA compliance. When ADA applies, verify the current Title II or Title III obligations, scope, exceptions, effective-communication duties, and alternative arrangements with the responsible product or legal owner. Never claim `ADA compliant` or `WCAG conformant` without evidence for a defined scope.
|
|
32
|
-
|
|
33
|
-
Dated legal and standards context (SNAPSHOT, re-verified 22 Oct 2026, sources in `references/provenance.md`; re-check before citing to a user):
|
|
34
|
-
|
|
35
|
-
- WCAG 2.2 is the current W3C Recommendation. WCAG 3.0 is still a Working Draft (latest 10 Sep 2026): do not target or claim it.
|
|
36
|
-
- US ADA Title II web rule (state and local government): technical standard WCAG 2.1 AA. An April 2026 DOJ interim final rule moved compliance dates to 26 April 2027 (population 50,000+) and 26 April 2028 (smaller entities and special districts); substance unchanged. The National Federation of the Blind is suing (filed May 2026, D. Md.) to vacate the extension and restore the earlier dates; no ruling as of mid-October 2026, so re-check before citing a date. Private-sector (Title III) has no adopted technical standard; the equal-access duty still applies.
|
|
37
|
-
- EU European Accessibility Act: applies since 28 June 2025 to covered products and services (including e-commerce and consumer banking) placed on the EU market. The harmonised technical standard is expected to be EN 301 549 (WCAG-based); confirm the version the applicable national law references.
|
|
38
|
-
- Meeting WCAG 2.2 AA covers the WCAG 2.1 AA criteria these regimes reference. Applicability, exemptions, and legal claims belong to the product or legal owner; this skill never makes them.
|
|
39
|
-
|
|
40
|
-
- Define the conformance scope before broad implementation: routes/screens, complete user processes, content types, components and states, supported technologies, and the browser, device, input, and assistive-technology matrix. Audit against the current official [WCAG 2.2 Quick Reference](https://www.w3.org/WAI/WCAG22/quickref/), criterion by criterion; this summary is not a substitute. Track every applicable Level A and AA criterion as pass, fail, or not applicable with a rationale and evidence.
|
|
41
|
-
- Satisfy all five WCAG conformance requirements: the claimed level, full pages, every page in each complete process, only accessibility-supported uses of technology, and non-interference from any non-conforming content. One unresolved applicable failure blocks conformance.
|
|
42
|
-
- Use native semantics and controls first. Supply meaningful text alternatives for informative images, controls, and graphics; mark decoration as decorative. Preserve programmatic information and relationships, headings, landmarks, lists, tables, meaningful sequence, page and passage language, reading order, and a bypass route for repeated blocks.
|
|
43
|
-
- Provide the required alternatives for every prerecorded or live media type, including synchronized captions, transcripts or equivalent alternatives, and audio description where the criterion requires it. Autoplaying audio needs an immediate pause, stop, or independent volume control. Do not use images of text when styled real text can communicate the same information.
|
|
44
|
-
- Give every page or screen a descriptive title. Link purpose must be clear in context; headings and labels describe topic or purpose; users have more than one way to locate pages when required. Keep repeated navigation, component identification, and help mechanisms consistent.
|
|
45
|
-
- Every function works by keyboard without a trap or timing race. Focus order follows meaning; focus is visible, not obscured, and restored after overlays. Keyboard shortcuts, character-key commands, and custom composite widgets follow the applicable WCAG and WAI-ARIA keyboard requirements.
|
|
46
|
-
- Pointer activation and popup dismissal must not leave a false selected or active treatment. DOM focus may remain, and text-entry controls or user/browser preferences may legitimately retain visible focus after a click. Separate focus from material decoration and genuine selected, expanded, and error states; never suppress visible keyboard focus globally. Focus/control-edge changes must pass the applicable interaction regression matrix in `craft-rulings.md`, including pointer → popup close → Space/Enter → Tab, overlay focus return, and combined border/shadow/outline inspection. Screenshots alone cannot pass this check.
|
|
47
|
-
- Meet WCAG 2.2 contrast and appearance criteria in every theme and state: at least 4.5:1 for normal text, 3:1 for large text, and 3:1 for meaningful non-text controls, state indicators, focus cues, and graphics where the criterion applies. Never use color, shape, position, sound, motion, or another single sensory cue as the only instruction or status signal.
|
|
48
|
-
- Content revealed by hover or focus must be dismissible, hoverable, and persistent where required. Text spacing overrides must not break content. Audio, animation, and visual effects cannot make text unreadable or block operation.
|
|
49
|
-
- WCAG 2.2 Target Size (Minimum) is 24 by 24 CSS pixels with defined exceptions. Default touch-oriented web controls to a 44 by 44 CSS-pixel hit area where layout permits. Native work follows its platform target guidance, such as 44 by 44 points on Apple platforms and 48 by 48 density-independent pixels in Material guidance.
|
|
50
|
-
- Provide a single-pointer alternative for every non-essential drag interaction. Reordering also needs keyboard and assistive-technology operation. Do not require path-based gestures, multipoint gestures, or device motion when a simpler accessible input can perform the task. Support pointer cancellation, and ensure an accessible name contains the visible label so speech-input users can target the control.
|
|
51
|
-
- Give every control a programmatic name that includes its visible label, and expose role, value, state, instructions, requirements, and errors correctly. Announce important asynchronous status and validation changes without moving focus unnecessarily. Do not over-announce streaming or frequently updating content.
|
|
52
|
-
- Do not trigger an unexpected context change merely on focus or input. Identify common input purposes programmatically, make required fields and formats explicit, identify errors in text, suggest corrections when known, and prevent or confirm consequential legal, financial, test, and data changes where WCAG requires it.
|
|
53
|
-
- Preserve use at 200% text resize and at 320 CSS-pixel reflow where WCAG applies, without loss, overlap, two-dimensional scrolling except for allowed content, or essential truncation. Support required orientation, browser zoom, text spacing, reduced motion, forced colors/high contrast, and user font or platform text scaling.
|
|
54
|
-
- Users can pause, stop, hide, extend, or adjust time limits and moving, blinking, auto-updating, or autoplaying content where required. Do not ship content that violates flash thresholds. Reduced-motion alternatives preserve information and task completion.
|
|
55
|
-
- Do not require users to re-enter information already supplied in the same process when it can be selected or populated. Preserve data across validation errors and recoverable navigation. Authentication must work with password managers, copy/paste, and accessible alternatives; memory, transcription, puzzles, or blocked paste cannot be the only route unless an applicable exception is verified.
|
|
56
|
-
- Include first-party, embedded, vendor-supplied, document/PDF, and authenticated content in scope unless a verified legal and standards exception applies. An exception does not erase ADA duties for effective communication, reasonable modification, or equal access; route those decisions to the responsible legal or product owner.
|
|
57
|
-
- Accessibility overlays, injected widgets, and a separate `accessible version` do not substitute for fixing the primary experience. Use an alternate route only when the governing standard and law permit it and it provides genuinely equivalent, current information and functionality. Provide a discoverable way to report accessibility barriers when the product has a public support or feedback surface.
|
|
58
|
-
|
|
59
|
-
Automated accessibility tooling is a defect detector, not proof of conformance. Run the project's scanner, then manually verify semantics, keyboard use, focus, zoom/reflow, contrast, media alternatives, and representative assistive-technology output across the primary flow and high-risk states. Record the tested tool/browser/assistive-technology combinations. Unavailable checks remain `unverified`, never silently pass, and block a conformance claim.
|
|
60
|
-
|
|
61
|
-
## 3. Forms, errors, and user control
|
|
62
|
-
|
|
63
|
-
- Every control has a persistent programmatic label. Associate help, units, requirements, and errors with the field; placeholder text is an example, never the only label.
|
|
64
|
-
- Use the correct input type, `autocomplete`, `inputmode`, and semantic grouping. Keep browser autofill, password-manager, paste, and native validation affordances working unless the product has a verified reason to replace them.
|
|
65
|
-
- Select, dropdown, and combobox indicators must have a deliberate logical trailing inset and reserved content padding for the icon width and gap. Native text padding is not proof of arrow positioning. Reuse one shared control pattern: either verified native appearance or a native select with its browser arrow removed and one correctly inset decorative replacement. They fail when the indicator touches the edge, overlaps text or adjacent actions, duplicates the native indicator, or creates a dead pointer zone; verify long values, narrow widths, zoom, RTL, forced colors, and clicking the arrow itself.
|
|
66
|
-
- Validate at a helpful time. Do not show errors before the user can reasonably act. On submit, summarize errors when the form is long, focus or link to the first problem, preserve values, and explain how to recover.
|
|
67
|
-
- Async actions expose pending, success, failure, retry, and duplicate-submission behavior. Do not silently lose work or replace the whole layout with a spinner.
|
|
68
|
-
- Match safeguards to consequence. Prefer undo for cheap reversible actions; use explicit confirmation for destructive, expensive, security-sensitive, or irreversible actions. State the object and consequence in concrete language.
|
|
69
|
-
|
|
70
|
-
## 4. Responsive and international resilience
|
|
71
|
-
|
|
72
|
-
- Use viewport queries for page composition and container queries for reusable components when the support policy permits. Use Grid, Flexbox, and `subgrid` to maintain key lines instead of JavaScript layout or breakpoint-specific duplication.
|
|
73
|
-
- Navigation, header, main content, adjacent sections, and footer must reuse a shared content rail, responsive gutters, and spacing tokens by default. Full-bleed outer surfaces may differ, but inner edges must align. Any width, offset, margin, or padding exception needs an explicit content or user reason and must remain coherent at every breakpoint.
|
|
74
|
-
- Prefer logical properties and flow-relative alignment. Declare document language and direction, use locale-aware number/date/plural formatting, and avoid sentence construction by string concatenation.
|
|
75
|
-
- Test right-to-left layout when localization is relevant, long German-like expansion, short labels, CJK text, long unbroken values, dynamic type or 200% text, and missing media. Essential content must not depend on truncation.
|
|
76
|
-
- Account for safe areas, on-screen keyboards, dynamic viewport units, orientation, window resizing, no-hover input, coarse pointers, and split-screen or large-screen layouts where the platform can expose them.
|
|
77
|
-
- Avoid fixed heights for content-bearing regions. Preserve reading and action order when columns collapse or modules move.
|
|
78
|
-
|
|
79
|
-
## 5. Performance and visual stability
|
|
80
|
-
|
|
81
|
-
For web surfaces, use current Core Web Vitals as the shared target at the 75th percentile, segmented by mobile and desktop: LCP at or below 2.5 seconds, INP at or below 200 milliseconds, and CLS at or below 0.1. Use field data when available and project-appropriate lab checks to prevent regressions.
|
|
82
|
-
|
|
83
|
-
- Reserve media and embed dimensions. Provide responsive image sources and sizes; do not lazy-load the likely LCP image; lazy-load suitable below-the-fold media.
|
|
84
|
-
- Load only used font families, scripts, styles, and weights. Make the selected loading strategy explicit and test fallback layout shift.
|
|
85
|
-
- Keep initial JavaScript and hydration proportional to the interaction. Prefer CSS for layout and visual state; avoid main-thread work that delays input feedback.
|
|
86
|
-
- Skeletons match final geometry. Loading, font swaps, banners, validation, and async results must not unexpectedly move the current target.
|
|
87
|
-
- Animate named properties only. When movement is necessary, prefer compositor-friendly properties and avoid layout-thrashing animation, while still obeying the no-generic-hover-lift and reduced-motion rules.
|
|
88
|
-
- Record a measured result or an honest unverified status. A Lighthouse score alone is not field performance evidence.
|
|
89
|
-
|
|
90
|
-
## 6. Modern platform features and progressive enhancement
|
|
91
|
-
|
|
92
|
-
- Set a browser and device support policy from project evidence. Prefer features in the project's Baseline/support range; use feature detection and a simpler fallback for newer capabilities.
|
|
93
|
-
- Verified Baseline status for common modern features is in `references/direction.md` § 8. Do not state a feature's support status from memory.
|
|
94
|
-
- Use native `dialog`, Popover, `inert`, constraint validation, and other platform primitives when their semantics match the job and the support policy allows them. Do not choose a new API merely because it is fashionable.
|
|
95
|
-
- Treat View Transitions and similar enhancements as optional continuity layers. Navigation and state changes must still work without them and under reduced motion.
|
|
96
|
-
- Preserve the essential task when scripts, media, fonts, animation, clipboard access, or a preferred input mode are unavailable whenever progressive enhancement is feasible for the product.
|
|
97
|
-
|
|
98
|
-
## 7. Tokens and component contracts
|
|
99
|
-
|
|
100
|
-
- Reuse the host system first. For a net-new scalable system, separate primitive values from semantic roles and component tokens; define modes without duplicating meaning.
|
|
101
|
-
- Do not introduce soft semantic tint-on-tint as the default status variant: low-opacity semantic backgrounds paired with saturated same-hue text or icons, with or without matching borders. Derive a replacement from the host aesthetic and preserve non-color status cues; retain the treatment only when explicitly requested or exact established-system reuse is required.
|
|
102
|
-
- The Design Tokens Community Group 2025.10 format is a stable interoperability option, not a W3C Standard and not a mandatory migration target. Use it only when tools need a portable source of truth.
|
|
103
|
-
- Each shared component documents anatomy, semantic element, variants, sizes, content limits, states, keyboard behavior, responsive behavior, and accessibility name/description rules.
|
|
104
|
-
- Keep one source of truth. Generated platform outputs must not become competing hand-edited token stores.
|
|
105
|
-
|
|
106
|
-
## 8. Trust, privacy, and high-consequence flows
|
|
107
|
-
|
|
108
|
-
- Do not use deceptive hierarchy, disguised ads, preselected consent, confirm-shaming, forced continuity, hidden costs, or an easier opt-in than opt-out path.
|
|
109
|
-
- Show total cost, renewal terms, data use, permissions, and destructive consequences before commitment. Keep consent granular and revocable where the product requires it.
|
|
110
|
-
- Do not expose secrets or sensitive personal data in screenshots, examples, analytics labels, URLs, notifications, or error copy.
|
|
111
|
-
- High-consequence health, finance, safety, identity, and legal interfaces require domain review, conservative defaults, traceable calculations, and clear escalation or correction routes.
|
|
112
|
-
|
|
113
|
-
## 9. Native mobile and adaptive windows
|
|
114
|
-
|
|
115
|
-
- Follow current Apple Human Interface Guidelines or Material/Android guidance for the actual target instead of styling a web layout to resemble a phone.
|
|
116
|
-
- Respect system bars, safe areas, Dynamic Type or platform font scaling, platform navigation/back behavior, input methods, permissions, haptics, and reduced-motion/accessibility settings.
|
|
117
|
-
- Build adaptive layouts for compact, medium, expanded, resizable, split-screen, keyboard, pointer, and touch contexts that the target platform supports.
|
|
118
|
-
- Prefer platform components and conventions unless a custom control has a tested product need and complete accessibility behavior.
|
|
119
|
-
|
|
120
|
-
## 10. Conditional content types
|
|
121
|
-
|
|
122
|
-
- Data visualization provides a text summary or accessible data alternative, meaningful names, keyboard access where interactive, non-color encoding, readable labels, and truthful scales.
|
|
123
|
-
- Tables use actual table semantics when relationships are tabular. Dense grids need an explicit keyboard and virtualization accessibility strategy.
|
|
124
|
-
- Search, filtering, pagination, and master-detail layouts preserve useful query/selection state and orientation. On narrow screens, keep decision-critical detail and the primary action visible or one obvious action away; do not strand the initial state at a list when task completion requires its detail. Announce result changes appropriately and distinguish no results from errors and first-use emptiness.
|
|
125
|
-
- AI, chat, and agent surfaces distinguish user, model, tool, source, pending, completed, interrupted, and failed content. Streaming work provides stop/cancel and recovery, preserves useful partial output, and avoids announcing every token to assistive technology.
|
|
126
|
-
- Consequential AI actions expose scope and destination before execution, request confirmation or permission at the point of risk, show progress and outcome, support correction or undo where possible, and never imply certainty, provenance, or successful action without evidence.
|
|
127
|
-
- Media surfaces provide captions or transcripts when required, meaningful alternatives, keyboard-operable controls, no surprise audio, and motion/autoplay behavior that respects user preferences.
|
|
128
|
-
- If multiple themes are supported, use semantic tokens and native `color-scheme` behavior, prevent a wrong-theme flash where feasible, persist the user's explicit choice, and verify contrast, focus, media, and system-control rendering in every mode.
|
|
129
|
-
|
|
130
|
-
## Required release evidence
|
|
131
|
-
|
|
132
|
-
For every broad implementation, record:
|
|
133
|
-
|
|
134
|
-
1. the defined accessibility conformance scope plus a WCAG 2.2 Level A/AA criterion matrix or an explicit changed-scope audit with pass, fail, and justified not-applicable results;
|
|
135
|
-
2. representative desktop and narrow/mobile renders, plus native/adaptive sizes when applicable;
|
|
136
|
-
3. primary-flow keyboard completion, visible focus, focus return, no traps, and no obscured focus;
|
|
137
|
-
4. project accessibility-tool output plus manual semantics, accessible-name, reading-order, media-alternative, and status review;
|
|
138
|
-
5. primary-flow output from at least one representative screen-reader or native assistive-technology combination in the supported matrix;
|
|
139
|
-
6. 200% text, 320 CSS-pixel reflow where applicable, browser zoom or platform text scaling, longest content, and one localization stress case;
|
|
140
|
-
7. reduced-motion and forced-colors/high-contrast results where supported;
|
|
141
|
-
8. loading, empty, error, retry, disabled, success, destructive, and offline/slow-network states that apply;
|
|
142
|
-
9. route, refresh, deep-link, Back/Forward or native-back behavior that applies;
|
|
143
|
-
10. measured performance evidence or an explicit unverified item with the exact missing measurement;
|
|
144
|
-
11. a first-party, embedded, vendor, document/PDF, and authenticated-content inventory with any exception and responsible owner recorded;
|
|
145
|
-
12. the accessibility-feedback route and remediation owner when the product has a public support surface;
|
|
146
|
-
13. the project's supported browser, device, input, and assistive-technology matrix.
|
|
147
|
-
|
|
148
|
-
A broad implementation is not complete while an applicable WCAG Level A or AA criterion is failed or unverified. A small component records only applicable evidence, but semantics, accessible naming, keyboard/focus, assistive-technology output, content extremes, and relevant states cannot be skipped. Report failures plainly and fix them before calling the UI accessible. Never turn partial evidence into an ADA-compliance or WCAG-conformance claim.
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
# Provenance and Boundaries
|
|
2
|
-
|
|
3
|
-
## Contents
|
|
4
|
-
|
|
5
|
-
- Upstream corpus (not bundled) and nature of observations
|
|
6
|
-
- Refero boundary
|
|
7
|
-
- Accessibility standards
|
|
8
|
-
- UI craft research
|
|
9
|
-
- Production-practice research
|
|
10
|
-
- Design-process references
|
|
11
|
-
- Skill-architecture research
|
|
12
|
-
- Q4 2026 refresh (3 October 2026): slop tells, platform status, legal dates
|
|
13
|
-
- Refresh policy
|
|
14
|
-
|
|
15
|
-
## Upstream corpus (not bundled)
|
|
16
|
-
|
|
17
|
-
- **Source:** [`VoltAgent/awesome-design-md`](https://github.com/VoltAgent/awesome-design-md)
|
|
18
|
-
- **Pinned commit:** [`664b3e78fd1a298ba11973822da988483256d4b4`](https://github.com/VoltAgent/awesome-design-md/tree/664b3e78fd1a298ba11973822da988483256d4b4)
|
|
19
|
-
- **Archive:** `https://codeload.github.com/VoltAgent/awesome-design-md/tar.gz/664b3e78fd1a298ba11973822da988483256d4b4`
|
|
20
|
-
- **Retrieved:** 2026-07-13
|
|
21
|
-
- **License:** MIT, copyright 2026 VoltAgent (see `LICENSES.md`)
|
|
22
|
-
- **Analyzed:** all 74 `design-md/*/DESIGN.md` files present in the pinned archive; removed from this package on 22 October 2026, only derived counts and slugs remain
|
|
23
|
-
- **Excluded:** upstream previews, screenshots, media, fonts, website assets, private requests, and non-`DESIGN.md` content
|
|
24
|
-
|
|
25
|
-
The analyzer verified each document's SHA-256 before producing observations; the manifest was not kept after the corpus was unbundled.
|
|
26
|
-
|
|
27
|
-
The pinned archive contains 74 documents. This differs from both the initial planning estimate of 75 and the upstream README badge of 73 at that commit. The extraction recorded the discrepancy rather than silently modifying the corpus.
|
|
28
|
-
|
|
29
|
-
## Nature of the observations
|
|
30
|
-
|
|
31
|
-
The upstream files analyze public brand and product surfaces. They are not official design-system publications from the named brands and do not grant rights to brand names, trademarks, proprietary fonts, or media. This skill uses them as observational text evidence, not as authority to reproduce a brand.
|
|
32
|
-
|
|
33
|
-
The derived references are an original synthesis. Quantitative claims point to the pinned commit and deterministic extraction; judgment and runtime recommendations are stated separately.
|
|
34
|
-
|
|
35
|
-
## Refero boundary
|
|
36
|
-
|
|
37
|
-
[`styles.refero.design`](https://styles.refero.design/) advertises a DESIGN.md reference library and a Refero MCP. No Refero pages, files, API responses, screenshots, or metadata are copied into this skill.
|
|
38
|
-
|
|
39
|
-
As fetched on 2026-07-13, [`styles.refero.design/robots.txt`](https://styles.refero.design/robots.txt):
|
|
40
|
-
|
|
41
|
-
- disallows named AI agents—including GPTBot, ClaudeBot, anthropic-ai, and Google-Extended—from `/`;
|
|
42
|
-
- allows the general user agent but disallows `/api/`, `/admin/`, `/extract/`, and `/playground/`.
|
|
43
|
-
|
|
44
|
-
Therefore this skill must not bulk-scrape Refero, call undocumented Refero endpoints, or mirror its catalog. Refero may be used only through an authorized Refero MCP or a user-provided export the user is entitled to share. Live access is optional; the skill works without it.
|
|
45
|
-
|
|
46
|
-
## Accessibility standards and ADA context
|
|
47
|
-
|
|
48
|
-
- **Web conformance floor:** [Web Content Accessibility Guidelines (WCAG) 2.2](https://www.w3.org/TR/WCAG22/), W3C Recommendation dated 12 December 2024 in the current publication fetched 2026-07-21. The [W3C WCAG overview](https://www.w3.org/WAI/standards-guidelines/wcag/) encourages the latest version and states that WCAG 2.2 conformance is backward compatible with WCAG 2.1 and 2.0.
|
|
49
|
-
- **Native application guidance:** [WCAG2ICT](https://www.w3.org/TR/wcag2ict-22/) explains how Level A and AA criteria apply to non-web software. It is informative guidance, not a normative standard, and native work still needs platform and product-specific accessibility requirements.
|
|
50
|
-
- **U.S. ADA context:** The Department of Justice [ADA web accessibility guidance](https://www.ada.gov/resources/web-guidance/) explains equal access and effective communication under Titles II and III. The current [Title II web and mobile app rule fact sheet](https://www.ada.gov/resources/2024-03-08-web-rule/) names WCAG 2.1 Level AA as its technical standard and documents scope, exceptions, and compliance timing. These sources were checked 2026-07-21.
|
|
51
|
-
- **Not the conformance target:** [W3C Accessibility Guidelines (WCAG) 3.0](https://www.w3.org/TR/wcag-3.0/) is a W3C Working Draft (dated 10 September 2026 when re-checked 22 October 2026). W3C says publication as a Working Draft does not imply endorsement and that it is inappropriate to cite as anything other than work in progress.
|
|
52
|
-
|
|
53
|
-
WCAG 2.2 Level AA is the default engineering floor because it includes and extends WCAG 2.1, but technical WCAG conformance alone does not prove compliance with the ADA or another law. Project, procurement, contractual, platform, and jurisdictional requirements may exceed this floor. Use the current official standard and obtain qualified product or legal review before making a legal-compliance claim.
|
|
54
|
-
|
|
55
|
-
## UI craft research checked 14 July 2026
|
|
56
|
-
|
|
57
|
-
The binding rulings in `references/craft-rulings.md` use these current sources:
|
|
58
|
-
|
|
59
|
-
- [WCAG 2.2 SC 1.4.3, Contrast Minimum](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html): 4.5:1 normal text and 3:1 large text;
|
|
60
|
-
- [WCAG 2.2 SC 1.4.11, Non-text Contrast](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html): 3:1 for meaningful control/state/graphic cues;
|
|
61
|
-
- [WCAG 2.2 SC 2.3.3, Animation from Interactions](https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html): unnecessary interaction motion can be disabled and user reduced-motion preferences should be supported;
|
|
62
|
-
- [WCAG 2.2 SC 3.2.3, Consistent Navigation](https://www.w3.org/WAI/WCAG22/Understanding/consistent-navigation.html) and [SC 3.2.4, Consistent Identification](https://www.w3.org/WAI/WCAG22/Understanding/consistent-identification.html): repeated navigation order and repeated function identity stay predictable;
|
|
63
|
-
- [Lucide accessibility guidance](https://lucide.dev/guide/advanced/accessibility): visible labels in most cases, consistent icon usage, contrast, keyboard feedback, accessible icon buttons, and 44 by 44 target wrappers;
|
|
64
|
-
- [Material Symbols guide](https://developers.google.com/fonts/docs/material_symbols): coherent variable fill, weight, grade, and optical-size axes, plus subset guidance;
|
|
65
|
-
- [Carbon motion](https://carbondesignsystem.com/elements/motion/overview/): productive versus expressive motion, named easing roles, and duration scaled to motion size;
|
|
66
|
-
- [Carbon 2x Grid](https://carbondesignsystem.com/elements/2x-grid/overview/): shared units, key lines, consistent padding, and breakpoint integrity;
|
|
67
|
-
- [Google Fonts CSS API](https://developers.google.com/fonts/docs/getting_started) and [web.dev font practices](https://web.dev/articles/font-best-practices): explicit families/weights, `font-display`, early discovery, preconnect for third-party origins, and layout-shift testing;
|
|
68
|
-
- [Google Fonts metadata](https://fonts.google.com/metadata/fonts), fetched 14 July 2026: current family availability and popularity ordering used for the inspiration list.
|
|
69
|
-
|
|
70
|
-
The motion recommendations were also checked against the pinned upstream corpus. Several observed systems use color, underline, border, surface, icon, or opacity feedback instead of generic scale/translate hover lift. These remain independent observations, not official brand guidance.
|
|
71
|
-
|
|
72
|
-
Refero content was not accessed for this update because no authorized Refero MCP or user-provided export was available. The existing Refero boundary remains unchanged.
|
|
73
|
-
|
|
74
|
-
## Production-practice research checked 21 July 2026
|
|
75
|
-
|
|
76
|
-
The pass/fail contract in `references/production-contract.md` was checked against current primary guidance:
|
|
77
|
-
|
|
78
|
-
- [WCAG 2.2](https://www.w3.org/TR/WCAG22/), its [conformance requirements](https://www.w3.org/TR/WCAG22/#conformance-reqs), [How to Meet WCAG 2](https://www.w3.org/WAI/WCAG22/quickref/), and [What's New in WCAG 2.2](https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/): all applicable Level A and AA criteria across full pages and complete processes, plus focus not obscured, target size minimum, dragging alternatives, redundant entry, and accessible authentication;
|
|
79
|
-
- [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/) and its dialog, menu button, combobox, and keyboard-interface patterns: native semantics first and complete keyboard/focus behavior for custom composites;
|
|
80
|
-
- [WAI Forms Tutorial](https://www.w3.org/WAI/tutorials/forms/): labels, grouping, instructions, validation, notifications, and accessible custom controls;
|
|
81
|
-
- the [WHATWG HTML Standard for dialog](https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element) and [popover](https://html.spec.whatwg.org/multipage/popover.html), plus [MDN Popover API guidance](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API): modal versus non-modal top-layer behavior and the semantics authors must still provide;
|
|
82
|
-
- [web.dev Web Vitals](https://web.dev/articles/vitals): current LCP, INP, and CLS thresholds and 75th-percentile field measurement; [LCP optimization](https://web.dev/articles/optimize-lcp), [MDN lazy loading](https://developer.mozilla.org/en-US/docs/Web/Performance/Guides/Lazy_loading), and the existing font sources support the media/font performance rules;
|
|
83
|
-
- [web.dev Baseline](https://web.dev/baseline), [MDN container queries](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries), [subgrid](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Subgrid), [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values), and [forced colors](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors): support-policy-led progressive enhancement and resilient layout;
|
|
84
|
-
- [W3C Internationalization Quick Tips](https://www.w3.org/International/quicktips/): Unicode, language declaration, semantic content, and international layout/content preparation;
|
|
85
|
-
- [Design Tokens Format Module 2025.10](https://www.designtokens.org/TR/2025.10/format/): a stable DTCG Final Community Group Report and interoperability option that is explicitly not a W3C Standard;
|
|
86
|
-
- current [Apple Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/) and [Android adaptive-layout guidance](https://developer.android.com/develop/ui/compose/layouts/adaptive): platform controls, accessibility settings, safe areas, resizable/adaptive windows, and native conventions;
|
|
87
|
-
- [W3C Ethical Web Principles](https://www.w3.org/TR/ethical-web-principles/) and the [FTC dark-pattern report](https://www.ftc.gov/reports/bringing-dark-patterns-light): user control, privacy, non-deceptive consent, and avoidance of manipulative flows;
|
|
88
|
-
- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html): current authentication and credential-flow constraints where a UI exposes those features;
|
|
89
|
-
- [OpenAI Apps SDK UX principles](https://developers.openai.com/apps-sdk/concepts/ux-principles) and the [Microsoft HAX Toolkit](https://www.microsoft.com/en-us/haxtoolkit/): focused conversational value, clear action boundaries, privacy, expectation-setting, recovery from AI failure, and human oversight for AI-facing surfaces.
|
|
90
|
-
|
|
91
|
-
These are implementation references, not claims that every listed browser API or platform convention applies to every project. The local support matrix, product requirements, and stricter jurisdictional obligations decide applicability.
|
|
92
|
-
|
|
93
|
-
## Design-process references consulted
|
|
94
|
-
|
|
95
|
-
The synthesis considered public patterns from:
|
|
96
|
-
|
|
97
|
-
- [Anthropic `frontend-design`](https://github.com/anthropics/skills/tree/main/skills/frontend-design): brief-first direction and deliberate visual choices;
|
|
98
|
-
- [Leonxlnx `taste-skill`](https://github.com/Leonxlnx/taste-skill): detection of recurring generic landing-page patterns;
|
|
99
|
-
- [NextLevelBuilder `ui-ux-pro-max-skill`](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill): broad heuristic/reference organization.
|
|
100
|
-
|
|
101
|
-
No source skill text is bundled or renamed. This skill rejects fixed palette/font/radius bans, perpetual-motion defaults, and landing-page rules applied to product UI. See `LICENSES.md` for attribution status.
|
|
102
|
-
|
|
103
|
-
## Skill-architecture research checked 14 July 2026
|
|
104
|
-
|
|
105
|
-
The package structure was checked against the [Agent Skills specification](https://agentskills.io/specification), [Anthropic skill-authoring best practices](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices.md), [OpenAI Skills guidance](https://platform.openai.com/docs/guides/tools-skills), and [Agent Skills evaluation guidance](https://agentskills.io/skill-creation/evaluating-skills): loader-visible name/description metadata, a concise directly actionable `SKILL.md`, references one level from the root, focused on-demand documents, self-contained scripts, explicit validation, and evaluation-driven iteration. The installed GG Coder loader reads `name` and `description`; the portable `license` and `compatibility` fields are retained for other Agent Skills clients and safely ignored by GG Coder.
|
|
106
|
-
|
|
107
|
-
`SKILL.md` remains below the recommended 500-line limit. Reference files over 100 lines include a contents overview so an agent preview exposes the file's scope. Raw corpus data is not bundled; audits read the pinned upstream sources. The existing external A/B artifacts are unscored and predate the current contracts, so they are benchmark inputs rather than evidence that the current skill improves quality.
|
|
108
|
-
|
|
109
|
-
## Q4 2026 refresh (3 October 2026)
|
|
110
|
-
|
|
111
|
-
All accessed 3 October 2026 (SNAPSHOT).
|
|
112
|
-
|
|
113
|
-
### Slop-tell sources
|
|
114
|
-
|
|
115
|
-
- [Anthropic `frontend-design` SKILL.md](https://github.com/anthropics/skills/blob/main/skills/frontend-design/SKILL.md) (last changed 3 Sep 2026): named default clusters (cream/serif/terracotta, near-black + single accent, broadsheet, SaaS card kit, template chrome), single-word headline accents, all-caps labels, numbered markers on non-sequences, scattered fade-up entrances, plan-then-review-against-brief process, outcome-named CTAs. Paraphrased, not bundled.
|
|
116
|
-
- [Vercel Web Interface Guidelines](https://github.com/vercel-labs/web-interface-guidelines): no `transition: all`, compositor-friendly motion, reduced motion, focus-visible, hit targets, links are links, loading-state timing, ellipsis conventions.
|
|
117
|
-
- The tells table in `references/anti-defaults.md` merges these with the earlier synthesis; the clusters are DEDUCED, not measured.
|
|
118
|
-
|
|
119
|
-
### Platform status
|
|
120
|
-
|
|
121
|
-
- Baseline statuses in `references/direction.md` § 8 originally read from the [`web-features`](https://www.npmjs.com/package/web-features) package v3.40.1 (1 Oct 2026). Re-checked 22 Oct 2026: CSS anchor positioning became Baseline Newly available with Firefox 147 ([web.dev, Jan 2026](https://web.dev/blog/web-platform-01-2026)); `progress()` and `alpha()` became Baseline Newly available in Sep 2026 ([web.dev, Sep 2026](https://web.dev/blog/web-platform-09-2026)). The table now keeps stable rows only and defers newer features to a live [webstatus.dev](https://webstatus.dev) check.
|
|
122
|
-
- [Interop 2026 focus areas](https://github.com/web-platform-tests/interop/blob/main/2026/README.md) and [WebKit's announcement](https://webkit.org/blog/17818/announcing-interop-2026/): anchor positioning, scroll-driven animations, view transitions, dialogs and popovers, container style queries, among others.
|
|
123
|
-
- [WCAG 2.2](https://www.w3.org/TR/WCAG22/) Recommendation 12 Dec 2024; [WCAG 3.0](https://www.w3.org/TR/wcag-3.0/) Working Draft 10 Sep 2026 (still latest on 22 Oct 2026).
|
|
124
|
-
- [web.dev INP](https://web.dev/articles/inp): good at 200 ms or less, 75th percentile.
|
|
125
|
-
|
|
126
|
-
### Legal dates
|
|
127
|
-
|
|
128
|
-
- ADA Title II: DOJ interim final rule published 20 April 2026 (91 Fed. Reg. 20902) extends compliance to 26 April 2027 / 26 April 2028; WCAG 2.1 AA unchanged. Secondary confirmations: [Reed Smith](https://www.reedsmith.com/articles/doj-extends-digital-accessibility-compliance-dates-under-title-ii-of-the-ada/), [Seyfarth](https://www.adatitleiii.com/2026/04/doj-extends-ada-title-ii-website-accessibility-deadlines-for-governmental-entities-but-litigation-and-compliance-risks-remain/). Primary: [ada.gov web rule](https://www.ada.gov/resources/2024-03-08-web-rule/) (dates re-checked 22 Oct 2026). Pending challenge: NFB v. DOJ, D. Md., filed May 2026, no ruling found as of 12 Oct 2026 (secondary: [titleii.org](https://titleii.org/title-ii-updates)).
|
|
129
|
-
- European Accessibility Act (Directive (EU) 2019/882): applies from 28 June 2025; [European Commission EAA page](https://commission.europa.eu/strategy-and-policy/policies/justice-and-fundamental-rights/disability/union-equality-strategy-rights-persons-disabilities-2021-2030/european-accessibility-act_en).
|
|
130
|
-
|
|
131
|
-
## Refresh policy
|
|
132
|
-
|
|
133
|
-
A corpus refresh must be explicit:
|
|
134
|
-
|
|
135
|
-
1. choose and record a new upstream commit;
|
|
136
|
-
2. read the licensed `DESIGN.md` files at that commit outside the package;
|
|
137
|
-
3. record every hash and parser status;
|
|
138
|
-
4. rerun analysis and inspect changed denominators/outliers;
|
|
139
|
-
5. update synthesis claims and examples;
|
|
140
|
-
6. rerun validation.
|
|
141
|
-
|
|
142
|
-
Do not fetch “latest” silently at runtime. Reproducibility is more important than invisible freshness.
|