Building Cognida's Design System
Cognida AIInternal Design System2025

The Problem
Every parallel client project was rebuilding its own buttons, type scale, and color from a blank file, because nothing was shared.
The outcome
263 scoped tokens under a ~1,988-component library, adopted as the default start for every new project — and still in use a year after I stopped maintaining it.

- Faster Project Kickoff
- 40%
- Projects Adopted It
- 8
- Still in Use
- 1 yr+

The Situation
Cognida runs several client and product engagements at once. Design had never been given structure there, and I was the only hands-on product designer, so I was touching most of those projects myself.
The same thing kept happening. No two projects agreed on typography, color, or spacing, because there was nothing to agree with. Every engagement got its own components, drawn from zero.
Nobody asked me to fix this. No ticket, no budget, no line on a roadmap. I started anyway for two reasons: the repeat work was slowing me down personally, and I wanted to learn how tokenization behaves on a real project rather than in a tutorial.
The Real Challenge
The visible symptom was inconsistency. The real cost sat underneath it: starting from a blank file meant re-solving solved problems on every engagement, and every hour spent redrawing an input field was an hour not spent on the work the client was paying for.
Scale mattered as much as consistency. One designer, several projects, no design ops function, nobody to hand maintenance to. Whatever I built had to stay maintainable by exactly one person who also had client work to deliver. That constraint decided almost everything that followed.
There was no user research phase, and calling a literature review research would be dishonest. I read Apple's HIG, Material, Adobe Spectrum, and Atlassian for standard practice on token naming and tier separation, and the useful finding was a negative one: those systems are sized for teams with dedicated design ops. Copying their scope would have produced something impressive in a Figma file that rotted inside a month.
Risk I accepted: with no research and no reviewer, my foundation calls were unvalidated. Checking them against four established systems is convention-matching, not validation.
Key Decisions
Tokens before components. Two ways to start: build visible components immediately, which feels productive, or spend the first stretch on typography, color, and spacing as tokens with nothing presentable to show. I took the token layer first, because components built on hardcoded values have to be rebuilt when the foundation changes, and the foundation always changes. The cost was several days with nothing to demo, on a project nobody had sanctioned.
Scope every token, and name it the way an engineer would type it. Figma will let anyone apply a spacing value to a corner radius, which is how a token system rots without anyone noticing. Each of the 61 global tokens is locked to a single property, so the picker stops offering invalid choices and correct usage becomes the path of least resistance. Each also carries a code name, so Figma's `borderRadius/large` and the stylesheet's `borderRadius.large` are the same token said two ways, and an engineer never has to guess the mapping. That is what made a manual handoff survivable: engineering got names that already matched what they would type, not a file to interpret.

The claim above, made checkable. Note that top and left padding resolve to different tokens - `spacing/3` and `spacing/4` - rather than one padding value applied twice. Scoping is what forces that distinction to be deliberate instead of whatever the picker offered first. Change either token and every input in every project moves with it.
The same field, rebuilt in CSS from the Figma values and taken apart. Hover to open the layers, press 1–4 for its states, and press T to swap the measured pixels for the token names the stylesheet uses.
Atomic order, deliberately truncated. Icons, then buttons and inputs, then composed components, then patterns. The harder decision was where to stop: I cut anything that was standardization for its own sake, because an unused variant still has to be maintained by someone. The library does not cover every case a project might hit, and for a one-person system that is the correct failure mode.

Build order was dependency order. Nothing in a tier could be started until the tier under it was frozen, which is what kept a solo build from turning into a rework loop.
Borrow and rewire rather than draw everything. A meaningful share of the components started as existing UI kit pieces that I customized and wired into Cognida's tokens. Less of this library is bespoke than a portfolio-friendly version of the story would claim. What mattered for reuse was not who drew the rectangle, it was whether every component pulled from the same tokens.
Cutting dark mode and the synced code library. Dark mode and a synced code library were both real asks, and I cut both. The code library was a straightforward time call. Dark mode I recorded as one too, and that was wrong. Geometry and type had a named layer sitting above the raw values; colour did not. Components reached for `borderRadius.large` but reached straight past for `Brand.600`, because for colour there was no name to reach for. That made theming a refactor rather than a switch — an architectural ceiling I set in week one, not a scheduling call. I did not understand that until I audited the file a year later.

The asymmetry in the third column is the whole story. Two decisions that felt identical when I made them; only one set a ceiling.
The asymmetry, in one component. Press T: the radius and padding read as named tokens, and the fill reads as a raw Brand-600, because colour had no named layer to point at.

The cuts were the harder half of the work. Each one was defensible to build, and none would have survived contact with a maintenance budget of zero.
What Shipped
Typography, color, spacing, and a component set running from icons up to composed patterns, organized so a foundation change propagates rather than requiring a screen-by-screen pass.

Type scale, color ramps, spacing, and both icon sets. Everything above this layer references it rather than restating it.

A slice of the library, organized by atomic tier so the dependency order is visible in the file and not just in my head.

States were built where they get used: default, filled, hover, active, disabled. The states are what make a component safe to hand to someone else.
One trigger in the five states it ships with. Each sheet is the real component with everything but one kind of paint turned off, so a state that changes nothing would show here.

A client dashboard from before the system next to one built after it. Same primitives, same spacing logic, no per-project styling decisions.

A concept screen for an agent workspace, built with the library rather than drawn from scratch. Not shipped work. The point of showing it is that a dense product surface comes out of the system with nothing bespoke underneath: the header checkbox, row selection, right-aligned numerics, and the link treatment on the domain column all arrived assembled.
Results
No clean before-and-after metric exists, because nothing was measured before the system and no instrumentation was set up after. What I can state directly:
Two to three client projects have started from the library instead of an empty file. On none of them did anyone rebuild buttons, inputs, or a type scale from scratch.
Engineering received working tokens and component styles with code names attached, which gave them a faster base than an unstyled scaffold.
The system outlived my involvement in any single project, which was the actual goal.
The limitation, stated plainly: this is adoption observed in practice, not a tracked metric. There was no baseline before I started and no tooling afterward. If I ran this again, instrumenting it would be part of the plan rather than an afterthought, even something as crude as logging how long the first styled screen of a new project takes.
What Broke
Ordered by how long each one took to find.
Found in days: components designed against fake data. I built cards, tables, and list items against idealized strings like "John Doe." The moment real client data hit them, long names wrapped hard, overflowed their containers, or collided with adjacent buttons. I rebuilt that whole set against realistic string lengths.

The fix was structural rather than visual: truncation rules and layout constraints inside the component, so the next person cannot reproduce the bug by typing a long name.
The rebuilt row with placeholder data (1) and a real name (2). The text column is allowed to shrink and each line truncates, so the button never moves.
Found in a year: five text styles pointed at the wrong weight. Every `Text * / Semibold`, at every size from 12 to 20, resolved to Inter Regular. Inter Semi Bold was installed the whole time and simply never referenced. Every semibold label and table header built on this system had been rendering a weight lighter than its name promised, for a year and the specimen sheet could never have shown it, because every sample on that sheet is labelled with the name I gave it rather than the weight it renders. A specimen sheet agrees with itself by construction. All five are fixed.
Thirteen Display styles disagree with their names too, but Satoshi ships no Semi Bold, so mapping four rung names onto the four weights that exist is defensible. That one needs renaming or documenting, not quietly changing every heading in every file downstream.
The same audit turned up two gaps that are still open:
The colours have ramps but no rules. All 158 are unscoped and nothing maps a ramp to a meaning. The concept screen above reserves an accent for its AI action and assigns a colour per category, and neither rule is written anywhere. Both live in my head, which is not a system.
There are no data-view states. Look at the empty region under those seven rows in the CogniLab screen. Nothing in the library covers a short list, an empty result, or a failed fetch, so the screen just stops — three of the four states a real data view spends its time in.
Reflection
Taste and structure turned out to be learnable through repetition rather than qualities you either have or do not.
The dark mode call is the one I keep coming back to. Not because cutting it was wrong, with that budget it was the only option, but because I filed it under scheduling for a year when it was architecture. Naming geometry and not naming colour felt like the same size decision on the day I made it. One of them was a preference. The other was a ceiling, and the difference was invisible from inside the week I made it in. That is the failure mode I now look for first: decisions that feel symmetrical but are not.
Two mechanical changes for next time: name every layer while building, and test text-heavy components against realistic data in the first draft.
One change in kind: write the documentation. Every finding in that audit had been sitting in the file for a year, and none of it was hard to spot once someone looked. Nobody looked, because nothing written down told them to, and I could not tell from memory what my own library contained.


