Button
Buttonimport { … } from "@/components/orderbook/button" · source: components/orderbook/button.tsx
3 states
Orderbook Pulse is a UI guide written for AI. Hand it to Claude Code, Cursor, or another AI coding tool, and the pages it builds look like this.
Best for: trading desks, orderbooks, fintech apps
Requires an AI coding tool that can run commands. The download link in the prompt works for 24 hours; come back here to copy a fresh one.
React + Tailwind v4, replace components per STYLE.mdBid-emerald quant orderbook on a carbon-midnight pit desk.
Dark-first three-zone desk partitioning obsidian-pit rails (#05070a), carbon-midnight canvas (#0b0e14), and shadowless 16px/20px panels (#121721) across 1px dividers (#1f2938), pairing bid emerald (#00d09c, AAA 9.0:1 ink), ask crimson (#f6465d), 0/15 asymmetric dock FAB, and overhanging white CTAs, with daylight frost light mode (#f4f7f9).
Separate left rail, center desk and right telemetry rail with 1px --fc-divider (#1f2938); keep Card, Table and Input shadow-none.
Dark steps from --fc-pit (#05070a) to --background (#0b0e14) and --card (#121721); light flips to #e5ecf2, #f4f7f9 and #ffffff.
Only overhanging .fc-cta-light, .fc-dock and .fc-float carry shadows; standard panels and inputs stay flat.
Primary orders use 40px/9px .fc-bid (9.0:1 AAA); vault settlement uses 48px/16px .fc-cta-light; quick order uses .fc-dock.
Major panels and vaults use 16px (.fc-panel), asset cards use 20px (.fc-asset-card), and .fc-dock pins its top-left corner at 0px.
Inputs, selects and steppers share .fc-well (40px tall, 9px radius) with a sharp 1.5px .fc-focus outline instead of blurred halos.
Never draw left vertical bars on navs, cards, alerts, quotes or rows; signal selection via full-perimeter .fc-active, 2.5px bottom .fc-tab-rule, or .fc-tab-band.
House status dots inside 18×18px 4px-radius .fc-dot-box pits; place ledger triggers and toast icons inside 29×29px 6px-radius .fc-micro-tile squares.
Read every color from tokens.css (--fc-pit, --fc-bid, --fc-ask, --fc-cta-*, --chart-1…5) so dark and light modes both keep AA/AAA contrast.
Headings, vault totals and hero KPIs use upright .fc-display (Space Grotesk 700, never italic) tracked at -0.025em.
Prices, deltas and ledger amounts run tabular .fc-ticker, fractional digits dim with .fc-cents, and labels use 11px uppercase .fc-meta.
Controls respond in 140ms via --fc-ease with 1px .fc-press depression; .fc-ping honors reduced-motion preferences.
Primary execution action (Submit, Save)
default (.fc-bid): solid bid emerald, 40px tall, 9px radius
Overhanging portfolio CTA (Deposit / Withdraw)
variant="cta" size="lg" (.fc-cta-light): 48px tall, 16px radius, white on obsidian
Asymmetric quick-order rail FAB
variant="dock" (.fc-dock): 0/15/15/15px silhouette anchored to left rail
Secondary & supporting controls
secondary (.fc-well obsidian pit), outline, ghost or link
Filter a ledger or time range
Obsidian-pit rail; active locks bid emerald or elevated card fill
Switch major desk views or sub-tables
default = 2.5px .fc-tab-rule; band = uppercase .fc-tab-band; well = pit rail
Pick a vault or venue in a form
40px 9px .fc-well trigger opening 16px .fc-float menu with .fc-dot-box checks
Mobile or huge option native picker
Matches the 40px 9px-radius Choose Wallet well identically
Inline parameter inside prose
2px baseline underline shifting to bid emerald on hover/open
Single choice with latency or tier spec
Flat 16px panels; selected locks full-perimeter emerald border + pit fill
Multi-select desk filters
button = 31px .fc-well chips; card = 16px full-perimeter cards
Confirm an order or edit parameters
16px .fc-float modal over .fc-backdrop with 20px internal rhythm
Inspect execution ticket or slide rail
415px docked rail matching Frame 40109's right telemetry rail
Label an icon or show latency readout
28px obsidian-pit mono tag (8px radius, zero diamond pointer)
Action dropdown menu
16px .fc-float with 36px .fc-menu-row items and .fc-dot-box cues
Right-click context menu
Shares 16px .fc-float chrome and mono shortcuts with Dropdown Menu
Read-only ticker or vault preview
20px .fc-float preview card; use Dialog for interactive forms
Jump to symbol or action (⌘K)
16px .fc-float palette with 48px pit search bar and .fc-active rows
Fill confirmation or alert toast
Bottom-right .fc-float stack with 29px .fc-micro-tile icon well
Inline risk warning or notice
Full-perimeter 16px panel with .fc-dot-box indicator (zero left bar)
Empty orderbook or zero filter matches
Dashed pit panel centering a 53×53px .fc-chevron-tile emblem
Fill completion or margin usage
7px obsidian-pit track with .fc-meta label and .fc-ticker percent
Read-only execution ledger
1px --fc-divider rows, 10px .fc-meta headers, right-aligned .fc-ticker
Sortable, selectable, paginated grid
Flat .fc-panel grid with 18px pit checkboxes and --fc-pit footer
Dated transaction or watchlist rows
1px-divided rows pairing .fc-dot-box status and .fc-micro-tile receipts
Multi-stage workflow lanes
Obsidian-pit lanes holding flat 16px .fc-panel cards
Favorites or asset tiles
20px .fc-asset-card grid tiles or 1px-divided list rows
Standard desk container
Flat 16px .fc-panel; surface="asset" for 20px, surface="settlement" for vault
Hourly volume / activity bars
Narrow 2px-top bars (3px gap) on 1px dividers, focus bar in --chart-1
Single cumulative depth or equity trend
20px .fc-asset-card with HI/LAST .fc-ticker header over 30%→0% wash
Multi-series comparison
Crisp 2px traces, dashed baseline, mono axes & .fc-float tooltip
Capital allocation (up to 5 venues)
--fc-pit ring track with inner reticle and .fc-dot-box ChartLegend
Volume bars + price line (dual axis)
Dual-axis .fc-panel plot with live column readout
Multi-axis venue quality profile
--fc-divider spider web inside .fc-panel with active-axis readout
Margin rings or capacity gauge
--fc-pit tracks with centered .fc-display figure
Watchlist / Live Prices mini curve
2px curve with dashed mid-rule, closing dot & optional 30% wash
Headline equity or desk KPI
Pass icon+tileColor for 10px .fc-icon-tile; tone="gold" activates metallic .fc-settlement
Animated tabular figure with dimmed cents
Intl currency/percent readout applying .fc-cents to fractional digits
Compact bid/ask percentage delta
Tabular bid/ask pill; pass invert when lower is better (latency/slippage)
Order status or venue micro-tag
24px 6px-radius pit micro-box with 6px dot (success/warning/destructive)
.fc-bid · .fc-cta-light · .fc-dock · .fc-wellFour-tier execution scale: 40px/9px AAA emerald CTA, 48px/16px overhanging white CTA, 0/15 asymmetric dock FAB, and 40px pit well.
Segment · .fc-tab-rule · .fc-dot-boxRecessed obsidian-pit rail and 2.5px emerald underline tabs signaling active state with zero left bars.
.fc-settlement · .fc-icon-tile · .fc-cents16px diagonal-arc metallic vault card framing Space Grotesk equity with dimmed .fc-cents decimals and a 2px sparkline.
| Token | Used for | Light | Dark |
|---|---|---|---|
| Three-tier surfaces & metallic vault | |||
--background | Carbon-midnight center desk / daylight frost ground | #f4f7f9 | #0b0e14 |
--card | Zero-shadow 16px .fc-panel & 20px .fc-asset-card | #ffffff | #121721 |
--fc-pit | Obsidian pit: side rails, 40px wells & chart tracks | #e5ecf2 | #05070a |
--fc-pit-hover | Recessed pit control & dot-box hover state | #dae4ec | #0f141d |
--secondary | Secondary surface & subtle container fill | #e5ecf2 | #171e2b |
--sidebar | Left navigation rail & right telemetry rail ground | #e9eff4 | #05070a |
--fc-vault-from | Metallic .fc-settlement vault gradient start | #0c131d | #05070a |
--fc-vault-to | Metallic .fc-settlement vault gradient end | #11242b | #0c171f |
| Ink, bid emerald & overhanging CTA | |||
--foreground | Primary headings, prose & headline figures | #0d131c | #eaf0f6 |
--muted-foreground | Secondary copy, column meta & muted decimals | #4e5d70 | #8392a7 |
--primary | Bid-emerald primary CTA (.fc-bid) & 2.5px active underline | #007a52 | #00d09c |
--primary-foreground | High-contrast CTA ink (9.0:1 AAA dark / 5.4:1 AA light) | #ffffff | #041a13 |
--fc-bid-hover | Bid-emerald primary CTA hover state | #006342 | #1ae0ae |
--fc-brand-text | Emerald emphasis ink, active order IDs & links | #006342 | #45efc2 |
--fc-cta-bg | 48px overhanging portfolio CTA (.fc-cta-light) inverted fill | #0d131c | #ffffff |
--fc-cta-fg | 48px overhanging portfolio CTA ink (>18:1 AAA) | #ffffff | #0b0e14 |
| Active wash, 1px dividers & risk semantics | |||
--accent | Selected nav row, .fc-active & bid-tinted surface | #dcf7ee | #092b24 |
--accent-foreground | High-contrast emerald ink on active wash (10.4:1 dark) | #006342 | #45efc2 |
--fc-divider | 1px three-zone partition & ledger row dividers | #d6dee6 | #1f2938 |
--fc-rule | 40px recessed well border & control hairline | #c5d1dc | #253244 |
--destructive | Ask crimson, negative delta, rejections & kill-switch | #d92d48 | #f6465d |
--fc-ask-tint | Ask & destructive tinted background | #fde8ec | #35121b |
--fc-warning | Working orders, wide spread & margin caution | #c47f00 | #f5b73b |
--fc-warn-tint | Caution & warning tinted surface | #fef3c7 | #34260c |
| Saturated KPI tiles & chart 5-series | |||
--fc-tile-cyan | 57px KPI icon tile · live telemetry cyan | #0284c7 | #00d4f0 |
--fc-tile-violet | 57px KPI icon tile · quant strategy violet | #6746ed | #6746ed |
--fc-tile-blue | 57px KPI icon tile · settlement blue | #1673b8 | #1683c4 |
--chart-1 | Series 1 · Bid emerald primary | #007a52 | #00d09c |
--chart-2 | Series 2 · Ask crimson | #d92d48 | #f6465d |
--chart-3 | Series 3 · Venue benchmark sky | #0284c7 | #38bdf8 |
--chart-4 | Series 4 · Perpetual OI violet | #6746ed | #7c5cff |
--chart-5 | Series 5 · Funding rate amber | #d97706 | #f5b73b |
| Pair | Use | Light | Dark |
|---|---|---|---|
foreground on background | Body on desk, 4.5:1 min | Aa17.3Pass | Aa16.8Pass |
foreground on card | Body on flat card, 4.5:1 min | Aa18.6Pass | Aa15.6Pass |
muted-foreground on card | Muted copy on card, 4.5:1 min | Aa6.7Pass | Aa5.7Pass |
muted-foreground on background | Caption on desk, 4.5:1 min | Aa6.2Pass | Aa6.1Pass |
primary-foreground on primary | Bid CTA ink (AAA dark), 4.5:1 min | Aa5.4Pass | Aa9.0Pass |
fc-cta-fg on fc-cta-bg | Overhanging CTA ink, 4.5:1 min | Aa18.6Pass | Aa19.3Pass |
fc-brand-text on card | Emerald emphasis ink, 4.5:1 min | Aa7.3Pass | Aa12.3Pass |
accent-foreground on accent | Active wash row, 4.5:1 min | Aa6.5Pass | Aa10.4Pass |
destructive on card | Ask / rejection ink, 4.5:1 min | Aa4.8Pass | Aa5.1Pass |
fc-warning on card | Caution status indicator (3.0:1 UI) | Aa3.3Pass | Aa10.0Pass |
28 / 34 · 700 · Space Grotesk22 / 28 · 700 · Space Grotesk17 / 22 · 700 · Space Grotesk15 / 20 · 700 · Space Grotesk13 / 18 · 500 · Inter11 / 16 · 600 · mono +7%4px6px8px9px16px20px0 10px 25px rgb(0 0 0 / .45)0 20px 44px -8px rgb(0 0 0 / .72)18 · .fc-dot-box29 · --fc-h-micro31 · --fc-h-filter40 · --fc-h-ctrl48 · --fc-h-cta57 · .fc-icon-tileRoute a post-only limit ticket to monitor live fills and venue latency.
1px --fc-divider header with .fc-well secondary action over a flat 16px EmptyState
| Ticket | Pair / Venue | Status | Notional |
|---|---|---|---|
| #OB-9482 | BTC-USD Prime Spot | Filled | $42,180.00 |
| #OB-9481 | ETH-USD Perp Book | Working | $18,640.00 |
| #OB-9480 | SOL-USD RFQ Vault | Cancelled | $6,210.50 |
40px ⌘K pit search and recessed Segment above a 48px tabular execution ledger
44×24px Switches and 40px recessed NativeSelect inside a flat 16px .fc-panel Card
14 active quotes will be cancelled immediately. Action cannot be reversed.
styles/orderbook/fonts/SpaceGrotesk-Variable-latin.woff2styles/orderbook/fonts/Inter-Variable-latin.woff2styles/orderbook/fonts/JetBrainsMono-Variable-latin.woff2