To create a design system, start with the product's recurring problems and define only the principles, tokens, and components needed for current tasks. Apply this foundation to real interfaces and expand as new needs arise. This way, the system monitors usage and does not become a library that is too large for the product.
Without use, the button library can become a useless museum for the actual interface of the actual product.
I knew this when I startedAero, my authorial project management product. I designed and programmed everything myself, from the first wireframe to deployment, with React, TypeScript and Tailwind. And even so, or perhaps precisely because of that, I decided that I needed a real design system. Not a Figma UI kit, not a loose style file: a system that made decisions for me while I built the product alone, here in Campinas, in the early hours of the morning when no one would review my work the next day.
This article is the guide I wish I had read before I started. I'm going to open up the entire process: what separates a design system from a style guide, why a solo project needs a system as much as a large team, how Aero principles became tokens and tokens became code, how I chose the components, what I documented (and what I didn't document), the mistakes I made along the way and what I would do differently if I started today. To give you an idea of the real size of the thing: today the system has 18 color tokens, 7 typographic levels, 8 spacing steps and 9 interface components, all published on a living documentation page within the product itself. If you want to learn how to create a design system without falling into the traps that almost brought me down, this is it.

What is a real design system?
Before any tutorial, it's worth aligning your vocabulary, because the market mixes everything up. A style guide is an appearance document: logo here, primary color there, typography like this. A UI kit is a library of ready-made drawings, usually in Figma: buttons, cards and inputs to copy and paste. A design system is another category of thing. It is the set of principles, tokens, components, and usage rules that govern how a product makes visual and interaction decisions. The style guide describes what the product looks like; The design system defines how the product decides.
My opinion, after building one myself: if your “design system” doesn't change the way you work on any given Tuesday, it's decoration. The test is simple. When a new screen appears, do you open the library and the screen assembles itself almost by itself, with the doubts resolved before they become doubts? Or do you open Figma and start inventing new gray? A real system answers questions. A lying system generates questions and calls it flexibility.
There's another difference that almost no one mentions: a design system exists on both sides of the border between design and code. If the token exists in Figma but doesn't exist in CSS, it doesn't exist. If the component exists in React but no one knows when to use it, it doesn't exist. The system is what survives the crossing. In Aero, this rule became literal: no color, spacing or component enters the interface if it doesn't have a name and place in both worlds.
- Style guide: appearance document. Answer “how does it look?”
- UI kit: collection of designs. Answer “where do I copy this?”.
- Design system: principles + tokens + components + rules of use, alive in design and code. Answer “how do we decide?”
It is worth saying that none of the three things is the enemy of the others. A well-made UI kit saves design time, and a style guide solves the brand. The problem is calling any of them a design system and expecting it to do the work it wasn't designed to do. I've seen projects with five hundred components in Figma and no usage rules: the result was a different interface every sprint, because copying a ready-made design doesn't transfer criteria. Criteria is the invisible part of the system, and it is precisely the part that does not fit into a component file.
Why did Aero need a system in a solo project?
The obvious objection: design system is a big team thing, a company with ten designers and a design ops squad. For a solo product, it would be bureaucracy. I thought similar, until I counted how many repeated microchoices I made per day. What is the background gray on this card? 12 or 16 pixels of breath? Is this button primary or secondary? Each such question costs between thirty seconds and two minutes. Add twenty a day and you spent almost an hour deciding what you already decided last week, probably in a different way.
In a solo project, the design system does not exist to align people; It exists to align you with yourself. Lucas from March doesn't talk to Lucas from June, and Lucas from June forgot why Lucas from March chose that blue. The system is the memory of that conversation. It's also the only way to maintain consistency when you're a designer, developer, QA, and support at the same time: consistency cannot depend on attention, because attention is the scarcest resource for those who work alone.
And there's the speed gain, which was what surprised me the most. After the tokens and base components were ready, new screens started to appear in hours, not days. Not because I typed faster, but because the decisions were pre-made. The work became composition: choosing known blocks and solving only what was genuinely new on that screen. A design system, in this context, is a decision-saving machine. Each token you set is a micro-choice that you never have to redo.
There is also a side effect that I did not foresee: constant quality on autopilot. Everyone has a bad day, a rush day, a tired day. Without a system, a bad day turns into a bad screen, and the bad screen stays there forever, making the whole thing sour. With the system, even the screen made in a hurry comes out in the standard, because the standard is the shortest path. The design system does not raise the ceiling of the product; it raises the floor. And for a product I maintain myself, the tread is what ensures today's Aero doesn't shame yesterday's Aero.
Principles before pixels?
The temptation for everyone starting a design system is to open Figma and start drawing buttons. I resisted for a selfish reason: without criteria, I was going to redesign these buttons four times. So before any pixels, I wrote three principles. They are not motivational poster; they are filters. Every system decision, from gray tone to the behavior of a keyboard shortcut, goes through at least one of them.

Zero friction
Project management is already friction-filled by nature; the tool cannot add more. Zero friction means that creating, moving, and completing a task needs to be faster than thinking about how to do it. In practice, this principle killed modals (almost everything becomes a side drawer), required immediate visual feedback for any action and created the rule that no common operation could require more than two clicks or a shortcut. When a new screen threatens to break this rule, it is the screen that changes, not the rule.
Useful density
A work tool is not a poster. A project screen needs to show a lot of information without becoming clutter. Useful density is the balance between fitting a lot of stuff on the screen and still being readable: compact but comfortable typography, short but consistent spacing, hierarchy made by weight and color instead of giant size. This principle answered concrete questions about tokens: how many shades of gray are too many (five, and look), what is the minimum acceptable line-height, when a list becomes a table. Useful density is not about squeezing everything together; is not wasting pixels or attention.
Keyboard-first
Aero was born out of my frustration of taking my hand off the keyboard fifty times an hour to drag cards with the mouse. Keyboard-first became a system principle, not a feature: every interactive component needs to be keyboard operable, every shortcut needs to be discoverable, and the visible focus is a first-class citizen of the design, not a standard blue browser outline that we erase with outline: none. This principle alone has shaped more tokens and components than any aesthetic preference of mine. That principle, for example, led me to decide that the product needed a command menu before I had even designed the first screen.
The trick is that a good principle generates tokens. “Keyboard-first” became a focus ring with its own token, used on everything. “Useful density” became a short spacing scale. “Zero friction” became the rule that loading and success states have maximum visual response times. When the principle does not become a concrete decision, it becomes a wall phrase.
A detail of method: I test principle with real question. Whenever I get stuck on a decision, I ask out loud what each principle would say. If none of the three have an opinion on the matter, the principle is poorly written or the decision is trivial and I should stop beating around the bush. This check, which takes ten seconds, saved me hours of trial and error and several “creative solutions” that were actually just inconsistencies with good presentation.
Design tokens: how to use them?
Tokens are the smallest decisions in the system: color, typography, spacing, radius, elevation. The part that no one tells you is that the difficult part is not choosing beautiful values; is to choose few values and give names that age well. In Aero, each token is named for intent, not appearance. There is no “grey-700”: there is a background surface, a raised surface, secondary text. This seems like a pedantic detail until the day you need to darken the entire theme and discover that “gray-700” is used in three hundred places with three different meanings.

Color as a signal, not decoration
The Aero palette is dark by product decision, not by fashion: long focus tool, used at night, needs little strain on the eyes. Today it comprises 18 color tokens, organized into three semantic groups. The first, “Brand and Structure”, has 7 tokens and governs surfaces and action: primary (#24262F) in the application body, primary-10 (#1D1F26) in panels and sidebar, primary-20 (#17181D) in inputs and dropdowns, primary-30 (#101115) in deep shadows and subtle edges, brand (#388CFA) as action color, background (#0E1015) in the deepest background and card (#1A1C23) in the raised surfaces. Notice the names: none of them describe appearance, they all describe paper. The second group, “Text and Content — Neutral”, has 5 tokens that only take care of the reading hierarchy: neutral (#FFFFFF) for titles and high-contrast text, neutral-10 (#F5F5F5) for the main body text, neutral-20 (#D4D4D4) for subtitles and secondary descriptions, neutral-30 (#A3A3A3) for placeholders and inactive icons, and neutral-40 (#737373) for disabled borders. The third group, “Feedback and Status”, closes with 5 semantic tokens: success (#18821C) for what is completed and safe, warning (#A35A01) for attention and pending issues, danger (#911756) for error and destructive action, info (#008E8E) for what is informative and neutral, and accent (#535C91) for secondary highlights, badges and tags.

The golden rule that comes out of this organization is short: components consume tokens, never arbitrary values. When a screen seems to ask for a new background, the right question is “which semantic layer is this?”, and not “which hex looks good?”. If the answer does not exist, the way is not to write any bg-[#123456]; is to propose a new token, which only comes into play if it names a meaning that is still missing.

Color with saturation, in Aero, is always a sign. Blue #388CFA is the only action color: links, primary buttons, selection, focus. If something is blue, it is clickable or in focus; if it's not clickable, it's not blue. Magenta #911756 (with variants for hover and subtle backgrounds) is reserved for destructive actions, so deleting a project never feels the same as saving a project. The other statuses follow the same logic of meaning reservation: the green success (#18821C) confirms completion, the amber warning (#A35A01) asks for attention, the teal info (#008E8E) informs without urgency and the accent (#535C91) marks secondary highlights such as badges and tags. The result is an interface that reads itself: color carries meaning before you process the text.
The discipline here is subtractive. Each new color dilutes the meaning of existing ones, so the barrier to entry is high: to enter the palette, a color needs to name a meaning that doesn't yet exist and prove that it will appear in more than one flow. After months of product production, this rule prevented several of my temptations to “change it up”.
Contrast was also decided at the token level, not screen by screen. Main text, secondary text, and disabled text have fixed values and are tested against the three surface depths, so any combination allowed by the system passes contrast by construction. This changes the accessibility game: instead of auditing screens after they are ready, accessibility becomes an inherited property. Whoever uses the right tokens inherits the right contrast, without having to remember that it exists.
Functional typography
Inter takes care of the entire interface, from the button label to the page title, because it was designed for the screen and handles small sizes well, which is where the useful density lives. The weights range from 300 to 700, but the scale in use is 7 typographic levels, each with paper: Display H1 (36px, weight 700) for rare moments of highlight, H1 (30px, 600), H2 (24px, 600), H3 (20px, 600), Body (16px, 400) as standard text, Small (14px) for secondary information and Tiny/Label (12px, 500, uppercase) for metadata and status labels, such as “IN PROGRESS” for the board columns. JetBrains Mono only goes into technical contexts: keyboard shortcuts, identifiers, numbers that need to align.

Metadata, such as dates, tags and status labels, use uppercase with open tracking in a small size. It's an old trick, but it solves two problems at once: it visually separates secondary information from the main content and allows smaller sizes without losing readability. And although Inter offers five weights, each level of the scale locks in just one weight: no one chooses between medium and semibold screen by screen, because this decision has already been made when defining the level. Italics were left out for the same reason, one less variation to decide on each screen.
Line-height and line measurement also entered as tokens, which saved me from a classic of dense interfaces: squished technical text and overstretched long reading block. Interface text uses fair leading, because it lives in short doses; Reading text, such as project descriptions and this article, uses generous leading and limited column width. It seems obvious written like that, but without a token these two contexts keep leaking into each other, and the result is that feeling of a tight interface that no one knows how to explain.
Spacing, radius and elevation
Spacing based on 4px, no heroic exceptions. The final scale closed in 8 steps, from 2px to 64px, and in practice the vast majority of the interface lives in the middle values. This deliberate poverty is what makes paintings created in different months look like sisters. Border radius follows the same philosophy: 5 levels, from sm to 2xl, from the discreet corner of an input to the generous rounded edge of a card, with a rounded-full pill reserved for what was born round, such as badges and avatars. Borders have an explicit default: border-primary-30 as a neutral state, and border-brand or neutral-40 when the element is active or in focus.
Elevation, in a dark theme, is almost not shadow: it is a lighter surface on a darker surface. The card (#1A1C23) floats over the background (#0E1015) for contrast value, not for decorative box-shadow. Shadows exist, on a scale from sm to xl, but they only reinforce what actually floats: dropdowns, popovers, modals and the command palette. The icons are in the same family of details, all from Lucide React, 2px outline stroke, sizes of 16, 20 or 24px, inheriting currentColor to never fight with the surrounding text token. And three special effects close the layer: .aurora-bg, an animated gradient used sparingly on prominent backgrounds; .focus-ring, a 2px outline in brand color applied via focus-visible; and an 8px custom scrollbar that matches the theme rather than screaming the operating system's default gray.
How to pass Figma tokens to Tailwind?
Token that lives only in Figma rots. In Aero, the single source of truth is the code: the 18 color tokens are CSS variables declared in the :root of app/globals.css, and Tailwind consumes them via @theme inline, which exposes the variables as utilities without duplicating values. On a daily basis I write classes like bg-card, bg-primary-10, text-neutral-30, border-primary-30, and never a hexadecimal value. If one day the blue action changes, it changes in just one place and the entire interface follows, because the utility points to the variable, not the hex.
The separation between raw values and semantic roles was the most important decision in this layer. Components never touch hex directly; they know primary, card, brand, neutral-30, danger. This creates a buffer: I can touch up the value of any variable without reviewing it component by component, because they only know roles. And as the product was born dark-first, a clear theme (if it comes) will be a remapping of the same variables in the :root, not a new project.
In practice, the flow looked like this: I define or adjust the token in the theme file, Tailwind exposes the semantic class, and Figma receives the update in the style library with the same name. The name is the contract between the two worlds; While the name matches, design and code do not diverge. I didn't use a token pipeline or automatic synchronization between Figma and code (I'll come back to this in the tools section): for one person, naming discipline solves what the tool would solve for a team.
A concrete example of the buffer in action: at one point, I found the surface of the cards too bright in relation to the background, and the contrast between cards and page seemed weak on worse monitors. The fix was to adjust a single variable in :root. Cards, drawers and raised panels went dark together, without me opening a single component. If these components used raw values, I would be hex hunting through dozens of files. It is in this type of invisible maintenance that investing in tokens pays for itself.
Which components and patterns to prioritize?
With the standing tokens, the component layer had a strict rule: a new component is only born when the pattern is repeated three times. Before that, the code is duplicated on purpose. It seems like heresy to those who learned DRY early, but premature abstraction is how design systems bloat: you create a “flexible” component for a pattern that only existed in your imagination, and it becomes dead weight with props that no one uses. In the third repetition, the pattern has already shown its real variations, and then the abstraction comes out right.
Observable states, always
Every interactive Aero component is born with its states designed and implemented together: default, hover, focus, disabled and loading. It's not phase two; It's part of the definition of done. The button shows what happens when hovered over, when it receives keyboard focus (with the keyboard-first principle focus ring), when it becomes unavailable, and when it is processing. Inputs the same, including error status with message. This discipline eliminated an entire category of visual bugs: the “I forgot this state” that only appears when a user stumbles upon it.
The final inventory closed on 9 interface components, all born in components/ui/ with variants declared via cva, the library that transforms combinations of variants into typed classes. The button is the best example: 6 variants (default, secondary, outline, ghost, destructive and link) crossed with 3 sizes (h-9, h-10 and h-11), and disabled state implemented in the most honest way possible, opacity-50 combined with pointer-events-none. As the variants are declared in a closed object, the combination that does not exist does not compile.

The command menu as an anchor component
Every design system has a component that, if it's right, legitimizes the rest. In Aero it is the command menu: a palette of commands opened by shortcut, which lists actions, projects and navigation with instant search. It concentrates everything that the system preaches: it is keyboard-first by definition, it uses surface and focus tokens, it has empty and loading states designed, and it proves that useful density works, because it shows a lot of options in a little space without suffocating. It was the most difficult component and the one that yielded the most: after it, menus, popovers and search lists were almost free, inheriting the behavior.

Drawer, badges and the rest
The side drawer is where the editing happens: once you click on a task, the drawer opens with all the details, without taking you out of the context of the board. It was the direct response of the zero friction principle to the drive to open central modal for everything. Status badges are rounded-full pills with text-xs in font-semibold, mapped directly to feedback tokens, so “in progress” and “completed” are distinguished by color and text, never just by color, because accessibility is also consistency. The inputs have a neutral-30 placeholder and error states, disabled and icon on the left. Checkbox, avatar (with initials fallback when there is no photo), tooltip and skeleton complete the set. Skeleton, by the way, is one of my favorites: it preserves the layout during loading, so the screen doesn't jump when the content arrives, a small, silent victory for the zero-friction principle.


TypeScript helps keep this small collection reliable: each component's props are short, explicit contracts, and variants are closed union types, so the “more or less primary” variant simply doesn't compile. Tailwind, in turn, keeps the implementation glued to the tokens, because styling out of scale takes work, and well-directed laziness is a great governance tool.
It's worth noting what didn't become a component: the task board, project header and sidebar are compositions, not library components. Each one appears only once in the product, so abstracting them would only create a layer of props to configure something that doesn't vary. Reusable components are for patterns that repeat; one-off layouts remain compositions built from smaller pieces. Confusing these two things is how those 800-line components with twenty optional props that everyone is afraid to touch are born.
What to document and where to maintain this design system?
Design system documentation has a very high mortality rate because it tends to be encyclopedic and far from the product. Brand book PDF, archived Figma page, wiki that no one opens: all of this rots at the speed at which the code changes. My answer, in the current version of the system, was to take the documentation into the product itself. Aero today has a public design system page, theLiving Documentation, which lists the 18 color tokens, the 7 typographic levels, the 8 spacing steps and the 9 components, all rendered with the very --color-* tokens that the interface uses. The rule there is explicit: everything here is a source of truth.
The name is not an embellishment. A living page within the product beats a static document for a structural reason: it cannot lie. If I change the value of a token in :root, the page changes along with it, because it is made of the same components and the same variables that it documents. A PDF shows the system as it was on the day of export; the Living Documentation shows the system as it is now. And it has the side effect of proving the system by use: the page itself is a permanent smoke test of the tokens and components.

Next to the page lives DESIGN_SYSTEM.md, the document that records decisions in prose, organized in sections §1 to §7, from fundamentals to governance. The division of work looked like this: the page shows, the file explains. The real learning from the case is still valid: documenting before building reduces contradictory decisions, because writing “this badge is for flow status, not for categories” before implementing forces me to decide the meaning only once. But now the short documentation has a public address and a rendered brother who won't let her age in silence.
The governance that secures all of this fits into four rules. First: new color is first entered as a CSS variable, never directly in a component. Second: arbitrary values are prohibited, so a bg-[#123456] loose in the code is a sign that a token is missing, not that there was a lack of creativity. Third: new component is created in components/ui/, with variants declared via cva. Fourth, and perhaps most important: every new component is required to appear on the design system page. The latter closes the cycle, because it makes it impossible to create a ghost component. If it is not documented in the Living Documentation, it does not exist.
“A design system is not a library of components. It's an agreement on what decisions have already been made, so you can spend energy on the ones that haven't yet.”
What tools to use?
The workflow is deliberately unglamorous: Figma for exploring and recording, code as the source of truth. There is no automatic synchronization between the two; there are the same names and the discipline of updating one when the other changes. For a team, this would be fragile. For one person, it works because the communication bottleneck is me, and the cost of keeping both sides aligned is less than the cost of setting up and maintaining a token pipeline.
For the same reason, I cut tools that would be obvious in a team: no Storybook, no Tokens Studio, no token publishing pipeline. Storybook would solve a problem that I solved in another way: the Viva Documentation within the product fulfills the role of a navigable catalog of components, with the advantage of using the same tokens and the same build as the real application. Tokens Studio would solve synchronization, which I solve with naming and CSS variables in :root. A good tool is the one that solves a problem you have today, not the one that solves the problem you would have if you were a company of two hundred people. Choosing what not to use is half the work of choosing tools.
The order of work also mattered. My standard cycle was: real problem in the product, exploration in Figma, decision recorded in short documentation, token or component in the code, final screen using what was born. Note that the system is always born driven by the product, never the other way around. In the weeks that I reversed this order and worked “in the system” for sport, I produced beautiful things that the product didn't ask for and I would probably never use. Design system without real demand is a hobby with a corporate name.
What design system mistakes should I avoid?
Looking at my process and the systems I see out there, the same mistakes repeat themselves with almost comical regularity. None of them are runtime errors; they are all errors of scope and order. The pattern behind them all is the same: build for the product you imagine you have, not what's in front of you asking for attention.
- Start with the components. Button is the easy part; without principles and tokens beforehand, each component becomes an island with its own criteria. I drew buttons the first week and threw them all away the third.
- Too many tokens. Fifteen-step grayscale seems whimsical and is cowardly: you are transferring the decision of which gray to use to each screen, forever. Few tokens with clear roles beat many ambiguous tokens.
- System too large for the product. If the product has five flows, the system does not need forty components. System size must follow product size, with little room for growth.
- Decorative color. Every beautiful color without meaning destroys some of the semantic value of the palette. The temptation is constant; the price appears months later, when no one knows what the purple means anymore.
- Documentation that no one reads. If documenting is more work than using the system, the format is wrong. Short, close to code, written before building.
- Variants just in case. Every speculative component that I created “if necessary” became dead weight. The three-rep rule exists to kill that impulse.
What would I do differently?
If I started the Aero system today, knowing what I know, three changes would come out ahead. First: I would name the semantic tokens from day one. I started with appearance names in the first few components and moved to intent names halfway through; The refactoring wasn't tragic, but it was a week I could have spent building the product. The lesson is that the cost of naming it correctly is low at the beginning and increases with each component that is born with the wrong name.
Second: I would draw the error, empty and loading states before the ideal states. Happy design is easy; The difficult part is what happens when the search returns nothing, when the list is empty on the first use, when the network crashes in the middle of saving. I designed these states by reacting to real problems one by one, and each one required screen rework. If I had started with them, the ideal states would have been almost free, because the empty state of a well-thought-out list already defines half of the layout.
Third: it would treat the focus ring and keyboard patterns as first-class tokens and components from the beginning, and not as a consequence of the keyboard-first principle applied later. The Aero's visible focus looked great, but it went through two style iterations because it was born as a detail and not as a token with a name and rule. Today it finally has this status: it became the .focus-ring utility, a 2px outline in brand color, applied via focus-visible to everything that receives focus. In an interface that prides itself on being keyboard-operated, the focus indicator is as much an identity as the action blue, and it deserved to be born that way.
There is a fourth item, less technical and more about posture: I would measure the system from the beginning. Nothing fancy, just writing down where new demands come from and how long it takes me to put together a typical screen. Today I say that the system accelerated the product because I feel that it accelerated, and feeling is a bad advisor. With simple numbers, I would know in advance which parts of the system pay their own cost and which are my vanity dressed up.
How to start your design system today: checklist?
A question I get asked often: how long does it take? In my case, the useful basis (principles, tokens and the first components) came out in about three weeks of distributed work, always driven by real screens of the product. To close the practical part, the path I would recommend to anyone (alone or in a small team) who wants to know how to create a design system without drowning the product in it. Each item fits in one work week or less:
- Write 2-4 principles that answer real questions about your product. If a principle doesn't become a concrete decision, cut it.
- Define the color tokens with intent names: a short neutral base, an action color, a destructive color, and state colors. Nothing decorative.
- Set a short typographic scale with up to two families and three weights, and a spacing scale in multiples of 4px.
- Bring tokens into the code as a single source of truth (CSS variables, Tailwind config), with the semantic layer separated from the primitives.
- Build components only when a pattern repeats three times. Before that, double up without guilt.
- Design and implement all observable states along with the component: hover, focus, disabled, loading, error and empty.
- Document before building: name, when to use, when not to use, and two short do/don'ts per component.
- Choose an anchor component, the most demanding of your product, and use it to validate the entire system.
- Review the system at each product cycle. A small, living system is worth more than a large, abandoned one.
What remains?
A design system is not a project with a due date; It's the habit of making each visual decision once and saving the answer where it can be reused. Aero's continues to evolve along with the product, and that's the metric that matters: how many decisions it saves per week, not how many components it lists. If your system is making you faster and the interface more consistent, it's working, even if it fits on a documentation page.
If I could sum it all up in one sentence for the Lucas of yesteryear, it would be this: start small, name with intention, and let the product drive the system. The reverse order, large system waiting for product, is the right way to the abandoned library museum. Your system doesn't need to impress anyone on Dribbble; It needs to be there, firmly, on any given Tuesday, answering questions before you ask them.
If you want to see how all this looks in the interface, thecomplete Aero caseshows the system applied in real flows, from the command menu to the edit drawer. And if you want to inspect the system piece by piece, theDesign system living documentationis open, with the 18 color tokens, the 7 typographic levels and the 9 components rendered live. If you are structuring the design system of your product and want to exchange an idea, call me atportfolio home page. This is one of my favorite topics, and I always have time to talk about well-named tokens.
