Design Systems for Software Factories
I've begun to recognize that in a modern software development team, agents will be writing almost all production code.
Software engineers have (mostly) solved how to build harnesses and guardrails that keep code quality extremely high. Progress on solving this problem is being made rapidly because engineers own the development workflow - if you had the tools to automate the worst part of your job, why wouldn’t you?
Unfortunately, design doesn't lend itself to automation as cleanly and there is a large technical barrier to ownership of such systems. Many designers now find themselves in this decision paralysis on whether to prioritize technical prowess over craft, which feels a little sacrilegious to the faithful who view design as an artform.
What is good design?
Code has an inherent luxury that design doesn't get to have in that well-written code is close to objective. A system's quality is grounded in terms of performance, reliability, scalability, and many more objective measures.
This doesn’t translate to design very well because the best design is personal. It invites thought, makes the consumer feel special, and maintains a distinctly human identity.
From a technical standpoint, a checkout system for a restaurant and a checkout system for an e-commerce site are structurally similar. You can ask any state of the art model to build backend checkout systems for five different businesses at once, and it will implement all five to near perfection.
If you ask it to design websites for five different businesses, what you'll usually receive is five websites that look like a B2B SaaS landing page.
I attribute this to usage of AI without intent. It's easy to cognitively surrender to an LLM and let it decide your intention for you because of how much time you save. This results in a regression to what general purpose models believe is "best practice" - random gradients, all caps eyebrow text, you know the look.
An agent trained to do everything will struggle to make something unique to you - a jack of all trades, master of none. The design these frontier models consume and train on averages out and results in what I would consider dollar store design - uninspiring, bland, and mass-produced.
Design is the new bottleneck
Design systems exist to minimize the surface area of risk when moving designs from a canvas to production. It's a major component in the design handoff workflow and exists as a central repository of deliberate design decisions that development teams could access cross-functionally. Now that agents are in the mix, it's easier than ever for developers to disregard these systems in favour of speed.
As thoughtful decision has replaced execution as the bottleneck in development timelines, a designer's ability to create new interactions and ship new components has been far outpaced by a developer's ability to spin off a dozen agent sessions. This follows a similar pattern to modern code review, where reading AI-generated output became a limiting step in shipping fast. When faced with this problem, the best teams quickly realized that catching bugs in review was significantly less efficient than simply preventing that bad code from ever being written in the first place.
In a contradictory world where design needs to be personal yet produced at scale, this new design system needs to encode human thought into every action an agent might take. I believe that designers need to tackle the problem further upstream by forgoing manual output review in favour of a design harness.
How do we empower agents with taste?
An effective harness needs to extend design language that already exists and iteratively improve against it. If you can point an agent at an existing design system it can produce any variation off of that pretty consistently, but if you ask it to invent and conceptualize on its own, it will produce some of the worst design you will ever see. This is why AI-forward designers will often ask their agents to come up with 10 variants, choose the best of those 10, and do some fine tuning. If you throw a dozen darts, eventually one of them will bullseye, but this margin of error for each bad decision compounds when agents are pushing thousands of LOC per hour.
Priority number 1 needs to be minimizing this variance in quality. I like to imagine my agent as a very junior designer who works extremely fast - scoping down the task and communicating precisely what you want is extremely important in getting the output you need, otherwise they will trudge in the complete wrong direction.
If you were managing a junior designer, you wouldn't tell them "make me a dashboard for this client". You would specify the functional and non-functional requirements, the user stories, what data to display, the API spec, and more so that the end product is as close to your vision as possible. You would challenge each other's assumptions, have thoughtful discussions, and remember key decisions moving forward.
Agents fall short in this regard as they don't challenge your assumptions and don't remember. With agentic design, the responsibility is now on you to challenge your own assumptions, think through the possibilities, and bake those into an effective memory structure before initiating any sessions.
Design systems are memory
I see it as three layers of human-designed constraint, each capturing a different kind of decision:
- Tokens: what values? Colour, typography, spacing, radius, and motion. Baking these in as a finite list of raw choices minimizes inconsistency across sessions, because an agent can't pick a padding that doesn't exist.
- Patterns: which component, when? Experiential decisions like when to show a toast, or when to render a drawer instead of a dialog. These are the calls you'd otherwise repeat in every design review.
- Principles: why? Voice, personality, density, negative examples; anything that shapes a model's line of reasoning when the first two layers don't have an answer.
Tokens live in code, where they can be enforced. Patterns and principles live in localized AGENTS.md files or shared team skills, where anyone's agent can align instantly.
Once you have this input layer, the validation layer comes next. To avoid inconsistencies and limit output variance, lint for raw hex values, magic numbers and one-off components the way engineers lint for unsafe types. For fully autonomous workflows, give the agent a way to see its own work with a library like Playwright. Render the page, screenshot it, compare it to a reference as a test for drift. Visual regression is an e2e test for design.
I've experimented with Tailwind, StyleX, and various component libraries. My conclusion is that Base UI + CSS Modules is the least restrictive way to scale an accessible and beautiful design system. Because Base UI is flexible by design, you can integrate any style or brand language seamlessly. CSS Modules with locally scoped stylesheets allow agents to focus on hyper-specific functionality instead of drowning in the context of a massive code base and cascading changes across multiple components.
Own the output
Designers need to take responsibility and not let past standards dictate what they're allowed to own.
If you care about craft and you understand that building software will only get faster, then you must also recognize the need for a paradigm shift. The designers who thrive won't necessarily be the ones with the best taste; they'll be the ones who can distribute their creative intuition at a level that matches product velocity.