00 / INTRODUCTION
Meet ROFL, an AI-First Design System
kirupa.com's design system: everything a traditional design system covers, heavily optimized for its primary consumer, the AI agents that build the site. People are welcome too, and it's even fun to read.
Every page on kirupa.com has to work in nine completely different looks. This very page could have chunky pixel headings, a woodblock wave across the top, or a two-color terminal look with a blinking cursor. On top of that, most of the pages, figures, and slide decks here are now built by AI agents working with me, and those agents need to know how all of this works before they start.
For a long time, the only place those rules lived was my head, so I kept repeating the same corrections. The fix was to write everything down in one public place: a shared set of rules for how the site looks, sounds, and behaves. That's what a design system is, and kirupa.com's is called ROFL. ROFL is a design system in the traditional sense, but it's heavily optimized for its primary consumer, which is an AI agent. That's why I call it an AI-first design system. In this article, we'll look at what that means, what's inside, and how my agents use it every day.
Onwards!
A Notebook for Everything I Kept Repeating
The easiest way to think about ROFL is as a lab notebook. Every time I correct something, whether it's a table that stretches past the edge of a phone or an arrow that points at nothing, the fix goes into the notebook as a rule. The next person or agent who builds something can read that rule first, so I don't have to keep saying it:

Take a look at that last box. ROFL is public, so you can read the very same rules my agents read. And if you're wondering what ROFL stands for, you won't find an answer anywhere in it. Feel free to make up your own.
If you want the bigger argument for why a design system matters so much once agents are doing the building, along with numbers on what it saves, that's what Why AI Factories Need a Design System is about. Here, we're going to focus on ROFL itself.
An AI-First Design System
ROFL is a design system in the traditional sense. It has tokens for colors, type, and spacing, components and page layouts, rules for voice and tone, and an accessibility baseline, the same pieces you'd find in the design systems big companies publish. What's different is who it's optimized for. Its primary consumer is an AI agent: the agents that build pages, figures, and decks for this site, often with nobody around to ask.
That's what I mean by AI-first. People can browse ROFL, and I'll admit its pages are fun to click around in, but nearly every decision about how it's organized came from asking what an agent needs. Here's what that optimization looks like:
- Every agent starts at a short Markdown index that says what to read first and tells it to fetch only the section it needs.
- Every section opens with a task-scoped prompt, a few sentences written for one kind of job, like composing a page or drawing a figure.
- Exact values, like token names and component selectors, live in JSON files, so an agent never has to guess a hex value.
- The files are small on purpose, so an agent can grab one piece without spending its reading budget on the whole system.
- Some rules are built into the tools themselves. The tools that build figures and decks refuse to save output that breaks them.
The payoff shows up in tokens, and we'll look at real numbers a little later. The human-friendly pages come from the same source as the agent files, so people get a readable, and hopefully entertaining, tour of the same rules.
What's Inside
At the time of writing, ROFL has 21 sections, grouped into six areas. Some of them are what you'd expect from any design system, like colors, layouts, and components. Others, like sounds and forum bots, you probably wouldn't expect:

Core holds the basics every page shares: named colors, sizes, and spacing (called tokens, and there are 638 of them), the visual styles, the rules for motion, and accessibility. Interface covers 27 layouts (the kinds of pages on the site, grouped into nine families) and the 30 components they're built from, like tables, notes, and the TL;DR box and Before you go list that bookend most articles. The other four areas cover the artwork, how the site sounds, the community around it, and how ROFL itself gets built.
We won't walk through all 21 sections. Instead, let's look at the parts that make ROFL different from the design systems you may have seen before.
One Site, Nine Styles
The first thing that sets kirupa.com apart is that readers choose how it looks. There are nine visual styles, and each one comes in light and dark. Here's the same article, Embeddings, in all nine of them:

The words are identical in every tile. What changes are the fonts, the colors, the art in the header, the icons, and even the sounds the links make. Pixel is the classic look, and it's what you see unless you pick something else. Terminal uses exactly two colors and turns dark mode on when you pick it. Sketch puts everything on graph paper with boxes drawn twice, like a pen sketch, and Ukiyo-e brings in woodblock waves, ink, and paper. You can try any of them yourself from the Customize Theme button in the site's header, which also has eight color palettes to pick from.
For a design system, this changes a lot. A rule like use this dark gray for body text falls apart the moment someone switches to Terminal. So ROFL names colors by their job instead of their value, and every rule has to hold in all eighteen combinations of style and mode.
The Lab Notebook Pages
ROFL's own pages have a look of their own, called the Lab Notebook: graph paper, framed cells with little crosshairs at the corners, kirupa orange, and big pixel headings. The style picker sits right at the top, so every icon and live preview on the page follows whatever style we choose. Here's the front page in Pixel and light mode, sitting behind the Illustrations page in Ukiyo-e and dark mode:

Most sections mix explanations with live specimens, which are the site's real components loaded with their real styles, that we can switch between styles and modes right there on the page. Playing with a specimen never changes the style we've saved for the rest of the site, so it's safe to poke at. Also, notice the collapsed Agent Instructions box on the Illustrations page. We'll come back to it in a bit.
Icons, Illustrations, and Arrows
A big part of what makes kirupa.com feel like kirupa.com is its artwork, so this is where ROFL goes into the most detail.
KIRUPAicons
The icons on this site are KIRUPAicons, a family of icon sets adapted from Twitter's open-source Twemoji designs. Each style has a matching set, so when you switch styles, every icon on the page switches with it. Here's one icon, a rocket, in all seven sets:

Platformer and Terminal borrow the Pixel set, which on its own has 5,027 icons drawn at 16 by 16 pixels. ROFL covers which set goes with which style, how the icons swap when a reader changes styles, and the licensing details for anyone who wants to use them. You can browse all of them in the KIRUPAicons gallery.
Illustrations and Arrows
Figures get the same treatment. The Illustrations section describes what a teaching figure should look like: real objects instead of boxes full of words, labels big enough to read on a phone, a handwritten Permanent Marker font for callouts, and kirupa.com blue for highlights on charts. Arrows gets a whole section of its own, because arrows turn out to be surprisingly easy to get wrong.
The most useful part is the collection of before-and-after pairs. Many of them come from real figures I sent back during review, shown right next to their fixes. Here's one, where the callout arrow stopped beside the number it was talking about instead of pointing at it:

The house-style figures in this article follow those same rules. The tool that draws them refuses a callout arrow with the wrong shape, like a straight run or a sharp hook near the head, and every finished figure still gets a careful look before it ships.
Voice, Slide Decks, and Sounds
ROFL also covers how kirupa.com sounds, in a few different senses of the word.
Voice & Tone covers the writing. A tutorial should sound like a technically sharp friend at a whiteboard. It starts with a concrete reason to care, keeps one running example, and builds intuition before naming the jargon. An error message, on the other hand, gets plain, precise words, because nobody should have to read a joke before they can recover. The deeper writing guidance lives in KONVO, the writing skill I use with my agents, which is public on GitHub.
Slide Decks covers the decks I record videos with, including the one for this article. Every slide keeps its content out of the space on the right where my webcam goes, and the tool that builds the decks won't save one that breaks that rule. Only two small decorative icons get to straddle the frame's corners:

The same section says to use one font everywhere (Departure Mono), to keep the text on each slide short, and to size a big one-sentence slide so its lines fill evenly instead of leaving a lonely word like the on a line by itself.
Sounds covers the little audio cues tied to links and to kirupaBot, if you've turned sound on. Each style has its own: Sci-Fi has blips and a scan, Ukiyo-e has koto notes and a bell, and Platformer has jumps and a powerup. ROFL catalogs 91 sounds in all, 32 recordings and 59 made by code, including some older chat sounds kept for reference. The rule that holds the current cues together is simple. Sound is always optional, and it never starts on its own.
The Community Parts
The last unusual area is Community. kirupa.com has a forum, a chatbot called kirupaBot that sits in the bottom-right corner of its pages, and a Who's Online page with a globe of current visitors. ROFL covers how each of those looks and behaves.
It even has a section on the forum's bots, with 13 configured profiles. Each has its own role, like Sarah Connor for security questions or Sora for interaction design and data visualization. One rule in that section is worth borrowing for any project with AI characters: a bot's backstory is fiction, so nobody, human or agent, should ever treat it as a real person's credentials or experience.
Accessibility Comes Along Everywhere
Every section, from tokens to sounds, carries the same baseline. Anything new or changed has to meet WCAG 2.2 at level AA, the widely used standard for making websites work for everyone. ROFL turns that into checks someone can run:
- Everything works with a keyboard, and we can always see what has focus.
- Text has enough contrast in every style and mode, dark ones included.
- The page still works with text zoomed to 200% and on a screen 320 pixels wide.
- Images have real text alternatives, and videos have captions.
- Motion respects the reduced-motion setting, and sound stays optional.
ROFL is also honest about the limits here. It says outright that passing automated checks doesn't, on its own, make something accessible.
Written for Agents First, and People Too
Now, back to that Agent Instructions box. Every section in ROFL is written for two kinds of readers, and agents come first. They get plain files, and people get pages. Both come from the same source, so the two stay in sync:

An agent starts at a short index that tells it to fetch only the section it needs. Each section opens with a short prompt written for one kind of job (that's what the Agent Instructions box holds), followed by the details in Markdown. Exact values, like token names and component selectors, live in JSON files, so an agent doesn't have to guess a color. This matters because an agent has a limited budget for reading, so it should grab the one piece it needs instead of the whole notebook. The Agent start here button on the front page is the way into this side of ROFL, and Why AI Factories Need a Design System walks through these files in more detail.
What Changed to Make ROFL AI-First
ROFL didn't start out optimized for agents. It started as a regular set of design pages, and each time an agent tripped over something, I changed how ROFL was built or what it said. Those changes fall into two groups.
The Architecture
The first group changed how ROFL is put together:
- Everything comes from one reviewed source. A build step turns it into the pages people browse, the Markdown agents read, a prompt per section, and the JSON catalogs, and a check fails if any of those drift apart.
- The front door is a router. The index tells an agent what to read first and to fetch only the section it needs, and a test keeps it under 6,500 characters so it never turns into the whole catalog.
- Every section has a task-scoped prompt with a size budget of 150 to 2,000 characters. When new rules didn't fit, they got trimmed until they did.
- Exact values moved into JSON: 638 tokens, 30 components, 27 layouts, 48 illustrations, and 91 sounds. The asset catalog has more than 105,000 entries, so it's split into smaller shards an agent can fetch one at a time.
- Rules that a machine can check became checks. The deck builder refuses a slide whose content reaches into the webcam frame or whose text is too low in contrast, and the figure renderer refuses a badly shaped callout arrow.
The Content
The second group changed what ROFL says and how it says it:
- Every page has an Agent Instructions box, so the same rules a person reads are also packaged for an agent.
- Reference paragraphs stay at 120 words or fewer, so an agent can quote the one rule it needs.
- Rules are labeled as conventions the site already follows or as new recommendations, so an agent knows which ones it can rely on.
- Real figures I rejected became before-and-after pairs, which show an agent what a rule looks like instead of only describing it.
- Things an agent could mistake for facts are marked, like the forum bots' backstories, which ROFL labels as fiction.
Nightowl puts all of this to work. Its Design Verification agent checks every fix a visitor would see against ROFL, using at most 12 lookups, and only a fix that passes can take the fast lane to going live. That small budget works because the rule it needs is usually one fetch away.
What It Saves: Tokens and Reruns
Reading a few small files about the job in front of it, instead of digging through the site's stylesheets and sample pages, is also where an agent saves a lot of tokens. In Why AI Factories Need a Design System, I estimated the cost of one real request, a table of high scores across the 404 Arcade's games, from my own past sessions building pages on this site. Here's how it compares with ROFL and without it:
| Measure | With ROFL | Without ROFL |
|---|---|---|
| Context the agent reads first | About 10K to 15K tokens | About 60K to 130K tokens, and it still never learns the unwritten rules |
| First build, including screenshots in every style and mode | About 40K to 60K new tokens | About 150K to 250K new tokens |
| Review rounds | 1 to 3 | 5 to 9 |
| Total tokens, including the agent re-reading everything each round | About 2M to 6M | About 8M to 25M |
That works out to roughly 4 to 5 times fewer tokens. The review rounds matter even more than the first read, because every round sends the whole conversation back to the model. Each round is also a moment where I have to stop what I'm doing, look at the page, and type up a correction.
The second measure is how often new work passes its design and UX checks, like contrast in every style, the webcam frame on slides, and Nightowl's Design Verification. Here's roughly how it went for me. When I built pages by hand, the checks only all passed after four or five revisions. With ROFL, my agents' work passes on the first try:

Those four extra rounds are wasted time, and since each round re-sends the whole conversation to the model, they cost tokens too. The figures and deck for this article are a good example. When a callout arrow came out flat or a slide's text landed in my webcam frame, the tools stopped the build and pointed at the exact rule, so the fix happened right there instead of in another round of review.
How It Gets Used
So who actually reads all of this? In practice, it's mostly my agents, and each kind of job reads a different slice of the notebook:

There are a few different readers here. The coding agents I work with read the relevant ROFL sections before they write a page or draw a figure. Nightowl, the crew of agents that fixes issues on kirupa.com, has a Design Verification agent that checks every fix a visitor would see against ROFL before that fix can go live or reach me for review. And some rules don't wait for anybody to read them. The tools that build decks and figures check those rules on their own and refuse to save something that breaks them.
Then there's me. When something comes back looking wrong, I fix the page, and the reason for the fix goes into ROFL, so the next agent reads it before it starts. The before-and-after pairs we looked at earlier came out of exactly that loop, and this article and its deck were built the same way.
Poke Around (and Borrow Ideas)
ROFL is public, so you're welcome to look around. Here are a few good places to start:
- Open the front page and switch styles with the picker. Everything on the page follows along.
- Read the Illustrations and Arrows sections, especially the before-and-after pairs.
- Peek at what an agent reads by opening the Markdown index.
- Browse the KIRUPAicons and the Slide Decks section.
If you're putting together a design system of your own, here are the ideas from ROFL that are easiest to borrow:
- Turn every correction into a rule, with a before-and-after example next to it.
- Write for people and agents from one source, so the two versions stay in sync.
- Cover more than colors and buttons, since figures, voice, decks, and even bots all have a look and a sound worth writing down.
- Turn the rules a machine can check into real checks, so nobody has to remember them.
Conclusion
A design system sounds like a big, formal thing, but ROFL started as something much simpler: the corrections I kept repeating, written down in one place. Over time, that notebook grew to cover nine styles, icons in seven sets, illustrations and arrows, voice, slide decks, sounds, forum bots, and accessibility. It's still a design system in the traditional sense, but it's heavily optimized for its primary consumer, the agents that build this site. People can read it too, and I hope they enjoy it, but every section is shaped around what an agent needs to read before it starts.
The payoff is that my corrections stick around. I say something once, and it's there for the agents (and people) who build for kirupa.com to read before they start. That saves real money and real time, too. An agent reads a few small files about its job instead of digging through stylesheets and sample pages, and it needs far fewer review rounds. Since every round re-sends the whole conversation, those missing rounds are where most of the token savings in the table above come from. Fewer rounds also means fewer interruptions for me, because I'm not stopping every few minutes to point out the same problems again.
If you'd like to see it for yourself, open the ROFL front page, pick a style you haven't tried yet, and click around. For the full story behind those token numbers, Why AI Factories Need a Design System is a good next stop.