papertrade
HomeInvestActivityNewsAlertsAccount

Portfolio

€0.00

For builders

Design system
Simulated pricesPlay money only. Nothing here is real market data or investment advice.

For builders

Design system

Everything you need to prototype in the same style. Colours live in src/app/globals.css (the @theme block); change a token there and the whole app follows. Components live in src/components. Prefer these over new one-off styles.

Colour tokens

Use them as Tailwind classes: bg-surface, text-muted, border-line, text-gain …

bg

Page background

surface

Cards, panels

surface-2

Inputs, raised elements, hover

line

Borders, dividers

fg

Primary text, primary button

muted

Secondary text, labels

accent

Gold: brand, links, pending things

accent-2

Deep gold, gradient partner

on-accent

Text on gold backgrounds

demo

Demo mode only (banner, controls)

gain

Up, profit, buy — direction only

loss

Down, loss, sell, errors

Typography

Font: Inter. Add the `tabular` class to any number that changes, so digits don't jump.

€11,216.06Displaytext-5xl font-semibold tracking-tightHero numbers: portfolio value, price
InvestTitletext-3xl font-semibold tracking-tightPage titles
Your investmentsHeadingtext-base font-semiboldSection titles (SectionTitle)
Tracks the 500 largest US listed companies.Bodytext-[15px]Rows, descriptions
Available cashLabeltext-xs font-medium text-mutedLabels above values

Formatting helpers

src/lib/ui/format.ts: always format money and percentages through these.

money(1234.5)€1,234.50
price(0.4321)€0.4321
signedMoney(-42.1)−€42.10
pct(0.0345)+3.45%
compactMoney(2_400_000)€2.4M
qty(0.00012345)0.000123

Buttons

import { Button } from "@/components/ui"

Small parts

AssetAvatar, ChangePill, RangeTabs, Sparkline from "@/components/ui" and "@/components/price-chart"

AABTC+2.31%−1.14%+0.00%

Cards and lists

Card, SectionTitle, EmptyState from "@/components/ui"; AssetRow from "@/components/asset-row"

SectionTitle

Action
VW

FTSE All-World ETF

VWCE

€2.43

+0.41%
SAP

SAP

SAP

€1.32

+0.76%

EmptyState

Nothing here yet

Explain what will appear and how to get started.

Charts

PriceChart (line, with markers) and CandleChart (OHLC, volume, indicators). Data from market.history() and market.candles().

Marker
31 DecO €1.88H €1.88L €1.87C €1.88Vol 8.1K
€1.90€2.00€2.10€1.88
5 Dec12 Dec20 Dec27 Dec

Overlays

Sheet from "@/components/sheet" (bottom sheet on phones, dialog on desktop); toast() from "@/lib/ui/toasts"

Principles

What makes it feel like a neobroker app

Numbers first

The most important number is the biggest thing on the screen. Labels are small and muted.

Green and red mean direction

Use gain/loss only for up/down, buy/sell and errors. Never as decoration.

One action per moment

Each screen has one obvious primary button. Everything else is secondary or ghost.

Say it plainly

“Sells when the price drops to €90”, not “STOP SELL TRG 90.00”. Traders are people too.

Show, then confirm

Always show the estimated total and fee before an order is placed.

Simulated, and say so

Never let anyone mistake play money or simulated prices for real ones.

Registered features

src/features/index.ts: add yours there to plug into Home, asset pages, navigation and the clock.

News feed news

Satirical headlines generated from simulated price moves, plus BREAKING news from demo scenarios.

HomeWidget · AssetPanel · nav · Runnerenabled

ESG vibes esg

A comedic, entirely made-up ESG report per asset and for your portfolio (plants, cake and meetings).

HomeWidget · AssetPanelenabled

Price alerts price-alerts

Example feature: get notified when an asset crosses a price.

HomeWidget · AssetPanel · nav · Runnerenabled

HomeInvestActivityNewsAlertsAccount