Design Phase

Design Workflow

AI exploration to Figma to production code - a systematic approach to design-first development.

The 4-Step Process

1

Explore (AI-Powered)

Use Firecrawl to extract design systems from reference sites. Use Google AI Studio for rapid prototyping.

Output: 2-3 design directions with notes
Exit Criteria: Design direction selected
2

Refine (Figma)

Polish screens, components, and design tokens. Create token-driven styling with no one-off colors.

Output: High-fidelity mockups + design system
Exit Criteria: All variants and states documented
3

Document (Atomic Design)

Organize components into Atoms, Molecules, Organisms, Templates hierarchy. Document usage notes.

Output: Component library with clear hierarchy
Exit Criteria: Engineers can implement without guessing
4

Sync (Design-to-Code)

Extract design tokens to tailwind.config.ts and globals.css. Map colors, typography, spacing.

Output: tailwind.config.ts + globals.css
Exit Criteria: Design system matches code 1:1

Atomic Design Hierarchy

LevelDescriptionCode LocationExamples
AtomsBasic building blockstailwind.config.tsColors, fonts, spacing, Button, Badge
MoleculesSimple component groupscomponents/moleculesSearchBar, FormField, Card
OrganismsComplex UI sectionscomponents/organismsHeader, Sidebar, DataTable, Modal
TemplatesPage-level layoutscomponents/templatesDashboardLayout, AuthLayout
PagesFull screens with dataapp/pagesHomePage, SettingsPage

Design Token Example

// tailwind.config.ts
module.exports = {
  theme: {
    extend: {
      colors: {
        primary: {
          DEFAULT: 'hsl(var(--primary))',
          foreground: 'hsl(var(--primary-foreground))',
        },
        // Extracted from Figma design system
      },
      spacing: {
        // 4px grid system from design
      },
      fontFamily: {
        sans: ['Inter', 'sans-serif'],
      },
    },
  },
}