React projects need design tokens at multiple levels: CSS custom properties for theming, component props for variants, and style objects for runtime decisions. A designtoken.md file gives your coding agent the full picture — color scales, typography hierarchies, spacing systems — so it generates consistent React components from the start.
Design tokens flow into React at three levels. Your designtoken.md enables all three.
The most common approach. Your designtoken.md color scales (50–900) map directly to CSS variables. Agent reads the token file and generates var(--color-primary-500) references in your JSX. Works with any styling approach.
CSS-in-JS libraries access tokens as theme values. The agent reads designtoken.md and generates ${props => props.theme.color.primary[500]} or equivalent. Full type hierarchy maps to theme objects.
designtoken.md's generator outputs Tailwind-compatible config. Your agent reads the markdown for intent and relationships, then generates Tailwind utility classes that match your token definitions. bg-primary-500, text-heading-lg, etc.
Without designtoken.md, agents generate hardcoded values. With it, they generate semantic, maintainable components.
Whether you use Next.js, Remix, Vite, or Create React App — designtoken.md works the same way.
Create a designtoken.md file, free, no signup required.
Start generating →