Unified UI Specs defines a machine-readable standard for screen and flow specifications that keeps product, design, and engineering teams aligned. The standard is grounded in ISO 9241 interaction principles, WCAG 2.2 AA accessibility, and the W3C Design Tokens Community Group format so that every artifact captures intent, interaction, and compliance in one place.
- Replace brittle handoff decks with deterministic specs that map directly to implementation.
- Bake accessibility, i18n, analytics, and QA requirements into the same artifact.
- Validate design intent automatically using the bundled JSON Schema and example spec.
- Full standard text β
knowledge/unified-ui-specs-standard.md - Example structured screen spec β
Section 2inside the standard document - JSON representation β
knowledge/unified-ui-specs-example.json - Human-readable walkthrough β
knowledge/unified-ui-specs-human-example.md
knowledge/unified-ui-specs-standard.mdβ Full narrative standard covering required sections, states, and traceability rules.knowledge/unified-ui-specs-schema.jsonβ JSON Schema (draft 2020-12) enforcing the standard for machine validation.knowledge/unified-ui-specs-example.jsonβ Reference implementation of a compliant screen spec.knowledge/unified-ui-specs-human-example.mdβ Human-readable walk-through of the sample spec.docs/article/β Practitioner-friendly articles (πΊπΈ English, π·πΊ Russian).docs/paper/β Extended research papers (πΊπΈ English, π·πΊ Russian).docs/pdf/β Exported PDF versions suitable for circulation.
- Read the standard β Start with
knowledge/unified-ui-specs-standard.mdto understand the required sections and terminology. - Clone the example β Copy
knowledge/unified-ui-specs-example.jsonas a template for new screens. Keep the section ordering and schema keys. - Reference design tokens β Define tokens inline or link to an external DTCG-compliant store via the
design_tokensblock. - Validate continuously β Use your preferred JSON Schema validator (e.g.
ajv,jsonschema, or IDE tooling) againstknowledge/unified-ui-specs-schema.jsonto catch missing fields before handoff. - Bundle supporting artifacts β Link Figma files, Jira tickets, PRDs, personas, requirements, and test cases through the
artifact_card.linksobject so the spec stays the single source of truth.
- Artifact metadata tracks owners, semantic version, status, supported platforms, and citations.
- Composition describes regions, focus order, and design system components onlyβno ad-hoc widgets.
- States, behaviors, and interactions cover every input method (touch, keyboard, voice) with analytics hooks.
- Accessibility targets meet or exceed WCAG 2.2 AA (contrast, focus, touch targets) and provide alternatives for gestures.
- Internationalization includes ICU message keys, tone guidance, RTL readiness, and expansion budgets.
- Edge cases, BDD acceptance criteria, data contracts, and analytics plans are explicit and testable.
# 1. Draft or update your spec JSON
code knowledge/my-screen-spec.json
# 2. Run validation (example using ajv-cli)
ajv validate \
--spec=draft2020 \
-s knowledge/unified-ui-specs-schema.json \
-d knowledge/my-screen-spec.json
# 3. Share with product/design/engineering for review or attach to Jira.- Propose changes in
knowledge/unified-ui-specs-standard.mdand mirror required updates in the schema and example. - Keep semantic versioning on both the specification artifact and the schema itself.
- Add localized articles or PDFs inside
docs/anddocs/pdf/as needed; keep filenames language-tagged (e.g.en_US,ru_RU).
Released under the MIT License. See LICENSE for the full text; include the copyright notice in
redistributions and acknowledge the software is provided "as is" without warranty.
