Menu

Design Tokens for AI: Extract a Website's Real Colours, Fonts, Shadows and Icons So an LLM Builds On Brand
📰

Design Tokens for AI: Extract a Website's Real Colours, Fonts, Shadows and Icons So an LLM Builds On Brand

DEV Community: css·Sandeep Virk·about 13 hours ago
#LhJwKhHi
#devtocss#devto#dev#tokens#model
Long article (1468 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on Crafttor .

TL;DR: LLMs drift off brand because nobody gave them the brand. Design tokens for AI fix that: a short, exact list of colours, gradients, type, radii, shadows and icons that the model must use. WebCapture to Figma's Copy for LLM hands over those real values from a live page. You condense them into a token file or a style section, then reuse it in every prompt to Claude or ChatGPT.

Ask an AI for "a pricing card in our style" and you get a nice card in someone else's style. The blue is a little off. The radius is 12 instead of 8. The font is Inter because Inter is safe. None of it is wrong, it just is not yours.

The fix is not a longer adjective list. It is data. This post shows how to get the real style data from a site you own, how to shape it into tokens, and how to put it in a prompt so the model follows it.

What design tokens are, in one paragraph

Design tokens are named values for design decisions. color.brand.primary instead of #2160ff .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.