rgourley/financial-ui-suite/financial-ui-patterns
Claude Code and agent skill by rgourley/financial-ui-suite
- community
Checking that the SKILL.md file is still in the repository.
Use when building any UI that displays prices, P&L, holdings, orders, trades, charts, order books, watchlists, or streaming market data. Covers patterns from Kraken, Coinbase, TradingView, Bloomberg, Robinhood. Read before writing JSX for any financial surface.
Install
npx vskill@latest install rgourley/financial-ui-suite/financial-ui-patternsSKILL.md
The same SKILL.md was published earlier as rgourley/financial-ui-suite/financial-ui-patterns.
Financial UI Patterns
Overview
Generic AI output for financial UIs fails in predictable ways: raw color values instead of design tokens, jittery non-tabular numbers, no decimal alignment, missing tick-flash on updates, hard-coded dark theme, broken Tailwind dynamic classes, no streaming/staleness states, no accessibility for color-blind users.
This skill codifies the patterns that production trading UIs (Kraken, Coinbase, TradingView, Bloomberg Terminal, Robinhood, Binance) actually ship.
Core principle: numbers must be legible, aligned, and trustworthy. Color is a signal, not decoration. Latency must be visible. Every digit shift is a failure.
When to Use
- Tables with prices, P&L, holdings, positions, orders, fills, trades
- Order books, depth charts, ladders
- Watchlists, tickers, market overviews
- Streaming/live data of any kind
- Portfolio screens, transaction history
- Charts with OHLC, candlesticks, sparklines
- Any UI showing money, percentages, basis points, or quantities
Don't use for: marketing pages, blog posts, generic product UI without numbers.
Quick Reference
| Concern | Rule | |
|---|---|---|
| Number rendering | Always tabular-nums. Never let digits reflow. | |
| Number alignment | Right-align in tables. Decimal-align when precision varies. | |
| Ticker/ID display | Use font-mono (JetBrains Mono, Roboto Mono, IBM Plex Mono). | |
| Colors | Semantic tokens only (text-positive, text-negative). Never text-green-500. | |
| Theme | Light + dark via CSS variables. Never hard-code surface colors. | |
| Tick flash | 300-500ms tinted background on price update. CSS only, no JS animation. | |
| P&L sign | Always show + for positive returns. - is automatic on negatives. | |
| Tailwind dynamic | NEVER bg-${color}-500/10. Use static class maps. | |
| Streaming state | Show connecting / live / stale / disconnected explicitly. | |
| Accessibility | Pair color with icon, position, or shape. Never color alone. | |
| Decimals | Crypto: dynamic precision by price magnitude. Stocks: 2 dp. FX: 4-5 dp. | |
| Large numbers | Compact notation (1.2B, 847M) for caps/volume, not for prices/balances. | |
| Density | Default to compact. 32-40px row height in tables. 24-28px in order books. |
Required Reading
| File | When to load | |
|---|---|---|
references/typography-and-color.md | Designing any financial surface from scratch | |
references/number-formatting.md | Implementing any price/quantity/percentage display | |
references/components.md | Building tables, order books, tickers, charts | |
references/streaming-and-state.md | Live data, WebSocket UIs, tick-flash, staleness | |
references/accessibility.md | Any production UI (always) | |
references/mobile-and-responsive.md | Targeting phones/tablets, responsive tables, bottom sheets, touch interactions | |
references/industry-patterns.md | Want specific references from Kraken/Coinbase/TradingView/Bloomberg | |
references/charts-and-candles.md | Building any chart (candles, OHLC, line, volume, indicators) | |
references/loading-and-skeletons.md | First-load and reconnect treatments for tables, order books, charts | |
references/empty-and-error-states.md | Empty positions/orders, rejected orders, market closed, rate-limit copy | |
references/timestamps-and-timezones.md | Trade times, "as of" stamps, multi-TZ status bar, ms precision rules | |
references/virtualization.md | Tables over 100 streaming rows, trades tape, sticky headers, row memoization | |
references/chart-interactions.md | Crosshair, zoom/pan, drawing tools, multi-pane stacks, number animations | |
references/order-entry-and-lifecycle.md | Order forms, types (market/limit/stop/bracket/OCO), preview-then-submit, pending→filled states, time-and-sales | |
references/alerts-and-disclosures.md | Price alerts, fill notifications, escalation rules, PDT/wash-sale/options/restricted-symbol disclosures | |
references/data-sources-and-freshness.md | Real-time/delayed/stale/frozen/disconnected chain, source chips (CBOE, NBBO), multi-account context | |
references/heatmaps-and-density-viz.md | Sector heatmaps, options chain color scales, IV surfaces, correlation grids |
Core Pattern: Numbers
The single most important fix vs. generic AI output:
Three failures the bad version causes:
- Width changes when value goes from
9.99%to10.00%— the entire row reflows text-green-500breaks light theme and ignores any design system- No
+prefix means positive and zero look identical at a glance
Core Pattern: Color Tokens
Define semantic colors via CSS variables, expose via Tailwind, never use raw color values in components.
Tailwind v3 form (tailwind.config.ts):
Tailwind v4 form (in your CSS, no config file needed):
Core Pattern: Tick Flash
When a price updates, briefly tint the background. CSS only. Robinhood, Coinbase, and TradingView all use this.
Why this beats animation libraries: zero JS during the flash, scales to hundreds of cells, no jank on heavy WebSocket traffic.
Core Pattern: Decimal Alignment
tabular-nums aligns digit positions but does not align decimal points across different-magnitude values. Two fixes:
Option A — pad with hair spaces (Bloomberg approach):
Option B — fixed-width columns with right-align (TradingView approach):
Use B by default. Use A only when values must fit in flowing text.
Common Mistakes
| Mistake | Why it breaks | Fix | |
|---|---|---|---|
text-green-500 / text-red-500 | Doesn't respect theme, no light/dark, generic look | Semantic tokens: text-positive / text-negative | |
bg-${color}-500/10 dynamic class | Tailwind JIT strips it, renders without bg | Static class map: { up: "bg-positive/10", down: "bg-negative/10" }[dir] | |
font-medium numbers without tabular-nums | Digits shift width on every update | Always pair tabular-nums with any updating number | |
Hard-coded bg-zinc-950 | Breaks light theme | Use bg-surface from CSS variable tokens | |
text-emerald-400 for prices | Color overload, makes deltas harder to spot | Color only deltas/signals. Keep prices neutral. | |
toFixed(2) for all prices | Wrong for BTC ($100K, 0 dp needed) and SHIB ($0.00001, 8 dp needed) | Magnitude-aware: see references/number-formatting.md | |
| Re-rendering whole row on tick | Drops frames at 100+ symbols streaming | Isolate updating cell, memoize the rest | |
| No staleness indicator | Users trade on dead data | Show grey/dim state when last update > N seconds | |
| Color-only gain/loss | 8% of men can't distinguish red/green | Add ▲ ▼ arrows or +/- prefix | |
| Animation libraries for ticks | Bundle bloat, GPU thrash at scale | CSS transitions on data-* attributes | |
text-zinc-500 for axis labels | Generic AI tell | Use text-text-muted token | |
| Centered numbers in tables | Eye can't compare magnitudes | Right-align numbers, left-align labels |
Red Flags — Stop and Reread
When writing financial UI you may rationalize. These mean stop:
- "It's just a prototype, I'll fix tokens later" — semantic tokens take the same time to write as raw colors. Write them now.
- "The user won't notice digit shift" — they will, especially on a watchlist. It's the #1 tell of an unprofessional trading UI.
- "Tailwind should expand
bg-${color}-500/10since the strings exist somewhere" — JIT does not scan dynamic templates. Use a static map. - "Light theme isn't needed" — Bloomberg, IBKR, and TradingView all ship both. Light theme is a serious-trader signal. Build with CSS variables from day one.
- "Mono font for tickers looks dated" — it's the opposite. Bloomberg, Reuters, TradingView all use mono for tickers/symbols. It's a professionalism signal.
- "I don't need a tick flash for a non-realtime page" — every list of prices that ever updates should flash. Even hourly updates benefit.
Industry Reference Points
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/financial-ui-patterns/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 2
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rgourley/financial-ui-suite/financial-ui-patterns)