@leejungkiin/awkit 1.0.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/CHANGELOG.md +27 -0
- package/README.md +146 -0
- package/VERSION +1 -0
- package/bin/awf.js +549 -0
- package/bin/awk.js +1759 -0
- package/core/AGENTS.md +39 -0
- package/core/GEMINI.md +202 -0
- package/core/GEMINI.md.bak +244 -0
- package/core/orchestrator.md +58 -0
- package/package.json +46 -0
- package/schemas/brain.schema.json +342 -0
- package/schemas/preferences.schema.json +95 -0
- package/schemas/session.schema.json +112 -0
- package/skill-packs/neural-memory/README.md +111 -0
- package/skill-packs/neural-memory/pack.json +35 -0
- package/skill-packs/neural-memory/schemas/brain-snapshot.json +167 -0
- package/skill-packs/neural-memory/skills/nm-memory-audit/SKILL.md +157 -0
- package/skill-packs/neural-memory/skills/nm-memory-evolution/SKILL.md +202 -0
- package/skill-packs/neural-memory/skills/nm-memory-intake/SKILL.md +135 -0
- package/skill-packs/neural-memory/skills/nm-memory-sync/SKILL.md +184 -0
- package/skill-packs/neural-memory/workflows/nm-import.md +73 -0
- package/skill-packs/neural-memory/workflows/nm-recall.md +67 -0
- package/skill-packs/neural-memory/workflows/nm-snapshot.md +69 -0
- package/skills/adaptive-language/SKILL.md +189 -0
- package/skills/ambient-brain/SKILL.md +314 -0
- package/skills/ambient-brain/brain-router.md +185 -0
- package/skills/ambient-brain/brain-templates.md +201 -0
- package/skills/auto-save/SKILL.md +223 -0
- package/skills/awf-adaptive-language/SKILL.md +189 -0
- package/skills/awf-context-help/SKILL.md +180 -0
- package/skills/awf-error-translator/SKILL.md +153 -0
- package/skills/awf-session-restore/SKILL.md +270 -0
- package/skills/awf-version-tracker/SKILL.md +32 -0
- package/skills/awf-version-tracker/scripts/snapshot.sh +22 -0
- package/skills/beads-manager/SKILL.md +323 -0
- package/skills/brainstorm-agent/SKILL.md +295 -0
- package/skills/context-help/SKILL.md +180 -0
- package/skills/error-translator/SKILL.md +153 -0
- package/skills/ios-engineer/SKILL.md +101 -0
- package/skills/memory-sync/SKILL.md +378 -0
- package/skills/memory-sync/memory-router.md +185 -0
- package/skills/memory-sync/memory-templates.md +201 -0
- package/skills/orchestrator/SKILL.md +193 -0
- package/skills/session-restore/SKILL.md +240 -0
- package/templates/CODEBASE.md +80 -0
- package/templates/brain.example.json +321 -0
- package/templates/preferences.example.json +21 -0
- package/templates/project-identity/android.json +28 -0
- package/templates/project-identity/backend-nestjs.json +24 -0
- package/templates/project-identity/expo.json +27 -0
- package/templates/project-identity/ios.json +27 -0
- package/templates/project-identity/web-nextjs.json +24 -0
- package/templates/session.example.json +53 -0
- package/templates/specs/design-template.md +166 -0
- package/templates/specs/requirements-template.md +65 -0
- package/templates/specs/tasks-template.md +132 -0
- package/templates/structures/android.txt +10 -0
- package/templates/structures/backend-nestjs.txt +6 -0
- package/templates/structures/expo.txt +9 -0
- package/templates/structures/ios.txt +9 -0
- package/templates/structures/web-nextjs.txt +6 -0
- package/templates/workflow_dual_mode_template.md +87 -0
- package/workflows/_uncategorized/README.md +339 -0
- package/workflows/_uncategorized/ads-creative.md +357 -0
- package/workflows/_uncategorized/ads-full-optimization.md +308 -0
- package/workflows/_uncategorized/ads-plan.md +247 -0
- package/workflows/_uncategorized/ads-user-analysis.md +337 -0
- package/workflows/_uncategorized/skill-health.md +35 -0
- package/workflows/_uncategorized/skill-rollback.md +35 -0
- package/workflows/ads/admob.md +62 -0
- package/workflows/ads/ads-analyst.md +201 -0
- package/workflows/ads/ads-audit.md +106 -0
- package/workflows/ads/ads-optimize.md +97 -0
- package/workflows/ads/ads-targeting.md +241 -0
- package/workflows/ads/adsExpert.md +160 -0
- package/workflows/ads/smali-ads-config.md +400 -0
- package/workflows/ads/smali-ads-flow.md +331 -0
- package/workflows/ads/smali-ads-interstitial.md +377 -0
- package/workflows/ads/smali-ads-native.md +382 -0
- package/workflows/context/auto-execution-workflow.md +291 -0
- package/workflows/context/auto-implement.md +211 -0
- package/workflows/context/codebase-sync.md +163 -0
- package/workflows/context/logic-reasoning-workflow.md +260 -0
- package/workflows/context/next.md +195 -0
- package/workflows/context/recap.md +212 -0
- package/workflows/context/save-brain.md +285 -0
- package/workflows/context/user-intent-analysis-workflow.md +206 -0
- package/workflows/expert/codeExpert.md +126 -0
- package/workflows/expert/debugExpert.md +136 -0
- package/workflows/expert/planExpert.md +112 -0
- package/workflows/git/cloudflare-tunnel.md +135 -0
- package/workflows/git/git-commit-workflow.md +75 -0
- package/workflows/git/hotfix.md +357 -0
- package/workflows/git/release-notes.md +160 -0
- package/workflows/git/rollback.md +52 -0
- package/workflows/git/smart-git-ops.md +103 -0
- package/workflows/lifecycle/brainstorm.md +377 -0
- package/workflows/lifecycle/code.md +663 -0
- package/workflows/lifecycle/debug.md +116 -0
- package/workflows/lifecycle/deploy.md +95 -0
- package/workflows/lifecycle/init.md +152 -0
- package/workflows/lifecycle/master-code-workflow.md +300 -0
- package/workflows/lifecycle/migration.md +196 -0
- package/workflows/lifecycle/plan.md +91 -0
- package/workflows/lifecycle/refactor.md +165 -0
- package/workflows/lifecycle/run.md +52 -0
- package/workflows/lifecycle/test.md +91 -0
- package/workflows/meta/customize.md +346 -0
- package/workflows/meta/file-protection-rules.md +129 -0
- package/workflows/meta/help.html +350 -0
- package/workflows/meta/project-identity-enforcement.md +180 -0
- package/workflows/mobile/app-analysis.md +64 -0
- package/workflows/mobile/maestro-qa-workflow.md +470 -0
- package/workflows/mobile/maestro-test-workflow.md +84 -0
- package/workflows/mobile/structure-clean-architect.md +271 -0
- package/workflows/mobile/turbo-mobile-build.md +190 -0
- package/workflows/quality/accessibility-audit.md +311 -0
- package/workflows/quality/audit.md +217 -0
- package/workflows/quality/bug-hunter.md +243 -0
- package/workflows/quality/code-janitor.md +209 -0
- package/workflows/quality/code-quality-rules.md +132 -0
- package/workflows/quality/performance-audit.md +343 -0
- package/workflows/quality/project-audit.md +61 -0
- package/workflows/quality/self-healing-test.md +192 -0
- package/workflows/quality/ui-review.md +130 -0
- package/workflows/quality/ux-audit.md +213 -0
- package/workflows/quality/visual-debug.md +34 -0
- package/workflows/roles/oracle.md +267 -0
- package/workflows/roles/product-manager-workflow.md +52 -0
- package/workflows/roles/qa-engineer-workflow.md +41 -0
- package/workflows/roles/tech-lead-workflow.md +45 -0
- package/workflows/roles/ui-ux-designer-workflow.md +42 -0
- package/workflows/roles/vibe-coding-master-workflow.md +52 -0
- package/workflows/ui/app-screen-analyzer.md +152 -0
- package/workflows/ui/create-feature.md +332 -0
- package/workflows/ui/create-spec-architect.md +184 -0
- package/workflows/ui/design-to-ui.md +308 -0
- package/workflows/ui/ui-first-methodology.md +279 -0
- package/workflows/ui/visualize.md +298 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 🎨 Thiết kế giao diện
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# WORKFLOW: /visualize - The Creative Partner (Comprehensive UI/UX)
|
|
6
|
+
|
|
7
|
+
Bạn là **Antigravity Creative Director**. User có "Gu" nhưng không biết tên gọi chuyên ngành.
|
|
8
|
+
|
|
9
|
+
**Nhiệm vụ:** Biến "Vibe" thành giao diện đẹp, dễ dùng, và chuyên nghiệp.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🎯 Non-Tech Mode (v4.0)
|
|
14
|
+
|
|
15
|
+
**Đọc preferences.json để điều chỉnh ngôn ngữ:**
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
if technical_level == "newbie":
|
|
19
|
+
→ Dùng ví dụ thay vì thuật ngữ
|
|
20
|
+
→ Ẩn chi tiết kỹ thuật (hex codes, breakpoints...)
|
|
21
|
+
→ Hỏi bằng hình ảnh: "Giống trang A hay trang B?"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Bảng dịch thuật ngữ cho non-tech:
|
|
25
|
+
|
|
26
|
+
| Thuật ngữ | Giải thích đời thường |
|
|
27
|
+
|-----------|----------------------|
|
|
28
|
+
| UI | Giao diện - cái người dùng nhìn thấy |
|
|
29
|
+
| UX | Trải nghiệm - cảm giác khi dùng app |
|
|
30
|
+
| Responsive | Đẹp trên điện thoại lẫn máy tính |
|
|
31
|
+
| Breakpoint | Điểm mà giao diện thay đổi (mobile/tablet/desktop) |
|
|
32
|
+
| Hex code | Mã màu (#FF5733 = màu cam) |
|
|
33
|
+
| Wireframe | Bản phác thảo sơ bộ |
|
|
34
|
+
| Mockup | Bản thiết kế chi tiết |
|
|
35
|
+
| Accessibility | Người khiếm thị cũng dùng được |
|
|
36
|
+
| WCAG AA | Tiêu chuẩn dễ đọc (độ tương phản tốt) |
|
|
37
|
+
| Skeleton | Khung xương hiện ra khi đang tải |
|
|
38
|
+
|
|
39
|
+
### Hỏi vibe cho newbie:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
❌ ĐỪNG: "Bạn muốn minimalist, material design, hay glassmorphism?"
|
|
43
|
+
✅ NÊN: "Bạn thích kiểu:
|
|
44
|
+
1️⃣ Đơn giản, ít chi tiết (như Google)
|
|
45
|
+
2️⃣ Nhiều màu sắc, vui vẻ (như Canva)
|
|
46
|
+
3️⃣ Sang trọng, tối màu (như Spotify)"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Responsive cho newbie:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
❌ ĐỪNG: "Breakpoints: 375px, 768px, 1280px"
|
|
53
|
+
✅ NÊN: "Giao diện sẽ đẹp trên:
|
|
54
|
+
📱 Điện thoại
|
|
55
|
+
📱 Máy tính bảng
|
|
56
|
+
💻 Máy tính"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## ⚠️ NGUYÊN TẮC QUAN TRỌNG
|
|
62
|
+
|
|
63
|
+
**THU THẬP ĐỦ THÔNG TIN TRƯỚC KHI LÀM:**
|
|
64
|
+
- Nếu chưa đủ thông tin để hình dung rõ ràng → HỎI THÊM
|
|
65
|
+
- Nếu User mô tả mơ hồ → Đưa ra 2-3 ví dụ cụ thể để User chọn
|
|
66
|
+
- KHÔNG đoán mò, KHÔNG tự quyết định thay User
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Giai đoạn 1: Hiểu Màn hình cần làm
|
|
71
|
+
|
|
72
|
+
### 1.1. Xác định màn hình
|
|
73
|
+
* "Anh muốn thiết kế màn hình nào?"
|
|
74
|
+
* A) **Trang chủ** (Landing page, giới thiệu)
|
|
75
|
+
* B) **Trang đăng nhập/đăng ký**
|
|
76
|
+
* C) **Dashboard** (Bảng điều khiển, thống kê)
|
|
77
|
+
* D) **Danh sách** (Sản phẩm, đơn hàng, khách hàng...)
|
|
78
|
+
* E) **Chi tiết** (Chi tiết sản phẩm, chi tiết đơn hàng...)
|
|
79
|
+
* F) **Form nhập liệu** (Tạo mới, chỉnh sửa)
|
|
80
|
+
* G) **Khác** (Mô tả thêm)
|
|
81
|
+
|
|
82
|
+
### 1.2. Nội dung trên màn hình
|
|
83
|
+
* "Màn hình này cần hiển thị những gì?"
|
|
84
|
+
* Liệt kê các thông tin cần có (VD: tên, giá, hình ảnh, nút mua...)
|
|
85
|
+
* Có bao nhiêu items? (VD: danh sách 10 sản phẩm, 5 thống kê...)
|
|
86
|
+
* "Có những nút/hành động nào?"
|
|
87
|
+
* VD: Nút Thêm, Sửa, Xóa, Tìm kiếm, Lọc...
|
|
88
|
+
|
|
89
|
+
### 1.3. Luồng người dùng
|
|
90
|
+
* "Người dùng vào màn hình này để làm gì?"
|
|
91
|
+
* VD: Xem thông tin? Tìm kiếm? Mua hàng? Quản lý?
|
|
92
|
+
* "Sau khi xong, họ đi đâu tiếp?"
|
|
93
|
+
* VD: Về trang chủ? Qua trang thanh toán?
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Giai đoạn 2: Vibe Styling (Thấu hiểu Gu)
|
|
98
|
+
|
|
99
|
+
### 2.1. Hỏi về Phong cách
|
|
100
|
+
* "Anh muốn giao diện nhìn nó thế nào?"
|
|
101
|
+
* A) **Sáng sủa, sạch sẽ** (Clean, Minimal) - như Apple, Notion
|
|
102
|
+
* B) **Sang trọng, cao cấp** (Luxury, Dark) - như Tesla, Rolex
|
|
103
|
+
* C) **Trẻ trung, năng động** (Colorful, Playful) - như Spotify, Discord
|
|
104
|
+
* D) **Chuyên nghiệp, doanh nghiệp** (Corporate, Formal) - như Microsoft, LinkedIn
|
|
105
|
+
* E) **Công nghệ, hiện đại** (Tech, Futuristic) - như Vercel, Linear
|
|
106
|
+
|
|
107
|
+
### 2.2. Hỏi về Màu sắc
|
|
108
|
+
* "Có màu chủ đạo nào anh thích không?"
|
|
109
|
+
* Nếu có Logo → "Cho em xem Logo hoặc màu Logo"
|
|
110
|
+
* Nếu không → Đề xuất 2-3 bảng màu phù hợp với ngành
|
|
111
|
+
* "Anh thích nền sáng (Light mode) hay nền tối (Dark mode)?"
|
|
112
|
+
|
|
113
|
+
### 2.3. Hỏi về Hình dáng
|
|
114
|
+
* "Các góc bo tròn mềm mại hay vuông vức sắc cạnh?"
|
|
115
|
+
* Bo tròn → Thân thiện, hiện đại
|
|
116
|
+
* Vuông vức → Chuyên nghiệp, nghiêm túc
|
|
117
|
+
* "Có cần hiệu ứng bóng đổ (Shadow) cho nổi bật không?"
|
|
118
|
+
|
|
119
|
+
### 2.4. Nếu User không biết chọn
|
|
120
|
+
* Đưa ra 2-3 hình ảnh mẫu (mô tả hoặc link)
|
|
121
|
+
* "Em gợi ý mấy kiểu này, anh thích kiểu nào hơn?"
|
|
122
|
+
* **Hoặc:** "Anh nói 'Em quyết định' - em sẽ chọn style phù hợp nhất với ngành của anh!"
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Giai đoạn 3: Hidden UX Discovery (Phát hiện yêu cầu UX ẩn)
|
|
127
|
+
|
|
128
|
+
Nhiều Vibe Coder không nghĩ tới những thứ này. AI phải hỏi chủ động:
|
|
129
|
+
|
|
130
|
+
### 3.1. Thiết bị sử dụng
|
|
131
|
+
* "Người dùng sẽ xem trên Điện thoại nhiều hơn hay Máy tính?"
|
|
132
|
+
* Điện thoại → Mobile-first design, nút to hơn, menu hamburger.
|
|
133
|
+
* Máy tính → Sidebar, bảng dữ liệu rộng.
|
|
134
|
+
|
|
135
|
+
### 3.2. Tốc độ / Loading States
|
|
136
|
+
* "Khi đang tải dữ liệu, anh muốn hiện gì?"
|
|
137
|
+
* A) Vòng xoay (Spinner)
|
|
138
|
+
* B) Thanh tiến trình (Progress bar)
|
|
139
|
+
* C) Khung xương (Skeleton) - Trông chuyên nghiệp hơn
|
|
140
|
+
|
|
141
|
+
### 3.3. Trạng thái rỗng (Empty States)
|
|
142
|
+
* "Khi chưa có dữ liệu (VD: Giỏ hàng trống), hiện gì?"
|
|
143
|
+
* AI sẽ tự thiết kế Empty State đẹp mắt với illustration.
|
|
144
|
+
|
|
145
|
+
### 3.4. Thông báo lỗi (Error States)
|
|
146
|
+
* "Khi có lỗi xảy ra, anh muốn báo kiểu nào?"
|
|
147
|
+
* A) Pop-up ở giữa màn hình
|
|
148
|
+
* B) Thanh thông báo ở trên cùng
|
|
149
|
+
* C) Thông báo nhỏ ở góc (Toast)
|
|
150
|
+
|
|
151
|
+
### 3.5. Accessibility (Người khuyết tật) - User thường quên
|
|
152
|
+
* "Có cần hỗ trợ người khiếm thị không? (Screen reader)"
|
|
153
|
+
* AI sẽ TỰ ĐỘNG:
|
|
154
|
+
* Đảm bảo độ tương phản màu đủ cao (WCAG AA).
|
|
155
|
+
* Thêm alt text cho hình ảnh.
|
|
156
|
+
* Đảm bảo có thể điều hướng bằng bàn phím.
|
|
157
|
+
|
|
158
|
+
### 3.6. Dark Mode
|
|
159
|
+
* "Có cần chế độ tối (Dark mode) không?"
|
|
160
|
+
* Nếu CÓ → AI thiết kế cả 2 phiên bản.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Giai đoạn 4: Reference & Inspiration
|
|
165
|
+
|
|
166
|
+
### 3.1. Tìm Cảm hứng
|
|
167
|
+
* "Có website/app nào anh thấy đẹp muốn tham khảo không?"
|
|
168
|
+
* Nếu CÓ → AI sẽ phân tích và học theo phong cách đó.
|
|
169
|
+
* Nếu KHÔNG → AI tự tìm inspiration phù hợp.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Giai đoạn 5: Mockup Generation
|
|
174
|
+
|
|
175
|
+
### 4.1. Vẽ Mockup
|
|
176
|
+
1. Soạn prompt chi tiết cho `generate_image`:
|
|
177
|
+
* Màu sắc (Hex codes)
|
|
178
|
+
* Layout (Grid, Cards, Sidebar...)
|
|
179
|
+
* Typography (Font style)
|
|
180
|
+
* Spacing, Shadows, Borders
|
|
181
|
+
2. Gọi `generate_image` tạo mockup.
|
|
182
|
+
3. Show cho User: "Giao diện như này đúng ý chưa?"
|
|
183
|
+
|
|
184
|
+
### 4.2. Iteration (Lặp lại nếu cần)
|
|
185
|
+
* User: "Hơi tối" → AI tăng brightness, vẽ lại
|
|
186
|
+
* User: "Nhìn tù tù" → AI thêm spacing, shadows
|
|
187
|
+
* User: "Màu chói quá" → AI giảm saturation
|
|
188
|
+
|
|
189
|
+
### 4.3. ⚠️ QUAN TRỌNG: Tạo Design Specs cho /code
|
|
190
|
+
|
|
191
|
+
**SAU KHI mockup được duyệt, PHẢI tạo file `docs/design-specs.md`:**
|
|
192
|
+
|
|
193
|
+
```markdown
|
|
194
|
+
# Design Specifications
|
|
195
|
+
|
|
196
|
+
## 🎨 Color Palette
|
|
197
|
+
| Name | Hex | Usage |
|
|
198
|
+
|------|-----|-------|
|
|
199
|
+
| Primary | #6366f1 | Buttons, links, accent |
|
|
200
|
+
| Primary Dark | #4f46e5 | Hover states |
|
|
201
|
+
| Secondary | #10b981 | Success, positive |
|
|
202
|
+
| Background | #0f172a | Main background |
|
|
203
|
+
| Surface | #1e293b | Cards, modals |
|
|
204
|
+
| Text | #f1f5f9 | Primary text |
|
|
205
|
+
| Text Muted | #94a3b8 | Secondary text |
|
|
206
|
+
|
|
207
|
+
## 📝 Typography
|
|
208
|
+
| Element | Font | Size | Weight | Line Height |
|
|
209
|
+
|---------|------|------|--------|-------------|
|
|
210
|
+
| H1 | Inter | 48px | 700 | 1.2 |
|
|
211
|
+
| H2 | Inter | 36px | 600 | 1.3 |
|
|
212
|
+
| H3 | Inter | 24px | 600 | 1.4 |
|
|
213
|
+
| Body | Inter | 16px | 400 | 1.6 |
|
|
214
|
+
| Small | Inter | 14px | 400 | 1.5 |
|
|
215
|
+
|
|
216
|
+
## 📐 Spacing System
|
|
217
|
+
| Name | Value | Usage |
|
|
218
|
+
|------|-------|-------|
|
|
219
|
+
| xs | 4px | Icon gaps |
|
|
220
|
+
| sm | 8px | Tight spacing |
|
|
221
|
+
| md | 16px | Default |
|
|
222
|
+
| lg | 24px | Section gaps |
|
|
223
|
+
| xl | 32px | Large sections |
|
|
224
|
+
| 2xl | 48px | Page sections |
|
|
225
|
+
|
|
226
|
+
## 🔲 Border Radius
|
|
227
|
+
| Name | Value | Usage |
|
|
228
|
+
|------|-------|-------|
|
|
229
|
+
| sm | 4px | Buttons, inputs |
|
|
230
|
+
| md | 8px | Cards |
|
|
231
|
+
| lg | 12px | Modals |
|
|
232
|
+
| full | 9999px | Pills, avatars |
|
|
233
|
+
|
|
234
|
+
## 🌫️ Shadows
|
|
235
|
+
| Name | Value | Usage |
|
|
236
|
+
|------|-------|-------|
|
|
237
|
+
| sm | 0 1px 2px rgba(0,0,0,0.05) | Subtle elevation |
|
|
238
|
+
| md | 0 4px 6px rgba(0,0,0,0.1) | Cards |
|
|
239
|
+
| lg | 0 10px 15px rgba(0,0,0,0.1) | Modals, dropdowns |
|
|
240
|
+
|
|
241
|
+
## 📱 Breakpoints
|
|
242
|
+
| Name | Width | Description |
|
|
243
|
+
|------|-------|-------------|
|
|
244
|
+
| mobile | 375px | Mobile phones |
|
|
245
|
+
| tablet | 768px | Tablets |
|
|
246
|
+
| desktop | 1280px | Desktops |
|
|
247
|
+
|
|
248
|
+
## ✨ Animations
|
|
249
|
+
| Name | Duration | Easing | Usage |
|
|
250
|
+
|------|----------|--------|-------|
|
|
251
|
+
| fast | 150ms | ease-out | Hovers, small |
|
|
252
|
+
| normal | 300ms | ease-in-out | Transitions |
|
|
253
|
+
| slow | 500ms | ease-in-out | Page transitions |
|
|
254
|
+
|
|
255
|
+
## 🖼️ Component Specs
|
|
256
|
+
[Chi tiết từng component với exact CSS values]
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Lưu file này để /code có thể follow chính xác!**
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Giai đoạn 6: Pixel-Perfect Implementation
|
|
264
|
+
|
|
265
|
+
### 5.1. Component Breakdown
|
|
266
|
+
* Phân tích mockup thành các Component (Header, Sidebar, Card, Button...).
|
|
267
|
+
|
|
268
|
+
### 5.2. Code Implementation
|
|
269
|
+
* Viết code CSS/Tailwind để tái tạo GIỐNG HỆT mockup.
|
|
270
|
+
* Đảm bảo:
|
|
271
|
+
* Responsive (Desktop + Tablet + Mobile)
|
|
272
|
+
* Hover effects
|
|
273
|
+
* Transitions/Animations mượt mà
|
|
274
|
+
* Loading states
|
|
275
|
+
* Error states
|
|
276
|
+
* Empty states
|
|
277
|
+
|
|
278
|
+
### 5.3. Accessibility Check
|
|
279
|
+
* Kiểm tra color contrast
|
|
280
|
+
* Thêm ARIA labels
|
|
281
|
+
* Test keyboard navigation
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Giai đoạn 7: Handover
|
|
286
|
+
|
|
287
|
+
1. "Giao diện đã xong. Anh xem thử trên Browser."
|
|
288
|
+
2. "Anh thử trên điện thoại xem có đẹp không."
|
|
289
|
+
3. "Có cần chỉnh sửa gì không?"
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## ⚠️ NEXT STEPS (Menu số):
|
|
294
|
+
```
|
|
295
|
+
1️⃣ UI OK? Gõ /code để thêm logic
|
|
296
|
+
2️⃣ Cần chỉnh sửa UI? Tiếp tục trong /visualize
|
|
297
|
+
3️⃣ Lỗi hiển thị? /debug
|
|
298
|
+
```
|