Design system
Colour, type, spacing, motion, charts and components used on this site. Values are read from the source files.
Colour
Dark only. Greys are tinted toward the accent. Tokens are defined under @theme in src/app/globals.css.
Ramps
Each step, with its token and value.
grey
- grey-50#f8fafc
- grey-100#e9edf1
- grey-200#d0d6dd
- grey-300#acb5be
- grey-400#8a949e
- grey-500#646b73
- grey-600#42474c
- grey-700#2f3337
- grey-750#25292c
- grey-800#1e2124
- grey-850#181b1e
- grey-900#121417
- grey-950#0c0e10
accent
- accent-50#e6fef7
- accent-100#c9fdef
- accent-200#99fae2
- accent-300#66f5d4
- accent-400#31edc4
- accent-500#1ad1ac
- accent-600#1a9e86
- accent-700#176e5f
- accent-800#10463e
- accent-900#0a2925
peri
- peri-200#cbd2fb
- peri-300#adb7f5
- peri-400#909cea
- peri-500#707ed7
- peri-600#4c5bbd
- peri-700#374181
- peri-800#24294c
- peri-900#171a31
amber
- amber-400#f3bc5e
- amber-900#322611
sky
- sky-400#5ec1f3
- sky-900#112732
rose
- rose-400#f288af
- rose-900#321520
coral
- coral-300#fba193
- coral-400#f7806e
- coral-900#341814
Surfaces and lines
Surfaces step lighter as they come forward.
- sunkenSidebar, sheet#0c0e10grey-950
- pagePage background#121417grey-900
- wellInputs, segmented track, formula blocks#181b1egrey-850
- cardCards and tiles#1e2124grey-800
- raisedSelected control, row hover#25292cgrey-750
- controlRaised control face, scorecard lead cell#2f3337grey-700
- lineGridlines, row dividers#31363a
- line-strongAxis baselines#42474d
Text
Contrast is measured against the card surface. Anything that carries information is ink‑3 or brighter.
- inkFigures, titles13.7:1Meets 4.5:1
- ink-2Body text, tile labels, legends9.5:1Meets 4.5:1
- ink-3Notes, footnotes, axis ticks, table headers6.7:1Meets 4.5:1
- ink-4Empty-value dashes, placeholders, disabled controls4.7:1Meets 4.5:1
Accent and series
Colour follows the entity. Text never wears a series colour; a dot beside the label carries identity.
- accent#31edc4QFEX, the primary series, up
- peri#909ceaSecond series, trade.xyz
- amber#f3bc5eCommodities
- sky#5ec1f3Indices
- rose#f288afCurrencies
- up#31edc4Positive change
- down#f7806eNegative change, with an arrow or sign
Chart colour
Defined in src/components/charts/tremor/chartColors.ts and src/lib/series.ts.
Series keys
The keys a chart accepts, and the token each one draws with.
- accentaccent-400 #31edc4
- periperi-400 #909cea
- amberamber-400 #f3bc5e
- skysky-400 #5ec1f3
- roserose-400 #f288af
- silvergrey-300 #acb5be
- steelgrey-500 #646b73
- faintgrey-600 #42474c
- accentDimaccent-700 #176e5f
- downcoral-400 #f7806e
Asset classes
Fixed order. A filter never repaints what is left.
- US stocksaccentaccent-400 #31edc4
- World stocksperiperi-400 #909cea
- Commoditiesamberamber-400 #f3bc5e
- Indicesskysky-400 #5ec1f3
- Currenciesroserose-400 #f288af
Venues
QFEX and trade.xyz carry colour. The rest are grey, lightest first.
- QFEXaccentaccent-400 #31edc4
- trade.xyzperiperi-400 #909cea
- Ostiumsilvergrey-300 #acb5be
- Lightersteelgrey-500 #646b73
- Variationalfaintgrey-600 #42474c
Sessions
From the reference market open to the furthest from it.
- Opengrey-500 #646b73
- Extendedaccent-700 #176e5f
- Overnightaccent-500 #1ad1ac
- Weekendaccent-300 #66f5d4
- Holidayperi-400 #909cea
Heatmap scale
Seven viridis steps, as drawn: each step is mixed 85% toward the grey‑750 surface. Low to high.
#482475 #3b528b #2a788e #1f988b #44bf70 #9bd93c #fde725
The busiest cell carries the peak shadow.
Positive and negative
Up is the accent, down is coral. Always with an arrow or a sign.
Type
Inter, variable, with the optical‑size axis. Tabular figures (.num) in columns; proportional lining figures (.fig) for standalone numbers.
Scale
Size, line height and tracking as rendered.
- 3xl44 / 48px, -0.035emLead figure
$184M
- 2xl32 / 36px, -0.028emKPI figures
$184M
- xl24 / 30px, -0.021emPage title
Open interest
- lg20 / 28px, -0.017emIn-card stats, section titles
Open interest
- md16 / 24px, -0.011emCard titles, page description
Open interest
- base14 / 22px, -0.003emBody, nav
Open interest
- sm13 / 20px, 0Table cells, ledes
Open interest
- xs12 / 16px, 0.005emNotes, legends, ticks, axis units
Open interest
- 2xs10 / 14px, 0.01em
Open interest
Dashboard text
Weights 400, 500 and 600. Figures are one string at one size, weight and colour.
Open interest 400
Open interest 500
Open interest 600
Proportional (.fig)
$184M
1.8 bps
3.88%
−5.56 pts
Tabular (.num)
$184M
1.8 bps
3.88%
−5.56 pts
AAPL-USD
XAU-USD
NVDA-USD
vs previous 30 days
Space and depth
Spacing uses a 4px base. Light comes from above: each elevation is a top highlight plus a shadow that deepens with height.
Spacing
Steps in use, in px.
- 1 · 4px
- 2 · 8px
- 3 · 12px
- 4 · 16px
- 6 · 24px
- 8 · 32px
- 12 · 48px
- 16 · 64px
- 24 · 96px
Radius
Bars use 2, controls 12, cards 22.
- xs · 2px
- sm · 6px
- md · 8px
- lg · 12px
- xl · 16px
- 2xl · 22px
Elevation
Shadow tokens, flattest first.
- e0Well: inputs, track
- e1Card
- e2Raised control
- e3Popover
- e4Sheet
- liftCard under the pointer
- heroLead tile of a page
- peakBusiest heatmap cell
- thumbSelected segment
Motion
Entrances play once. Hover changes are opacity only. Everything stops under reduced motion.
Easing and duration
Tokens from globals.css.
- outcubic-bezier(0.23, 1, 0.32, 1)
- drawercubic-bezier(0.32, 0.72, 0, 1)
- dur-press140ms
- dur-fast160ms
- dur-draw900ms
- enterenter 280ms cubic-bezier(0.23, 1, 0.32, 1) both
- fadefade 240ms cubic-bezier(0.23, 1, 0.32, 1) both
- pulse-softpulse-soft 800ms cubic-bezier(0.45, 0, 0.55, 1) infinite alternate
Demo
Moves a block with the chosen curve and duration.
Full motion is on.
Components
Live examples with fixed sample data. Each shows its import path.
Card
Container for one subject, with a title, lede, unit line and footnote.
Volume, 30 days
Daily dollar volume across all markets.
Unit: $M
Footnotes say one thing the chart cannot.
Import
import { Card } from '@/components/ui/card'Kpi, Stat
A tile for one figure with its change, and a smaller in‑card stat.
Volume, 30 days
$184MOpen interest
$31.2M
Long side only
Active markets
237
Import
import { Kpi, Stat } from '@/components/ui/kpi'Figure
A formatted number at one size, weight and colour.
Import
import { Figure } from '@/components/ui/figure'Delta
A signed change with an arrow, as a chip or plain.
Import
import { Delta } from '@/components/ui/delta'SessionBadge, ClassTag
Session and asset class labels with their marks.
Import
import { SessionBadge, ClassTag } from '@/components/ui/badge'Segmented, Chips
Single‑choice controls: a segmented control for views, chips for filters.
Import
import { Segmented } from '@/components/ui/segmented'
import { Chips, Chip } from '@/components/ui/controls'Hint
A short explanation on hover, focus or tap.
Open interest
Import
import { Hint } from '@/components/ui/hint'Legend
Series keys, as dots or line marks.
- QFEX3.9%
- trade.xyz96.1%
- 7-day average
Import
import { Legend } from '@/components/ui/legend'CategoryBar
One bar split into shares that add up to 100.
Import
import { CategoryBar } from '@/components/ui/category-bar'Gauge
A share of a whole on a 270 degree arc.
Import
import { Gauge } from '@/components/ui/gauge'BarList
Ranked rows with a value and a capped bar.
- 1AAPL-USD90%
- 2NVDA-USD62%
- 3XAU-USD44%
- 4TSLA-USD31%
Import
import { BarList } from '@/components/ui/bar-list'DataTable
A sortable table with a sticky header and fixed column widths.
| Market | Volume | Open interest | Change |
|---|---|---|---|
| NVDA-USD | $21.9M | $5.60M | Down−3.2% |
| TSLA-USD | $15.3M | $2.80M | Up+21.7% |
| AAPL-USD | $12.4M | $3.10M | Up+8.4% |
| XAU-USD | $9.70M | $4.20M | No change0.0% |
| SPX-USD | $6.10M | $1.90M | Down−12.5% |
Import
import { DataTable } from '@/components/ui/data-table'TimeChart
Capped bars, stacks, lines and areas over dates, with a legend and tooltip.
Unit: $M
Import
import { TimeChart } from '@/components/charts/time-series'TimeChart
Capped bars, stacks, lines and areas over dates, with a legend and tooltip.
- QFEX
- trade.xyz
Unit: $M
Import
import { TimeChart } from '@/components/charts/time-series'Heatmap
Hour‑of‑week grid, seven rows by 24 columns, in New York time.
Import
import { Heatmap } from '@/components/charts/heatmap'Spark
A word‑sized line or bar chart with no axes.
Import
import { Spark } from '@/components/charts/spark'States
What a section shows while it loads, when it has nothing, and when it fails. Pictograms are from the Carbon set, in grey‑500.
Pictograms
One mark per card or tile subject, one per chart form, and one per empty state kind. On a card or tile the mark is engraved in the top right corner, as on the Card and Kpi samples above. A state mark is a plain line.
- calendar
- calendarEvent
- night
- clock
- scales
- globe
- trophy
- bank
- volume
- contracts
- launch
- fees
- price
- prices
- medal
- median
- weighted
- treasury
- pays
- target
- bars
- line
- share
- histogram
- scatter
- unavailable
- none
- search
- error
- notFound
- sm
- md
- lg
- xl
State marks: lg 48 and xl 64 px. CardMark draws a card or tile mark at 36 px with a doubled line, cropped to its ink.
Import
import { Pictogram, statePictograms } from '@/components/ui/pictogram'
import { CardMark } from '@/components/ui/card-pictograms'Empty and error
Each kind says what happened and what the reader can do. Pass kind, and an action where there is one.
kind="unavailable"
No data for this section
The source returned no data on the last update. This section is checked again every hour.
kind="none"
No data for this range
No values were recorded in this range. Try a wider range.
kind="search"
No matching rows
Clear the search or choose another filter.
kind="error"
Could not load this page
The data snapshot failed to load; try again now or after the next hourly update.
kind="notFound"
Page not found
This URL does not match a page; check the address or return to Overview.
Import
import { Empty, Button } from '@/components/ui/empty'Loading
Placeholders have the shape and size of what they stand for, so nothing moves when the content arrives. They appear after 240 ms, pulse in opacity only, and stay still under reduced motion.
KpiBones
CardBones with BarListBones
CardBones with PlotBones
CardBones flush with TableBones
CardBones with HeatBones
Import
import { CardBones, KpiBones, PlotBones, TableBones } from '@/components/ui/skeleton'