stitch-to-page-conversion
Convert Google Stitch exports (HTML/Images) into project-specific React pages and design similar layouts.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Stitch-to-Page Conversion Guidelines
This skill enables the agent to transform design exports from Google Stitch (or similar tools) into functional, high-quality React pages that follow the project's architecture and design system.
Workflow
1. Analysis phase
- Image Analysis: Review provided screenshots or reference images to identify layout structure (grids, sections), typography (font sizes, weights), color schemes (hex codes, gradients), and spacing (paddings, margins).
- HTML/CSS Analysis: Extract semantic structure from exported HTML. Identify key styles in the CSS and map them to the project's styling tool (e.g., Tailwind CSS).
- Design Intent: Understand the purpose of each section (Hero, Features, Testimonials, etc.) to choose the most appropriate components and structure.
2. Component Mapping
- Identify existing components in
components/that can be reused or extended. - If a new component is needed, design it to be modular and consistent with the project's "Rich Aesthetics" guidelines (vibrant colors, smooth transitions, premium feel).
3. Page Implementation
- Create a new page component in
pages/(or the appropriate directory). - Use Semantic HTML (header, main, section, footer).
- Apply Advanced Aesthetics: Use gradients, hover effects, and micro-animations to make the interface feel "alive".
- Ensure Responsiveness: Implement mobile-first designs with appropriate breakpoints.
4. Pattern Generalization
- Extract reusable logic and style patterns from the Stitch export.
- Use these patterns to build "similar designs" for other pages as requested, ensuring a cohesive look and feel across the entire application.
Quality Standards
- Performance: Optimize image loading (use Next.js Image or similar) and minimize layout shifts.
- Clean Code: Follow React/TypeScript best practices. Use descriptive names and clear structures.
- Visual Accuracy: The generated page should be a "pixel-perfect" or "premium-enhanced" version of the reference design.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!