For frontend teams, the biggest frustration with generative UI has never been whether an AI can spit out a working React card. It can. The real irritation begins ten seconds later: arbitrary Tailwind hex codes that clash with your palette, random standard HTML buttons instead of your enterprise design system primitives, and missing React context providers that instantly crash your build.
At 365Finds, we look at generative tools through a practical lens: can this tool generate code that our engineers can commit to a pull request without spending forty minutes rewriting tokens and imports?
Vercel's v0 approaches custom component libraries and design tokens through two distinct tiers: the native Tailwind & shadcn/ui token architecture for lightweight, file-based theming, and Design Systems 2.0, an agentic "Skill" framework that allows teams to teach v0 their proprietary packages, GitHub repositories, and design token pipelines.
The Core Foundation: How v0 Understands Design Tokens
To understand how v0 interprets design tokens, you have to understand how v0 views the world. v0 does not operate on black-box, pre-rendered iframe components. It generates raw TypeScript JSX (.tsx) code natively built on Tailwind CSS and shadcn/ui (which in turn uses Radix UI primitives).
In this baseline architecture, design tokens are handled through a strict semantic mapping rather than static inline styles:
- CSS Custom Properties in
globals.css: Design tokens for background, foreground, primary accents, muted tones, and border radii are defined as CSS variables (such as--background,--primary,--radius). - Tailwind Abstractions: Rather than outputting arbitrary hex values like
#3b82f6or#0f172a, v0 generates utility classes mapped to those CSS variables (e.g.,bg-primary text-primary-foreground rounded-lg). - Typography Tokens: Custom font tokens are handled via Next.js font optimization (
next/font/googleor local fonts) and bound to Tailwind's font-family utility classes (font-sans,font-mono).
If your team uses standard Tailwind and CSS variables, integrating your tokens into v0 is trivial: you paste your existing tokens.css or globals.css into the project context, and v0 immediately respects your semantic color palette and border radii across both light and dark modes.
Beyond Tailwind: Introducing Design Systems 2.0
Where teams hit a wall with typical AI generators is when their codebase relies on an internal component library—such as @acme/ui—published to a private npm registry or hosted in an internal monorepo.
Asking an LLM in a prompt bar to "use our custom button" usually results in hallucinated props or generic fallback code. To solve this, Vercel introduced Design Systems 2.0 in v0, transforming the system from a passive prompt responder into an adapter-driven engine.
Instead of pasting thousands of lines of documentation into individual chat prompts, you configure a design system once as a reusable Skill within your personal or team workspace.
How Design Systems 2.0 Ingests Your System
| Ingestion Source | How v0 Uses It | What It Solves |
|---|---|---|
| npm Packages (Public & Private) | Ingests .tgz archives, npm packages, or directory manifests containing package.json. | Generates actual import statements (e.g., import { Button } from '@acme/ui') instead of recreating raw HTML elements. |
| Consuming Applications | Connects to a real production repository (e.g., dashboard or marketing site). | Teaches v0 how global providers (ThemeProvider, layout wrappers, font configurations) are initialized in production. |
| Component Repositories | Scans TypeScript types, prop interfaces, and component definitions. | Prevents v0 from inventing non-existent prop names or misconfiguring variant states. |
| Documentation & Storybook | Parses Storybook links, doc sites, and Markdown guidelines. | Informs the model about compositional guidelines, recommended nesting, and forbidden patterns. |
| Figma Frames & Nodes | Inspects visual layout frames and token naming. | Aligns spacing density, visual rhythm, and component layout with designer intent. |
Step-by-Step: Connecting a Custom Component Library to v0
Setting up a custom component library in v0 follows an explicit engineering pipeline:
Step 1: Configure Authentication for Private Registries
If your design system packages live in a private npm registry or GitHub Packages, configure your workspace credentials:
- In your v0 team settings, set the shared environment variables (such as
NPM_TOKENor custom.npmrcconfiguration). - This allows v0's headless compilation environment to fetch and resolve dependencies safely during code generation.
Step 2: Create a Design System Skill
From the v0 dashboard, navigate to your workspace settings and create a new Design System:
- Point v0 to your primary component package (e.g.,
@acme/design-system). - Add reference repositories: v0 allows up to three linked references. We strongly recommend linking at least one real consuming app alongside the component package.
- If your components rely on an external Storybook or documentation portal, supply the URL so the parser can index your component props and usage examples.
Step 3: Inspect the Generated Playground
v0 does not simply save the files blindly; it initializes a dedicated Design System Playground.
- In this playground, v0 sets up a starter preview application.
- Check the provider hierarchy: ensure that theme providers, CSS variable root files, and font classes are initialized correctly.
- Any misconfiguration approved here will persist into future generations, so verifying your providers at this stage is essential.
Step 4: Prompting with the Active Skill
Once active, your design system skill attaches to your chat sessions:
- You can select the active design system from the prompt dropdown or set it as the workspace default.
- When you prompt: "Create a settings modal with a destructive confirm action", v0 outputs code that imports your design system's
<Modal>,<Button variant="destructive">, and uses your--radius-mdtokens directly.
// Example of v0 code generation using a connected design system skill
import { Modal, ModalHeader, ModalBody, ModalFooter } from "@acme/ui/modal"
import { Button } from "@acme/ui/button"
import { AlertCircle } from "lucide-react"
export function DeleteAccountModal({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) {
return (
<Modal open={isOpen} onOpenChange={onClose}>
<ModalHeader title="Delete Project" />
<ModalBody>
<div className="flex items-start gap-3 p-3 rounded-[var(--radius-sm)] bg-destructive/10 text-destructive">
<AlertCircle className="w-5 h-5 shrink-0 mt-0.5" />
<p className="text-sm font-sans">
This action cannot be undone. All project resources will be permanently removed.
</p>
</div>
</ModalBody>
<ModalFooter>
<Button variant="ghost" onClick={onClose}>
Cancel
</Button>
<Button variant="destructive" onClick={() => console.log("Deleted")}>
Confirm Deletion
</Button>
</ModalFooter>
</Modal>
)
}
The Alternative: The Open Shadcn Registry Approach
For teams that do not want to distribute compiled npm packages or configure multi-repo skills, v0 supports the Shadcn Open Registry standard.
Instead of treating your component library as a closed node_modules dependency, you publish a registry.json schema (using templates like vercel/registry-starter). This registry serves raw TypeScript component files and token definitions via HTTP endpoints:
- Components and blocks are pulled directly into the v0 project as editable source files.
- Design tokens remain clean CSS variables in your
globals.css. - It gives your developers complete ownership of the component source without the friction of private npm package authentication.
365Finds Commercial Judgment & Trade-Offs
At 365Finds, we believe v0's Design Systems 2.0 represents the correct architectural direction for enterprise AI code generation. By treating design systems as persistent "skills" rather than transient prompt context, Vercel solved the prompt bloat problem that plagues raw LLM workflows.
However, our research highlights several trade-offs you must evaluate before rolling this out to your team:
What Works Exceptionally Well
- Ecosystem Alignment: If your design system is already built on modern primitives (Tailwind CSS, Radix UI, TypeScript, and CSS variables), v0 integrates with remarkable speed. The code it produces feels native to your repository.
- Consuming App Reference: Adding a consuming application is the single most effective feature in v0. LLMs routinely fail to guess complex theme provider wrappers; showing v0 an actual production layout eliminates missing provider crashes.
- Team Scope Sharing: Configuring the design system once at the team workspace level ensures that junior engineers and product managers generate prototypes that adhere to the company's brand guidelines automatically.
Where Friction Remains
- Legacy Styling Engines: If your proprietary design system relies heavily on legacy runtime CSS-in-JS libraries (such as older versions of Emotion or Styled Components with dynamic JavaScript theme objects), v0 will struggle. v0's internal compilation and reasoning pipeline is deeply optimized for Tailwind's static utility paradigm.
- Dirty Monorepos: Pointing v0 at an undocumented, multi-package monorepo containing legacy components will degrade output quality. v0 thrives when fed clean, modular packages with well-defined TypeScript exports.
- Maintenance Discipline: A design system skill is not a set-and-forget artifact. If your design system team introduces breaking API changes or deprecates component props, you must update the skill or re-sync the repository to prevent v0 from generating outdated component signatures.
For engineering organizations looking to scale AI-assisted development, 365Finds recommends beginning with a clean shadcn-compatible registry or linking a tightly scoped component package alongside your primary frontend repository.