Design system
Digi Bank 2026 design system
The tokens and components behind the 2026 rebuild: one night theme, the 2019 palette grown up, with clay-style depth.
How it works
When I rebuilt Digi Bank as a working web app in 2026, I moved its colours, type and clay shadows into one token source, so the Tailwind theme and the Figma file are made from the same values.
One source
Every colour, size, font and shadow is written once, in the open DTCG token format, in tokens/*.json.
Code and Figma
A build turns it into CSS variables and JavaScript for the app, and into Figma variables, text styles and effect styles for the design file.
Proved, not trusted
A check runs on every change: names and references, WCAG contrast for every text and control pair, and no drift between Figma and the code.
Components
Built in Figma on these tokens, each mirroring a component in the code.
Button
Gold for the main action, Blue for a second one and Ghost for a quiet one, each with hover, pressed, focus and disabled.
Clay tile
The raised clay surface for grouped content, with an eyebrow, heading and body.
Semantic colours
What screens use. Each one points at a primitive, so a theme only swaps the pointers.
color/bg/canvasThe night sky behind every screen.color/bg/surfaceClay tiles and cards (.clay).color/bg/raisedGhost buttons and raised rows inside a tile.color/bg/pressedHover on ghost buttons and selected rows.color/text/primaryHeadings and body text.color/text/secondarySupporting text and eyebrows.color/text/on-accentText on gold and blue buttons.color/accent/primaryGold: the main action, the piggy bank and coins. One gold button per screen.color/accent/primary-hoverHover on gold buttons.color/accent/primary-deepGold edges and pressed gold.color/accent/secondaryBlue: secondary actions.color/accent/secondary-hoverHover on blue buttons.color/status/goodMoney in, success and online cards. Always with words or an icon.color/status/errorErrors and money out. Always with words or an icon.color/status/infoNeutral highlights.color/focus/ringKeyboard focus outline, 3 px with a 3 px offset.color/card/leatherThe wallet's leather.color/card/leather-deepThe wallet's stitching and darker leather.Type
Radius
Shadows
shadow/clayThe soft clay depth: an inner highlight, an inner shade and a drop shadow. clay for tiles, clay-sm for buttons, press for the pressed state.
shadow/clay-smThe soft clay depth: an inner highlight, an inner shade and a drop shadow. clay for tiles, clay-sm for buttons, press for the pressed state.
shadow/pressThe soft clay depth: an inner highlight, an inner shade and a drop shadow. clay for tiles, clay-sm for buttons, press for the pressed state.
Contrast
WCAG 2.2 ratios, measured on every build. 4.5 is the minimum for text, 3 for control edges.
| Foreground | Background | Min | Night |
|---|---|---|---|
color.text.primary | color.bg.canvas | 4.5 | 17.56 |
color.text.primary | color.bg.surface | 4.5 | 16.09 |
color.text.primary | color.bg.raised | 4.5 | 13.88 |
color.text.secondary | color.bg.canvas | 4.5 | 10.32 |
color.text.secondary | color.bg.surface | 4.5 | 9.46 |
color.text.secondary | color.bg.raised | 4.5 | 8.16 |
color.status.good | color.bg.canvas | 4.5 | 11.58 |
color.status.good | color.bg.surface | 4.5 | 10.61 |
color.status.good | color.bg.raised | 4.5 | 9.15 |
color.status.error | color.bg.canvas | 4.5 | 8.28 |
color.status.error | color.bg.surface | 4.5 | 7.59 |
color.status.error | color.bg.raised | 4.5 | 6.55 |
color.status.info | color.bg.canvas | 4.5 | 14.55 |
color.status.info | color.bg.surface | 4.5 | 13.34 |
color.status.info | color.bg.raised | 4.5 | 11.50 |
color.text.primary | color.bg.pressed | 4.5 | 11.34 |
color.text.on-accent | color.accent.primary | 4.5 | 12.02 |
color.text.on-accent | color.accent.primary-hover | 4.5 | 13.16 |
color.text.on-accent | color.accent.secondary | 4.5 | 6.75 |
color.text.on-accent | color.accent.secondary-hover | 4.5 | 8.36 |
color.focus.ring | color.bg.canvas | 3 | 14.55 |
color.focus.ring | color.bg.surface | 3 | 13.34 |
Primitives
The raw palette. Screens never use these directly.
color/night/600#26306Acolor/night/700#1A2350color/night/800#111836color/night/900#0A0F24color/night/default#0A0F24color/ink#F3F6FFcolor/mist#B4BEE4color/periwinkle/default#7C93FFcolor/periwinkle/deep#5C7BEAcolor/periwinkle/light#95A7FFcolor/piggy/default#FFC53Dcolor/piggy/deep#E8A317color/piggy/shadow#B87A00color/piggy/light#FFD166color/piggy/pale#FFE08Acolor/mint/default#4BE3A3color/mint/deep#2BB3A0color/coral#FF8A7Acolor/ice#A8ECFFcolor/leather/default#F07A3Ccolor/leather/deep#C4551Fcolor/leather/light#F58A4FDownload
tokens.css (CSS variables) · tokens-studio.json (DTCG, for the Tokens Studio plugin)