Guides & Best Practices

Documentation & AI Prompt Vault

Everything you need to turn raw web code, Tailwind components, and AI prompts into pixel-perfect Figma Auto Layout files.

1. How to Pair Figma with the Web Studio

  1. 1
    Open Figma Desktop or Web: In any Figma document, open the Plugins menu and run HTML to Design Converter (ID: 1708576975167994028).
  2. 2
    Click "Pair Figma" on the Web Studio: Grab your active 6-digit PIN (e.g. 834-192) from the top bar modal.
  3. 3
    Paste into the Plugin: Enter the PIN into the plugin dialog. You are now paired over Supabase Realtime WebSockets!

2. Best Prompts for Claude, ChatGPT & v0

When generating UI code with AI, using semantic flexbox and Tailwind utility classes produces the cleanest Figma Auto Layout hierarchy. Copy these prompt suffixes into your AI chats:

Prompt Preset: Auto Layout OptimizationClaude / ChatGPT
"Build this UI using Tailwind CSS. Use clean flexbox containers (flex-col, flex-row) with explicit gap-*, p-*, and rounded-* classes instead of absolute positioning. Ensure buttons and cards have explicit paddings so they translate directly into Figma Auto Layout frames."
Prompt Preset: Responsive Viewport Componentsv0 / Cursor
"Create a responsive component that renders cleanly at 1440px desktop and 375px mobile. Use standard Inter font weights (font-normal, font-medium, font-bold) and hex/Tailwind standard colors for backgrounds and borders."

3. CSS & Tailwind Support Matrix

Layout & Flexbox

flex-row, flex-col, flex-wrap, gap-*, justify-between, items-center, p-*, m-* (auto margins converted to space-between).

Typography

Font weights 100 to 900 (Thin to Black), font sizes (text-xs to text-7xl), leading-*, tracking-*, text alignment, and Google Fonts fallback.

Paints & Fills

Solid hex/rgb/rgba colors, CSS linear gradients (with angles and color stops), radial gradients, and remote Unsplash/web image fills.

Vectors & Effects

Inline SVG vector paths, rounded-* (individual corner radii), border-* (strokes and stroke weights), and shadow-* drop shadows.