# Building Your Own AI-First Design System by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [AI Fundamentals](https://www.kirupa.com/ai_fundamentals/index.htm) **TL;DR:** To build an AI-first design system, let an agent do the legwork and keep the decisions for yourself. The agent takes an inventory of your pages, mines tokens from your CSS, drafts components, layouts, and voice rules, turns old review comments into rules and checks, packages it all for other agents, and files every new critique. - Start with an inventory. An agent can screenshot every page and list every version of every button, and you pick which one is real. - Tell your agent to cite its evidence, label each rule as a convention or a recommendation, and ask you instead of guessing. - Rules a script can check become checks, ideally inside the tools that make things, like a deck builder that won't save text in the webcam frame. - Agents read a short index, a small prompt per section, Markdown sections, and JSON values, all built from one source. ROFL, kirupa.com's design system, is the worked example. In [Why AI Factories Need a Design System](https://www.kirupa.com/ai_fundamentals/design_systems_for_ai_factories.htm), we looked at why an AI factory needs written-down rules for how its output looks, sounds, and behaves. In [Meet ROFL](https://www.kirupa.com/design/introduction.htm), we toured the one I use for kirupa.com. What we haven't done yet is build one. That is what we are going to do here, and we are going to have an AI agent do most of the work. An agent is really good at the tedious parts of a design system: taking screenshots, counting colors, reading old review comments, and writing the same kind of record forty times. What it can't do is decide what our site should look like. So in every step, the agent does the legwork, we make the calls, and you get a prompt you can paste into your own agent. Onwards! ## What We're Building A design system holds the shared rules for how a site or product should look, sound, and behave: its tokens, components, layouts, voice, and accessibility rules. An **AI-first design system** holds the same things, but it's organized for its most frequent reader, which is an AI agent building a page, a figure, or a deck with nobody around to ask. That changes how the system is packaged more than what it says. Agents get a short index that tells them what to read first, a small prompt for each kind of job, small files with one topic each, exact values in JSON, and checks that catch broken rules before a person ever sees them. We will build one for **Crumb & Co.**, the bakery from earlier in this series. Its website has a menu, a cart, and a new Catering page that Wren in sales wants, and its agents also make slide decks and blog figures. Hollis, the art director, is the person who makes the calls. Every step will also show what the same step looked like for [ROFL](https://www.kirupa.com/design/), kirupa.com's design system, because ROFL was built this way. Its first version landed on October 18, 2026, written by Copilot agents working with me, and it has grown one correction at a time since. Here are the nine steps we will go through, with what the agent does and what we decide in each one: ![Nine steps for building an AI-first design system, with what your agent does and what you decide in each. 1, Inventory: the agent screenshots every page, and you decide which version is real. 2, Tokens: the agent clusters every value, and you decide the names and merges. 3, Components: the agent drafts every record, and you decide the do's and don'ts. 4, Voice: the agent measures your writing, and you decide how you want to sound. 5, Everything else: the agent mines your past reviews, and you decide which rules are real. 6, Checks: the agent writes the scripts, and you decide what fails and what warns. 7, Packaging: the agent builds every output, and you decide what agents read first. 8, Reviewer: the agent reviews every change, and you make the final call. 9, Critiques: the agent files each new rule, and you decide which critiques stick.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_steps.png) Take a look down the two columns. The left column is full of chores, like screenshots, counting, and drafting, and the right column is full of judgment calls. Those chores are a big reason most small teams never write a design system down, and an agent can now do a lot of them in an afternoon. We will spend our own time on the right column. ## Ground Rules for Your Agent Before the first step, we are going to give our agent a few standing rules. An agent trusts a rule it made up exactly as much as a rule we wrote, so the most important thing we can tell it is to work only from evidence and to ask when the evidence runs out. Paste this at the start of every session, or put it in your agent's instructions file: ```text We're building an AI-first design system for our site in a new design/ folder. Its main reader is an AI agent, so keep every file small and every value exact. For every step: - Work only from what exists: our pages, stylesheets, screenshots, and the review comments I point you to. Cite the file and line, or the page, for every rule. - Label each rule as a convention (we already do this) or a recommendation (new). - When two versions disagree or something is unclear, ask me. Never guess a rule. - Commit at the end of the step, and report what you found, what you wrote, and your open questions. ``` The convention versus recommendation label comes straight from ROFL. Its index tells agents that source-backed conventions and new recommendations are labeled separately, so an agent knows which rules describe how the site already works and which ones describe how it should work going forward. The commit at the end of each step means we can see exactly what the agent changed and undo any of it with Git. ## Step 1: Let the Agent Take the Inventory A design system pulled out of real work beats one invented from scratch, so we start by finding out what we actually have. Brad Frost calls this an [interface inventory](https://bradfrost.com/blog/post/interface-inventory/): screenshots of every button, table, heading, form, and note, grouped so we can see every version of each thing. Doing that by hand takes days. An agent with a browser can do it while we get lunch: ```text Take an interface inventory of our site. Visit every page linked from the home page and the sitemap, and group the pages by layout. Then find every distinct version of each UI element: buttons, links, headings, tables, forms, notes, and navigation. For each version, save a cropped screenshot, the CSS classes and file that style it, and how many pages use it. Write it all to design/inventory.md, most-used version first. Don't merge or fix anything yet. ``` Here is what the button part of Crumb & Co.'s inventory looks like: ![An agent's inventory of every button on the Crumb & Co. website: seven different versions of what should be one button. Add to cart on 23 pages, ADD TO CART on 6 pages, Add to Cart on 4 pages, Order now on 3 pages, Buy on 2 pages, Add on 2 pages, and Add item on 1 page. A handwritten note marks the brown Add to cart button, the one on 23 pages, as the real one.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_inventory.png) That's seven buttons that all do the same job, which is putting something in the cart! This is very normal, and it's the reason the inventory comes first. The agent only groups things that do the same job, so a Checkout button would get its own group, even though it looks a lot like these. **What you decide:** which version of each thing is the real one. The page counts are a good hint, but the most common version isn't always the right one. Hollis picks the brown ***Add to cart*** button, and the agent will treat the other six as mistakes to fix later. ## Step 2: Mine Your Tokens From the CSS Tokens are the named values for colors, sizes, spacing, and motion, and they're what let a page ask for `--action` instead of a hex value. Pulling them out of old stylesheets is pure counting and comparing, which makes it a perfect job for an agent: ```text Read every stylesheet in our site, including theme and dark mode overrides. List every color, font size, line height, spacing value, corner radius, shadow, and duration, with how often each one appears and where. Cluster values that are nearly the same. Then propose one token per role, named for its job (--body-text, not --dark-gray), with its value in every theme and mode. Write design/tokens.json in the W3C Design Tokens format, and list every merge you made and every value you couldn't place, as questions for me. ``` An agent is especially good at the clustering, because it compares every value with every other value without getting tired. Here is one cluster from the bakery's CSS: ![The agent finds four nearly identical browns in the Crumb & Co. CSS: #8a4f2a used 31 times, #8b4f2a 4 times, #8a502b twice, and #8c4e29 once. They collapse into one named token, --action, for buttons and links, with #8a4f2a in light mode and #e0a77a in dark mode.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_tokens.png) Nobody chose four browns on purpose. Somebody eyedropped a screenshot, somebody else copied a value from an old mockup, and the result is four colors that look identical to us and different to every tool that reads the CSS. We can't see the difference by eye, but the agent compares the actual numbers, so it spots all four right away. The JSON format the prompt asks for is the [Design Tokens Format Module](https://www.designtokens.org/tr/2025.10/format/) from the W3C Design Tokens Community Group, where each token has a `$value` and a `$type`. Using a standard format means design tools and build tools can read the same file our agents read. **What you decide:** the names, and which merges are real. Sometimes two nearly identical colors are a mistake, and sometimes one of them is an intentional hover state. Only Hollis knows which is which. For ROFL, this step had an extra twist. kirupa.com has nine visual styles (Pixel, Smooooth, Sci-Fi, Minimal, Ukiyo-e, Platformer, Terminal, Sketch, and 3D), and each one comes in light and dark, which makes eighteen combinations. At the time of writing, ROFL's token catalog records more than 600 custom properties with their exact names, where each one is set, and its value in each place. A page that asks for `var(--bodyText)` works in all eighteen combinations without knowing any of the values. ## Step 3: Draft Components and Capture Layouts With the real versions picked and the tokens named, the agent can write down how each piece is supposed to be used. This is the step most teams give up on, because writing forty component pages by hand is a slog. An agent doesn't get bored: ```text Using design/inventory.md and the versions I picked, write one record per component in design/components.json: its name, what it's for, when to use it, when not to, the exact markup, the classes and tokens it uses, its variants, its source files, and two real pages that use it. Write a matching short entry in design/components.md with a Do and a Don't, using real examples from our pages. When our pages disagree with the record, flag it as a question instead of picking a side. ``` Here is the record the agent drafts for the bakery's order button: ![A component record the agent drafted for the Crumb & Co. order button. Use for: the one main action on a card. Don't use for: links to other pages. Markup: a button with the order-button class. Tokens: --action and --radius-md. Found on 23 pages, like menu.html. At the bottom, a question for you: two pages open a dialog with it, is that OK? A handwritten note says the agent asks before guessing.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_component.png) Take a look at the yellow question at the bottom. Two pages use the order button to open a dialog instead of adding something to the cart, and the agent can't tell whether that's a mistake or a new variant. Because our ground rules tell it to ask, it asks. Layouts come next. A layout describes a kind of page (a menu page, an article, a checkout), what regions it's made of, and how it changes on a phone. The most useful thing to attach to each layout is a set of screenshots, and screenshots go stale every time the page changes. So instead of having the agent take screenshots, we have it write down each layout and then write a script that takes the screenshots for us: ```text Using the pages you grouped by layout in design/inventory.md, write design/layouts.json: one record per layout with its name, the regions it's made of, which real page to start from, and how it changes on a phone. Then write a Playwright script that captures each layout at a desktop and a phone width, in every theme and mode we support. Save each screenshot with a record of the layout, viewport, theme, mode, browser version, and capture time. Fail if a page has a broken image. Add an --only option, so one layout can be recaptured after it changes. ``` Every layout in the catalog then gets a set of captures like this: ![A capture script photographs the Crumb & Co. menu page four ways: desktop at 1280 by 800 in light and dark, and phone at 390 by 844 in light and dark. Each capture is saved with a record of the layout, viewport, mode, and the date it was captured, like menu, 390x844, dark, 2026-12-02.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_captures.png) Because every screenshot comes with its own record, an agent reading a layout can tell how old a capture is and exactly which style and screen size it shows. ROFL works the same way. At the time of writing, it has 27 layouts with 64 screenshots, and each capture records its style, viewport, browser, and time, and the capture fails if the page shows a broken image. ROFL also has 31 component records, each with its selectors, usage, and source files. **What you decide:** the Do and Don't for each component, and the answers to every flagged question. If a rule is about taste, like when a note should be a warning instead of a tip, the agent should only ever draft it for you to approve. ## Step 4: Measure Your Voice From Your Own Writing A page can use every right token and component and still feel off if its words don't sound like the rest of the site. Agents drift toward a generic, overly cheerful voice (the kind of thing we looked at in [What Is AI Slop?](https://www.kirupa.com/ai_fundamentals/what_is_ai_slop.htm)), so the voice section needs real examples instead of a list of adjectives like friendly and clear. The best source for those examples is our own writing, and an agent can measure it for us: ```text Read these pages, which are the writing I'm happiest with: [list of 20 or more]. Measure how they're written: sentence and paragraph length, how often they use we, you, and I, contractions, heading case, and how each one opens and ends. Then draft design/voice.md with our voice (what stays the same everywhere) and our tone for each kind of writing we do, like tutorials, button labels, error messages, and emails. Give every rule a real sentence from our pages as its example, and say that examples show a habit and should never be copied word for word. ``` Please don't skip that last sentence of the prompt. An agent will happily copy an example phrase into everything it writes, which is a lesson I learned the hard way in [Training Your AI to Sound Like You](https://www.kirupa.com/ai_fundamentals/training_your_ai_to_sound_like_you.htm). That article goes much deeper on measuring a voice, if you want to take this step further. The voice stays the same everywhere, but the tone changes with the kind of writing. Here is how ROFL writes that down for three kinds of writing on kirupa.com: ![The same kirupa.com voice in three tones, as ROFL writes them down. A tutorial sounds like a sharp friend at a whiteboard, with one running example. An error message is neutral and precise, and it says what to do next. A forum bot post makes one point in one or two friendly sentences.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_voice.png) ROFL's Voice & Tone section keeps itself short and points agents to [KONVO](https://github.com/kirupa/KONVO), the writing skill my agents use, for the deeper guidance. If you already have a writing guide, your design system can do the same and link to it instead of repeating it. **What you decide:** how you *want* to sound, which isn't always how you sounded. If your older pages are stiffer than you'd like, pick the pages that sound like the version of you that you want, and tell the agent to measure only those. ## Step 5: Cover Everything You Make Most design systems stop at the website. An AI factory makes a lot more than web pages, though. Crumb & Co.'s agents also make slide decks for Wren and figures for Marisol's blog posts, and every one of those has a look that Hollis cares about. If the design system says nothing about figures, the figure station will make up its own rules. The rules for these things usually already exist, scattered across years of review comments. That makes this a mining job, and the agent is our miner: ```text Here is every kind of thing we make: [web pages, blog figures, slide decks, social images, emails, chatbot replies]. For each one, collect our best recent examples and every review comment I've left on that kind of work in [pull requests, the issue tracker, a chat export]. Group the comments by what they complain about, and turn each group into a rule, with the comments that caused it and a before-and-after pair when one exists. Write one section per kind of work, and list every comment that didn't turn into a rule. ``` For ROFL, this step is where most of what makes it specific to kirupa.com came from. Here is where several of its sections got their rules: ![Where the rules in seven ROFL sections came from. Foundations came from the site's stylesheets. Layouts came from screenshots of real pages. Illustrations, Arrows came from review of agent-drawn figures. Slide Decks came from review of the first four decks. Forum Bots came from each forum bot's settings. KIRUPAicons came from the icon galleries. Voice & Tone came from my writing guide, KONVO.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_sources.png) A few of these are worth a closer look, because they show how specific the rules get once they come from real work: - **Illustrations and arrows.** ROFL says its figure rules came from my review of figures that agents drew for published articles. That's why it has rules no generic design system would think of, like callout arrows that are all curves, that point at the center of the thing they name, and that stop at least 10 pixels short of it. At the time of writing, it has 52 illustration examples, and 36 of them are pairs that show a mistake right next to its fix. - **Slide decks.** The Slide Decks section says its rules came from many rounds of my review on the first four decks. Every deck keeps its content out of the space on the right where my webcam goes, uses one font, and sizes a one-sentence slide so its lines fill evenly. - **Forum bots.** kirupa.com's forum has bots, and ROFL covers 13 configured bot profiles. Their posts are short, casual, and friendly, usually one point in one or two sentences, and a bot's backstory is labeled as fiction so no agent ever treats it as a real person's experience. - **KIRUPAicons.** Most visual styles have their own matching icon set (Platformer and Terminal borrow the Pixel set), and ROFL covers which set goes with which style and how a page's icons swap when a reader switches styles. **What you decide:** which comments were real rules and which were one-time reactions. One comment about one figure might be about that figure only. The same comment on three figures is a rule. The list of comments that didn't turn into a rule is worth a quick read, because it often holds the rules you care about most but never said twice. ## Step 6: Turn Rules Into Checks An agent that has read a rule can still forget it halfway through a long task. So whenever code can check a rule, we want code checking it on every change, and writing those checks is another job an agent is great at. First, though, we need to know which rules a script can check at all. Here is how a handful of rules sort out: ![Rules sorted by who can check them. A script checks: an image has alt text, contrast is 4.5:1 or more, a list right after a figure, and text in the webcam frame. An agent judges: whether alt text fits the figure, whether a table feels cramped, and whether a hard-coded color is OK here. You decide: whether this is the right page, whether the joke lands, and any brand-new pattern.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_sort.png) A script can tell that an image has alt text, but it can't tell whether that alt text describes the figure. That second question goes to an agent, and the questions in the last column go to a person. Once the rules are sorted, we ask the agent to write the scripts for the first column: ```text Go through every rule in design/ and sort it into three groups: a script can check it, an agent has to judge it, or only a person can decide it. For the first group, write the checks, starting with WCAG 2.2 AA: text contrast of at least 4.5:1 in every theme and mode, no sideways scrolling at 320 pixels wide, alt text on every image, and visible keyboard focus. Then add our own rules, like no hard-coded colors where a token exists. Mark each check as fail (it blocks the change) or warn (a reviewer decides), and run them all on every change. ``` A color pair that passes in light mode can fail badly in dark mode, and kirupa.com once shipped black text on a dark theme for exactly that reason. That's why the prompt says **every theme and mode** instead of only checking the default look. Some checks work even better inside the tools that make things, because then broken output never gets saved in the first place. ROFL's deck builder refuses to save a deck that has content inside the webcam frame, text below 4.5:1 contrast, a list line that wraps, or a sentence repeated in the next slide's notes. The figure builder refuses a callout arrow that misses its target or stops less than 10 pixels from it. An agent that trips one of those gets an error that names the rule right away, instead of a correction from me an hour later. **What you decide:** which checks fail and which only warn. A missing alt attribute should always fail. A hard-coded color is usually a mistake, but sometimes it's a fixed brand color that really shouldn't change with the theme, so it makes a better warning that a reviewer looks at. ## Step 7: Package It for Agents By now, our `design/` folder has tokens, components, layouts, voice, rules for everything we make, and checks. All of it was written by an agent, but it isn't organized for agents yet. An agent has a limited [context window](https://www.kirupa.com/ai_fundamentals/context_window_limits.htm) and a budget, so it should be able to grab the one rule it needs without reading everything. This step reshapes the folder for that: ```text Restructure design/ so an agent reads as little as possible. Keep one reviewed source, and generate everything else from it with one build command: - a short index.md that tells an agent what to read first and to fetch only the section it needs - a task-scoped prompt of 150 to 2,000 characters at the top of each section - one small Markdown file per section, with headings an agent would search for - JSON catalogs for exact values, like tokens and component selectors - the human-friendly pages, built from the same source Add tests that fail if the index gets long, a prompt leaves its size budget, or any output no longer matches the source. ``` Here is the shape that prompt produces: ![One reviewed source goes through a build step that writes five outputs: index.md, which routes agents and stays under 6,800 characters; a prompt per section, 150 to 2,000 characters each; Markdown sections, one small file per section; JSON catalogs with exact tokens and selectors; and pages for people with live previews in every style. A check fails if any output drifts from the source.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_package.png) The numbers in that figure are ROFL's real budgets. Its [index](https://www.kirupa.com/design/index.md) starts with ***"Read this first. Fetch only the section you need"***, and a test keeps it under 6,800 characters, so it stays a list of directions instead of turning into the whole catalog. Each of its 22 sections opens with a task-scoped prompt, like the [illustrations prompt](https://www.kirupa.com/design/agent/illustrations.txt), and a test keeps every one of them between 150 and 2,000 characters. All 22 prompts together come to about 34,000 characters. Generating everything from one source keeps the outputs in step with each other. If the agent-readable Markdown and the human-readable page were edited separately, they would drift apart within a week, and agents would follow one set of rules while people followed another. With one source, we edit a rule in one place, and the drift check fails the build if anyone edits an output by hand. **What you decide:** what an agent reads first. The index is the one file every agent reads, so every line in it should be something every agent needs, like the accessibility baseline and the rule to fetch only one section. ## Step 8: Add a Reviewer Agent Our checks catch the rules a script can measure. For the middle column of our sorting figure, like a table that feels cramped or alt text that doesn't match its figure, we need an agent that reviews changes against the design system. This is the [LLM-as-judge](https://www.kirupa.com/ai_fundamentals/llm_as_judge.htm) idea, and the prompt for the reviewer matters a lot, because a vague reviewer produces vague findings: ```text You review changes to anything a visitor sees, against our design system. Start from design/index.md, the results of our scripted checks, and only the sections this change touches. You have read-only tools and about 12 lookups, so search for the one rule you need instead of reading whole sections. Every finding names the section and rule, the file and line, and what following the rule would look like. A failed check is always a finding. List anything you couldn't verify, like rendered contrast, under Not verified. End with one verdict: conforms, changes required, or needs a person. ``` A finding from that reviewer on the bakery's new Catering page looks like this: ![One finding from the reviewer agent on the new Crumb & Co. catering page, marked must change. Rule: Components, Tables: a wide table scrolls in its own box on a phone. Where: catering.html, line 48. Fix: wrap the table in a scrolling region. Not verified: contrast in dark mode, because the reviewer can't render the page. A handwritten note says it cites the rule.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_finding.png) Because the finding cites a rule, file, and line, the agent that made the page can fix it without anyone translating. The reviewer also lists what it couldn't check under **Not verified**, so we know which checks still have to happen in a browser. kirupa.com has this exact setup. [Nightowl](https://www.kirupa.com/ai_fundamentals/nightowl.htm), the crew of agents that fixes issues on the site, has a Design Verification agent that checks every fix a visitor would see against ROFL. Before it runs, plain code runs six checks that can block a fix (like an image with no alt text, a list right after a figure, or sound that plays on its own) and eight that only warn (like a hard-coded color or a heading that isn't in Title Case). The agent then gets at most 12 tool calls. A fix that needs changes goes back to be redone, at most two times, and anything still wrong after that is held for me. My server can't render pages, so every one of its reviews lists rendered checks like contrast in each style under what it didn't verify. **What you decide:** the final call on anything marked ***needs a person***, and how many rounds a change gets before it comes to you. ## Step 9: Turn Every Critique Into a Rule We will keep doing this last step for as long as we use the design system. Once agents are building things with our design system, we will still send some of their work back, and every time we do, the reason should go into the design system so we never have to say it twice. The agent does the filing: ```text I'm sending this back: [the critique, with a link or screenshot]. Find the design/ section this belongs in. If a rule already covers it, tell me why it was missed. If not, write the rule in one or two sentences, save the rejected version and the fixed version as a before-and-after pair, and add a check if a script can catch it. Rebuild design/, run every check, and show me the diff. ``` Here is that loop, using one of ROFL's real arrow rules as the example: ![A loop of four steps for turning a critique into a rule, with a real ROFL example. You send a figure back because the arrow tip stops beside the 2. The agent writes the rule: point at the detail's center. The agent adds an example: a before-and-after pair. The agent adds a check: the figure builder refuses an arrow that misses. Then the loop starts again with the next critique.](https://www.kirupa.com/ai_fundamentals/images/building_your_own_design_system_loop.png) The before-and-after pair from that loop is in ROFL's Illustrations section, and it looks like this: ![Two versions of a figure where a triangle's points turn into a hexagon's points. In the version to avoid, a flat arc from the words Extra points on the edges stops to the right of the circled 2. In the better version, a curvier arrow drops down and stops just above the circled 2, aimed at its center.](https://www.kirupa.com/ai_fundamentals/images/rofl_design_system_feedback.png) In the top version, the arrow stops beside the circled 2 it's talking about. In the bottom version, it drops into it. That figure was fixed on November 24, 2026, after I reviewed it, along with several other published figures, and each fix became a before-and-after pair in ROFL. A pair like this teaches an agent more than the rule alone, because it shows the mistake the rule is about. **What you decide:** which critiques become rules. A reviewer agent can point out plenty of problems, and so can other people, but deciding that a critique is a lasting rule about how your work should look, and not a one-time reaction, is your call. Have the agent show you every new rule before it lands. ## What the Agent Can't Do for You An agent can do most of the work of building a design system, but there are a few things it can't do, and it's worth knowing them up front: - It can't decide what your site should look like. Every step above ends with a decision, and if you skip those decisions, the agent will make them for you, confidently and inconsistently. - It can't see what it can't render. A reviewer that only reads source code can't measure contrast or try a page at 320 pixels. Rendered checks need a browser, somewhere in the pipeline. - Passing automated checks doesn't make a page accessible. ROFL says this outright, and when Deque studied more than 2,000 audits, [automated testing caught about 57% of the issues](https://www.deque.com/blog/automated-testing-study-identifies-57-percent-of-digital-accessibility-issues/). Testing with real people still matters. - It won't keep the design system alive by itself. Someone has to own it, review every change to it, and keep sending critiques its way. There's also a cost. As I mentioned in Why AI Factories Need a Design System, building ROFL took about 25 million tokens, and on requests like a new page with a data table, it paid for itself after two or three pages. A design system for a smaller site will cost a lot less, but it won't be free. ## Conclusion Phew! We covered a lot of ground. We built an AI-first design system for Crumb & Co. in nine steps, with an agent doing nearly all of the legwork: it took the inventory, mined the tokens, drafted the components, captured the layouts, measured the voice, dug through old review comments for rules about figures and decks, wrote the checks, packaged everything for other agents, reviewed new work, and filed every critique as a new rule. Hollis made a decision at every step, and that's the part that makes the result look like Crumb & Co. instead of like every other bakery. ROFL was built the same way, which is why it covers things like arrows, webcam frames, forum bots, and eighteen style and mode combinations. None of that came from a template. It came from the work kirupa.com actually makes, and from the corrections I got tired of repeating. If you build one of your own, start with the inventory prompt and see how many buttons your agent finds. If the answer is one, I'd love to hear about it. Here is where the related ideas are covered: | Idea | Where we cover it | |---|---| | Why an AI factory needs a design system | [Why AI Factories Need a Design System](https://www.kirupa.com/ai_fundamentals/design_systems_for_ai_factories.htm) | | A tour of ROFL itself | [Meet ROFL, an AI-First Design System](https://www.kirupa.com/design/introduction.htm) | | Giving agents one place to look things up | [Building Your Own Context System](https://www.kirupa.com/ai_fundamentals/building_your_own_context_system.htm) | | Measuring and teaching a writing voice | [Training Your AI to Sound Like You](https://www.kirupa.com/ai_fundamentals/training_your_ai_to_sound_like_you.htm) | | Using a model to review another model's work | [LLM-as-Judge](https://www.kirupa.com/ai_fundamentals/llm_as_judge.htm) | | The factory that uses ROFL every day | [Nightowl: kirupa.com's AI Software Factory](https://www.kirupa.com/ai_fundamentals/nightowl.htm) | Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, [I Trained My AI to Write Like Me](https://www.kirupa.com/ai_fundamentals/trained_my_ai_to_write_like_me.htm), or check out some related content: - [Why AI Factories Need a Design System](https://www.kirupa.com/ai_fundamentals/design_systems_for_ai_factories.htm). Why an AI factory needs a design system, and what it saves on a real request. - [Meet ROFL, an AI-First Design System](https://www.kirupa.com/design/introduction.htm). A tour of ROFL, kirupa.com’s AI-first design system. - [Building Your Own Context System](https://www.kirupa.com/ai_fundamentals/building_your_own_context_system.htm). Give agents one current place to look up code, rules, and examples. 3. Stuck on something, or curious about a detail we skipped? [Ask on the forums](https://forum.kirupa.com/), and we’ll help you out. ## Test your knowledge! [Take the Building Your Own AI-First Design System Quiz](https://www.kirupa.com/quizzes/building_your_own_design_system.htm). Practice with 6 multiple-choice questions and an explanation after every answer.