Figma Atomic Design Implementation
Goal
Implement Figma UI in strict Atomic Design order and produce reusable Angular components with full file completeness.
Preconditions
- Confirm target Figma node/page scope and destination Angular feature path before editing.
- Audit existing components first to reuse safely instead of creating duplicates.
- Follow repository Angular conventions for style extension (
.css or .scss) and naming.
- If required context is missing (for example node scope or target path), ask one focused question and continue.
Required build order
Follow this exact sequence and do not skip levels:
- Atoms
- Molecules
- Organisms
- Templates
- Pages
If a requested page is complex, still start from missing atoms first.
Workflow
1) Analyze Figma scope
- Identify visual primitives and interactions from Figma node(s).
- Extract repeated UI primitives before building page-specific structures.
- Note states needed at each level (default, hover, focus, disabled, selected, loading, error where relevant).
- List candidate components by level before creating files.
2) Build atoms
- Create smallest independent UI units first (button, input, label, icon wrapper, badge, avatar, divider, etc.).
- Keep atom API narrow and generic.
- Do not encode page/business-specific assumptions in atoms.
- Reuse an existing atom if extension is lower risk than creating a new variant.
3) Build molecules
- Compose atoms into small functional groups (search field, form row, card header, menu item, etc.).
- Keep molecule inputs explicit and minimal.
- Prefer content projection or simple typed inputs over rigid one-off markup.
- Prevent molecules from directly depending on page-level services.
4) Build organisms
- Compose molecules into section-level structures (navbar, sidebar block, product grid section, auth form panel, etc.).
- Keep organisms layout-aware but still reusable across templates.
- Keep data and business orchestration outside visual organisms when possible.
5) Build templates
- Arrange organisms into page skeletons with responsive layout rules.
- Use realistic placeholder data contracts, not hardcoded business data.
- Keep templates focused on structure and slots/regions.
6) Build pages
- Connect templates to page-level routing/data/state.
- Keep page components thin: orchestrate data and pass view models down.
- Avoid duplicating markup that already exists in atoms/molecules/organisms.
7) Validate and report
- Run the quality gates below before completion.
- If a gate fails, fix it before final output.
- Report tree, files, reuse decisions, and remaining gaps using the output contract.
Angular file completeness contract
For every component created or modified in this workflow, enforce companion files:
<name>.component.ts
<name>.component.html
<name>.component.css (or .scss only when repository convention requires it)
<name>.component.spec.ts
<name>.component.stories.ts
If any companion file is missing, create it before considering the implementation complete.
Reusability rules
- Use consistent, semantic, design-system-oriented naming.
- Prefer configurable inputs/outputs over duplicated variants.
- Keep styles scoped and token-aware; avoid one-off values when project tokens exist.
- Do not create page-specific atoms or molecules.
- Before creating a new component, check whether an existing reusable component can be extended safely.
Deterministic decision rules
- New primitive visual element reused in 2+ places: create or extend an atom.
- New composition of existing atoms with local behavior only: create or extend a molecule.
- New section-level block coordinating multiple molecules: create or extend an organism.
- Page layout region changes without business orchestration changes: update template first.
- Data-loading, route wiring, or page state orchestration: update page level, not lower levels.
Quality gates before completion
Run this checklist:
- Atomic order preserved (atoms -> molecules -> organisms -> templates -> pages).
- No skipped level for newly introduced UI patterns.
- All touched components include full companion files.
- Stories show representative states and variants.
- Specs cover render and key behavior.
- Markup and styles stay clean and readable.
- Reuse audit documented for each new component.
- No page-specific assumptions leak into atoms or molecules.
Output contract
When reporting results, include:
- Component tree grouped by atomic level.
- Files created/updated for each component (
.ts, .html, style, .stories.ts, .spec.ts).
- Reuse decisions (what was reused vs newly created and why).
- Any remaining gaps to finish full atomic coverage.
- Which quality gates passed and which required rework.
1---2name: figma-atomic-design-implementation3description: Implement or refactor Figma screens in Angular using strict Atomic Design order (atoms -> molecules -> organisms -> templates -> pages), reusable component APIs, and complete companion files (.ts, .html, style, .stories.ts, .spec.ts). Use for Figma-to-code delivery, design-system normalization, component decomposition, and atomic architecture cleanup.4---5
6# Figma Atomic Design Implementation
7
8## Goal
9
10Implement Figma UI in strict Atomic Design order and produce reusable Angular components with full file completeness.
11
12## Preconditions
13
14- Confirm target Figma node/page scope and destination Angular feature path before editing.
15- Audit existing components first to reuse safely instead of creating duplicates.
16- Follow repository Angular conventions for style extension (`.css` or `.scss`) and naming.
17- If required context is missing (for example node scope or target path), ask one focused question and continue.
18
19## Required build order
20
21Follow this exact sequence and do not skip levels:
22
231. Atoms
242. Molecules
253. Organisms
264. Templates
275. Pages
28
29If a requested page is complex, still start from missing atoms first.
30
31## Workflow
32
33### 1) Analyze Figma scope
34
35- Identify visual primitives and interactions from Figma node(s).
36- Extract repeated UI primitives before building page-specific structures.
37- Note states needed at each level (default, hover, focus, disabled, selected, loading, error where relevant).
38- List candidate components by level before creating files.
39
40### 2) Build atoms
41
42- Create smallest independent UI units first (button, input, label, icon wrapper, badge, avatar, divider, etc.).
43- Keep atom API narrow and generic.
44- Do not encode page/business-specific assumptions in atoms.
45- Reuse an existing atom if extension is lower risk than creating a new variant.
46
47### 3) Build molecules
48
49- Compose atoms into small functional groups (search field, form row, card header, menu item, etc.).
50- Keep molecule inputs explicit and minimal.
51- Prefer content projection or simple typed inputs over rigid one-off markup.
52- Prevent molecules from directly depending on page-level services.
53
54### 4) Build organisms
55
56- Compose molecules into section-level structures (navbar, sidebar block, product grid section, auth form panel, etc.).
57- Keep organisms layout-aware but still reusable across templates.
58- Keep data and business orchestration outside visual organisms when possible.
59
60### 5) Build templates
61
62- Arrange organisms into page skeletons with responsive layout rules.
63- Use realistic placeholder data contracts, not hardcoded business data.
64- Keep templates focused on structure and slots/regions.
65
66### 6) Build pages
67
68- Connect templates to page-level routing/data/state.
69- Keep page components thin: orchestrate data and pass view models down.
70- Avoid duplicating markup that already exists in atoms/molecules/organisms.
71
72### 7) Validate and report
73
74- Run the quality gates below before completion.
75- If a gate fails, fix it before final output.
76- Report tree, files, reuse decisions, and remaining gaps using the output contract.
77
78## Angular file completeness contract
79
80For every component created or modified in this workflow, enforce companion files:
81
82- `<name>.component.ts`
83- `<name>.component.html`
84- `<name>.component.css` (or `.scss` only when repository convention requires it)
85- `<name>.component.spec.ts`
86- `<name>.component.stories.ts`
87
88If any companion file is missing, create it before considering the implementation complete.
89
90## Reusability rules
91
92- Use consistent, semantic, design-system-oriented naming.
93- Prefer configurable inputs/outputs over duplicated variants.
94- Keep styles scoped and token-aware; avoid one-off values when project tokens exist.
95- Do not create page-specific atoms or molecules.
96- Before creating a new component, check whether an existing reusable component can be extended safely.
97
98## Deterministic decision rules
99
100- New primitive visual element reused in 2+ places: create or extend an atom.
101- New composition of existing atoms with local behavior only: create or extend a molecule.
102- New section-level block coordinating multiple molecules: create or extend an organism.
103- Page layout region changes without business orchestration changes: update template first.
104- Data-loading, route wiring, or page state orchestration: update page level, not lower levels.
105
106## Quality gates before completion
107
108Run this checklist:
109
1101. Atomic order preserved (atoms -> molecules -> organisms -> templates -> pages).
1112. No skipped level for newly introduced UI patterns.
1123. All touched components include full companion files.
1134. Stories show representative states and variants.
1145. Specs cover render and key behavior.
1156. Markup and styles stay clean and readable.
1167. Reuse audit documented for each new component.
1178. No page-specific assumptions leak into atoms or molecules.
118
119## Output contract
120
121When reporting results, include:
122
1231. Component tree grouped by atomic level.
1242. Files created/updated for each component (`.ts`, `.html`, style, `.stories.ts`, `.spec.ts`).
1253. Reuse decisions (what was reused vs newly created and why).
1264. Any remaining gaps to finish full atomic coverage.
1275. Which quality gates passed and which required rework.