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.
Formatting helpers
src/lib/ui/format.ts: always format money and percentages through these.
Buttons
import { Button } from "@/components/ui"
Small parts
AssetAvatar, ChangePill, RangeTabs, Sparkline from "@/components/ui" and "@/components/price-chart"
Cards and lists
Card, SectionTitle, EmptyState from "@/components/ui"; AssetRow from "@/components/asset-row"
SectionTitle
ActionFTSE All-World ETF
VWCE
€2.43
+0.41%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().
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