Case study
Ragnarök
Design System Lead · Lojas Renner · 2021
Ragnarök is a white label design system for Lojas Renner's data products. The concept was born in the UX team; I took everything that comes after Figma into code: components, documentation, packaging, publishing, versioning and handoff.
- Role
- Design System Lead (Figma to code)
- Company
- Lojas Renner · Datalab tribe
- Year
- 2021
- Stack
- React · TypeScript · Sass · Storybook
- Launch
- May 18
Stack
- Storybook
- React
- TypeScript
- Node.js
- Sass
The context
Lojas Renner's Datalab tribe builds data products for an internal audience: people at Renner, Camicado, Ashua and Youcom who make decisions based on analyses. Those products were born straight in code, with no Figma prototyping step, no styleguide and no design system. The result was inconsistent screens, slow deliveries and little engagement from the people using them.
Ragnarök was the answer: a design system designed for many products and many brands (white label), with the ambition of cutting the development time of a new data product in half.
The concept, research and design are by Rodrigo Cibils, the tribe's Chapter Lead and DesignOps, and are documented by him. This case study tells the other half: how that concept became the code engineers use every day.
The concept, in short
To understand the decisions in the code, it helps to summarize what came from design:
- One system, many brands. Tokens vary per business unit (Renner, Camicado, Ashua and Youcom) while components are shared. That is what makes it white label: the same component wears different brands.
- Libraries in three categories. The omnipresent ones (base components and charts) serve everyone; the fragmented ones (tokens and iconography) belong to each unit; the optional ones serve a specific product.
- Starting from what already existed. The component list came from an inventory of the data products in use, with references from mature market systems. Charts build on an existing charting library, and icons come from a generic set, to save time.
- Desktop first. People use the products on laptops and many decisions happen in meetings, so the system was not born mobile first.
- Shared governance. The design system has a guard split between the UX and Software Engineering chapters, with roles and processes for creating, fixing and improving components.
- The name. In Norse mythology, Ragnarök is the battle that ends the world and opens a restart, the image chosen for a new cycle of data products.
My part: from Figma to code
With the concept defined and modeled in Figma, I took over everything that comes after:
- Development. The components in React and TypeScript, with the design tokens as Sass variables, starting from the concept's token types: canvas and grid, spacing, elevation, border, brand, neutral, semantic and support colors, typography and motion.
- Living documentation. A Storybook hub with the guidelines, the documentation of each component and best practices, so the team can use the system without needing a conversation.
- Packaging, publishing and versioning. I packaged, published and versioned the library so products could adopt it.
- Handoff, DesignOps and DevOps. The path between Figma and code, with the process for creating new components and fixing existing ones.
- Usage metrics. Hotjar and Google Analytics, to understand how the system and the products were used.
Results
The hypothetical goal was to cut development time by 50%. On the first chance to use it, a new data product, Ragnarök came close: 53% less development time compared with the last product built the traditional way, and 33% more user engagement. The measurements are recorded in the concept documentation.
- More than 30 reusable components, plus the grid and tokens, adopted by more than two teams.
- Datalab, Renner's decision-support platform, uses the whole system.
- A hiring advantage: two UX people the tribe interviewed, who were in other selection processes, chose the team because it already had a design system.
Lessons
- Show value first. Delivering the design system before heavier processes gave a quick, visible return and made room for a UX culture.
- Engagement weighs more than team size. With the support of the people involved, a design system can be born with a small team, without a specialized consultancy.
- Documentation is part of the product. A system only shortens delivery time if people can use it on their own.
Limits and next steps
- The components were built with the Figma features of the time, such as Auto Layout and variants, before variables and interactive components. Moving to them is a natural evolution.
- Iconography uses a generic set. Each business unit could have its own icons.
- Charts rely on an existing library. Breaking them into micro-components would give designers more freedom to compose charts.
Credit and sources
Concept, discovery, definition and design of Ragnarök: Rodrigo Cibils. The information about the context, the concept decisions and the measurements comes from his documentation, rewritten here from the point of view of the person who took the system into code. The screens and process materials are at the original source.
