Skip to content
← All posts
Design systemsNovember 26, 2026 · 9 min read

How to Build a Design System for AI Products in Figma

How to structure a Figma design system for AI apps: variable collections, semantic tokens, AI-specific components, states and documentation.

DESIGN SYSTEMSHow to Build a Design System for AI Products in Figma

A design system for an AI product needs the same foundations as any other system, plus a set of components most kits do not have: prompt bars, chat messages, AI presence, streaming and tool states. Teams that skip this end up rebuilding the same prompt bar on every screen, each one a little different.

The fastest way to build one in Figma is four variable collections, a semantic colour layer, base components first, then AI components on top. This guide walks through the eight steps we followed to build Nivo UI.

What makes an AI design system different

Standard kits cover buttons, inputs, cards and tables. AI products spend most of their screen on conversation and generated content, and that shifts the priorities:

  • The input is the hero component, with far more states than a normal text field
  • Messages need to hold rich content: markdown, code, tables, citations
  • The AI needs a visual presence, such as an orb, avatar or mark
  • Waiting, streaming and failure are everyday states, not edge cases
  • Dark mode is the default for many users, not an extra

If your system does not cover these, designers will invent them screen by screen.

Step 1: Set up four variable collections

Keep raw values and meaning apart. Nivo UI uses four collections:

Collection Holds Example Count in Nivo UI
Primitives Raw colour scales violet/600, gray/950 248
Color Semantic roles with Light and Dark modes primary, background, control-border 50
Layout Spacing, radius, control heights space-16, radius-12, control-44 28
Typography Font sizes, line heights, weights text-sm, leading-6 27

Components only use the semantic Color collection, never primitives directly. That single rule makes theme changes safe: change what primary points to, and every button updates in both modes.

Step 2: Name semantic tokens by role

Use names that describe the job, not the colour: background, foreground, muted, muted-foreground, primary, primary-foreground, border, control-border, ring, destructive.

This shadcn-style naming has three advantages. Developers using shadcn/ui and Tailwind can map it to code with almost no translation. AI coding tools read it correctly. And when the brand colour changes from violet to teal, no token name becomes wrong.

Step 3: Define type and effect styles

Create text styles for every size and weight the product needs, then stop. Nivo UI ships 44 text styles on Inter. Fewer, well-named styles beat a long list nobody can choose from.

Add effect styles for elevation (shadow-sm, shadow-md, shadow-lg, shadow-xl) and two focus rings: one default and one for errors. Making the focus ring a style means every component gets exactly the same visible focus, which matters for keyboard users and accessibility reviews.

Step 4: Build base components first

AI components are made of base parts. A prompt bar uses buttons, an input and maybe a select. Build these first:

  1. Buttons, with every variant, size and state
  2. Inputs and selects
  3. Checkbox, radio and switch
  4. Badges and avatars
  5. Tabs

Every interactive element should show default, hover, focus, active and disabled, plus error and loading where relevant. For scale, the Nivo UI button alone has 6 variants, 5 sizes and 6 states, 180 combinations in total. A component without states is a picture, not a component.

Step 5: Add the AI components

With the base in place, build the components that make the product feel like AI:

Component Variants worth building
Prompt bar Empty, focus, filled, multiline, attachment, sending, streaming, error, disabled; desktop and mobile
Chat bubbles User and AI, with text, code, attachment, error and action row
AI orb Idle, listening, thinking, speaking, error
Suggestion cards Default, hover, selected
Tool step Running, done, failed, collapsed

Put internal building blocks, such as a bubble’s action row, in an unpublished section and prefix their names with an underscore. Designers then see only the components meant for use in the assets panel.

Step 6: Organise pages for people and tools

Group pages under clear headers: Get Started, Foundations, Base Components, AI Components. Give each component family its own page. Inside each page, show the full variant matrix first, then documentation beside it: when to use the component, its anatomy, its states, accessibility notes, and do and don’t examples.

A predictable structure helps people find things fast. It also helps AI tools that read Figma files, because every component sits in the same kind of place.

Step 7: Bind everything

Before publishing, check that no fill, stroke, spacing, radius or text value is hard-coded. One unbound colour is enough to break dark mode on a component. A quick check: select all layers on a page and review the selection colours; bound values show their token names, and anything else stands out.

Step 8: Document like you are not in the room

Good docs answer the questions a designer or developer asks when you are offline: which variant to use, how it behaves on mobile, what keyboard support it has, and what not to do. Write this on the component page itself, not in a separate file nobody opens. Keep it short, and only describe components that actually exist in the file.

Common mistakes

  • Components that use primitive colours directly, so dark mode breaks
  • AI components built as one-off frames instead of variants
  • No focus states, which fails keyboard users
  • Icons from several sets with different stroke widths and corner styles
  • Documentation that lists components that do not exist yet
  • Too many text styles, so nobody knows which to pick

Start from a finished foundation

Nivo UI is a free Figma design system for AI apps: 41 components, 245 outline icons, 44 text styles, light and dark modes, and documentation on every component page. It launches free on Figma Community on December 15. Join the list.

FAQ

Can I use a general UI kit for an AI product? You can for base components, but you will need to build prompt bars, chat messages and AI states yourself.

Should I use Figma variables or styles for colour? Variables, with Light and Dark modes. Keep effect and text styles for shadows and typography.

How many components does an AI design system need at launch? Fewer than you think. Base inputs and buttons plus a prompt bar, chat bubbles and an AI presence cover most first screens.

What naming convention should I use? Role-based names that match shadcn/ui, such as background, foreground and primary, make handoff to code direct.

Try the free NivoUI Figma kitPrompt bars, chat bubbles, AI orbs and base components, built on variables with light and dark modes.Get it free
design systemFigma variablesAI componentsUI kittokens
ABOUT THE AUTHORLubna · Founder of Nivo UI · Product Designer on UI8Lubna is the founder of Nivo UI and a product designer whose UI kits are sold on UI8. She designs SaaS, fintech and AI products, and her work runs from UX research and strategy through wireframes and prototypes to design systems and finished web and mobile apps.
Get new posts by email

More from the blog

Design systems · 9 min readLight and Dark Mode with Figma Variables: A Semantic Colour SetupSet up light and dark mode in Figma with variables: primitive scales, semantic tokens, modes, scoping and contrast checks, with a shadcn-style token list.AI UI patterns · 8 min readAI Loading and Thinking States: How to Design the WaitHow to design loading and thinking states for AI products: typing indicators, AI orbs, streaming, tool steps, long tasks and errors.AI UI patterns · 9 min readAI Chat Interface Design: 12 Patterns That Make Chat Feel Finished12 proven patterns for AI chat interfaces: message layout, streaming, actions, citations, errors and empty states, with design rules for each.