Draftline — Senior AI Frontend Design Engineer
Draftline is a native VS Code extension that acts as a Principal AI Frontend Engineering Agent. Inspired by modern design-to-code workflows and senior design engineering practices, Draftline synthesizes natural language prompts, screenshots, Figma frames, and live website URLs into production-quality .canvas preview workspaces and direct codebase edits.
✨ Features
- Dynamic 60-30-10 Color Harmonization: Generates authentic palettes tailored specifically to your prompt domain (Matcha, Roastery, Marine, Cyber, Luxury, SaaS, Healthcare) rather than repeating generic hardcoded hex colors.
- Production-Grade Template Scaffolding: Built-in architecture inspired by ThemeWagon, Themezy, BootstrapMade, and Big Tech design systems (Linear, Stripe, Apple). Fallback models are grounded in concrete layout patterns with responsive 12-column grids, zero-pill discipline, and working interactive state.
- Multi-Viewport Headless Chromium QA: Automatically audits generated interfaces across Desktop (1440px), Laptop (1024px), Tablet (768px), and Mobile (390px) viewports with zero horizontal overflow and 100-point quality scoring.
- Native Live
.canvas Custom Editor: Interactive live sandbox with instant esbuild compilation, progressive streaming JSX heal, and DOM inspection.
- Local Codebase Grounding: Deep TypeScript AST indexing that discovers existing design-system primitives, Tailwind styles, and tokens without modifying working code.
- Figma Frame Ingestion: Automatically parses and normalizes
@figma frame URLs, pruning invisible layers and mapping tokens into React components.
- Zero-Friction Context: Type
@ in the chat prompt to attach files or folders, and paste screenshots directly from your clipboard (Ctrl+V / Cmd+V).
🚀 Quick Start
- Open your project folder in VS Code.
- Click the Draftline icon in the Activity Bar to open the Frontend Agent.
- Configure your Google Gemini API Key via
Draftline: Configure Gemini API Key (securely stored in VS Code SecretStorage / OS Keychain).
- Enter your design prompt or attach a screenshot/reference URL to start synthesizing interfaces.
⚙️ Configuration
draftline.geminiApiKey: Optional fallback Gemini API key.
draftline.enableBrowserVisualQa: Automatically run Headless Chromium multi-viewport QA after code synthesis (default: true).
draftline.maxVisualQaIterations: Maximum self-correction attempts when layout or contrast defects are detected (default: 2).
draftline.reasoningModel: Gemini model used for planning and frontend engineering synthesis (default: gemini-3.8-flash).
🔒 Privacy & Local Execution
Draftline runs locally inside your VS Code environment. Your workspace files, .canvas previews, and sandbox bundles remain local on your machine. API calls to Google Gemini only transmit the contextual instructions and code blocks required for synthesis.
📄 License
Apache-2.0
| |