Building Moodle’s design system for machine consumption, from scratch

Zoe Rippon
Written by Zoe Rippon
Aug 12, 2026

By Zoe Rippon, Director of Experience Design, Moodle

Moodle LMS is a 23-year-old open source learning platform with over half a billion users. That scale is only possible thanks to our global community of contributors whose work has sustained the platform over two decades. But that distributed, community-driven growth also means Moodle has evolved without a shared design language. Until recently, we had no formal design system to speak of.

So when the opportunity came up and the team was in place, we were pretty much starting from scratch. This gave us the rare chance to decide what we wanted the design system to be before we built a single component. To make it future-proof, we knew it had to be AI-first. What we didn't know yet was what that meant.

Defining AI-first

Before building anything, we set out to understand what it actually means to build an AI-first design system, and how we would operationalise that.

We understood the outcomes our teams needed from AI. We had two concrete goals: AI-assisted prototyping and AI-assisted development handoff. The question was how to build a design system that could actually support them. We sent our Lead UX Designer, Boris Basque, into research mode.

We discovered that there wasn’t really an established playbook. Nobody had set out a clear framework for what AI-first meant in a design system context when we began. That meant we needed to start working from first principles, pulling together what threads existed and bringing it back to the team for discussion.

Out of that work came 15 Principles, grouped largely around two clusters: Clarity and Parity.

  • Clarity: a component should only have one single, unambiguous interpretation.
  • Parity: design and code should speak the same language at all times.

We landed on Clarity and Parity because they address the two places ambiguity enters a system. Clarity is about making sure there is enough information for a component to be understood correctly. Parity is about ensuring that information stays consistent as it moves between design, code, documentation, and tooling.

We found that many of our Principles weren’t completely new - they were design system practices that aimed to remove ambiguity, which we already believed in. The difference was the standard they needed to be implemented to. We also defined some genuinely new Principles, which were not required before the AI-first focus.

This foundational work mattered beyond our internal teams, as Moodle's community contributes extensively to the platform through plugins, integrations, and new capabilities. We needed the design system to serve them as much as it served us.

Machines have zero tolerance for gaps and ambiguity

On reflection, people are surprisingly good at filling gaps. For example, a designer sees a component labelled inconsistently, but knows what was meant. Or a developer encounters a property name that doesn't quite match the spec, but works it out from context. Teams build shared understanding over time that lets them compensate for things like gaps in documentation, inconsistent naming, or states that were never fully defined.

Machines don't do this.

An AI agent consuming your design system needs explicit information - about everything. It needs consistency across every component, every property, every state. When there's ambiguity, it might try to infer intent. When there’s a gap, it might hallucinate a fix. At best, it might work some of the time. And if it only works some of the time, your system has failed.
People can infer a lot of things and don't need as granular a level of documentation as a machine does. Design for the machine first, and humans will have more than they need. This is why many of our AI-first Principles turned out to be existing best practices, held to a stricter standard.

For example, semantic naming over descriptive naming is not a new idea, but it’s no longer something you can be approximate about. Token coverage for every value is already the goal, but now it’s a hard requirement with no exceptions. State completeness is the kind of thing teams often say they’ll return to, but which we just couldn't defer. Or take design-to-code parity: something designers and developers have always agreed on in principle, while accepting gaps in practice.

Mathew May, our technical lead, described it as:

"It's less about doing things differently - it forces you to be more ruthless about good practice. It's about holding ourselves 100% accountable, no exceptions to that quality bar."

Turning principles into practice

Our AI-first Principles are the foundation of the Moodle Design System (MDS), but they don't ship components. We needed mechanisms to ensure the Principles were actually followed.

Some were extensions of existing practice, taken further than we would have otherwise. We invested heavily in Figma component descriptions: comprehensive behavioural documentation that tells an AI agent how many states a component has, what each variant means, and how elements interact. Previously, we might have written a brief description, or perhaps nothing at all. Now, this is a substantive piece of work for all of our components, one that wouldn't be in our workflow without the AI-first goal.

As Boris put it:

"Without this goal, I wouldn't write these comprehensive descriptions. I'd just say 'this is a nav link', and that's it."

We implemented Code Connect to enforce design-to-code parity, mapping Figma property names to their code counterparts. Where naming genuinely can’t align (as designers and developers sometimes arrive at different conclusions), Code Connect lets us bridge the gap without abandoning the Principle.

We also made agent instructions a formal part of the pull request checklist. When a new component introduces a new pattern, the instructions get updated in the same PR. According to Boris:

"It's not like an afterthought: we did that component, we should probably check the agent instructions. It's actually part of the build. The PR checklist has a point: are the agent instructions up to date, or do they need to be updated?"

The end-to-end checklist lives in Confluence, linked from every component's Jira ticket. It covers the full lifecycle from initial evaluation to release, and every item either passes or has a documented reason for being non-applicable.

And we built the MDS Linter, a custom Figma plugin that uses the Claude API to automatically assess whether components comply with our 15 Principles. First runs always surface issues, sometimes lots of them, but we expect that now. We fix the issues and run again, until the components meet the standards we’ve defined.

As Mathew put it:

"We spend a lot of time ensuring we have good inputs to create great outputs."

The Linter generates a score for the component, but we’re not aiming for a perfect score from the start. The goal is a process that makes the Principles visible enough to act on, every time.

Screenshot of the Moodle Design System Linter (Figma plugin)
The Moodle Design System Linter (Figma plugin)

What surprised us

We didn't have to abandon established design system practices to build AI-first; we had to apply them more consistently than we ever had before. Two examples illustrate this well.

On one occasion, a designer used a dashed border to outline a component frame in Figma for visual clarity, never intending it to ship. Its colour wasn’t a token - the Linter picked this up and generated warnings. It was right to flag it: agents don’t make exceptions for readability cues or working notes, and without the flag, a coding agent would have included the border in the first pass of the component build.

Separately, designers and developers now routinely spend time aligning on naming decisions that, in the old world, we would likely have let slide. With the AI-first approach, that shortcut is no longer available: a naming mismatch breaks machine consumption, so these debates are now necessary.

In both cases, the machine can't reason about context the way designers and developers would. Total correctness and completeness is now the baseline.

What we'd tell a team starting today

Not everyone is starting from scratch, but every team with a design system will face the same challenge: AI surfaces all the little gaps (and the big ones too) that human teams have been compensating for, and it surfaces them faster than you're used to.

Here are the ideas we’d pass on to teams embarking on their own journey to make their design system AI-first:

Start with strategy before tools. Before you reach for an AI tool, understand your team's workflows. What does AI-first mean in your context? How will you operationalise it? A shared definition of quality, established before adoption scales, is what stops standards from slipping through the cracks as usage grows.

If you're building from scratch, start with tokens. We launched our foundations before a single component existed. It gave us early traction and helped us understand how we work as a team: how we communicate change, build momentum, and engage our users. This was critical for when we moved into components.

Use AI to help build the system. We build for AI as the consumer, but we also use AI to generate component scaffolding (file structure, boilerplate, test files, Storybook structure) as well as for auditing components against our AI Principles. That gives us more time for work that requires human judgment like the edge cases, the small details that get missed under time pressure, and the designer-developer conversations that produce better components. And while AI handles the setup, we make sure the craft stays human.

Get your Figma hygiene right. Proper layer names, descriptive property names, and notes that explain how each element behaves across its configurations. AI works with what you give it. Well-structured, well-annotated designs produce meaningfully better results.

Invest upfront in agent instructions and prompts. The time spent defining how your agents should behave and building a set of repeatable prompts for common tasks saves disproportionate effort later. A solid starting prompt for a component review means time goes to edge cases rather than capturing the basics again.

Keep humans in the loop. Whether it's an initial build, a maintenance update, or checking that implementation matches design intent, human review needs to be the final check. It's one of our 15 Principles. AI accelerates the work, but it doesn't replace accountability.

Document from day one. Don't wait for the library to be "big enough" to write documentation properly. We use zeroheight as the public face of MDS; it's where contributors go to understand the system, gives us visibility into adoption, and serves as the source of design system context that our machine-readable exports are built from. The earlier you start, the fewer components you have to retrofit later.

Final thoughts

Building MDS taught us that the hardest part of an AI-first design system isn't strictly the new AI requirements. Sure, we had to introduce some new practices to support AI specifically. AI also speeds up our implementation - like our linter that audits our work against our AI Principles.

But perhaps the most important parts of our findings relate to the fundamental goals of design systems themselves: to be complete, consistent and unambiguous sources of design truth. The standard machines need is the standard we should have been holding ourselves to all along. To be truly AI-first, we can’t ignore them any longer.

Zoe Rippon
Zoe Rippon
Zoe Rippon is Director of Experience Design at Moodle, where she leads the full Experience Design function across research, design and the design system team. She's spent over a decade in product and design leadership roles, building and scaling teams across banking, transport, and now EdTech.
Try zeroheight
The design systems platform that keeps teams and agents in sync
Start for free
Share this post