Work / CrowdFarming

One token system, two densities

How I rebuilt CrowdFarming's design system from the token layer up, so a consumer web app and a data-heavy back office could share one component library without forking it.

Client
CrowdFarming
My role
Design System Designer, owner of the multibrand semantic token layer and the Figma component library
Team
2 frontend engineers (CrowdFarming), 1 frontend engineer (Sngular), 1 system owner and governance lead, and me
Scope
Public web app and back office
Stack
Figma Variables, Style Dictionary, GitHub, CSS custom properties, Angular
The CrowdFarming web app on a phone, showing a listing of small produce boxes.

The challenge

Oliva, CrowdFarming’s design system, had grown alongside the product and was no longer fit for what came next: more than one brand and more than one context. The public web app and the back office have very different needs. One sells to consumers; the other is a dense working tool full of tables and data.

The constraint mattered as much as the goal. The rebuild could not freeze delivery, and it had to keep the knowledge already built into the old system rather than start from zero.

My role

I owned two things end to end: the multibrand semantic token layer and the Figma component library. The audit, design principles, workflow and contribution model were shaped together with the team. Governance was led by the system owner, Sngular built the token engine, and CrowdFarming’s frontend engineers built the Angular library, all from my token structure.

Discovery: core or local?

Before building anything, we audited the foundations and component libraries of both the public web app and the back office. The question for every component was simple: is it core, shared by every product and owned by the system, or local, specific to one product and owned by that team?

That split decided what went into the rebuild. Components still in use stayed; one-off “snowflakes” were either absorbed into a core pattern or left local. It kept the new system small and honest about what it actually had to support.

The key decision: density follows product and breakpoint

The decision I’m proudest of is the token structure itself. The two products are the system’s two brands, and density is not a separate switch: it is built into each product’s values at each breakpoint. So instead of a second, compact set of components for the back office, the semantic layer resolves the right spacing and sizing for whichever product and screen size it is in.

Diagram: base tokens feed semantic tokens, which feed component tokens. Two modes, product and breakpoint, switch the semantic layer. The same components serve the public web app with comfortable spacing and the back office with compact, data-heavy spacing.
Oliva's token architecture: three tiers, two modes.

Base tokens hold the raw options and are unpublished: designers never pick them directly, only through the semantic layer in Foundations. Semantic tokens name intent (surface, text, spacing) and take their values from two modes, product and breakpoint. Components only read semantic and component tokens, so they never need to know which product or screen size they are in.

The back office is data-heavy, so its values are more compact: tighter spacing and sizing that fit more rows and fields on screen. The public web app keeps a more comfortable rhythm. Same components, same names, one library to maintain, and no fork to drift out of sync.

A name that carries its context

Every semantic token reads left to right, from context to state, so anyone can tell where it belongs and what it does:

olivads-light-color-action-content-primary-default
namespace · theme · category · role · type · variant · state

The namespace separates the two products (olivads and olivabackds), and spacing and typography tokens carry the breakpoint in their name, as in olivads-desktop-space-page-padding-md. A base value such as base-color-blue-450 is only ever reached through a name like this.

Slides from the Oliva token documentation: base to semantic mapping, the naming anatomy, fluid typography across breakpoints and page spacing tokens.
From the token documentation: base to semantic mapping, naming anatomy, fluid type and page spacing.

From Figma to code

Figma stays the source of truth, and the path to code is automated, so a token change in design reaches both products without anyone retyping a value.

  1. Tokens are defined as Figma Variables, with collections for base, semantic and component tokens, and modes for product and breakpoint.
  2. They are exported to JSON and versioned in GitHub.
  3. Style Dictionary transforms them into CSS custom properties, one output per product.
  4. The Angular component library consumes those variables, so components never hold raw values.

Rebuilding the Figma library

I rebuilt the library on the new token structure with two rules: QA first, and semantic tokens only. Base tokens aren’t even published to designers, so no component can reference a raw colour or base value. Switching product or breakpoint in Figma changes every component at once, exactly as it will in code.

The rebuild was open to the whole design team rather than done behind closed doors. Designers could follow it, test components as they landed and give feedback through the workflow we had agreed together. Every semantic token is documented in Foundations with its name, value, sample and usage note, per breakpoint.

Foundations documentation in Figma: semantic colour by role, typography for mobile, and page padding and gap tokens.
Foundations in Figma: semantic colour, typography and spacing for mobile.

Outcome

CrowdFarming now ships faster and more consistently across both products. One component library serves the consumer app and the back office, and a change made once in the token layer reaches both.

A token system this structured is also what makes AI-assisted design and code generation reliable: a model can only use a design system well if its decisions are named, layered and machine-readable. That is where my current work on agentic design systems starts.