Context
The take-home test for the hiring process at Meiuca, a design systems consultancy whose clients include Itaú and Banco BV. Meiuca sent a Figma file with the layout, and the test was to turn it into a design system in code. The project already had two ideas I still use today: tokens as the single source of truth and components that switch brands through configuration.
The Storybook is in Portuguese, as it was built for a Brazilian company.
Problem
Building a small set of components that could serve more than one brand without being copied, documented in a way that someone else could use on their own.
My role
Starting from Meiuca’s Figma, I did everything on my own: the tokens, the components, the Storybook documentation and the visual tests. The code is in the meiuca-test repository on GitHub.
Process
The system has a single path, from value to component:
- One token file as the single source
What I saw
The same color, spacing or font value had to serve both the CSS and the TypeScript code.
What I decidedPut the 86 values, in 12 categories, in a single properties/tokens.json, and let Style Dictionary generate the CSS variables and the TypeScript enum.
WhyEach value lives in one place, and a change reaches the styles and the code at the same time.
- The brand comes in through props
What I saw
The components had to serve more than one brand without being copied.
What I decidedWhatever changes from one brand to another, such as the button color, comes in through props. The base components only read tokens, and the content card is built only from them.
WhyIt’s the same component for another brand, with no duplicated code.
- Visual testing in Storybook
What I saw
In a shared system, a small change can alter how several components look without anyone noticing.
What I decidedDocument each state as a story and compare each story with a reference image, using Loki.
WhyAny visual change shows up before the merge.