thiago-menezes/ career.fig
PTArticlesRésumé
Case 02 · Digix · PapelZero

A design system for every framework at Digix.

From August 2017 to January 2021 I worked on PapelZero, the main product at Digix. I also worked on a design system written in plain HTML, CSS and JavaScript, so every product could use it no matter what it was built with.

Role
Frontend Engineer and Product Designer
Period
Aug 2017 to Jan 2021, plus a consultancy in 2025
Adoption
Every product team. I built it with the whole development group
Stack
HTML, CSS variables, JavaScript. Next.js in 2025

ProblemThe products used a lot of different frameworks.

Digix products were written in React, Angular, Aurelia, Knockout and Vue, plus some Java and C# frameworks. If we built a component library for one of them, the teams on the other frameworks couldn't use it.

DecisionI didn't tie it to any framework.

The system shipped as plain HTML, CSS and JavaScript. A product used it by writing the markup, so no team had to rewrite anything to adopt it. We built it together with the whole development group, and every team adopted it.

DecisionProducts shared it through CSS variables.

Colors, spacing and type lived in CSS variables that every product could read. When we changed a variable, every product that used it changed with it.

Comment from Thiago
Thiago · note
Plain CSS variables were the one thing all of those stacks could read the same way.

ScreenThe same component in each framework.

Pick a framework to see how a product would write the same field and button. Then change a variable, and the preview changes the same way for all of them because it's the same CSS.

Framework
<div className="ds-field">
  <label htmlFor="proc">Process number</label>
  <input id="proc" className="ds-input" value={proc} onChange={onChange} />
  <button className="ds-button" onClick={submit}>Send for review</button>
</div>
Same CSS for every framework. Only the markup above changes.
--ds-primary

I recreated this with fake data. There's no Digix code, assets or copy here.

PapelZeroProcesses that took months started taking days.

PapelZero moves government processes online and speeds up transfers and funds to city halls. Before it, city halls in the interior had to carry the physical process to the capital, and start over every time something needed a correction.

1 to 7 monthsbefore, for one process from a city hall in the interior, carried by hand
3 to 5 daysafter, for the same processes registered in PapelZero
1 clientwhen I joined. Later there were more across the state and in other states

2025I came back in 2025 for the rewrite.

In 2025 I came back as a consultant for a year and rewrote PapelZero in Next.js, keeping the design system. I ended the consultancy to focus on my English and on moving to the US.

CodeThe variables and one product theme.

/* Simplified example for this page. Not Digix code. */
:root {
  --ds-primary: #2f6fdf;
  --ds-primary-ink: #ffffff;
  --ds-surface: #ffffff;
  --ds-border: #c9d3e6;
  --ds-radius: 6px;
  --ds-space: 12px;
  --ds-font: system-ui, sans-serif;
}

.ds-field {
  display: grid;
  gap: calc(var(--ds-space) / 2);
  font-family: var(--ds-font);
}

.ds-input {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: var(--ds-space);
}

.ds-button {
  background: var(--ds-primary);
  color: var(--ds-primary-ink);
  border-radius: var(--ds-radius);
  padding: var(--ds-space) calc(var(--ds-space) * 2);
}

Simplified and renamed for this page.

Shortcuts

Tab, arrows
Move between frames
Enter
Open a case
Esc
Back to the canvas
L
List view
D
Dev Mode
C
Show or hide comments
R
Résumé
+ / −
Zoom
Shift 1 / 2
Fit all / fit selection