Skill trích xuất và đồng bộ Design Tokens từ Stitch Design, đảm bảo code Frontend khớp 100% với thiết kế
Version: 1.0.1 Author: M2MBA Last Updated: 2026-03-17 Description: Skill tự động trích xuất Design Tokens (Colors, Typography, Spacing, Components) từ Stitch Design HTML/CSS và đồng bộ với Brand Guideline + Frontend Code.
Khi gen Frontend code từ Stitch Design, thường xảy ra vấn đề:
Skill này giải quyết bằng cách:
Skill được kích hoạt khi User yêu cầu:
Agent BẮT BUỘC thực hiện tuần tự các bước sau:
mcp_stitch_get_project với project IDdesignTheme.customColor → Primary colordesignTheme.font → Font familydesignTheme.roundness → Border radiusdesignTheme.colorMode → Light/Dark modemcp_stitch_list_screens để lấy danh sách screensmcp_stitch_get_screen để lấy:
htmlCode.downloadUrl → HTML codescreenshot.downloadUrl → Screenshot để reference#hex, rgb(), rgba() valuesfont-family, font-size, font-weight, line-heightpadding, margin, gap valuesborder-radius valuesbox-shadow valuesnavigation-config.json:
[{ "key": "home", "label": "Trang chủ", "group": "bottom", "iconKey": "home" }, ...]icon-map.json:
iconKey → tên icon hoặc asset (path SVG/PNG, hoặc tên icon trong lib).{ "home": { "type": "vector", "name": "home-outline" }, "activity": { "type": "vector", "name": "history" } }design-system/navigation/navigation-config.jsondesign-system/navigation/icon-map.jsondesignTheme.customColor và các biến thể)<style>, inline styles, computed styles)border-radius valuesbox-shadow valuesfrontend/[app]/src/design-system/tokens/colors.ts với màu từ Stitchtypography.ts với font, size, line-height từ Stitchspacing.ts với spacing values từ Stitchtailwind.config.js với tokens mớicolors.tstypography.tsspacing.tscolors, typography, spacing objectsDesign Tokens (Updated):
frontend/[app]/src/design-system/tokens/colors.tsfrontend/[app]/src/design-system/tokens/typography.tsfrontend/[app]/src/design-system/tokens/spacing.tsBrand Guideline (Updated):
docs-BA/Prototype/Brand Guideline/[app]-guideline_[YYYYMMDD].mdValidation Report:
docs-BA/Prototype/Stitch-sync/[app]/STITCH_SYNC_REPORT.mdComparison Report:
docs-BA/Prototype/Stitch-sync/[app]/STITCH_COMPARISON.md