# design > UI/UX design workflow with Stitch - Author: Erik Jang - Repository: SeoulVentures/regle-mono - Version: 20260206134920 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/SeoulVentures/regle-mono - Web: https://mule.run/skillshub/@@SeoulVentures/regle-mono~design:20260206134920 --- --- name: design description: UI/UX design workflow with Stitch disable-model-invocation: true --- Stitch Familiar를 호출하여 UI/UX 디자인 작업을 수행하는 마법입니다. --- ## Usage ``` /cast:design "로그인 페이지 디자인" /cast:design --component="Button" /cast:design --page="Dashboard" /cast:design --from-figma="url" ``` --- ## 1. Overview ``` ┌─────────────────────────────────────────────────────────────┐ │ STITCH DESIGN │ │ │ │ Design Request │ │ │ │ │ ▼ │ │ ┌───────────────────────────────────────────────────┐ │ │ │ STITCH FAMILIAR │ │ │ │ ┌─────────────────────────────────────────┐ │ │ │ │ │ UI/UX Specialist │ │ │ │ │ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │ │ │ │ │ │Component│ │ Page │ │ Style │ │ │ │ │ │ │ │ Design │ │ Layout │ │ Tokens │ │ │ │ │ │ │ └─────────┘ └─────────┘ └─────────┘ │ │ │ │ │ └─────────────────────────────────────────┘ │ │ │ └───────────────────────────────────────────────────┘ │ │ │ │ │ ▼ │ │ UI Components + Styles │ │ │ └─────────────────────────────────────────────────────────────┘ ``` --- ## 2. Design Capabilities ### 2.1 Component Design ```yaml component_design: types: - Buttons - Forms - Cards - Modals - Navigation - Tables - Lists output: - React/Vue/Svelte components - TypeScript interfaces - Styling (Tailwind/CSS) - Storybook stories (optional) ``` ### 2.2 Page Layout ```yaml page_layout: types: - Landing pages - Dashboard layouts - Form pages - List/Detail views - Authentication screens output: - Page components - Responsive layouts - Navigation structure ``` ### 2.3 Design Tokens ```yaml design_tokens: categories: - Colors (primary, secondary, semantic) - Typography (fonts, sizes, weights) - Spacing (margins, paddings, gaps) - Borders (radius, widths) - Shadows - Breakpoints output: - CSS variables - Tailwind config - Theme object ``` --- ## 3. Workflow ``` /cast:design 실행 │ ▼ ┌─────────────────────────────────────┐ │ 1. 요구사항 분석 │ │ - 디자인 목적 │ │ - 타겟 사용자 │ │ - 기술적 제약 │ └─────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────┐ │ 2. 컨텍스트 수집 │ │ - 기존 디자인 시스템 │ │ - 브랜드 가이드라인 │ │ - 프로젝트 스타일링 설정 │ └─────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────┐ │ 3. Stitch 호출 │ │ - 디자인 생성 │ │ - 컴포넌트 코드화 │ │ - 스타일 적용 │ └─────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────┐ │ 4. 결과물 통합 │ │ - 파일 생성 │ │ - 프리뷰 제공 │ │ - /cast:dev 연계 │ └─────────────────────────────────────┘ ``` --- ## 4. Design Modes ### 4.1 Quick Component (`--component`) 단일 컴포넌트 빠른 생성 ``` > /cast:design --component="PrimaryButton" 🎨 Designing component... Created: - src/components/ui/PrimaryButton.tsx - src/components/ui/PrimaryButton.stories.tsx Preview available at: http://localhost:6006 ``` ### 4.2 Page Design (`--page`) 전체 페이지 레이아웃 디자인 ``` > /cast:design --page="UserProfile" 🎨 Designing page layout... Created: - src/pages/UserProfile.tsx - src/components/profile/ProfileHeader.tsx - src/components/profile/ProfileInfo.tsx - src/components/profile/ProfileActions.tsx ``` ### 4.3 Design System (`--system`) 디자인 시스템 초기화/확장 ``` > /cast:design --system 🎨 Setting up design system... Created: - src/styles/tokens.css - src/styles/theme.ts - tailwind.config.js (updated) - src/components/ui/index.ts ``` ### 4.4 Figma Import (`--from-figma`) Figma 디자인에서 컴포넌트 추출 ``` > /cast:design --from-figma="https://figma.com/file/..." 🎨 Importing from Figma... Detected components: - Button (3 variants) - Card - Input - Modal Import all? [Y/n] ``` --- ## 5. Configuration ### 5.1 Stitch Config `grimoire.yaml`: ```yaml familiars: config: stitch: framework: react # react | vue | svelte | html styling: tailwind # tailwind | styled-components | css | scss component_library: null # shadcn | radix | chakra | null design_tokens: source: tailwind # tailwind | figma | custom output: typescript: true stories: true # Storybook stories tests: false # Component tests conventions: file_naming: PascalCase style_location: inline # inline | separate | css-modules ``` --- ## 6. Output Examples ### 6.1 React + Tailwind Component ```tsx // src/components/ui/Button.tsx import { forwardRef } from 'react'; import { cn } from '@/lib/utils'; export interface ButtonProps extends React.ButtonHTMLAttributes { variant?: 'primary' | 'secondary' | 'ghost'; size?: 'sm' | 'md' | 'lg'; } export const Button = forwardRef( ({ className, variant = 'primary', size = 'md', ...props }, ref) => { return (