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.

  1. One source

    Every colour, size, font and shadow is written once, in the open DTCG token format, in tokens/*.json.

  2. 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.

  3. 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.

80tokens
1theme
12text styles
22contrast pairs checked
6.55:1lowest contrast

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

Display XL60/60 · 600 · Use for the balance on the home screen (text-6xl).
Display L48/48 · 600 · Use for big amounts, such as the piggy bank total (text-5xl).
Display M36/40 · 600 · Use for amounts while sending (text-4xl).
Title30/36 · 600 · Use for screen titles (text-3xl).
Heading24/32 · 600 · Use for card and section headings (text-2xl).
Subheading20/28 · 600 · Use for smaller headings and list titles (text-xl).
Button18/28 · 600 · Use for button labels only (font-display text-lg).
Body L18/28 · 600 · Use for lead text and prominent rows (text-lg).
Body16/24 · 500 · Use for running text (text-base).
Body S14/20 · 500 · Use for supporting text and labels (text-sm).
Caption12/16 · 500 · Use for metadata and fine print (text-xs).
Eyebrow14/20 · 500 · Use for the small uppercase label above a section (.eyebrow). Avoid for more than three words.

Radius

clay · 28px

Shadows

shadow/clay
The 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-sm
The 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/press
The 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.

ForegroundBackgroundMinNight
color.text.primarycolor.bg.canvas4.517.56
color.text.primarycolor.bg.surface4.516.09
color.text.primarycolor.bg.raised4.513.88
color.text.secondarycolor.bg.canvas4.510.32
color.text.secondarycolor.bg.surface4.59.46
color.text.secondarycolor.bg.raised4.58.16
color.status.goodcolor.bg.canvas4.511.58
color.status.goodcolor.bg.surface4.510.61
color.status.goodcolor.bg.raised4.59.15
color.status.errorcolor.bg.canvas4.58.28
color.status.errorcolor.bg.surface4.57.59
color.status.errorcolor.bg.raised4.56.55
color.status.infocolor.bg.canvas4.514.55
color.status.infocolor.bg.surface4.513.34
color.status.infocolor.bg.raised4.511.50
color.text.primarycolor.bg.pressed4.511.34
color.text.on-accentcolor.accent.primary4.512.02
color.text.on-accentcolor.accent.primary-hover4.513.16
color.text.on-accentcolor.accent.secondary4.56.75
color.text.on-accentcolor.accent.secondary-hover4.58.36
color.focus.ringcolor.bg.canvas314.55
color.focus.ringcolor.bg.surface313.34

Primitives

The raw palette. Screens never use these directly.

color/night/600#26306A
color/night/700#1A2350
color/night/800#111836
color/night/900#0A0F24
color/night/default#0A0F24
color/ink#F3F6FF
color/mist#B4BEE4
color/periwinkle/default#7C93FF
color/periwinkle/deep#5C7BEA
color/periwinkle/light#95A7FF
color/piggy/default#FFC53D
color/piggy/deep#E8A317
color/piggy/shadow#B87A00
color/piggy/light#FFD166
color/piggy/pale#FFE08A
color/mint/default#4BE3A3
color/mint/deep#2BB3A0
color/coral#FF8A7A
color/ice#A8ECFF
color/leather/default#F07A3C
color/leather/deep#C4551F
color/leather/light#F58A4F

Download

tokens.css (CSS variables) · tokens-studio.json (DTCG, for the Tokens Studio plugin)