Extract design tokens for a Next.js application
Overview
Extract a live site's tokens and generate a Next.js-compatible token file. CSS custom properties for the App Router, Tailwind theme extension, and typed TypeScript constants.
Next.js projects using the App Router typically define design tokens in CSS custom properties in globals.css and optionally in tailwind.config.ts. Extract the target brand's tokens and ask an agent to generate all three outputs: a CSS variables block for globals.css, a Tailwind theme extension, and a typed tokens.ts file for use in TypeScript components. All three reference the same extracted values.
Extract tokens
globals.css + tailwind.config.ts + tokens.ts — complete Next.js token setup from a live brand.
More in Code & Tokens
Browse all
All recipes →
Continue reading
Getting started
Install Dembrandt and turn any public website into a complete set of design tokens in under 2 minutes. All you need is Node.js and a terminal.
MCP
Use Dembrandt as a tool inside Claude Code, Cursor, Windsurf, or any MCP-compatible editor. Your agent extracts live design tokens automatically when you ask.
Skills
30 UX and design system skills for AI agents. Install once, your agent designs with hierarchy, WCAG standards, and brand accuracy. The UX knowledge that normally costs senior consultant days.