← Back to Cuak case study

Design System

Cuak
Visual System

The behavioral design system behind Cuak — color tokens, mascot emotional states, 60/40 zoning architecture, and annotated UI components. Every pixel has a psychological purpose.

Mascot UX Fintech Behavioral Design ESA Framework

Palette built for emotional clarity

Eight of the values published in tokens.json, which is generated from the Figma file. The three status colors are picked by credit usage; the thresholds are a design decision, not measured behavior.

Primary action

--action-primary

#6B43D9

Buttons, links, active tab

App background

--bg-app

#FFF8F1

Cream

Card

--bg-card

#FFFFFF

White

Text primary

--text-primary

#111827

Titles and data

Up to date

--color-status-success

#16A34A

Usage under 50%

Watch your usage

--color-status-warning

#D97706

50% to 79%

Over the safe zone

--color-status-danger

#DC2626

80% or more

Progress

--progress-fill

#40B8AE

Goals, not a status

5 emotional states, 1 behavioral arc

Each state maps to a psychological moment in the user's credit journey. The duck reacts — the user feels seen, not judged.

Cuak waiting state

Waiting — Ready

Trigger: no cards added yet, or app open with no recent activity

Pure potential. No pressure. Cuak waits with expectation — not judgment.

Waiting state
Cuak happy, on track state

Happy — On Track

Trigger: credit usage healthy / improving

Positive reinforcement. Cuak celebrates consistency — the system rewards, not just records.

Core Drive 2: Accomplishment
Cuak watchful state

Watchful — Keep an Eye

Trigger: medium credit usage

Nothing is wrong yet. Cuak pays attention so the user does too.

Cuak worried, at-risk state

Worried — At Risk

Trigger: approaching credit threshold

Loss aversion activated. Cuak's distress makes risk visible and empathetic — not punitive. Most powerful retention state.

Core Drive 8: Loss Aversion
Cuak alert state

Alert — Act Now

Trigger: very high usage, limit maxed out or overdraft risk

Cuak reacts before the user makes the mistake, so the limit arrives as a face rather than a figure.

Core Drive 8: Loss Aversion
Cuak recovery moment after an alert

Sad — Reset (recovery moment)

Trigger: threshold crossed. Sits outside the five states

Emotional cost of loss, followed by resilience. Cuak mourns with the user — then invites them back without shame.

Guilt-free restart

Reference pass, and what got cut

Before the states shown above were finalised, the character went through a reference pass — front, back and a raised-arm gesture — to lock proportions before drafting expressions. Not every take made it in.

Cuak character reference — front view

Front — neutral

Cuak character reference — back view

Back view

Cuak character reference — arms raised gesture

Gesture range

Explored — raised-hand worried
Discarded worried pose with raised hand

Read as alarm, not concern — closer to a warning gesture than an emotional cue. Worked against the "empathetic, not punitive" principle the Worried state is built on (see Annotated UI, below).

→
Final — quiet worried
Final worried state, calmer pose

Same trigger, no gesture. The expression alone carries the state — arms stay down so it reads as concern, not alert.

The 60/40 Zoning Model

Every surface — full screen or home widget — splits 60% data / 40% emotional state. Each zone activates a specific Octalysis Core Drive.

Small 2×2

Progress Focus

60% Credit Data
40% State

Usage % + current emotional state. Minimal surface, maximum signal.

→ Core Drive 2: Accomplishment

Small 2×2

Status Focus

60% Score
40% State

Credit score tier + awareness metric. Contextual identity — who you are financially right now.

→ Core Drive 5: Social Influence

Wide 4×2 — Risk

Urgency Surface

60% Countdown
40% Worried

Real-time countdown to threshold + Worried Cuak. Activates loss aversion passively.

→ Core Drive 8: Loss & Avoidance

Every pixel has a purpose

Strategic annotations connecting each UI element to its psychological function.

1

Mascot proxy

Cuak externalizes financial anxiety into a character — reducing cognitive load. Users process emotion through the duck, not through raw numbers. (Epley & Waytz — Anthropomorphism)

2

Usage % indicator — 60% zone

Credit utilization shown as percentage, not currency. Relative framing reduces anxiety vs absolute debt amounts. Positioned in the dominant 60% data zone.

3

Emotional state color — 40% zone

Status color follows credit usage: green under 50% of the limit, amber from 50 to 79%, red at 80% or more. Purple is the primary action. Visceral-level feedback (Don Norman) — no reading required.

4

Action nudge

Context-aware CTA that changes with emotional state. Cuak suggests — never commands. (Thaler & Sunstein — Nudge Theory)

Core UI components

Reusable components built around the emotional states. Each one has a defined behavioral role.

Emotional State Badge

Waiting On Track At Risk Reset

Color + label encode the current state. Used in widgets, notifications, and cards. Always paired with mascot visual.

Credit Usage Progress Bar

Credit used 42%
Credit used 78%

Determinate progress — communicates exactly where the user stands. The color changes at 50% and at 80% to signal the new state.

Action Card

Cuak suggests

Pay $80 to drop below 30%

Nudge card that appears when usage approaches a threshold. First-person mascot voice — empathetic, not punitive.

Countdown Widget (Urgency)

Payment due

3d 14h

Before Cuak gets worried

Real-time countdown activates Core Drive 8 (Loss Aversion) passively. Lives on home screen widget — visible without opening the app.

Type system

Inter, with 24 role styles named Zone/Variant in the tokens. Six of them:

Display/Brand — 700 · 42px

Cuak

Title/Screen — 700 · 24px

Your credit is doing well

Heading/MD — 700 · 17px

Credit usage: 42%

Body/Regular — 400 · 15px · 130%

You're using 42% of your available credit.

Label/Regular — 400 · 13px · 18px

Under 50% of the limit counts as up to date.

Meta/Strong — 700 · 11px · 1.1px tracking

UP TO DATE

The system behind the screens: Figma, Claude and one JSON file

Cuak's 24 screens were built quickly, from HTML imported into Figma. Every value arrived as a number, not as a token, and the file drifted. This is how I used Claude, connected to Figma through an MCP server, to find the drift, organise the file, turn the design system into tokens, and keep screens and system checked against one JSON file.

figma-console-mcp Claude Code Design tokens (JSON) Lint

Cuak is a concept project. The numbers below are counts from the Figma file and the checks, not user data.

Situation — a file that drifted

The screens came from HTML imports, so colors, radii and sizes landed as literal values. None of it showed while drawing. It showed when two screens sat side by side. Measured on the 390 flow:

151

colors set by hand, not bound to a variable, in the first count

5

different radii on content cards (8, 12, 16, 20, 24)

52

text styles, most of them near-duplicates such as 14.16 Bold and 12.98 SemiBold

2

versions of the same design, at 390 and at 460 wide

10

pages, several empty or from other projects

There was also a hierarchy problem: titles set in the same style as the text under them, as on the Goals card.

Task — one source of truth that a person and Claude can both read

The tokens had to be data, not a picture of data. The checks had to be repeatable, and when something was wrong Claude had to be able to say what and where.

Claude reads the file the way a script would

figma-console-mcp is an MCP server plus a Figma plugin (the Desktop Bridge). Once the plugin is open in a file, Claude can call tools against it: run Plugin API code in the open file, screenshot any node, read comments. I did not build the server. I built the workflow on top of it: read the file, change one thing, screenshot it, and only then move on.

  1. One change at a time.
  2. A screenshot after each.
  3. Nothing deleted without asking.
The 24 screens of Cuak's 390 flow, arranged in order of use
The 24 screens of the 390 flow, in order of use.

Pages and layers

Pages: 10 down to 5. Cover, UX process, Design system, UI mobile, Assets. Pages from other projects were archived, then removed.

Layers. A role/name convention (cta/, card/, chip/, nav/, row/) so a layer says what it is. Sections instead of loose frames, and the 24 screens ordered by use.

One language, one name. All copy in English, the product written Cuak everywhere. A UX process page built from the screens: an 8-step main flow and 13 branch screens.

Six collections, two rules inside them

The design system became variables and text styles in Figma, so a value has a name and a reason instead of a hex.

CollectionContents
Colors27 variables: 21 palette colors and 6 status colors
Semantic28 aliases that say what a color is for: text/primary, bg/card, border/soft
Spacing18 steps plus 9 layout aliases
Radius9 steps, including sheet
Size11 fixed dimensions
Type24 text styles named Zone/Variant: Display, Title, Amount, Heading, Body, Number, Text, Label, Caption, Meta, Micro
The Cuak design system board in Figma: colors, type by zone, components, status colors and semantic tokens
The design system board: colors, type by zone, components, status colors and semantic tokens.

Two rules that live in the system

Hierarchy. A title never shares a text style with the text under it. It is written into the lint, so it no longer depends on anyone remembering it.

Status colors. Credit usage picks the color: under 50% of the limit is green, 50 to 79% is amber, 80% or more is red. Those thresholds are a design decision, not measured behavior.

The JSON is what Claude reads

Figma is where a token is edited. tokens.json is what Claude reads. The generated files are never edited by hand.

Figma variables + styles
   → export script (runs inside Figma)
   → tokens.json + tokens.css      (generated)
   → parity check: do the files and Figma agree?
   → lint: do the screens obey the tokens?
   → report

The JSON follows the W3C design tokens format and has two layers, primitives and semantic. Components use the semantic layer:

"status": {
  "danger": { "$value": "#DC2626", "$type": "color",
              "$description": "Over the safe zone: 80% or more, and costs such as interest" }
}
...
"text": {
  "danger": { "$value": "{color.primitive.status.danger}", "$type": "color" }
}

The first ten rules, and what they missed

These are the ten rules of the first version. They run inside Figma and return findings with the node id. Five are errors, five are warnings. The tool has changed since: it is now its own project, Know your design.

RuleTypeWhat it checks
color-bounderrorEvery fill and stroke is bound to a color variable
text-roleerrorEvery text uses a role style, never a free size
hierarchyerrorA title never shares a style with the text under it
status-colorerrorUsage bars use the color that matches their percentage
overflowerrorNo text leaves the screen or its container
min-text-sizewarningText is at least 10 px
radius-boundwarningCorner radius comes from the radius variables
spacing-boundwarningGap and padding on the scale are bound to variables
back-navwarningScreens outside the top level have a tab bar or a back control
screen-structurewarning390 x 871 frame and a 24 px side margin

When a finding is real, I fix it in Figma. When it is a false positive, I fix the rule: section labels such as "Finance" and "Account" were flagged as titles sharing a style, so the rule now knows what a section label is.

Result

Text styles 52 → 24

Role styles instead of near-duplicates.

Correction. This page said 0 errors and 0 colors set by hand. That was wrong: the lint skipped texts with more than one color. With that fixed, on 25 November 2026 it found hand-set colors in three texts. On 26 November the current tool ran on all 24 screens: the same 6 errors, plus 26 warnings for spacing off the scale and tab bars drawn by hand. Nothing is fixed in Figma yet.

The parity check caught 4 line-height values I had typed by hand into tokens.json; they were regenerated from Figma. The lint also found a radius off the scale, on the sign-in sheet, and it became a token, radius/sheet. How the check was tested and fixed →

What this does not do yet

It has not passed. The three texts with hand-set colors still need fixing in Figma, followed by a new run.

It is not a CI job. It runs through Claude and the MCP server. CI would need the Figma REST API with a token.

Only the 390 flow is linted. The 460-wide test screens are not.

The app does not read these tokens. Its own theme file (apps/mobile/constants/theme.ts, Expo) is not generated from them and differs: radii of 10, 14, 20 and 28 against 8 to 24 here, and a different red.

Next

  1. Generate the app's theme.ts from tokens.json and add a drift check against the current one.
  2. Build the six core components in code (Button, Credit card, List row, Tab bar, Input, Progress bar) and document them in Storybook.
  3. Move the checks to CI.