Design systems from prompts,
not pixels

Generate production-ready UI components, design tokens, and adaptive layouts from natural language. Ship consistent design at the speed of thought.

npm install magicaldope
Get Started v3.1 Release Notes

Prompt-to-Component

Describe what you need in plain English. Get React, Vue, or Svelte components with proper accessibility, responsive breakpoints, and design tokens baked in.

Token Inference

Upload a screenshot or brand guide. MagicalDope extracts colors, typography, spacing, and shadows into a structured token set. Zero manual mapping.

Adaptive Layouts

Define layout intent once. The engine generates CSS Grid and Flexbox structures that adapt across breakpoints with fluid spacing and container queries.

Quick Start

import { generate, tokenize } from 'magicaldope';

// Generate a component from a prompt
const card = await generate({
  prompt: "pricing card with toggle for monthly/annual",
  framework: "react",
  tokens: "./tokens.json",
});

// Extract tokens from a screenshot
const tokens = await tokenize({
  source: "./brand-guide.png",
  format: "css-variables",
});

console.log(card.code);    // JSX with Tailwind classes
console.log(tokens.colors); // { primary: '#e040fb', ... }