Design Craft / Research study

From mockup to
shared understanding.

How to document a design so humans can judge it, developers can build it, and agents can extend it without guessing.

Researched 23 September 2026Google · Microsoft · shadcnStudy & proposed practice
This study complements the canonical design principles. It does not replace them, adopt a vendor’s visual style, or lock a product specification. The recommendations below are our synthesis. External formats and tools may evolve.

Three approaches, three useful lessons

Google / describe intent

Exact values need a reason.

Google’s DESIGN.md format combines YAML design values with prose explaining visual intent. Its repository describes validation, comparison and exports, including Tailwind CSS. The specification is still labelled alpha; it is a useful direction, not a universal standard.

Takeaway: an agent needs to know both the value and its intended role.

Read the format ↗
Google’s announcement ↗
Microsoft / explain use

A component is a behaviour.

Fluent distinguishes global values from semantic aliases. Its button guidance covers layout, action hierarchy, states, accessibility and content. This connects a component’s styling to the situations where someone uses it.

Takeaway: document decisions and interaction details alongside the rendered example.

Token model ↗
Component guidance ↗
shadcn / make it discoverable

Find before you invent.

shadcn’s skill inspects project configuration and locates component documentation before generating code. Its registry distributes code and related files; MCP exposes discovery to assistants. The registry is not limited to React.

Takeaway: agents should find approved implementations and their contracts before creating alternatives.

Agent skill ↗
Registry model ↗

A working example: value → meaning → component

A colour swatch cannot tell an agent where a colour belongs. This small illustration separates a palette value, its semantic role and one consumer. These are teaching examples, not proposed product tokens.

Illustrative contract
palette.ink
  ↓
action.primary.background
  ↓
button.primary.background

Contract:
• one main action in this example
• a visible keyboard focus treatment
• unavailable state has an explanation
• a label describes the action
Illustration only. No data is saved.

The selector previews styling. Also tab to the button to test real keyboard focus.

The contract must survive a theme change. A semantic name expresses purpose; the implementation resolves its current colour, spacing and shape.

Start with something a person can use

Our proposed sequence keeps design decisions visible before production implementation. Each stage produces evidence for the next; it does not require a large documentation project up front.

  1. Inspect what must survive.

    Capture the existing interface, meaningful interactions and explicit owner constraints. Distinguish current behaviour from stale mockups. Preserve links to authoritative grammar and domain rules.

  2. Make an interactive HTML mockup.

    Use Tailwind and a small provisional token set. Prototype one complete user journey. Include realistic content, empty and populated screens, editing, errors and a mobile layout. Clearly label simulated saving or AI.

  3. Review the behaviour and the feel.

    Try keyboard navigation, narrow screens, long content and interrupted actions. Record which decisions are accepted, proposed or unresolved. A polished screen alone does not make its behaviour approved.

  4. Extract the reusable system.

    Name the approved tokens and components. Give repeated patterns a single implementation. Build a live gallery from those implementations. Avoid maintaining separate handwritten copies of CSS values in prose.

  5. Write the build contract and prove it.

    Connect each feature to its approved mock, domain rules, states and acceptance checks. Implement a bounded slice, compare its rendered result and behaviour with the reference, and update the owning artifact when a decision changes.

A small documentation system with clear owners

ArtifactOwnsMust not become
Design directionIntent, audience, preserved identity and approved constraints; links to shared principles.A copy of every component value.
Token sourceExact values and semantic aliases. Choose one authority and generate consumers when useful.YAML, CSS and a document edited separately.
Component galleryReal implementations, variants, interaction states and concise usage guidance.A screenshot catalogue that cannot be tested.
Interactive mockThe proposed or approved experience with representative content.An undocumented change to the domain model.
Numbered specificationBehaviour, boundaries, state transitions and acceptance criteria for a build slice.A second grammar ledger or mutable todo list.
Agent entry pointWhere to look, what must be preserved, allowed tools and completion checks.A giant manual pasted into every prompt.
DESIGN.md is an option, not another copy. If adopted, decide whether its structured values are the source or a generated export. A descriptive agent file can instead point to the existing token authority. Do not establish two editable authorities just to support a filename.

What a component page should answer

Purpose and composition

What user problem does this solve? When should it be used or avoided? Which existing parts does it compose? Include one minimal working example and one realistic example.

States and interaction

Describe supported states, events, keyboard controls and focus movement. Cover waiting, success, failure, unavailable and empty conditions where relevant. State which changes are merely visual and which commit data.

Accessibility and responsive behaviour

Specify accessible names, semantics and announcements. Describe how content wraps and controls adapt on a narrow viewport. Verify contrast and focus in the rendered component; token validation alone cannot prove accessibility.

Ownership and verification

Link to the source implementation, token roles, accepted mock and owning contract. Name the checks that demonstrate correct behaviour. Record the decision date and distinguish proposed variants from supported ones.

Prepare agents with a route through the evidence

Microsoft’s agent setup guidance starts with project instructions, then verification and more targeted customizations. It emphasizes project-specific decisions an agent cannot infer reliably. Read the guide ↗

Load context in layers

  1. Read the short repository entry point.
  2. Locate the owning spec and accepted mock.
  3. Inspect the relevant component and token source.
  4. Check current project/tool configuration.
  5. Implement within scope and run the named checks.

Use skills for recurring procedures. Use a registry or MCP when it improves component discovery. Neither substitutes for an approved design or a working example.

Example task brief / adapt per task
Goal
  The single user outcome to deliver.

Read
  Owning spec + accepted mock.
  Component source + token authority.

Preserve
  Explicit identity and behaviour locks.

Scope
  Files and interfaces this change owns.
  Unresolved choices to surface.

Verify
  User flow and keyboard behaviour.
  Mobile layout and failure states.
  Relevant automated checks.

Report
  What changed, evidence, limitations.

Common failure modes

“The agent followed the screenshot.”

The screenshot omitted errors, keyboard behaviour and mobile transitions. Pair the visual reference with a compact state and interaction contract.

“We have a design system, but every page is different.”

The documents describe components while agents build new ones. Connect documentation to reusable code and require discovery before invention.

“The right rule was somewhere in the old docs.”

Classify each source as current, superseded or historical. Give agents a reliable index and one authority per decision. More context cannot resolve conflicting authorities by itself.

Applying the study to Nodepad

Product application · not a new cross-product principle

The owner’s sequence is HTML + Tailwind mockup first, then the approved design system and specification. The existing application topbar is an explicit preservation constraint. Its current appearance and interactions must be inspected before recreating it; that audit has not yet been performed.

Keep the grammar ledger, capability map and design canon as references during reconciliation. Their existence does not mean every legacy mock is current. The authoritative new-app constraint is recorded in the standalone product direction.

Migrate documentation in audited batches. Establish relevance, ownership and dependencies; verify the destination and update references before removing the superseded source. Kuickr-authored pages stay hosted. This study itself has no local synchronized twin.

Source desk

Primary sources checked on 23 September 2026. Vendor guidance is attributed above; the workflow, ownership table and task brief are our recommendations.

  1. Google: open-sourcing DESIGN.md — announcement, 21 April 2026.
  2. Google Labs: DESIGN.md specification and tools — structured values, rationale, validation and exports.
  3. Fluent 2: design tokens — global values and semantic aliases.
  4. Fluent 2: button usage — component documentation example.
  5. Microsoft: configure AI for your codebase — project instructions and targeted customizations.
  6. shadcn: skills — configuration-aware component discovery.
  7. shadcn: registry — distributing reusable code.
  8. shadcn: MCP — registry access for assistants.