Skip to content

Design-system integration

Sandbox Loom can treat a project’s DESIGN.md as an approved visual and interaction contract for frontend work. The source remains readable by product owners, designers, and coding agents while the generated harness makes the contract auditable and executable.

Declare the source

Add a design_system section to the project brief:

design_system:
  source: DESIGN.md
  baseline: DESIGN.baseline.md
  required: true
  token_format: design-md
  rationale_required: true
  lint_required: true
  diff_required: true
  accessibility:
    standard: WCAG 2.2 AA
  export_targets: [dtcg, css-tailwind]
  owners: [design-lead, product-owner]

Keep the file in the repository and commit the approved baseline when regression comparison is required. The brief is high-level scope; the design source carries the tokens, component guidance, rationale, and intentional negative constraints.

Generate and review

After intake validation and normalization, generate the frontend or monorepo harness and documentation:

bin/sandbox-loom intake validate specifications/project-brief.yml
bin/sandbox-loom intake import specifications/project-brief.yml --output .sandbox-loom/intake
bin/sandbox-loom intake normalize .sandbox-loom/intake --output .sandbox-loom/intake/normalized-scope.yml
bin/sandbox-loom harness generate . --scope .sandbox-loom/intake/normalized-scope.yml
bin/sandbox-loom harness docs . --scope .sandbox-loom/intake/normalized-scope.yml

Review .sandbox-loom/design.yml, project-docs/design/, the generated agent context, and the proposed quality gates before approval. The generated manifest records source presence and hashes so reviewers can detect drift.

Quality gates

  • design_lint validates the source with designmd lint --format json.
  • design_diff compares the approved baseline with the current source and fails when findings regress.
  • design_export_<target> validates each declared deterministic export.

These gates verify design artifacts; they do not grant the coding agent extra filesystem, network, credential, or commit authority.