Shipped Work · Carrene · Design system

One Design System, Two Bank Apps

One set of tokens and 14 components, so each bank could look like itself without breaking anything.

RoleUI/UX Designer
CompanyCarrene Corp
Timeline2023 – 2024
PlatformsiOS & Android
Three token layers, primitive to semantic to component, feeding the same buttons, segmented control, code and timer in two themes: Bow Bank in green and Elbow Trust in indigo

My part: I proposed this design system and built it, from the first audit to handoff. A second designer joined later and worked in the same system.

Note: I rebuilt these screens to share them here. The flows and decisions are real.

The short version

I started as the only designer on a team of four. The app had three screens. Then one app became two, every screen had its own colors, and changes got lost. So I built one design system for both apps.

4–5 → 0

color bugs per release

38 → 14

components, after merging

2

apps on one system

13 → 287

variables, in three layers

Why it was needed

The product was a one-time password app for banks, on iOS and Android. It was B2B2C: the banks bought it, their customers used it, and every decision had to clear the bank’s security team and still work for someone standing at an ATM.

It started with three screens and no design system, so everyone set their own colors. Then the biggest bank wanted the app just for itself, the other banks moved into a second app, and front-end and mobile work went from 2 developers to 5. With more hands on more screens, the inconsistencies grew. The same color ended up with different names — primary_first, primaryFirst, or just a hex code — because developers set colors by hand. QA found 4–5 color bugs in every release. So I asked for one week to prove it.

How I built it, step by step

I rebuilt the system in Figma. Bow Bank is the single-bank app, in green. Elbow Trust holds many banks, in indigo. Every step, token and component below comes from that file.

Step 1

Audit: see everything first

I put every screen from both apps side by side, on iOS and Android, cut out every piece — buttons, inputs, cards, text, colors, icons — then sorted them by type and counted how many versions of each one existed.

The audit board: Bow Bank and Elbow Trust screens laid out in rows by flow: setup, app lock, home, cards, settings and support
The audit board. Each row is one app, each column is one flow.
  • The same color had different names, or no name at all.
  • One app had no system at all. The other had one of its own.
  • The two apps had 38 components between them, and many were the same part built twice. System parts like the Android gesture bar are not counted.
Step 2

Group: one component or a variant?

I checked in two directions. Inside one app: does the app match itself? Between the two apps: is this the same part in a different color?

What I sawWhat it becomesExample
Same job and structure, in both appsOne component. Build it first.Button, Top bar, Tab bar
Same job and structure, different colorOne component. The color comes from the theme.Copy button
Same job, different emphasisVariants of one componentButton: Primary, Secondary, Tertiary
Looks alike, different jobSeparate componentsBank badge and Copy chip
Where a part is used decides where it lives, never whether it is one component
Where it is usedWhere it livesExample
Both appsThe shared libraryButton, Input, Code card
One app onlyThe same library. Only that app’s screens use it.Bank badge, in Elbow Trust
Once, and nowhere elseIt stays on the screenThe success icon
DecisionGrouping the components changed navigation in a live app

On Android, Bow Bank used a drawer for four destinations and Elbow Trust used a bottom bar. Material reserves the drawer for five or more, so I proposed the bottom bar for both apps. It shipped in both.

LessonGroup by job and structure, not by how it looks. Decide where it lives after that, not instead of it.
Step 3

Primitives: the raw values

I collected every color from both apps, checked what each one did on screen, and merged the near-duplicates. A primitive has a value but no job yet, so screens never use one directly.

neutral/0#FFFFFF
neutral/100#F2F2F2
neutral/200#E0E0E0
neutral/600#757575
neutral/700#4D4D4D
neutral/900#111111
green/50#E3EDE4
green/100#C8DBCB
green/700#1E5E3E
green/900#0F2E1F
indigo/50#E8EAF6
indigo/100#C5CAE9
indigo/500#3F51B5
indigo/700#303F9F
red/50#FDECEA
red/800#C62828
gold/300#E2C068
  • Grays went from 7 to 6. I merged 9E9E9E into 757575, because 757575 passes text contrast at 4.6:1 and 9E9E9E fails at 2.7:1.
  • Radius is picked by job. The digit box looked like an input, but it only shows the code. So it follows the card radius.
  • Code digits use the system font with tabular digits. They’re read under time pressure, and the countdown changes every second.
The spacing and icon rules
  • Spacing is a 4 px grid: 4, 8, 12, 16, 20, 24, 32, 48. Odd values round up to the next step.
  • Icons are drawn at 24 with a 2 px stroke. Where a platform spec asks for a smaller icon (18 in the Android segmented control, 16 in the Copy button), the instance is resized and the stroke set to 1.5, so the weight still reads the same.
Aa9E9E9E2.7:1
Aa7575754.6:1
1:14.5 · AA7:1

Both grays on white. 9E9E9E sits under the 4.5 line that normal text has to clear. 757575 clears it, with little room to spare. That is why the merge went one way and not the other.

Tabular digits5630expires in 52s
Proportional5630expires in 52s

The same code and countdown, at the size they appear on the phone. With tabular digits every number is the same width. With proportional digits a 1 is narrower than an 8, so the row twitches on every tick — while someone is copying it.

LessonNever merge colors by look alone. Check contrast first.
Step 4

Semantic tokens: names by job

Every primitive gets a job, and components only use these names. The first version followed Material’s role names, which gave both platforms one language but hid two problems: the hex codes were typed straight into those names, and background and surface were both white. So I put the primitives underneath and grouped the names by job — text, surface, border, brand, feedback. background and surface became one name, surface/default, and the light grey behind controls kept a name of its own, surface/subtle. Two names doing one job became one name with one job.

TokenPoints toJob
text/primaryneutral/900Main text
text/secondaryneutral/700Labels people need to read
text/tertiaryneutral/600Hints and captions, on white only
surface/defaultneutral/0Page and card background
surface/subtleneutral/100Fills behind controls
border/defaultneutral/200Dividers and card edges
border/strongneutral/600Input edges, so they pass 3:1
brand/primarygreen/700 · indigo/500Main buttons, top bar, active tab
feedback/warningred/800The last 5 seconds of a code
feedback/errorred/800A wrong activation code, a failed sign-in, passwords that don’t match

10 of the 74 semantic tokens per bank.

Type sizes change per platform, so each name exists twice
TokeniOSAndroidJob
ios/type/body · android/type/bodysize/17size/16Body text
ios/type/label · android/type/labelsize/17size/14Button labels
ios/type/segment-label · android/type/segment-labelsize/13size/14Segmented control
Three rules the names follow
  • Warning and error point to the same primitive, not to each other. feedback/warning and feedback/error both sit on red/800 today. The last 5 seconds of a code is a warning, so when warnings change color later, errors stay where they are.
  • One rule, no exceptions. The gold card chip never changes per bank, but it still gets a token. One rule is easy for engineers to check.
  • Spacing gets tokens only where layout needs them: screen margin 20, section gap 32, list gap 12. Everything else uses the grid directly.
Step 5

Component tokens: only where needed

Most parts use semantic tokens directly. Three get their own: Button, Code card and Timer. A part earns its own tokens when the token it points to changes, not just its value. A button never asks for a color. It asks for a job.

Why three parts, and not the other eleven

The test is not whether a part changes per bank or per platform — nearly all of them do, and a semantic token already carries that. The Code card’s digit points to text/primary in Bow Bank and brand/primary in Elbow Trust. One semantic name cannot hold two different pointers, so the Code card gets its own.

The other eleven parts never do this. The Segmented control’s label is 13 on iOS and 14 on Android, but that difference is already carried one layer down, by ios/type/segment-label and android/type/segment-label, and both banks use those same two names. A platform difference never needs a component token. A bank difference does, once it changes which token a part points at.

3 · Componentbutton/primary/bg
2 · Semanticbrand/primary
1 · Primitivegreen/700 in Bow Bank · indigo/500 in Elbow Trust
3 · Componentios/button/height
2 · Semanticios/control-height
1 · Primitiveheight/50

Not every token is a color. Android has a chain of its own: android/button/height points at android/control-height and lands on 40, where Material puts it.

The names follow one pattern: part, then property, then state. button/primary/bg-pressed is the button, its primary background, when pressed. If you can guess a token’s name before you search for it, the system teaches itself.

The Semantic collection for Bow Bank in Figma: brand, text, surface and border tokens, each pointing to a primitive such as green/700 or neutral/900
Layer 2 in the Figma file: 74 semantic tokens per bank, each pointing to a primitive. No component token points to a primitive.

In total, 13 variables became 287, in five collections: one Primitives shared by both banks, then Semantic and Component for each bank. 63 + (74 × 2) + (38 × 2) = 287.

The other two collections in Figma
The Primitives collection in Figma: 63 variables in groups for neutral, green, indigo, red, gold, bank, space, radius, font, size, height and weight
1 · Primitives: 63 raw values.
The Component collection for Bow Bank in Figma: button tokens for primary, secondary, tertiary and disabled, each pointing to a semantic token such as brand/primary
3 · Component: 38 tokens per bank, each pointing to a semantic token.
Step 6

Components: 38 become 14

I listed every component on both app pages and matched each one to a part from the audit. Platform and bank differences became variants or tokens, not new components.

The component library in Figma: Button in three types and three states for both platforms, Top bar, Code card in large and compact, Card row, Bank badge, Pattern grid, Segmented control, Copy button, Timer as ring and chip, Tab bar, Input as text field and code boxes, List row, Bank tile, and the Code switcher with Password 1 at four digits and Password 2 at six
The library, built on the tokens. Every variant below is in this one place.

The 14: Button, Copy button, Top bar, Tab bar, Code card, Timer, Segmented control, Code switcher, Input, List row, Bank tile, Card row, Bank badge, Pattern grid.

Every variant, component by component
ComponentVariants
ButtonPrimary, Secondary, Tertiary × iOS, Android × Default, Pressed, Disabled
Copy buttonChip, Icon × platform
Top barPlatform × back × action
Tab barPlatform × 3 or 4 tabs × active tab
Code cardLarge, Compact × platform
TimerRing, Chip × Default, Last 5 s × platform
Segmented controlSelected side × platform
Code switcherPassword 1, 2 × platform
InputCode boxes, Text field × platform × Default, Focused
List rowValue, Chevron, Call × platform
Bank tileDefault, Selected
Card rowOne job
Bank badgeOne job
Pattern gridOne job

Large and Compact are picked by the screen, not by the bank. A Home screen holds one bank, so one code can take the space and a toggle chooses between them. A bank list cannot give every row a toggle, so both codes show at once.

  • Platform parts stay native. iOS follows Apple’s guidelines, Android follows Material 3.
  • No component comes from an outside kit. The platform kits stay attached as reference only.
DecisionI swapped one borrowed Material icon that had spread to 11 places

A borrowed component is easy to miss, because on the canvas it looks like any other instance. I swept the whole file and found one left: a check icon from the Material 3 Design Kit, 18×18, inside the Segmented control’s two Android variants. The Code card and the Code switcher nest that control, so they had inherited it too. I swapped both Android variants to this file’s own icon/check: an 18 instance with the stroke set to 1.5 and the color on brand/on-subtle. All 11 uses resolve to it now. The iOS variants have no check, so they were not touched. Then I removed the Simple Design System library. iOS and iPadOS 27 and Material 3 stay attached as reference, and no component depends on an outside kit.

DecisionOnly the Android segmented control gets a check on the selected segment

That is Material 3, and on Android it is also the second cue, because the selection is otherwise a green tint. iOS keeps the sliding white pill, which is already a shape cue, so it gets no check. A second cue is only needed where the first one is color alone.

DecisionTwo parts that could disagree became one Code switcher

The Code card carried a Password 1 / Password 2 tab above the digit boxes, but the tab and the boxes were separate parts with nothing holding them together. The tab could read Password 2 while the row below it still showed the four-digit code. Two independent parts can always disagree, so I merged them: the tab and the row it controls are the same component, and the digit count follows from which password is selected — four for Password 1, six for Password 2. The Segmented control stays a component of its own, because Elbow Trust uses it on screens that have no code on them.

DecisionThe card width was traced off a screenshot, so six digits did not fit

The card was 343 wide — a number traced off a screenshot, not chosen — and six boxes at 56 with a 12 gap come to 396. I set the card to 350, which is what screen-margin 20 leaves on a 390 screen, and let the box width follow the longest code: 56 for four digits, 44 for six, gap fixed at 12 in both. The gap is the token. The box is whatever makes the longest code fit the card, so a seventh digit would not break it.

Measuring that row also found a bug I had not been looking for. The iOS digit boxes were set to hug their contents, so the box holding a 1 was narrower than the box holding an 8 and the whole row changed width with the code. Fixed widths fixed it.

LessonA number you can defend is worth more than a number that happens to look right.
Step 7

Theming: one system, two banks

A bank is a theme: a short list of token values. The Code card is the clearest case. It carries a border token and a shadow token, and each bank sets one of them to none — Bow Bank the shadow, Elbow Trust the border. Same component, same properties, different values. Switch the bank below. The components don’t change. Only the values do.

Showing the Bow Bank theme.

What changesValue nowUsed for
brand/primaryPrimary button, input focus, icons
brand/pressedPrimary button, pressed
brand/subtleSecondary button, timer chip, call button
brand/on-subtleText and icons on the light brand fill
font/brandBank names and headings
code-card/digitThe code itself
Code card edgeHow the card sits on the page

Text, surface, border and feedback colors stay the same. So do spacing, radius, tap areas and all 14 components. The token names are identical in both banks. That is what makes the swap safe.

The riskiest value in the theme is the one that is not a color

font/brand swaps Nunito for Inter, and they are different typefaces with different metrics. It is safe here because brand type runs on bank names and headings only — short strings in containers that can give. The code itself stays on the system font in both banks, so the digits someone reads against a countdown never change shape.

These are the screens from the Figma file, built from the 14 components.

Bow Bank Home screen: green top bar, bank card, Password 1 and 2 tabs, the code in four digit boxes, a Copy chip, a countdown ring at 42 seconds and a four-tab bar
Home
Bow Bank Add card screen: five code boxes with the third focused, a paste field and an Add card button
Add card
Bow Bank Settings screen: list rows for lock timeout, unlock method, help, sync time and version
Settings
Bow Bank Activation screen: a check mark, Card activated, two summary rows and a See my codes button
Activation
Elbow Trust Bank list screen in indigo: three bank cards with a bank badge, a timer chip, codes and Add password buttons
Bank list
Elbow Trust Add new bank screen: five bank tiles with Calgary selected and checked, and a Scan code button
Add new bank
Elbow Trust Enter passwords screen: Calgary Bank, a Password 1 and 2 switch and a focused text field
Enter passwords
Elbow Trust Bank support screen: five banks, each with a phone number and a call button
Bank support

Top: Bow Bank. Bottom: Elbow Trust. Same components, same tokens, two themes.

Step 8

Handoff: iOS and Android

Engineers get three things: the token name in their own language, the platform differences, and the tap areas.

The Bow Bank Home screen on iOS and Android, with five numbered markers: top bar, code digits, copy button, timer and tab bar
One screen, annotated for both platforms. iOS on the left, Android on the right.
The note on each of the five markers
#PartNote for engineers
1Top bariOS: 44 bar, centered title at 17. Android: 64 bar, left title at 22.
2Code digitsSystem font, tabular digits. iOS 34, Android 32. The box width is fixed, and the height grows with larger text settings.
3Copy buttonThe chip is 24 tall, inside the standard tap area.
4TimerCounts down from 60. In the last 5 seconds it turns to feedback/warning and the ring pulses.
5Tab bariOS: the active label is bold. Android: the active tab gets the indicator pill.
Every variable carries its code name, so nobody reads a hex code
Figma variableiOSAndroid
brand/primarybrandPrimarybrand_primary
button/primary/bgbuttonPrimaryBgbutton_primary_bg
ios/type/bodytypeBody (17)—
android/type/body—type_body (16)
ios/touch-targettouchTarget (44)—
android/touch-target—touch_target (48)

Where a value differs by platform, the token is split into an ios/ and an android/ one, so each engineer only sees their own numbers.

A spec for every component

Each component has a spec: its variants, its sizes, and which token goes on which property. Engineers build from the spec, not from a screenshot. This is the Button.

The Button spec, property by property
PropertyTokeniOSAndroid
Fillbutton/primary/bgbrand/primarybrand/primary
Fill, pressedbutton/primary/bg-pressedbrand/pressedbrand/pressed
Fill, disabledbutton/disabled/bgsurface/subtlesurface/subtle
Label colorbutton/primary/labeltext/inversetext/inverse
Heightios/button/height · android/button/height5040
Corner radiusios/button/radius · android/button/radius12Full (pill)
Side paddingbutton/padding-x1616
Label sizeios/type/label · android/type/label1714
Label weightios/type/label-weight · android/type/label-weightSemiboldMedium
Tap areaios/touch-target · android/touch-target44, covered by the 50 height48, around the 40 button

Tokens go straight to code

The tokens leave Figma as one file. The iOS and Android values are generated from it, so nobody retypes a hex code. When a token changes, the change reaches both apps the same way.

tokens.json
"brand": {
  "primary": { "value": "{green.700}" }
},
"button": {
  "primary": {
    "bg": { "value": "{brand.primary}" }
  }
}
iOS
static let green700 = Color(hex: 0x1E5E3E)
static let brandPrimary = green700
static let buttonPrimaryBg = brandPrimary
Android
<color name="green_700">#1E5E3E</color>
<color name="brand_primary">@color/green_700</color>
<color name="button_primary_bg">@color/brand_primary</color>
Step 9

Governance: how it stays alive

The rules. Three layers, one direction: component, semantic, primitive. Name by job, not by look. A new value rounds to the nearest step on the scale first. A part gets component tokens only if it is themed or changes per platform. Platform parts stay native. A token is added to both banks or to neither.

How a change shipped. The team lead approved a new component or token before it went in. Each sprint had a planning and tasking day, and on that day a handoff meeting walked the developers through what was new and why.

The five questions a new component has to get past
  • Can an existing component do this job with a new variant?
  • Does the part repeat in both apps?
  • Does it need a token that doesn’t exist yet? Then that token is added to both banks, with the same name in each.
  • Is it tappable, or does it have states? Then the tap area and a second signal besides color are built in before it ships.
  • Once it is built, it gets a description, and the count in Step 6 is updated.

Working with engineers and the team

The system had to be accepted by two leads first, and then used by five developers.

Getting the yes. My own team lead wasn’t interested, so I took the pros and cons to the mobile team lead instead and showed him it would cut the inconsistencies between the two teams. He gave me one week. I built the color system first. He accepted the plan, and then he convinced my lead.

Changing something already shipped. The audit found Bow Bank using an Android drawer for four destinations while Elbow Trust used a bottom bar. Material reserves the drawer for five or more, so I proposed the bottom bar for both apps. It meant changing navigation in two live apps, and it shipped in both.

Keeping it in use. The team lead approved every new component and token before it went in. Each sprint had a planning and tasking day, and on that day I walked the developers through what was new and why. The tokens left Figma as one file with the iOS and Android names already in it.

Accessibility is built in, not checked at the end

Every rule here lives inside a token or a component, so a screen gets it without anyone remembering to add it.

No state relies on color alone. The selected bank gets a check mark. The active tab gets a bold label or a pill. On Android the selected segment gets a check, because the tint behind it is the only other sign; on iOS the pill does that job. A focused field gets a thicker border and a caret. The timer ring pulses in its last 5 seconds.

Contrast is checked per pair, against the surface the color sits on, before it becomes a token. A gray that failed was merged into one that passed.

Text can grow. The codes and the countdown follow the phone’s text size, and the digit box grows taller with them. Its width is fixed: six digits have to fit a 350 card, so the row is sized for the longest code rather than the largest text.

Copy icon16 icon · 44 tapCopyCopy chip24 tall · 44 tapCall button36 circle · 44 tapContinueButton, Android40 tall · 48 tapDashed outline = tap area
Drawn to scale. The visible control and the area a thumb can hit are two different numbers, and the second one lives in the component — ios/touch-target at 44 and android/touch-target at 48. A designer placing a Copy icon gets the target without measuring anything.
The Timer component in all eight variants: the ring at 42 seconds in green and at 4 seconds with a short red arc, on iOS and Android, then the chip at 52 seconds and at 4 seconds for both platforms
The Timer’s two states. Default and Last 5 s are variants of one component, so any screen that uses the Timer gets the warning state, the shrinking arc and the pulse without rebuilding them.
Every pair, with its contrast ratio
PairContrastNeeds
White label on brand/primary, Bow Bank7.7:14.5:1
White label on brand/primary, Elbow Trust6.87:14.5:1
text/secondary on white8.45:14.5:1
text/tertiary on white4.61:14.5:1
feedback/warning on white5.62:14.5:1
border/strong on white, input edge4.61:13:1

text/tertiary is only allowed on white. On the light gray surface it drops to 4.12:1, so text/secondary is used there.

Step 10

Results

Color bugs went from 4–5 per release to zero

One place for colors, not one per screen. When a color changed, it changed everywhere.

One system ran across both apps

Same names, same components, same flows. Only the values changed per bank.

Another designer built a new theme with it

Later, another designer used the system to make a new purple theme for a redesign. Same names, same components, a new look. That was the real test.

Developers got names, not hex codes

Every screen I handed off pointed to tokens. The whole team spoke one language.

Reflection

Prove it small first. I didn’t ask for a design system. I asked for one week, and I built only the color system. A small thing that works is easier to say yes to than a big plan.

One rule is easier to keep than ten. Components only use semantic tokens, with no exceptions. A rule with no exceptions is one engineers can check on their own, without asking me.

Start accessibility in the audit. Contrast got checked pair by pair while I was making the primitives, but color-only states and small tap areas only came up once I was building components. Today I’d look for both in the audit, not after. And never write “nothing” in an audit until you’ve checked every layer — look at the middle of the screen, not only the frame around it.

Five things I’d improve in it today
  • Themes as modes. Today each bank has its own collection, with the same token names in both. In one collection with a mode per bank, those names would live in one place and switching a bank would be a click on the frame.
  • Test large text on real phones. The digit boxes now grow with the text. I’d check the Home screen at the largest text size on both platforms.
  • Dark mode. Every color already goes through a semantic token, so a dark theme is a new list of values, not new components.
  • An error state on the Input. feedback/error exists as a token, but no component uses it. A wrong activation code has a color and nowhere to show it, and a system should not carry a token with no home.
  • Screen reader names. I’d write the spoken label for each component into its spec, next to the tokens.

Want to talk about design systems? I’m happy to walk through the tokens, the theming or the handoff. Email me.

More shipped work

Bow Bank Mobile Token 

The flows and product decisions: a big countdown ring that turns red, one card at a time, and activation without a SIM card.