| name | figma_integration |
| description | Figma design-to-code, design system extraction ve component generation rehberi. |
🎨 Figma Integration
Figma design-to-code workflow rehberi.
📋 Design Token Extraction
Figma Variables → CSS
:root {
--color-primary: #3b82f6;
--color-secondary: #10b981;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--font-size-sm: 14px;
--font-size-base: 16px;
}
🔧 Component Mapping
| Figma | React Component |
|---|
| Frame | <div> |
| Auto Layout | Flexbox |
| Component | React Component |
| Instance | Component usage |
| Text | <p>, <h1>, etc. |
📐 Layout Translation
Figma Auto Layout → CSS Flexbox
.container {
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 16px;
}
.stack {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
🎯 Best Practices
- Naming: Figma layer names = component names
- Variants: Figma variants = component props
- Tokens: Export design tokens as JSON
- Components: Start from atoms → molecules → organisms
Figma Integration v1.1 - Enhanced
🔄 Workflow
Kaynak: Figma for Developers
Aşama 1: Inspection
Aşama 2: component Build
Aşama 3: Verification
Kontrol Noktaları
| Aşama | Doğrulama |
|---|
| 1 | Tüm renkler hardcoded hex yerine variable mı? |
| 2 | Component Figma'daki gibi esniyor (resize) mu? |
| 3 | Yazı tipleri ve satır aralıkları birebir aynı mı? |