Sign up and get 15% off the four courses and Lifetime.

AI for interface design

Lesson

Design systems as the thing that makes generation usable

Lesson 3 of 11 in AI for interface design.

Lesson

A design system is the set of components, tokens and rules a product is built from, defined once and used everywhere. Components are reusable parts such as a button or a card. Tokens are named values, such as the brand green or the standard gap between cards, stored once so every screen uses the same number.

When an AI tool generates a screen against a system, it comes back made of your components, at your spacing, in your colours. Without one, it comes back as plausible loose rectangles. The system has already made the decisions the model would otherwise invent, so it becomes the link between your brand and every tool that generates on its behalf.

The example here is a two-person team building an ordering app for a plant nursery that delivers across the city.

Start a system even with a team of two

Systems used to be justified by scale, so small teams skipped them. Now a team of two benefits straight away, because the system is what makes the machine useful instead of merely fast. Every decision it holds is one the model no longer has to guess.

For the nursery app, start with the parts that appear on almost every screen: the button, the product card, the text field, the colours and the spacing. Name colour tokens by their job, such as "action" and "warning", instead of by how they look. Keep spacing to a short set of fixed steps, so a generated screen has only a few values to choose from.

Write rules for when each part is used

A component library tells a tool what exists. The rules tell it when to use which. Without them, a generated screen can be a correct-looking pile of the right pieces in the wrong arrangement.

Write each rule as a plain sentence that a teammate or a model could follow. For the nursery app, three might read "One primary button per screen, for the main action", "Product cards show the photo, the plant's name and the price, in that order" and "Use the warning colour only when something will cost the customer money". Keep the rules next to the components they describe, where both people and tools will find them.

Reconnect detached instances before you generate

A detached instance is a copy of a component that somebody broke away from the system, usually to change one thing in a hurry. It used to be a tidiness complaint. Now every detached copy is a place where a machine reads the wrong value, and one detached button with the wrong corner radius can become forty generated screens with the wrong radius.

Before you point a tool at the nursery file, go through it for detached instances and reconnect or replace each one. Then find out why each was detached. If a designer broke away a product card because the system had no "sold out" version, add that version to the system, so nobody has to detach a card for that reason again.

Check whether people actually use it

Adoption, whether people actually use the system, is the measure that counts and the hardest to win. A system nobody uses changes nothing, and a generator will keep reading whatever loose parts sit in the file.

Every few weeks, look at the newest screens and note whether each one used the system's parts or drew its own. If the nursery's new gift message screen has three hand-drawn buttons, the system is missing something people needed. Add it to the system, and the next generated screen will use it too.

The next lesson follows one Figma frame into working code.