
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
2024 to 2025
- December 2024The auditEvery component in use in two of the codebases was listed by where it came from.
- December 2024FigmaThe Figma library’s colours were set up as variables and walked through with the team.
- January 2025The libraryThe themes came out of their stylesheets on 11 January, and the library moved onto Ant Design 5.
- January to MarchThe codebasesCodebase 3 moved from 14 January, Codebase 1 on 28 January and Codebase 2 on 22 February.
- February and MarchQAThe pages of Codebase 1 were checked in four states, and the fixes landed from 10 February to 28 March.
- 18 March 2025The releaseThe library’s 5.0 release went out, with all three codebases on it.
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.
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 found
- The component library3,022
- Ant Design, used directly2,533
- Ant Design icons1,440
- The codebase's own components
- Other libraries
The three codebases
Codebase 1
Codebase 2
Codebase 3
The library, on Ant Design
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
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 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 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.


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.
A registration loads a component on demand 6 to 9 lines
LIGHT_MODE: { display: 'Light', key: 'LIGHT_MODE', ThemeImportComponent: React.lazy(() => import('./Themes/Light/Light')), default: true, isDark: false, loginImage: defaultLogin,}and 7 more linesThe component only imports a stylesheet 5 to 10 lines
import React from 'react'import './light-theme.less'import '@library/ui/dist/index.css' const Light = () => <React.Fragment />export default Lightand 4 more linesThe stylesheet first imports all of Ant Design's 28 to 150 lines of its own
// light-theme.less @import 'antd/es/style/color/colorPalette.less';@import 'antd/dist/antd.less';@import 'antd/es/style/themes/default.less'; /*** Theme YOUR Colors here!! **/ @bg-1: #ffffff;@bg-2: #f8f9fa;@bg-3: #eef0f8; @theme-color-1: #102643;@theme-color-2: #76abf3;@theme-color-3: #bf2a45;@theme-color-4: #725ac1;@theme-optimal: #c79c02;and 10 more linesAll of Ant Design's styles, compiled again for this one theme
Not measured, so drawn without a size
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 linesThe 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
Codebase 2
Codebase 3
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
Admin20 pages
- Dwell Management
- Route ManagementNo issues
- Assessorials
- Point to PointNo issues
- Rates
- Surcharges
- Cards
- Depot
- Market
- Terminal
- Product
- Sites
- Tank
- Tank Strategy
- Tank Transition
- Counterparty
- User
- TractorNo issues
- Trailer
- Trailer ConfigNo issues
Analytics / Reportingfour pages
- Events
- ForecastNo issues
- Order Audit Report
- SalesNo issues
Backhaul Ordersone page
- Backhaul Modal
Carrier Portalone page
- Third Party Dispatch Modal
Driver Management13 pages
- AnalyticsBlocked, not checked
- Carding
- Credentials
- Driver Info
- FormsNo issues
- Resource PlannerNo issues
- Schedule
- Payroll Report
- Special Pay Requests
- Automatic Pay Config
- Pay Mileage BandsNo issues
- Special Pay ConfigNo issues
- Special Pay Overrides
Excel Uploaderone page
- Upload Status Modal
Freightone page
- Freight Line ItemsBlocked, not checked
Globalone page
- Control Panel
Inventorytwo pages
- Costing
- Swing Report
Model Managementthree pages
- Model Optimizer
- Supply Log
- Tank MonitorNo issues
Movementstwo pages
- Order Movements
- Site BOLs
Order Dispatchtwo pages
- Dispatch14
- Operations RequestsNo issues
Order Managementthree pages
- All
- Carrier Dispatch
- Order Requests
Order Wizardone page
- Order Modal10
Site Monitoringthree pages
- Dashboard
- Forecast Management
- Store Details
Supply / Directivesnine pages
- Intraday View
- Legacy View
- Supply View
- Best Supply By TankNot checked
- Load Number OverridesNo issues
- Load NumbersNo issues
- Supply Management
- Supply Report
- Tank Supply Defaults
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

