Align design

From rakovi4/continue-framework · View interactive version

Align design is an AI agent skill from the GitHub repository rakovi4/continue-framework. Align frontend component styling to match HTML mockup pixel-for-pixel. Reads mockup CSS, compares with component, fixes all differences. Use when user wants to match a component to its mockup or mentions /align-design command.

How to use this skill

Skill file

/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

  1. Load .claude/tech/{browser-testing}/templates/align-design-checklist.md
  2. Locate files: find mockup in ProductSpecification/stories/NN-story-name/mockups/desktop/ — or ProductSpecification/stories/done/NN-story-name/mockups/desktop/ when that story has closed (.claude/rules/workflow.md, "Resolving a story folder") — and component in frontend/src/features/
  3. Extract design tokens: work through every checklist item from the template
  4. Compare and fix: for each token, compare mockup value vs component value. Fix mismatches using the template's Common Mismatches table and Styling Approach.
  5. Verify: frontend build command, frontend test command (from technology.md Conventions), 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

Story Mapping

Read ProductSpecification/stories.md for story number resolution.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.