agentic-sdlc 1.0.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/ide-integration/INTEGRATION-SUMMARY.md +309 -0
- package/.agent/ide-integration/KIRO-IDE.md +381 -0
- package/.agent/ide-integration/README.md +256 -209
- package/.agent/knowledge-base/AUTO-LEARNING-GUIDE.md +327 -0
- package/.agent/knowledge-base/HOW-IT-WORKS.md +365 -0
- package/.agent/knowledge-base/INDEX.md +43 -0
- package/.agent/knowledge-base/README.md +47 -7
- package/.agent/knowledge-base/architecture/KB-2026-01-01-003-neo4j-graph-database-skills.md +1146 -0
- package/.agent/knowledge-base/architecture/README.md +98 -0
- package/.agent/knowledge-base/bugs/KB-2026-01-02-yaml-special-character-escaping.md +56 -0
- package/.agent/knowledge-base/bugs/medium/KB-2026-01-01-001-example-auto-learned.md +198 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-001-landing-page-design-trends-2026.md +646 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-004-uiux-design-skills-2026.md +945 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-005-modern-ai-landing-page-ui.md +310 -0
- package/.agent/knowledge-base/features/KB-2026-01-01-006-award-winning-landing-page-patterns.md +324 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-001-cleanup-workflow.md +242 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-002-landing-page-monorepo-architecture.md +148 -0
- package/.agent/knowledge-base/features/KB-2026-01-02-003-premium-glassmorphism-patterns.md +58 -0
- package/.agent/knowledge-base/features/KB-2026-01-04-ai-agent-enforcement.md +46 -0
- package/.agent/knowledge-base/features/README.md +83 -0
- package/.agent/knowledge-base/features/figma-landing-page-workflow.md +311 -0
- package/.agent/knowledge-base/features/figma-mcp-sa-guide.md +673 -0
- package/.agent/knowledge-base/features/figma-mcp-uiux-guide.md +459 -0
- package/.agent/knowledge-base/performance/KB-2026-01-02-lazy-loading-optimization.md +80 -0
- package/.agent/knowledge-base/platform-specific/KB-2026-01-02-windows-console-encoding.md +56 -0
- package/.agent/knowledge-base/role-guides/DEV-KB-Guide.md +527 -0
- package/.agent/knowledge-base/role-guides/DEVOPS-KB-Guide.md +491 -0
- package/.agent/knowledge-base/role-guides/PM-KB-Guide.md +299 -0
- package/.agent/knowledge-base/role-guides/SECA-KB-Guide.md +555 -0
- package/.agent/knowledge-base/role-guides/TESTER-KB-Guide.md +519 -0
- package/.agent/knowledge-base/security/KB-2026-01-02-input-validation-sanitization.md +74 -0
- package/.agent/rules/AUTO-LEARNING.md +418 -0
- package/.agent/rules/ai-enforcement.md +11 -0
- package/.agent/rules/artifacts.md +77 -58
- package/.agent/rules/git-workflow.md +25 -65
- package/.agent/rules/global.md +18 -13
- package/.agent/skills/role-ba.md +76 -0
- package/.agent/skills/role-brain.md +470 -0
- package/.agent/skills/role-dev.md +338 -0
- package/.agent/skills/role-devops.md +122 -0
- package/.agent/skills/role-orchestrator.md +223 -0
- package/.agent/skills/role-pm.md +258 -0
- package/.agent/skills/role-po.md +237 -0
- package/.agent/skills/role-qa.md +81 -0
- package/.agent/skills/role-reporter.md +117 -0
- package/.agent/skills/role-sa.md +277 -0
- package/.agent/skills/role-seca.md +294 -0
- package/.agent/skills/role-stakeholder.md +105 -0
- package/.agent/skills/role-tester.md +294 -0
- package/.agent/skills/role-uiux.md +264 -0
- package/.agent/templates/CHANGELOG-Template.md +83 -0
- package/.agent/templates/Knowledge-Entry-Template.md +3 -0
- package/.agent/workflows/brain.md +84 -53
- package/.agent/workflows/compound.md +51 -0
- package/.agent/workflows/cycle.md +61 -0
- package/.agent/workflows/emergency.md +114 -0
- package/.agent/workflows/explore.md +147 -0
- package/.agent/workflows/housekeeping.md +105 -0
- package/.agent/workflows/metrics.md +179 -0
- package/.agent/workflows/orchestrator.md +68 -0
- package/.agent/workflows/preflight.md +35 -0
- package/.agent/workflows/release.md +153 -0
- package/.agent/workflows/route.md +160 -0
- package/.agent/workflows/sprint.md +125 -0
- package/.agent/workflows/validate.md +146 -0
- package/CHANGELOG.md +349 -6
- package/README.md +171 -86
- package/bin/CROSS-PLATFORM-CLI.md +526 -0
- package/bin/README.md +525 -0
- package/bin/cli.js +65 -90
- package/bin/kb +34 -0
- package/bin/kb.bat +28 -0
- package/bin/kb_cli.py +226 -0
- package/bin/lib/README.md +411 -0
- package/bin/lib/__init__.py +7 -0
- package/bin/lib/__pycache__/kb_add.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_common.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_compound.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_index.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_list.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_search.cpython-313.pyc +0 -0
- package/bin/lib/__pycache__/kb_stats.cpython-313.pyc +0 -0
- package/bin/lib/kb_add.py +203 -0
- package/bin/lib/kb_common.py +224 -0
- package/bin/lib/kb_compound.py +250 -0
- package/bin/lib/kb_index.py +193 -0
- package/bin/lib/kb_list.py +144 -0
- package/bin/lib/kb_search.py +121 -0
- package/bin/lib/kb_stats.py +153 -0
- package/docs/AGENT-MANAGEMENT-GUIDE.md +298 -0
- package/docs/ARCHITECTURE-OVERVIEW.md +350 -0
- package/docs/BRAIN-ARCHITECTURE.md +396 -0
- package/docs/COMPOUND-ENGINEERING-SETUP.md +326 -0
- package/docs/KNOWLEDGE-BASE-GUIDE.md +330 -0
- package/docs/KNOWLEDGE-BASE-SIMPLE.md +248 -0
- package/docs/MONOREPO-ARCHITECTURE.md +492 -0
- package/docs/PROJECT-DOCUMENTATION-INDEX.md +540 -0
- package/docs/SDLC-Diagram.md +235 -0
- package/docs/analysis/Workflow-Optimization-Diagram.md +524 -0
- package/docs/analysis/Workflows-Deep-Analysis-2026-01-03.md +604 -0
- package/docs/architecture/{brain.md → BRAIN.md} +1 -1
- package/docs/global/Master-Documentation.md +307 -0
- package/docs/global/reports/Final-Approval-Report.md +257 -0
- package/docs/guides/AUTO-LEARNING-COMPLETE-GUIDE.md +519 -0
- package/docs/guides/AUTO-LEARNING-SYSTEM.md +322 -0
- package/docs/guides/LEARNING-FLOW.md +0 -0
- package/docs/guides/MCP-QUICK-REFERENCE.md +104 -0
- package/docs/guides/MCP-SETUP.md +139 -0
- package/docs/guides/QUICK-START.md +4 -0
- package/docs/guides/ROLE-COMMUNICATION-SYSTEM.md +71 -0
- package/docs/reports/Metrics-Dashboard-2026-01-02.md +66 -0
- package/docs/reports/Metrics-Dashboard-2026-01-04.md +68 -0
- package/docs/reports/UIUX-Design-Skills-Research-Report-2026.md +91 -0
- package/docs/reports/Validation-Report-2026-01-04.md +23 -0
- package/docs/research-reports/research-20260103-101315.json +95 -0
- package/docs/research-reports/research-20260103-101315.md +78 -0
- package/docs/research-reports/research-20260103-183837.json +95 -0
- package/docs/research-reports/research-20260103-183837.md +78 -0
- package/docs/research-reports/research-20260103-190346.json +100 -0
- package/docs/research-reports/research-20260103-190346.md +83 -0
- package/docs/setup/{github-management.md → GITHUB-MANAGEMENT.md} +1 -1
- package/docs/setup/RESEARCH-AGENT-SETUP.md +575 -0
- package/docs/sprints/{sprint-github-issues.md → SPRINT-GITHUB-ISSUES.md} +1 -1
- package/docs/sprints/{sprint-leann-integration.md → SPRINT-LEANN-INTEGRATION.md} +1 -1
- package/docs/sprints/sprint-1/designs/Backend-Design-Spec-Sprint-1-v1.md +1206 -0
- package/docs/sprints/sprint-1/designs/System-Design-Spec-Sprint-1-v1.md +439 -0
- package/docs/sprints/sprint-1/designs/System-Design-Spec-v1.0.md +425 -0
- package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-Sprint-1-v1.md +55 -0
- package/docs/sprints/sprint-1/designs/UIUX-Design-Spec-v1.0.md +644 -0
- package/docs/sprints/sprint-1/logs/DevOps-Plan-and-Log-Sprint-1-v1.md +253 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Phase1.md +433 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1-v1.md +181 -0
- package/docs/sprints/sprint-1/logs/Development-Log-Sprint-1.md +548 -0
- package/docs/sprints/sprint-1/logs/Orchestration-Log-Sprint-1.md +46 -0
- package/docs/sprints/sprint-1/logs/Phase1-Summary.md +84 -0
- package/docs/sprints/sprint-1/plans/Product-Backlog-Sprint-1-v1.md +40 -0
- package/docs/sprints/sprint-1/plans/Product-Backlog-v1.0.md +613 -0
- package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.0.md +210 -0
- package/docs/sprints/sprint-1/plans/Project-Plan-Sprint-1-v1.md +377 -0
- package/docs/sprints/sprint-1/reports/Design-Verification-Report-v1.0.md +220 -0
- package/docs/sprints/sprint-1/reports/Phase-Report-Sprint-1-v1.md +238 -0
- package/docs/sprints/sprint-1/reports/Security-Review-Report-v1.0.md +285 -0
- package/docs/sprints/sprint-1/reports/Sprint-Report-Sprint-1.md +74 -0
- package/docs/sprints/sprint-1/reports/Test-Report-v1.0.md +346 -0
- package/docs/sprints/sprint-1/reviews/Design-Verification-Report.md +508 -0
- package/docs/sprints/sprint-1/reviews/Security-Review-Report.md +589 -0
- package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-CLEANUP-FINAL.md +121 -0
- package/docs/sprints/sprint-1/sprint-current/logs/WORKFLOW-OPTIMIZATION-COMPLETE.md +224 -0
- package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Progress.md +310 -0
- package/docs/sprints/sprint-1/sprint-current/logs/Workflow-Optimization-Session-Summary.md +420 -0
- package/docs/sprints/sprint-1/sprint-current/plans/Workflow-Optimization-Implementation-Plan.md +1124 -0
- package/docs/sprints/sprint-2/SPRINT-SUMMARY.md +150 -0
- package/docs/sprints/sprint-2/designs/UIUX-Design-Spec-Sprint-2-v1.md +352 -0
- package/docs/sprints/sprint-2/logs/Development-Log-Sprint-2-v1.md +293 -0
- package/docs/sprints/sprint-2/plans/Product-Backlog-Sprint-2-v1.md +62 -0
- package/docs/sprints/sprint-2/plans/Project-Plan-Sprint-2-v1.md +228 -0
- package/docs/sprints/sprint-2/reports/Phase-Report-Sprint-2-v1.md +303 -0
- package/docs/sprints/sprint-3/designs/UIUX-Design-Spec-Sprint-3-v1.md +160 -0
- package/docs/sprints/sprint-3/logs/Development-Log-Sprint-3-v1.md +249 -0
- package/docs/sprints/sprint-3/logs/Testing-Report-Sprint-3-v1.md +244 -0
- package/docs/sprints/sprint-3/plans/Product-Backlog-Sprint-3-v1.md +95 -0
- package/docs/sprints/sprint-3/reports/Final-Approval-Report-Sprint-3-v1.md +299 -0
- package/docs/sprints/sprint-3/reports/Sprint-Summary-Sprint-3-v1.md +276 -0
- package/docs/sprints/sprint-3/reviews/Design-Verification-Report-Sprint-3-v1.md +122 -0
- package/docs/sprints/sprint-3/reviews/Security-Review-Report-Sprint-3-v1.md +67 -0
- package/docs/sprints/sprint-5/designs/Backend-Design-Spec-Sprint-5-v1.md +1734 -0
- package/docs/sprints/sprint-5/designs/Design-Verification-Report.md +101 -0
- package/docs/sprints/sprint-5/designs/Security-Review-Report.md +84 -0
- package/docs/sprints/sprint-6/.brain-state.json +29 -0
- package/package.json +92 -16
- package/.agent/ide-integration/aider-commands.md +0 -40
- package/.agent/ide-integration/cline-config.json +0 -108
- package/.agent/ide-integration/cursor-rules.md +0 -63
- package/.agent/ide-integration/github-copilot-instructions.md +0 -75
- package/.agent/ide-integration/vscode-commands.json +0 -190
- package/.agent/ide-integration/windsurf-cascade.md +0 -125
- package/.agent/knowledge-base/index.md +0 -202
- package/.agent/legacy/roles/designer.md +0 -311
- package/.agent/legacy/roles/dev.md +0 -177
- package/.agent/legacy/roles/devops.md +0 -146
- package/.agent/legacy/roles/orchestrator.md +0 -339
- package/.agent/legacy/roles/pm.md +0 -120
- package/.agent/legacy/roles/po.md +0 -89
- package/.agent/legacy/roles/qa.md +0 -108
- package/.agent/legacy/roles/reporter.md +0 -70
- package/.agent/legacy/roles/sa.md +0 -118
- package/.agent/legacy/roles/seca.md +0 -112
- package/.agent/legacy/roles/stakeholder.md +0 -111
- package/.agent/legacy/roles/tester.md +0 -129
- package/.agent/rules/global.md.bak +0 -154
- package/.agent/usage.md +0 -653
- package/.agent/workflows/auto.md +0 -35
- package/.agent/workflows/dev.md +0 -30
- package/.agent/workflows/devops.md +0 -28
- package/.agent/workflows/kb-search.md +0 -22
- package/.agent/workflows/pm.md +0 -42
- package/.agent/workflows/po.md +0 -21
- package/.agent/workflows/qa.md +0 -31
- package/.agent/workflows/reporter.md +0 -21
- package/.agent/workflows/sa.md +0 -51
- package/.agent/workflows/seca.md +0 -21
- package/.agent/workflows/stakeholder.md +0 -26
- package/.agent/workflows/tester.md +0 -21
- package/.agent/workflows/uiux.md +0 -38
- package/.cursorrules +0 -49
- package/.env.template +0 -10
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -47
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -33
- package/.github/ISSUE_TEMPLATE/security_alert.yml +0 -28
- package/.github/ISSUE_TEMPLATE/task_implementation.yml +0 -37
- package/.github/copilot-instructions.md +0 -60
- package/bin/commands/create.js +0 -96
- package/bin/commands/help.js +0 -69
- package/bin/commands/ide.js +0 -116
- package/bin/commands/init-kb.js +0 -74
- package/bin/commands/install.js +0 -68
- package/bin/commands/list.js +0 -35
- package/bin/graph_brain.py +0 -86
- package/bin/sync_github.py +0 -75
- package/bin/utils/args-parser.js +0 -33
- package/bin/utils/colors.js +0 -21
- package/bin/verify_neo4j.py +0 -25
- /package/.agent/rules/{knowledge-base.md → KNOWLEDGE-BASE.md} +0 -0
- /package/docs/architecture/{neo4j-learning-queries.md → NEO4J-LEARNING-QUERIES.md} +0 -0
- /package/docs/reports/{comparison-leann-neo4j.md → COMPARISON-LEANN-NEO4J.md} +0 -0
- /package/docs/sprints/{sprint-neo4j-brain.md → SPRINT-NEO4J-BRAIN.md} +0 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Figma Landing Page Design & Development Workflow"
|
|
3
|
+
category: feature
|
|
4
|
+
priority: high
|
|
5
|
+
sprint: research
|
|
6
|
+
date: 2026-01-02
|
|
7
|
+
tags: [figma, landing-page, design-to-code, tailwind, astro, mcp, ai-workflow]
|
|
8
|
+
related_files: [landing-page/src/components/, landing-page/tailwind.config.mjs]
|
|
9
|
+
time_saved: "8+ hours per landing page"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
Comprehensive guide for designing landing pages in Figma and converting them to production-ready code using AI tools, MCP (Model Context Protocol), and modern frameworks like Astro + Tailwind CSS.
|
|
15
|
+
|
|
16
|
+
## Key Learnings from Research
|
|
17
|
+
|
|
18
|
+
### 1. Figma Landing Page Design Best Practices
|
|
19
|
+
|
|
20
|
+
**Essential Elements:**
|
|
21
|
+
- Clear, compelling headline (first thing visitors see)
|
|
22
|
+
- Persuasive subheadings and body copy
|
|
23
|
+
- Strong call-to-action (CTA) buttons
|
|
24
|
+
- Visual hierarchy to guide attention
|
|
25
|
+
- Clean layouts preventing distractions
|
|
26
|
+
- Responsive design for all devices
|
|
27
|
+
|
|
28
|
+
**Canvas Sizes:**
|
|
29
|
+
- Desktop: 1920 x 1080px or 1440 x 1024px
|
|
30
|
+
- iPhone X: 375 x 812px
|
|
31
|
+
- Android: 360 x 640px
|
|
32
|
+
|
|
33
|
+
**Layout Structure:**
|
|
34
|
+
- Use 12-column grid system for consistency
|
|
35
|
+
- Apply Auto Layout for responsive behavior
|
|
36
|
+
- Organize sections: Header → Hero → Features → CTA → Footer
|
|
37
|
+
|
|
38
|
+
### 2. Figma File Organization for AI Conversion
|
|
39
|
+
|
|
40
|
+
**Critical for AI Tools:**
|
|
41
|
+
```
|
|
42
|
+
✅ Consistent naming conventions (HeaderNavigation, ProductCard, PrimaryButton)
|
|
43
|
+
✅ Component hierarchy matching React structure
|
|
44
|
+
✅ Reusable components for buttons, forms, headers
|
|
45
|
+
✅ Auto Layout configured to mimic CSS flexbox/grid
|
|
46
|
+
✅ Design tokens for colors, spacing, typography
|
|
47
|
+
✅ Variants for component states (hover, active, disabled)
|
|
48
|
+
✅ Accessibility annotations (ARIA labels, tab order)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**File Structure:**
|
|
52
|
+
```
|
|
53
|
+
Figma File
|
|
54
|
+
├── Design System Page (components library)
|
|
55
|
+
├── Desktop (1440px frames)
|
|
56
|
+
├── Tablet (768px frames)
|
|
57
|
+
└── Mobile (375px frames)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 3. Design-to-Code Workflow
|
|
61
|
+
|
|
62
|
+
**8-Step Process:**
|
|
63
|
+
|
|
64
|
+
1. **Plan** - Define goal (leads, product promo, conversions)
|
|
65
|
+
2. **Structure** - Create frame hierarchy with clear information flow
|
|
66
|
+
3. **Components** - Build reusable elements for consistency
|
|
67
|
+
4. **Optimize** - Refine typography, colors, images, CTAs
|
|
68
|
+
5. **Integrate Tools** - Connect Figma to code generation tools
|
|
69
|
+
6. **Domain** - Link to custom domain
|
|
70
|
+
7. **Test** - Verify responsive design across devices
|
|
71
|
+
8. **Publish** - Deploy and promote
|
|
72
|
+
|
|
73
|
+
### 4. Figma to Tailwind CSS Conversion
|
|
74
|
+
|
|
75
|
+
**AI Tools Available:**
|
|
76
|
+
- **Builder.io Visual Copilot** - Supports multiple frameworks, Tailwind/Emotion/Styled Components
|
|
77
|
+
- **Dualite Alpha** - Figma to Tailwind automation
|
|
78
|
+
- **QuestAI** - Material UI focused
|
|
79
|
+
- **DhiWise** - Full app development automation
|
|
80
|
+
|
|
81
|
+
**MCP Integration Benefits:**
|
|
82
|
+
- Dynamic understanding of component relationships
|
|
83
|
+
- Maintains consistency across design system
|
|
84
|
+
- Generates code matching team standards
|
|
85
|
+
- Reduces manual translation effort
|
|
86
|
+
|
|
87
|
+
### 5. Figma MCP Tools for Landing Pages
|
|
88
|
+
|
|
89
|
+
**Available MCP Figma Tools:**
|
|
90
|
+
```typescript
|
|
91
|
+
// Get design context and generate code
|
|
92
|
+
mcp_figma_get_design_context({
|
|
93
|
+
fileKey: "extracted-from-url",
|
|
94
|
+
nodeId: "1:2",
|
|
95
|
+
clientLanguages: "typescript,html,css",
|
|
96
|
+
clientFrameworks: "astro,react"
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
// Get screenshot for reference
|
|
100
|
+
mcp_figma_get_screenshot({
|
|
101
|
+
fileKey: "file-key",
|
|
102
|
+
nodeId: "1:2"
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
// Get metadata structure
|
|
106
|
+
mcp_figma_get_metadata({
|
|
107
|
+
fileKey: "file-key",
|
|
108
|
+
nodeId: "1:2"
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
// Get design variables/tokens
|
|
112
|
+
mcp_figma_get_variable_defs({
|
|
113
|
+
fileKey: "file-key",
|
|
114
|
+
nodeId: "1:2"
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
// Map to code components
|
|
118
|
+
mcp_figma_get_code_connect_map({
|
|
119
|
+
fileKey: "file-key",
|
|
120
|
+
nodeId: "1:2"
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### 6. Tailwind vs MUI for Landing Pages
|
|
125
|
+
|
|
126
|
+
**Tailwind CSS (Recommended for Landing Pages):**
|
|
127
|
+
- ✅ Utility-first approach
|
|
128
|
+
- ✅ Highly customizable
|
|
129
|
+
- ✅ Smaller CSS bundles (purges unused styles)
|
|
130
|
+
- ✅ Perfect for unique, custom designs
|
|
131
|
+
- ✅ Better performance for static sites
|
|
132
|
+
- ⚠️ Steeper learning curve initially
|
|
133
|
+
|
|
134
|
+
**Material UI (MUI):**
|
|
135
|
+
- ✅ Pre-built components
|
|
136
|
+
- ✅ Faster initial setup
|
|
137
|
+
- ✅ Easier for React developers
|
|
138
|
+
- ✅ Material Design consistency
|
|
139
|
+
- ⚠️ Larger library size
|
|
140
|
+
- ⚠️ Less flexible for custom designs
|
|
141
|
+
|
|
142
|
+
**For Astro Landing Pages: Use Tailwind CSS**
|
|
143
|
+
|
|
144
|
+
### 7. Component Patterns for Landing Pages
|
|
145
|
+
|
|
146
|
+
**Common Components:**
|
|
147
|
+
```
|
|
148
|
+
landing-page/src/components/
|
|
149
|
+
├── Hero.astro # Main headline + CTA
|
|
150
|
+
├── Features.astro # Feature grid/list
|
|
151
|
+
├── UseCases.astro # Use case examples
|
|
152
|
+
├── Testimonials.astro # Social proof
|
|
153
|
+
├── FAQ.astro # Common questions
|
|
154
|
+
├── QuickStart.astro # Getting started
|
|
155
|
+
├── TrustBadges.astro # Credibility indicators
|
|
156
|
+
├── GitHubStats.astro # Open source metrics
|
|
157
|
+
├── Footer.astro # Links + legal
|
|
158
|
+
└── StickyHeaderCTA.astro # Persistent CTA
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### 8. Figma to Astro + Tailwind Workflow
|
|
162
|
+
|
|
163
|
+
**Step-by-Step:**
|
|
164
|
+
|
|
165
|
+
1. **Design in Figma**
|
|
166
|
+
- Use 1440px desktop frame
|
|
167
|
+
- Apply 12-column grid
|
|
168
|
+
- Create component variants
|
|
169
|
+
- Add responsive constraints
|
|
170
|
+
|
|
171
|
+
2. **Extract Design Tokens**
|
|
172
|
+
```javascript
|
|
173
|
+
// tailwind.config.mjs
|
|
174
|
+
export default {
|
|
175
|
+
theme: {
|
|
176
|
+
extend: {
|
|
177
|
+
colors: {
|
|
178
|
+
primary: '#...', // From Figma variables
|
|
179
|
+
secondary: '#...',
|
|
180
|
+
},
|
|
181
|
+
spacing: {
|
|
182
|
+
// From Figma spacing tokens
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
3. **Generate Component Code**
|
|
190
|
+
- Use MCP Figma tools or Visual Copilot
|
|
191
|
+
- Convert to Astro components
|
|
192
|
+
- Apply Tailwind classes
|
|
193
|
+
|
|
194
|
+
4. **Optimize for Production**
|
|
195
|
+
- Lazy load images
|
|
196
|
+
- Optimize fonts
|
|
197
|
+
- Minify CSS/JS
|
|
198
|
+
- Add SEO meta tags
|
|
199
|
+
|
|
200
|
+
### 9. Accessibility Requirements
|
|
201
|
+
|
|
202
|
+
**Must-Have Features:**
|
|
203
|
+
- Color contrast ratios (WCAG 2.1 AA)
|
|
204
|
+
- Keyboard navigation
|
|
205
|
+
- ARIA labels for interactive elements
|
|
206
|
+
- Focus states clearly visible
|
|
207
|
+
- Alt text for images
|
|
208
|
+
- Semantic HTML structure
|
|
209
|
+
- Screen reader compatibility
|
|
210
|
+
|
|
211
|
+
### 10. Performance Optimization
|
|
212
|
+
|
|
213
|
+
**Landing Page Specific:**
|
|
214
|
+
- Above-the-fold content loads first
|
|
215
|
+
- Lazy load images below fold
|
|
216
|
+
- Inline critical CSS
|
|
217
|
+
- Preload hero images
|
|
218
|
+
- Use WebP/AVIF formats
|
|
219
|
+
- Minimize JavaScript
|
|
220
|
+
- CDN for static assets
|
|
221
|
+
|
|
222
|
+
## Implementation for Current Project
|
|
223
|
+
|
|
224
|
+
**For `landing-page/` directory:**
|
|
225
|
+
|
|
226
|
+
1. **Create Figma Design System**
|
|
227
|
+
- Extract existing component styles
|
|
228
|
+
- Document in Figma with proper naming
|
|
229
|
+
- Create variants for all states
|
|
230
|
+
|
|
231
|
+
2. **Setup MCP Figma Integration**
|
|
232
|
+
- Add Figma file URL to project docs
|
|
233
|
+
- Configure Code Connect mappings
|
|
234
|
+
- Link components to source files
|
|
235
|
+
|
|
236
|
+
3. **Automate Design Updates**
|
|
237
|
+
- Use MCP tools to sync design changes
|
|
238
|
+
- Generate updated Tailwind classes
|
|
239
|
+
- Maintain component consistency
|
|
240
|
+
|
|
241
|
+
4. **Testing Workflow**
|
|
242
|
+
- Preview in Figma (desktop/tablet/mobile)
|
|
243
|
+
- Test in Astro dev server
|
|
244
|
+
- Verify responsive breakpoints
|
|
245
|
+
- Check accessibility with tools
|
|
246
|
+
|
|
247
|
+
## Tools & Resources
|
|
248
|
+
|
|
249
|
+
**Design Tools:**
|
|
250
|
+
- [Figma](https://figma.com) - Design platform
|
|
251
|
+
- [Landify](https://www.bypeople.com/figma-landing-page-template/) - 500+ components, 170+ blocks
|
|
252
|
+
- [Figcomponents](https://www.figcomponents.com) - Free component library
|
|
253
|
+
- [Untitled UI](https://www.untitledui.com) - Landing page examples
|
|
254
|
+
|
|
255
|
+
**Conversion Tools:**
|
|
256
|
+
- [Builder.io Visual Copilot](https://www.builder.io) - Figma to code
|
|
257
|
+
- [Dualite Alpha](https://dualite.dev) - Figma to Tailwind
|
|
258
|
+
- [Detachless](https://detachless.com) - Publish from Figma
|
|
259
|
+
|
|
260
|
+
**Documentation:**
|
|
261
|
+
- [Tailwind CSS Docs](https://tailwindcss.com/docs)
|
|
262
|
+
- [Astro Docs](https://docs.astro.build)
|
|
263
|
+
- [Figma Best Practices](https://www.geeksforgeeks.org/websites-apps/figma-best-practices/)
|
|
264
|
+
|
|
265
|
+
## ROI & Time Savings
|
|
266
|
+
|
|
267
|
+
**Manual Process:**
|
|
268
|
+
- Design: 4-6 hours
|
|
269
|
+
- Code conversion: 8-12 hours
|
|
270
|
+
- Responsive testing: 2-4 hours
|
|
271
|
+
- **Total: 14-22 hours**
|
|
272
|
+
|
|
273
|
+
**AI-Assisted Process:**
|
|
274
|
+
- Design: 4-6 hours
|
|
275
|
+
- AI conversion: 1-2 hours
|
|
276
|
+
- Refinement: 2-3 hours
|
|
277
|
+
- Testing: 1-2 hours
|
|
278
|
+
- **Total: 8-13 hours**
|
|
279
|
+
|
|
280
|
+
**Time Saved: 6-9 hours per landing page (40-50% reduction)**
|
|
281
|
+
|
|
282
|
+
## Best Practices Summary
|
|
283
|
+
|
|
284
|
+
1. ✅ **Design System First** - Create reusable components
|
|
285
|
+
2. ✅ **Consistent Naming** - Match Figma to code conventions
|
|
286
|
+
3. ✅ **Mobile-First** - Design for smallest screen first
|
|
287
|
+
4. ✅ **Accessibility Built-In** - Not an afterthought
|
|
288
|
+
5. ✅ **Performance Focused** - Optimize from the start
|
|
289
|
+
6. ✅ **Test Early** - Verify responsive behavior in Figma
|
|
290
|
+
7. ✅ **Document Everything** - Comments, annotations, guides
|
|
291
|
+
8. ✅ **Version Control** - Track design iterations
|
|
292
|
+
9. ✅ **Collaborate** - Designers + developers aligned
|
|
293
|
+
10. ✅ **Iterate** - Continuous improvement based on metrics
|
|
294
|
+
|
|
295
|
+
## Next Steps for Implementation
|
|
296
|
+
|
|
297
|
+
1. Create Figma file for landing page redesign
|
|
298
|
+
2. Setup MCP Figma integration in `.kiro/settings/mcp.json`
|
|
299
|
+
3. Document component mapping
|
|
300
|
+
4. Test conversion workflow with one component
|
|
301
|
+
5. Scale to full landing page
|
|
302
|
+
6. Automate with CI/CD pipeline
|
|
303
|
+
|
|
304
|
+
## Related Patterns
|
|
305
|
+
|
|
306
|
+
- [Design System Documentation](./design-system-setup.md)
|
|
307
|
+
- [Component Library Architecture](../architecture/component-library.md)
|
|
308
|
+
- [Performance Optimization](../performance/landing-page-optimization.md)
|
|
309
|
+
- [Accessibility Guidelines](../architecture/accessibility-standards.md)
|
|
310
|
+
|
|
311
|
+
#figma #landing-page #design-to-code #tailwind #astro #mcp #ai-workflow
|