/align-design - Align Component to Mockup
Update a frontend component's appearance to match its HTML mockup exactly.
Usage
/align-design "Registration"
/align-design 02 # By story number
/align-design RegistrationPage.tsx # By component file
/align-design # Interactive selection
Workflow
- Load
.claude/tech/{browser-testing}/templates/align-design-checklist.md - Locate files: find mockup in
ProductSpecification/stories/NN-story-name/mockups/desktop/— orProductSpecification/stories/done/NN-story-name/mockups/desktop/when that story has closed (.claude/rules/workflow.md, "Resolving a story folder") — and component infrontend/src/features/ - Extract design tokens: work through every checklist item from the template
- Compare and fix: for each token, compare mockup value vs component value. Fix mismatches using the template's Common Mismatches table and Styling Approach.
- Verify: frontend build command, frontend test command (from
technology.mdConventions), Selenium test if exists, visual check
In a staged frontend design-alignment lane, perform only the alignment phase
assigned by the coordinator. The coordinator dispatches design review, test review,
coverage, refactor, and final verify-only alignment under
.claude/templates/workflow/stage-2-quality-gates.md; the alignment worker never
nests those skill dispatches or reports the whole lane complete. Work only inside
the declared manifest. Stage 1 interfaces and other lane manifests are read-only;
report a needed conflicting path with evidence. Never stage, commit, or edit
progress.md.
Key Rules
- NEVER remove
data-testidattributes — Selenium tests depend on them - NEVER change component behavior — only styling
- Match mockup exactly — use mockup's CSS values, not framework defaults (see template for specifics)
- Divider, login link, and other elements outside
<form>in mockup must be outside<form>in component
Story Mapping
Read ProductSpecification/stories.md for story number resolution.