← Back to blog

Trading Platform UI Design: Density, Typography and Colour That Traders Can Read

The design rules behind a readable trading platform UI - information density, numeric typography, a restrained colour system, and motion that stays out of the way.

Oliver Benns
Oliver Benns

Software engineer · Creator of Hedge UI


Most UI design advice is written for products where the user needs to be guided. Generous whitespace, one primary action per screen, large type, progressive disclosure. Apply that advice to a trading platform UI and you get something that looks lovely in a portfolio and that no trader will use, because it shows a third of the information in twice the space.

Trading interfaces follow different rules. The user is an expert, they are scanning rather than reading, and they want everything on screen at once. That does not mean design matters less. It means the design work moves from layout and persuasion to legibility under density: which number is the important one, whether a column of prices can be compared at a glance, whether red means the same thing in every panel.

This post sets out the rules we followed for the Hedge UI demo, with the specific values, and the places where we would make a different call in hindsight. It applies equally to a crypto exchange, a broker UI, or an internal desk tool.

Density is the feature

A trader's screen is a fixed resource. Every pixel given to padding is a pixel not showing a price level. The first design decision is therefore the base size, and it is smaller than you think.

Nearly all text inside the demo's panels is Tailwind's text-xs, which is 12px. Table rows, order book levels, trade prints, tab labels, tooltips, and form inputs all share it. The layout engine's own font size is set to the same token (--font-size: var(--text-xs)) so the docking chrome matches the content. The exceptions are few: the header title, button labels such as Buy and Sell, and the primary value in chart tooltips step up to text-sm.

Row height follows from type size. The order book budgets 24px per level and caps a row at 32px (max-h-8), with py-1 vertical padding. At 24px per row, a panel 500px tall shows nine levels a side. At the 40px rows a general-purpose design system would give you, it shows five.

Two caveats keep density honest:

  • Density is not clutter. Small type works because spacing is consistent and alignment is strict. Twelve-pixel text on an 8px grid with right-aligned numbers is calm. The same text with ragged alignment is noise.
  • 12px is a floor. Below it, legibility drops quickly and you run into accessibility problems for a lot of users. If something needs to be de-emphasised, lower its contrast before you lower its size. The reasoning is in accessibility in trading UIs.

Typography for numbers

A trading UI is mostly numbers, and numbers have typographic needs that prose does not.

Align the decimal point

The single most valuable property of a price column is that the eye can run down it and see magnitude from shape. That requires every value to have the same number of decimal places and to be right-aligned. The demo formats every price and quantity through one helper:

export const formatCurrency = (value: number, precision: number) => { return new Intl.NumberFormat("en-US", { minimumFractionDigits: precision, maximumFractionDigits: precision, }).format(value); };

Setting the minimum and maximum to the same value is the point. 50000 becomes 50,000.00 and 49999.5 becomes 49,999.50, so they stack. The precision comes from the product's tick size, which means BTC/USDT shows two decimals and a low-priced token shows eight, each consistent within its own column.

Use tabular figures

Aligned decimals only line up if every digit is the same width. In a proportional typeface a 1 is narrower than an 8, so a price that ticks from 61,118.11 to 68,888.88 changes width and the column shimmers.

The fix is tabular figures, enabled in CSS with font-variant-numeric: tabular-nums (Tailwind's tabular-nums class) or by using a monospaced face for numbers. Here is an honest gap: the demo uses IBM Plex Sans everywhere and only applies tabular-nums inside chart tooltips, where it came with the shadcn chart component. The order book and tables rely on right alignment and fixed precision alone. It reads well enough that we shipped it, but it is the first thing I would change, and it is a one-class fix per numeric cell.

Separate the value from its unit

A number and its unit are different kinds of information. The value is what the trader reads. The unit is context they already know. The demo renders them as two spans, value in medium weight and unit in the muted foreground colour:

<div className="flex items-baseline gap-1 justify-end"> <span className="font-medium"> {formatCurrency(value, props.row.original.quote.precision)} </span> <span className="text-muted-foreground"> {props.row.original.quote.code} </span> </div>

items-baseline keeps the two on the same text baseline. The same pattern splits a pair like BTC/USDT, with the base asset in the normal foreground and /USDT muted. The eye lands on what varies.

Choosing a typeface

We picked IBM Plex Sans for its clear numerals and its slightly technical character, and set it once as --font-sans. Whatever you choose, test it with the worst case: a column of long numbers at 12px on a low-density monitor. Check that 0 and O, and 1, l, and I, are distinguishable, and that it ships tabular figures.

A restrained colour system

Colour in a trading UI carries meaning, so it has to be rationed. If green means "up" in one place and "selected" in another, it means nothing.

Neutrals do most of the work

The demo's base palette is shadcn's neutral scale, which has zero chroma. In dark mode the background is oklch(0.145 0 0), cards and popovers are oklch(0.205 0 0), and muted surfaces are oklch(0.269 0 0). Borders are white at 10% opacity. Three or four greys, separated by small steps in lightness, are enough to express panels, hover states, and selected tabs.

Keeping the chrome colourless is what lets the semantic colours stand out. The case for dark as the default, and how the tokens flip for a light theme, is in designing dark mode for trading interfaces.

Semantic colours come in pairs

On top of the neutrals there are exactly six custom tokens for market meaning:

TokenDark mode valueUsed for
--bidgreen-950Depth bar fill behind bid rows
--bid-foregroundgreen-400Bid prices, buy-side text, positive change
--askred-950Depth bar fill behind ask rows
--ask-foregroundred-400Ask prices, sell-side text, negative change
--buygreen-500Buy button background
--sellred-500Sell button background

The pairing matters. A background tint and a foreground text colour need different lightness to work together: green-950 is dark enough to sit behind text as a depth bar without competing with it, and green-400 is light enough to read against the dark background. In light mode the pair inverts to green-100 and green-600. Using one green for both jobs gives you either an unreadable bar or a washed-out price.

Buttons get their own tokens because a button is a filled surface with white text, which is a third contrast situation. They were added as buy and sell variants in the button's variant map rather than as one-off class strings, so every buy button in the product is the same green.

How to carry a token set like this across multiple brands is covered in theming and brand customisation with design tokens.

Never rely on colour alone

Roughly one in twelve men has some form of colour vision deficiency, and red versus green is the most common confusion. Every colour-coded value needs a second signal. In the demo, the order book separates sides by position, buy and sell buttons are labelled, the side column in open orders says "Buy" or "Sell" in text, and percentage changes carry a minus sign. Also remember that the convention itself is regional: in several East Asian markets red means up. Making the direction colours tokens rather than hardcoded classes is what makes that a configuration change.

Hierarchy without size

With one type size, hierarchy has to come from somewhere else. The demo uses three levers, in this order:

  1. Contrast. Primary values use the foreground colour. Labels, units, column headers, and unselected tabs use text-muted-foreground. That one distinction does most of the work.
  2. Weight. Values that matter get font-medium. Nothing is bold. In dense small text, bold fills in the counters of the letters and reduces legibility.
  3. Position. The most important number in a row is first or last, never in the middle. In the order book, price is the left column.

The header stat block shows the pattern in miniature: a muted 12px label above a medium-weight 12px value, separated by a 2px gap. There is no size difference between them at all, and the hierarchy is obvious.

Motion: almost none

Animation in a consumer app signals polish. In a trading UI, anything that moves is claiming the trader's attention, and the data is already moving.

The demo removes motion deliberately in several places:

  • Table rows are given transition-none, overriding the hover transition that the stock shadcn table applies. With live prices, a row's content can change mid-transition, and the fade reads as a flicker.
  • The base button style has transition-all removed, with a comment in button-variants.ts noting the change.
  • Both Recharts charts set isAnimationActive={false}. A chart that animates from zero each time the data refreshes makes it look as though the price itself moved.
  • Order book depth bars resize with a transform and no transition, so they snap to the new size.

The one kind of motion worth keeping is change indication, a brief highlight when a value updates, and it should be subtle and respect prefers-reduced-motion. The demo conveys tick direction through colour on the header's last price rather than a flash.

Chrome that recedes

The frame around the data should take as little attention as possible.

  • Splitters are 4px. Wide enough to grab, thin enough to ignore. The layout engine's splitter size is set in one place.
  • Scrollbars are thin and muted. scrollbar-width: thin with the thumb in the muted colour and a transparent track.
  • Tabs are small secondary buttons. Unselected tabs drop to the muted foreground. The close icon only appears on the selected tab, which keeps a row of tabs from becoming a row of crosses.
  • Help is one click away, out of the way. Each panel has a small help icon in its tab bar that opens a popover describing what the panel shows. It costs 32px and saves a support ticket.

The layout system that these controls belong to is described in resizable, dockable panel layouts.

Empty and loading states are part of the design

A dense interface with a blank panel in it looks broken. Every panel needs a designed answer for "no data yet" and "no data at all". The demo uses a centred spinner in a fixed 96px block while loading and a plain "No results." row in empty tables, and a missing value renders as a dash. The fuller treatment, including skeletons and stale indicators, is in connection status, loading, and empty states.

A short checklist

When reviewing a trading platform UI design, these are the questions that find problems fastest:

CheckPass condition
Base type size12 to 13px in data panels, no smaller
Numeric alignmentRight-aligned, fixed decimals, tabular figures
UnitsVisually secondary to values
Colour meaningEach semantic colour has exactly one meaning
Colour independenceEvery coloured signal has a non-colour backup
HierarchyAchieved with contrast and weight before size
MotionNothing animates unless it indicates a change
Empty statesEvery panel has a loading and an empty design

Closing guidance

Good trading UI design is mostly subtraction. One type size, one typeface, a handful of greys, two semantic colours in a few carefully chosen strengths, and no animation you cannot justify. The discipline is what allows the density: when every element follows the same rules, a screen with nine panels and several hundred live numbers still reads as one calm surface.

Start with the numbers. Get a single column of prices to align, at 12px, with units muted and decimals fixed. Most of the rest of the design system follows from doing that one thing properly. For the full inventory of what those panels are, see the anatomy of a trading interface.

Kickstart Your Trading Application

Hedge UI is a React starter kit with production-ready trading components, real-time data handling, and customisable layouts — so you can ship faster.

Get Hedge UI