Design system case study · 2026, ongoing
ilevar design system
ilevar is built at AI speed: I design in Figma and ship with coding agents. Speed made every screen a little different, and the product started to look generated. This is the system that gave it one voice, written so that people and AI agents follow the same rules.



- 607
- components in Figma
- 1,426
- variants, states included
- 271
- design variables
- 30
- pages, from tokens to every screen
When
2026 – present
Problem
Built fast with coding agents, ilevar grew screen by screen and started to look generated: two primary buttons, hand-made copies of components, colour that meant nothing.
My role
Designer and owner of the system: the audit, the decisions, the Figma library with every state, the AI feature design, and the rules agents follow in code.
Result
One visual language from landing to live room: 2 identities down to 1, 3 colour maps per meaning down to 1, every colour paired for WCAG AA, 113 automated checks, and 607 components with 1,426 variants in Figma that people and AI agents follow.
Part I
The system
What was breaking, how I worked, and the principles, components and states that made ilevar look like one product again.
01Problem
Fast, and starting to look generated
When agents write most of the code, every new screen arrives quickly and slightly different: its own button, its own badge, its own shade of blue. Nothing is broken, but the product loses its voice. By July 2026 ilevar had what the system document now calls the “AI slop” look: competing visual languages inside one product. Before deciding anything, I audited it.
A second loud button
The brand orange had become “the other button”. Screens had two filled actions and no hierarchy.
10 hand-made copies
The landing page had ten copies of a label the product already had as a component. Six used the fill colour as text, down to 1.71:1.
3 colour maps, 1 meaning
Levels were coloured in three places that disagreed. One of them painted A1 blue and B1 amber, so a level changed colour between screens.
2 identities
An older “chunky” style survived in 18 of 228 files. Its signature outline measured 1.23:1 against the card: invisible, held up by 37 !important rules.
The fix was not a new coat of paint. It was a small set of decisions, made once, drawn in Figma, built as components and written down where both a teammate and an agent would find them. The rest of this case is those decisions.
02How I worked
Five months, one designer, many agents
I design ilevar and own its system end to end. I made the decisions, drew them in Figma and shipped them with coding agents doing most of the typing. Teachers and school owners reach us through support, so what goes wrong in a real class comes back to me quickly.
Decide
Audit the product, write the rule, and say no to what breaks it.
Draw
Every component and state in Figma, with a description a person or an agent can follow.
Ship
Build it with coding agents, against tests that fail when the rule is broken.
- Jul 16
Audit and structure
Components reorganised into atoms, molecules and organisms. 361 coloured texts moved to readable colour pairs.
- Jul 17
One identity
The chunky style retired, orange taken out of the interface, selection always blue. Every rule that can be checked got a test.
- Sep 12
Sweep of hand-made values
676 hand-typed font sizes replaced by four named steps. Layers and brand colours named once.
- Sep 27
A button for AI
The ai and ai-soft variants, so actions that call a model look different from actions that save.
- Oct 10
Figma meets the code
Figma inventories generated from the code and reconciled, so the file draws what users actually get.
- Nov
AI you can trust
Every screen recounted, the page shell drawn, answer checks for AI homework, and the Claude connector.
03In motion
The system, moving
Before the details, the result. These are screen recordings of ilevar’s public site: the current landing and the one before it, with two of its feature demos. The new landing replaced a generated page in November 2026 and was built with the design system’s tokens from an approved Figma design, which is the goal of the system in one example: one identity from the first scroll to the live classroom.
04The system
The whole product, in one Figma file
The file follows the order people learn a system: foundations, icons, atoms, molecules, organisms, shared patterns. Then come 22 pages of real screens organised by role and flow (student homework, teacher classes, school settings, the live room, the admin), all built from the library. A last page keeps components that no longer exist in the code, so nothing obsolete gets reused by accident.
Pages
+ 22 more pages of screens by role and flow
Every swatch names its variable in code
- The brand ramp runs from 50 to 950; 700 is the brand blue.
- Each status colour comes as a background, a text colour on that background, a text colour on white and a muted tint.
05Figma canvas
Inside the file: organised by who uses it
After the library, every page of the file belongs to a person: the student, the teacher, the school owner, the live room or the admin. A designer, a developer or an agent looking for “the student’s homework card” knows which page to open before searching.
Library · 6
- 00 Index
- 01 Foundations
- 02 Icons
- 03 Atoms
- 04 Molecules
- 05 Organisms
Shared · 3
- 06 Auth and account
- 07 Public site
- 08 Shared patterns
Student · 4
- 09 Dashboard
- 10 Homework
- 11 Bookings and teachers
- 12 Messages and notebook
Teacher · 5
- 13 Dashboard
- 14 Classes
- 15 Students
- 16 Lessons and availability
- 17 Dialogs and flows
School owner · 2
- 18 Settings and setup
- 19 Manage
Live room · 4
- 20 Activities
- 21 Lesson plan
- 22 Video and shell
- 23 Chat, students and lobby
Admin · 4
- 24 Overview
- 25 Tenants and users
- 26 System
- 27 Data parts and navigation
Quarantine · 1
- 90 Deprecated · no code in src

The whole page

06Principle 1
One primary action per screen
The second loud button had a funny origin. In the component library ilevar started from, the button called “secondary” is neutral by convention. ilevar had stored its brand orange under that name, so every secondary button inherited the brand accent. Nobody chose to have two primary actions. A name chose it.
Before
Two filled colours side by side: which one is the main action?
After
Every action is blue. Orange lives only in the mascot and the logo.
Today there is one button component with 11 variants, and each variant has one job. Two of them, with a blue-to-violet gradient, are reserved for actions that call AI, so a teacher can always tell “this will generate something” from “this will save”. The gradient starts from the school’s own brand colour, so it still feels like their product.
07Principle 2
Colour has one job at a time
The lesson playground gave every activity tab its own colour: quiz blue, flashcards orange, matching coral. It looked lively, but it disagreed with the colours used everywhere else, and two activities shared a colour, so it did not identify anything. It was decoration dressed up as meaning. I split the three jobs colour had been doing at once.
Selection says “This one.”
A selected tab, chip or menu item is always the brand blue, whatever it contains.
Status says “This worked / needs you / failed.”
Four tones, and one component that maps every status in the product to one of them.
Category says “This is a different kind of thing.”
A separate palette whose only job is telling things apart, like the 16 activity types. It never means status.
Every colour also comes as a pair: one version to fill a background and one to use as text on white, because a light green that works as a badge is unreadable as a word. Contrast stopped being something to remember and became part of the token.
08Principle 3
Every state is designed before anyone asks
An agent will happily build the happy path. What it invents on its own are the other states: the loading spinner, the empty list, the error, the case nobody mentioned. Those are exactly the moments a teacher remembers. So in ilevar a component is not finished until its states are drawn, as variants of the same component, next to each other.
Add a student · 1 dialog, 8 states

The password is optional: left blank, the student gets a temporary one by email. The timezone is asked up front, with “Use this device”, because every lesson time depends on it.
Some of these states are product decisions, not just visuals. The under-18 state exists because a school has to record a guardian’s consent. The same rule runs through the whole file: the class notebook has its empty and loading states, and the lesson plan has a state for resuming a class halfway, because real classes get interrupted and a teacher should not have to remember where they stopped.
09Components
Components that know what time it is
A school product runs on a timetable, so many components change with the clock. I drew them as states of one component instead of separate cards, which keeps the same place on the screen meaning the same thing all day.

NextLessonCard · 4 states
The button is there but disabled, and it says when it opens: “Opens 10 min before the lesson”. Nobody wonders why it does not work.
Pose=Laptop
Pose=Celebrating
Pose=Floating
Pose=Questioning
10Accessibility
Accessibility is part of the token, not a checklist
A bright colour that works as a badge is unreadable as a word. Instead of asking everyone to remember that, every colour in ilevar comes as two tokens: a fill for backgrounds and an ink for text on white. Picking the wrong one is not a judgement call anymore; a test fails.
Blue
Confirmed 2.67:1Confirmed 13.48:1fillinkYellow
Confirmed 1.71:1Confirmed 9.31:1fillinkSuccess
Confirmed 3.40:1Confirmed 6.15:1fillink
The brand blue is the one exception: at 6.26:1 it works as both, so it has no separate ink. Every other colour, including the 12 category colours of the activity badges, has its pair.
Focus you can see
The focus ring measures 5.99:1 against the page. It used to be drawn half-transparent, which halved its contrast; the button was fixed.
Motion with an off switch
Every animation in the stylesheet is turned off for people who ask their system for reduced motion. A test checks each one.
Checked against the real colours
Contrast is calculated from the live stylesheet, not from a spreadsheet. If a change fails, the token is fixed; the limit is never lowered.
11The live room
Every activity, designed twice
In the live classroom the teacher and the student look at the same activity at the same moment, but they need different things from it. The teacher needs the answer and the control to reveal it; the student needs to answer without being told. So every interactive activity is drawn for both, side by side, from the same data.
Part II
Design for the AI era
AI writes lessons for teachers, makes mistakes, asks for access, and writes code for the product itself. Each of those needed design.
12AI features
Designing the moments the AI does the work
ilevar generates lessons and homework with AI. Those screens carry the most risk, because a teacher has to trust something they did not write. They are built from the same components as everything else. What makes them different is a handful of decisions about what the teacher sees before, during and after the model works.
During
Progress in words, not a spinner.
While the lesson is generated the options fold away and the panel says what is happening: “Understanding topic and level…”, then “Assembling the lesson timeline…”. When it is done, the lesson lands in the builder as ordinary activities, drawn with the same components, that the teacher can edit, reorder or delete.


- Homework from class notes
- 1
Names its sources
The description says exactly what the AI will read: this student’s class notes, mistakes and vocabulary.
- 2
Shows the input before it is used
Each recent lesson lists its mistakes and new words, so the teacher picks the lesson with the most to practise.
- 3
Folded, but honest
Advanced options stay closed, and the closed row says what the defaults are: mixed focus, no specific topics, no due date.
- 4
The button names both consequences
“Generate & assign”: the homework goes to the student right away, and the label says so. The gradient is the AI button variant, used only on actions that call a model.
13When AI is wrong
Designing for the answer the AI got wrong
Generated homework looked right and was sometimes wrong in the worst possible way. A fill-in-the-blank read “I need to ___ the oven before baking”, and the AI had marked “switch off” as the answer. A student wrote “switch on” and was marked wrong. The screen repeated the model’s confidence, and the student paid for it.
Fill in the blank
I need to the oven before baking.
The colours did exactly what the system says they should: green for right, red for wrong. The design was consistent and the content was false. A design system cannot catch that on its own, so the fix had to reach into how the content is made and what the teacher is told.
- 01
Generate
The model writes the exercises and marks an answer key.
- 02
Check blind
A second pass answers every question without seeing the key.
- 03
Keep or drop
An item stays only if both agree and no other option also fits. The rest are generated again.
- 04
Tell the teacher
If something could not be checked or delivered, the homework says so before the student starts.
The last step is the design decision. When the AI could not deliver something, the old behaviour was a silent fallback: filler exercises nobody had asked for. Now the fallback only includes what can be correct without AI (a grammar card, matching, flashcards, writing), never an invented quiz, and the teacher gets a warning that stays on screen long enough to read.
The homework is assigned, but we couldn’t automatically check the answers of its quiz and fill-in exercises. Review them before the student starts.
The homework is assigned, but some exercises didn’t pass the quality checks and were left out. Review it before the student starts.
Honesty includes the case: the check is new, and how often it catches a wrong key on real homework is not measured yet. That number is the next thing I want on the dashboard.
14AI as a user
When the one asking for access is an AI
A school owner can now connect Claude to ilevar and ask it things like “list this week’s lessons”. That makes an AI assistant a new kind of user of the product, and it raises a design question that did not exist a year ago: how does a person decide what an AI is allowed to see?
ilevar
Connection with Claude
Connect Claude to your school
What this AI will be able to do
- View the school’s lessons
- View the student list
- Look up platform help
- Cannot create, change or send anything
You can revoke access at any time.
- 1
Permissions in plain words
Not technical scope names: “View the student list”, written the way a school owner would say it.
- 2
What it cannot do, just as visible
“Cannot create, change or send anything” sits in the same list, so the limit is read, not assumed.
- 3
Only the owner can say yes
Anyone else who reaches the screen gets a clear “Restricted access” state instead of a button that fails.
- 4
Easy to undo
The screen says access can be revoked at any time, and the integrations page lists every active connection with a Revoke button.
The consent screen, rebuilt here with its production copy. It ships in Portuguese, English, Spanish and French.
One detail I like: the screen shows the ilevar logo and names Claude only in text. Putting another company’s logo on your own consent screen borrows trust you have not earned, and their brand guidelines ask for exactly this.
15Design × AI
A design system that AI agents can follow
In a product built with coding agents, the design system has a second audience. A teammate learns the system once; an agent meets it fresh every session. If the rules only live in my head, or only in Figma, the agent will guess, and its guesses are exactly the generic look the system exists to prevent. So I wrote the system for both readers.
- 01
Code holds the truth
Colours and components live in the code. Their inventory is exported from it, so Figma is reconciled against what users actually see.
- 02
Figma holds the intent
Every component description names its file in the code and its rules, written so that a person or an agent reading the file gets the spec.
- 03
Agents follow, and review
The agents’ own reference file carries the system’s rules as “avoid this, do this”, with the test that will fail. A design reviewer agent checks work against it when an issue asks for it.
- 04
Tests catch the drift
113 automated checks reject what slips through: low contrast, raw colours, hand-made copies, the retired orange button.
Component description · AiGeneratorPanel
AI lesson generator, shown inside the lesson builder card above the blocks when “Generate with AI” is used.
Generating: the options are hidden, the button reads “Generating...” with a spinner, and a dashed box cycles “Understanding topic and level…”, “Assembling the lesson timeline…”. The result is saved and the builder shows the real activities.
src/components/dashboard/lesson-builder/AiGeneratorPanel.tsx
Written into the system: do not
- Gradient blobs and auroras
- Badges that pulse for decoration
- Grids of identical cards
- Icons in coloured boxes as decoration
- Everything centred
The patterns that make a screen look generated, named one by one so an agent cannot reach for them by default.
The design reviewer agent has two rules I am especially happy with. When it can open a browser or the Figma file, it must compare the rendered screen with the design instead of guessing from the code. And it must not invent a pattern the system does not have: if there is no rule for a case, it says so, and that gap comes back to me as a design decision.
The result is the part I care about most in this era of vibecoding. Agents make building cheap; the system keeps the product from looking cheap. My job moved from drawing every screen to deciding the rules that every screen, drawn or generated, has to follow.
Part III
Results
What changed, measured where the system lives, what is still open, and where every number comes from.
16Impact
What changed, in numbers
ilevar has no design team to survey, so I measured the system where it lives: in the code and in the Figma file. These numbers are counts, not estimates, and the system document keeps them dated.
21
visual identity, from the landing page to the live room
31
colour map per meaning: one source each for level, activity and status
370
!important rules fighting the components
6764
hand-typed small font sizes, replaced by four named steps
361
coloured texts moved to a readable ink
113
automated checks in 5 test files guard the rules on every change
On the Figma side the library reached 607 components and 1,426 variants, with every screen of the product drawn from it across 22 pages. The part that numbers do not show: new screens, written by agents, now arrive looking like ilevar.
17What is open
What is still open, and what I learned
A design system is never finished, and pretending otherwise is the fastest way to lose a team’s trust. This is what is still open, with the same honesty as the rest of the system document.
- 01
Buttons still written by hand
400 raw buttons in 147 files, next to 485 uses of the Button component. Some are legitimate; the audit of which ones has not been done.
- 02
One page shell for every page
Only 18 of 66 dashboard pages use the shared page header. The page shell is drawn in Figma for desktop and mobile; the migration is next.
- 03
Page titles in 7 styles
57 page titles use seven different sizes and weights. A test will enforce one scale once the migration lands, not before, so it does not break everything at once.
- 04
Measure the AI check
Track how often the blind check catches a wrong answer key on real homework.
Three lessons I take to the next team
Names make design decisions
Nobody chose a second primary button. A colour stored under the wrong name did. Naming is design work.
A test that passes empty is worse than none
I broke every rule on purpose to see its test fail. Two of them passed anyway, and only that check revealed it.
Write for the reader who forgets
An agent meets the system fresh every session. Rules written for that reader turned out clearer for people too.
18References
Sources and references
Where every number and screen in this case comes from, and the standards the system is measured against.
In the product
- docs/design/DESIGN_SYSTEM.mdThe system document in the ilevar repository. Every count in this case comes from it, dated 12 November 2026.
- Figma · Ilevar — Design system30 pages, 607 components, 1,426 variants. The screens in this case are exports from it.
- Commits 8aea5bea and 44d1ff77The blind answer-key check, the removal of the silent fallback, and the teacher warnings.
- Commits 7025424a and 4ba36c09The consent screen for Claude connecting through MCP.
- messages/en.jsonThe production copy quoted in the warnings and the consent screen.
Standards and reading
- WCAG 2.2 · 1.4.3 Contrast (Minimum) (opens in a new tab)The 4.5:1 bar every text ink is tested against.
- WCAG 2.2 · 1.4.11 Non-text Contrast (opens in a new tab)Why a 1.23:1 outline did not count as a border.
- WCAG 2.2 · 2.4.7 Focus Visible (opens in a new tab)The solid focus ring, at 5.99:1.
- WCAG 2.2 · 2.3.3 Animation from Interactions (opens in a new tab)Reduced motion, in the product and on this page.
- Atomic Design, Brad Frost (opens in a new tab)The atoms, molecules and organisms order of the Figma library.
- CEFR, Council of Europe (opens in a new tab)The A1 to C2 scale behind the level colour map.
- Model Context Protocol (opens in a new tab)How an AI assistant connects to ilevar, and why it needs a consent screen.
Design that holds up at AI speed
I design systems in Figma that survive contact with fast teams and coding agents: clear decisions, every state drawn, and rules written where both people and machines will follow them. If your team is building that way, let’s talk.