Skip to content

bepiscorp/unified-ui-specs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Unified UI Specs v1

Unified UI Specs banner

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.

✨ Why it exists

  • 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.

πŸ”— Quick references

πŸ—‚οΈ Repository layout

πŸš€ Getting started

  1. Read the standard β€” Start with knowledge/unified-ui-specs-standard.md to understand the required sections and terminology.
  2. Clone the example β€” Copy knowledge/unified-ui-specs-example.json as a template for new screens. Keep the section ordering and schema keys.
  3. Reference design tokens β€” Define tokens inline or link to an external DTCG-compliant store via the design_tokens block.
  4. Validate continuously β€” Use your preferred JSON Schema validator (e.g. ajv, jsonschema, or IDE tooling) against knowledge/unified-ui-specs-schema.json to catch missing fields before handoff.
  5. Bundle supporting artifacts β€” Link Figma files, Jira tickets, PRDs, personas, requirements, and test cases through the artifact_card.links object so the spec stays the single source of truth.

πŸ› οΈ Authoring checklist

  • 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.

🧭 Workflow example

# 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.

🌱 Extending the standard

  • Propose changes in knowledge/unified-ui-specs-standard.md and 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/ and docs/pdf/ as needed; keep filenames language-tagged (e.g. en_US, ru_RU).

πŸ“ License

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.

About

πŸ“ Unified UI Specs is a machine-readable standard for screen & flow designs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published