Excalibrr

Design system, 2024 to 2025

What we did
Assessment, design system, buildThe audit and architecture, the Figma library, the library on Ant Design 5 and three codebases moved onto it
Team
Three from TurboA project lead, a design system specialist and a front-end engineer, with the client’s developers
When
Winter 2024 to 2025From the audit in December 2024 to the library’s 5.0 release on 18 March 2025
Built with
React and FigmaAnt Design 5, Storybook, Tokens Studio and Chromatic

The client’s frontend needed AI and scale, and its design system blocked both.

Excalibrr is the client’s own component library, a wrapper around Ant Design that three codebases are built on. Until it was fixed, the team could not move off an old Ant Design or carry its new scale. We assessed the codebases and the library, chose the central system with the team, proved it in Figma, then built it in code.

Read the full case
The task
Rebuild Excalibrr, the component library under the client’s three codebases, as one central design system on the current Ant Design, so the team could bring AI into its frontend work and carry its new scale.
The scope
The assessment and the architecture, the Figma library, the library’s move to Ant Design 5 and its themes, Storybook, the three codebases carried across, and the QA pass behind them.
On screen
The Figma library from its own file, the library’s components from its own Storybook in its four themes, and the codebases’ pages as captured in 2025, with the names of people covered.

How it ran

The blocker

Three codebases used old Ant Design in thousands of places, often around the library.

The library wrapped an old Ant Design, and 40 of its 47 components were Ant Design underneath. The codebases imported the library, and imported Ant Design straight past it, in thousands of files. Each theme was a stylesheet that pulled in all of Ant Design’s styles. Nothing could move up without everything moving at once.

One button, two ways in

The same button, counted by the files that import it across the three codebases.

ComponentWhere it comes fromFiles
ButtonThe library362
Buttonimported past the libraryAnt Design, used directly160
Imports to check for one button522

The library’s button is Ant Design’s underneath, so both rows had to keep working when Ant Design changed. The same is true of 40 of the library’s 47 components.

Themes

The three codebases registered 26 themes. Each was a stylesheet a component loaded when needed, and each pulled in all of Ant Design’s own styles.

In the markup

A component from the library, Ant Design or its icons is written into a screen in 13,860 places across the three codebases.

What the assessment foundEvery component in use in the three codebases, and the library on the Ant Design it wraps

  • The component library3,022
  • Ant Design, used directly2,533
  • Ant Design icons1,440
  • The codebase's own components
  • Other libraries

The three codebases6,995 file imports of the library, Ant Design or its icons, on one scale

The library, on Ant Design40 of its 47 components are built on Ant Design's, 12 on one and 28 on several

On several of Ant Design's, each with how many28On one, a thin skin12On none7Texto729Button362TagGrid3363232443532333723232322Horizontal674Vertical493TypographyButton160Tag14Dropdown30ConfigProviderPopover94DatePicker58Spin37FormColRow42 more444

Above, the library's components, each as wide as the files in the codebases that use it. Below, the 29 Ant Design components they are built on, each as wide as the files in the codebases that import it directly, past the library.

2,089 of the codebases' 2,533 direct imports of Ant Design are of the 29 components the library is built on.

A block is as big as the files that import it, on one scale across the three codebases. In their markup the library, Ant Design and its icons appear 13,860 times. Under the library, a line is solid where a component imports Ant Design itself and dotted where it reaches it through another of the library's. The order and pace of the fill, and which components light up in turn, are drawn, not recorded.

Assess and architect

An audit of every component in use set what one central system would hold.

Before anything changed, every component in use was listed by where it came from. The client’s team went through the list and marked what the central system would keep, what to drop and what to add later. That system was drawn in Figma first, approved there, and only then built in code.

From the audit to the system

What was in use

1,181 components in two codebases

The codebases’ own828

Ant Design’s icons170

The library’s80

Ant Design’s, used directly45

Other libraries58

What the team chose

Marked on the audit

For the central system81

  • The library’s45
  • Ant Design’s36

To remove21

Nearly all barely used

To add later14

From the codebases’ own

Proved in Figma

Approved before any code

Components in the Figma library174

  • Variables
  • Slots
  • Variants

Colour variables88

In four modes

Built in code

On Ant Design 5

The library on Ant Design 5

Its 5.0 release

Themes of three colours23

Storybook entries planned47

  • The library’s to For the central system, 45 components
  • Ant Design’s, used directly to For the central system, 36 components
  • The library’s to To remove, 20 components
  • The codebases’ own to To add later, 14 components
  • For the central system to Components in the Figma library: drawn first, 81 components
  • Components in the Figma library to The library on Ant Design 5: approved, then built
  • Colour variables to Themes of three colours: one value per mode
  • Components in the Figma library to Storybook entries planned
Every component in use, sorted by where it came from, marked by the team, drawn in Figma, then built.

The Figma library

The team approved the system in Figma first, built on variables, slots and variants.

The library was built in Figma as 174 components with Figma’s current design system features: a variable for every colour, so a theme is one switch; slots that take nested parts the way code does; and variant properties on every component. The team approved it there before any code was written.

The Button set in Figma, 360 variants: pick a colour, type or size and the matching variant comes up.

The library in code

The library was rebuilt on Ant Design 5 to match the approved Figma components.

Once the team had approved the system in Figma, the library moved onto Ant Design 5 and each component took the same properties as its Figma twin, documented and tested in Storybook. These are the library’s own components, running from that Storybook.

The data grid in code: rows ticked, the bulk change bar opened and confirmed, statuses updated in place.

The pages

Pages across three codebases were redesigned on the new components, not only restyled.

The codebases were carried across page by page. Where a page had been packed with small type and colour that meant nothing on its own, it was laid out again with the library’s components: named states, readable cards and the themes from one config.

Two pages of Codebase 1 before and after: the driver schedule, light and dark, and the order details.

The themes

Each theme became three colours in a list, not a stylesheet loaded on demand.

Ant Design 5 takes a theme as a handful of values. So a theme stopped being a stylesheet a component loaded on demand, with all of Ant Design’s styles behind it, and became three colours in a list. The library works out everything else from those three, in every component at once.

Before, choosing a theme ran a chain

One theme as Codebase 1 registered it. The three codebases registered 26 themes this way, on 28 stylesheets.

After, a theme is an entry in a list

The same theme now. The three codebases list 23 themes this way, three colours each, in 11 to 14 lines.

{  display: 'Light',  key: 'light',  isDark: false,  default: true,  colors: {    info: '#002B58',    nav1: '#19304B',    nav2: Color('#19304B').lighten(0.8).hex(),  },  loginLogoImage: LightLoginLogo,  loginBackgroundImage: LightBackground,  loginTransLogoImage: LightTransLogo,}and 10 more lines

The library works out every other colour from these three and hands them to Ant Design, which takes a theme as values. No component loads, and no stylesheet.

Every theme in the three codebases, before and after

  • An old theme stylesheet, as long as its lines
  • All of Ant Design's, imported on top of each
  • A new entry, as long as its lines
  • An old file still in the source

Codebase 1

Before, 4 themes on 4 stylesheets of 28 to 107 lines. After, 2 entries of 13 to 14 lines.

Codebase 2

Before, 12 themes on 13 stylesheets of 31 to 128 lines. After, 10 entries of 11 to 13 lines.

Codebase 3

Before, 10 themes on 11 stylesheets of 31 to 150 lines. After, 11 entries of 11 to 13 lines. Its 11 old theme stylesheets are still in its source beside the list.

The code is copied from Codebase 1, with the library's package scope written @library and its theme key written plainly. Every bar is on one scale of lines. The order and pace of the steps are drawn, not recorded.

Keeping it safe

Pages were checked light and dark, wide and narrow, and their defects fixed.

A move like this fails quietly: a button a shade off, a popover out of place, a table that breaks only in dark mode at a small width. So 67 pages of Codebase 1 were checked full width and small, in light and in dark. 152 issues were logged, and 112 were fixed before the release.

Codebase 1, 67 pages in 16 modules, each to be checked in four states: 58 were checked in all four, 238 of the 268 checks were made, and 152 issues were logged.

  • Four states: full width above, small below, light on the left, dark on the right
  • Fixed 112
  • Style feedback 20
  • Not a regression 12
  • No status 1
  • To do 5
  • Blocked 2

One square for each issue, as the tracker logged it against its page. Red is only what is still open. The tracker keeps no dates, so the issues are not on the timeline below.

The result

One design system now runs three codebases on Ant Design 5, matched in Figma.

The library’s 5.0 release went out on 18 March 2025 with all three codebases on it. From then on the team could design in Figma with components that match the ones in code, see and test each component in Storybook, update Ant Design, and show a new engineer or designer what to use.

The result, in short

Ant Design, under all three codebases

5

from 4.20

Carried across by the library’s 5.0 release on 18 March 2025, with its icons moving from 4 to 5.

A theme

3 colours

from a stylesheet loading all of Ant Design

23 themes in the codebases’ lists, 11 to 14 lines each

Stylesheets in the codebases

16

from 40

43 files of old theme machinery deleted outright

In the Figma library

174

Components with variables in four modes, slots and variants

Pages checked

67

Light and dark, wide and narrow; 152 issues logged, 112 fixed

The same Button in Figma and in code: change its type in one and the other shows the same variant.

Up next

Next case

Crossroads

Read it now