Skip to main content

UI System

The UI system is the shared presentation layer for MDX content. Its job is to make reusable patterns easy without letting one-off page styling become the default architecture.

UI Surfaces

Component Taxonomy

Live inventory found 59 JSX component files under snippets/components/, including 24 in x-archive/. The component framework still contains aspirational or stale counts. Contributors should validate against the filesystem before relying on counts in narrative docs.

Template System

Templates live under snippets/templates/ and are surfaced through:
  • docs-guide/catalog/ui-templates.mdx
  • docs-guide/catalog/templates-catalog.mdx
  • .vscode/templates.code-snippets
  • preview routes in the docs guide where configured
The current template families are:
Generated section: This section is synchronized by operations/scripts/generators/components/library/generate-ui-templates.js. Do not edit the generated block by hand.

Generated Template Inventory

Run node operations/scripts/generators/components/library/generate-ui-templates.js --write to refresh this generated section from snippets/templates/**. //: # (AUTO-GENERATED:UI-TEMPLATES:END)

Style Governance

Authoring Workflow

  1. Check snippets/components/ and docs-guide/catalog/components-catalog.mdx before creating UI.
  2. If a template exists, start from snippets/templates/ or generated VS Code snippets.
  3. If a new component is required, place it in the correct taxonomy folder and add required metadata.
  4. Keep data outside the component unless the component is explicitly an integrator.
  5. Run component and staged validation before handing work back.

UI System Gaps

  • docs-guide/frameworks/component-framework-canonical.mdx
  • docs-guide/frameworks/styles-engineering-guide.mdx
  • docs-guide/catalog/components-catalog.mdx
  • docs-guide/catalog/ui-templates.mdx
  • snippets/guide.mdx
Last modified on May 19, 2026