How to clone a brand's visual system to DTCG tokens
When to use: You're rebuilding a marketing site or app from a reference and need its tokens in 10 minutes, not a Figma rip session.
Prerequisites
- Public URL of the reference site — e.g. https://stripe.com — must be publicly reachable
Flow
-
ExtractUse design-extract on https://stripe.com. Output DTCG tokens, SwiftUI, and Tailwind v4. Save to /tokens/.✓ Copied→ tokens.json + tokens.swift + tailwind.css written; report on coverage
-
AuditRun the CSS health pass and the WCAG remediation. Flag everything below AA.✓ Copied→ Audit report listing failing pairs + suggestions
-
ApplyNow generate a starter Next.js page using these tokens — nav, hero, 3 feature cards.✓ Copied→ Page renders in the brand visual identity
Outcome: A token set + audit + starter page, all derived from one URL.
Pitfalls
- Site is heavily SSR-gated or behind login — Provide a logged-in cookie via the extension or a custom Playwright pre-step