Design template
Source: nodfirst/templates/design-template.md
<!--
DESIGN TEMPLATE v0.5 — OPTIONAL. Copy to specs/NNN-feature-name/design.md only for features with a user interface.
Rules:
- Comes after Clarify and before Plan. It describes what users see and do, not how it is built.
- Use the tokens and components of project/design-system.md. Do not invent new visual rules here; propose changes to the design system instead.
- Keep it light: if a screen fits in five lines, a text description is enough. Add images only where they remove doubt.
- Mockups/images/exports live in specs/NNN-feature-name/design/ and are referenced below. Links to design tools (for example Figma) are recorded in Sources with the date they were read.
- Remove all <!-- comments -->.
-->
# Design NNN: <Feature name>
- **Spec:** `specs/NNN-feature-name/spec.md`
- **Status:** Draft | Approved
## What you are approving
<!-- Write it last. At most five lines, in everyday words, in the language of the conversation (C12, C13): what changes for the people who use the product; what the agent decided on the human's behalf; what is left out; risks. Guided: only what the human can judge; technical choices in one line pointing to their section, said by their effect ("a test that sometimes fails is not retried, so problems are not hidden"), never by tool name or command. The human may approve from this box alone. -->
## 0. Sources
<!-- Every item the human provided. Role: authoritative (follow it) | inspiration (borrow ideas). -->
| # | Item (file or link) | Version or date read | Covers | Role |
|---|---|---|---|---|
| S1 | | | | |
**Reading of images** (confirmed by the human: yes/no)
- S1:
## 1. Flows
<!-- Step-by-step user flows (numbered). Cite stories/requirements. -->
1.
## 2. Screens
<!-- One block per screen/view. -->
### Screen: <name>
- **Purpose:**
- **Entry points:**
- **Source:** S1 | spec only | proposed
- **Layout (smallest supported screen first):** <description or image link>
- **Larger screens / other platforms or form factors:**
- **Main actions:**
- **Covers:** US1 · R1
## 3. States
<!-- Every data-driven screen or component defines these (profile, Section 7). For every notice or state that blocks part of the screen, say what the rest shows and offers meanwhile (forms hidden, actions disabled, which empty texts appear). -->
| Screen / component | Empty | Loading | Error | Offline | Permission denied (if any) | Source (given / proposed) |
|---|---|---|---|---|---|---|
| | | | | | | |
## 4. Components
<!-- Existing components from the design system, and any new ones needed. -->
| Component | Existing / New | Notes |
|-----------|----------------|-------|
| | | |
## 5. Messages
<!-- Every message and label the user reads, keyed, with what it must say (its meaning) and where it appears, in the language of this document. The exact wording lives only in the product's text catalogue (project language, profile); no text hard-coded in components. When a phase adds or changes a text, the approval box shows the new wording. -->
| Key | Must say | Where / requirement |
|-----|----------|---------------------|
| | | |
## 6. Accessibility
<!-- Keyboard order, focus handling, labels, announcements for dynamic changes, contrast notes, touch target sizes. -->
-
## 7. Conflicts, gaps and open questions
<!-- Conflicts between sources or with the spec; spec items shown nowhere; states no source shows; questions. -->
- [ ]
## 8. Approval
- Approved by:
- Date: