Glass & gradient · Fintech
Obsidian Glass design system template
Smoked-glass trading terminal: a near-black blue canvas, 28px-blur panes with a bright top edge, Space Grotesk headings and tabular mono prices. Built for crypto exchanges, portfolio trackers and market dashboards.
- WCAG AA verified
- Light + dark
- Tokens = preview
- Space Grotesk
$67,420.18
+2.41% in 24h · Volume 18.4K BTC · Funding 0.008%
Aggregated liquidity from 11 venues with sub-20ms matching.
Monthly Merkle attestations, published and independently verifiable.
94% of client assets held offline across three jurisdictions.
Personality. Obsidian Glass is a trading desk at night. The canvas is a blue-black (`#07080d`) lit by two faint violet radial glows, and every panel is a pane of smoked glass: 5% white fill, 28px backdrop blur, a 1px edge and a brighter 1px sheen along the top. Numbers are the hero. Prices, balances and deltas are set in JetBrains Mono with tabular figures, and gains and losses use emerald and coral as the only saturated colors besides the periwinkle `primary`. Headings are Space Grotesk, wide and calm, so a screen full of tickers still feels composed rather than frantic.
Smoked panes: --glass fill + 28px blur + --glass-edge border + --glass-sheen top highlight
Two violet radial glows fixed behind the page; never more than two light sources
Tabular mono for every price, size and percentage so columns never jitter
P&L color is semantic: success for up, destructive for down, never decorative
Order-book depth bars drawn as 12% tinted fills behind rows, not as separate charts
Color. 21 roles, both modes.
background
#07080d
foreground
#eceef5
card
#0f1119
cardForeground
#eceef5
muted
#171a25
mutedForeground
#98a0b6
primary
#8b93ff
primaryForeground
#07080d
secondary
#1b1f2c
secondaryForeground
#e2e5f0
accent
#20244a
accentForeground
#d9dcff
border
rgba(255,255,255,0.09)
input
rgba(255,255,255,0.14)
ring
#a3aaff
destructive
#ff6b6b
destructiveForeground
#07080d
success
#34d399
successForeground
#07080d
warning
#fbbf24
warningForeground
#1a1200
Type. Space Grotesk · Inter · JetBrains Mono
The file. Drop it in your repo.
1---2name: "Obsidian Glass"3slug: "obsidian-glass"4schema: "freedesignmd/v2"5description: "Smoked-glass trading terminal: a near-black blue canvas, 28px-blur panes with a bright top edge, Space Grotesk headings and tabular mono prices. Built for crypto exchanges, portfolio trackers and market dashboards."6source: "https://freedesignmd.com/system/obsidian-glass"7aesthetic: "glass"8industry: "fintech"9default_mode: "dark"10fonts:11 display: "Space Grotesk"12 body: "Inter"13 mono: "JetBrains Mono"14 google_fonts_url: "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap"15colors:16 light:17 background: "#f3f4f9"18 foreground: "#12141d"19 card: "#ffffff"20 cardForeground: "#12141d"21 muted: "#e9ebf3"22 mutedForeground: "#565d73"23 primary: "#4a52e6"24 primaryForeground: "#ffffff"25 secondary: "#e6e8f2"26 secondaryForeground: "#12141d"27 accent: "#e4e6ff"28 accentForeground: "#2a2fa0"29 border: "rgba(18,20,29,0.1)"30 input: "rgba(18,20,29,0.18)"31 ring: "#4a52e6"32 destructive: "#c62828"33 destructiveForeground: "#ffffff"34 success: "#0f7a55"35 successForeground: "#ffffff"36 warning: "#f5b82e"37 warningForeground: "#231a00"38 dark:39 background: "#07080d"40 foreground: "#eceef5"41 card: "#0f1119"42 cardForeground: "#eceef5"43 muted: "#171a25"44 mutedForeground: "#98a0b6"45 primary: "#8b93ff"46 primaryForeground: "#07080d"47 secondary: "#1b1f2c"48 secondaryForeground: "#e2e5f0"49 accent: "#20244a"50 accentForeground: "#d9dcff"51 border: "rgba(255,255,255,0.09)"52 input: "rgba(255,255,255,0.14)"53 ring: "#a3aaff"54 destructive: "#ff6b6b"55 destructiveForeground: "#07080d"56 success: "#34d399"57 successForeground: "#07080d"58 warning: "#fbbf24"59 warningForeground: "#1a1200"60chart:61 light: ["#4a52e6", "#0f7a55", "#c62828", "#b7791f", "#0e86b8"]62 dark: ["#8b93ff", "#34d399", "#ff6b6b", "#fbbf24", "#38bdf8"]63type:64 display: { font: display, size: 68, size_mobile: 38, leading: 1.04, weight: 600, tracking: "-0.035em" }65 h1: { font: display, size: 44, size_mobile: 30, leading: 1.1, weight: 600, tracking: "-0.03em" }66 h2: { font: display, size: 28, size_mobile: 22, leading: 1.2, weight: 600, tracking: "-0.02em" }67 h3: { font: display, size: 18, size_mobile: 18, leading: 1.35, weight: 500, tracking: "-0.01em" }68 body: { font: body, size: 15, size_mobile: 15, leading: 1.6, weight: 400, tracking: "-0.006em" }69 small: { font: body, size: 13, size_mobile: 13, leading: 1.5, weight: 400, tracking: "0em" }70 label: { font: body, size: 11, size_mobile: 11, leading: 1.3, weight: 600, tracking: "0.08em", uppercase: true }71 mono: { font: mono, size: 13, size_mobile: 13, leading: 1.5, weight: 500, tracking: "-0.01em" }72spacing: [4, 8, 12, 16, 20, 24, 32, 48, 64, 96]73radius: { sm: "6px", md: "10px", lg: "16px", xl: "22px", full: "9999px" }74shadow:75 light:76 sm: "0 1px 2px rgba(18,20,29,0.06)"77 md: "0 8px 24px -8px rgba(40,44,110,0.18), 0 1px 2px rgba(18,20,29,0.06)"78 lg: "0 32px 80px -20px rgba(40,44,110,0.34), 0 0 0 1px rgba(18,20,29,0.06)"79 dark:80 sm: "0 0 0 1px rgba(255,255,255,0.05)"81 md: "0 12px 32px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07)"82 lg: "0 40px 100px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.1)"83motion:84 duration_ms: { instant: 90, fast: 150, base: 240, slow: 480 }85 easing: { standard: "cubic-bezier(0.3, 0, 0.2, 1)", out: "cubic-bezier(0.2, 0.9, 0.2, 1)", in: "cubic-bezier(0.5, 0, 1, 0.6)" }86 reveal: { distance_px: 12, stagger_ms: 60 }87layout: { max_width: 1280, columns: 12, gutter: 20, section_y: 96, section_y_mobile: 56, measure: "62ch" }88extras:89 glass: { light: "rgba(255,255,255,0.66)", dark: "rgba(255,255,255,0.05)" }90 glass-edge: { light: "rgba(255,255,255,0.9)", dark: "rgba(255,255,255,0.1)" }91 glass-sheen: { light: "linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 40%)", dark: "linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0) 40%)" }92 glow-violet: { light: "rgba(122,132,255,0.22)", dark: "rgba(122,132,255,0.16)" }93 glow-cyan: { light: "rgba(56,189,248,0.16)", dark: "rgba(56,189,248,0.1)" }94---95 96# Obsidian Glass, DESIGN.md97 98> Smoked-glass trading terminal: a near-black blue canvas, 28px-blur panes with a bright top edge, Space Grotesk headings and tabular mono prices. Built for crypto exchanges, portfolio trackers and market dashboards.99 100## How to use this file101 1021. Save this file as `DESIGN.md` in the project root and paste the `tokens.css` block (section 10) into your global stylesheet, or import `https://freedesignmd.com/system/obsidian-glass.css`, which also contains every component class.1032. **Claude Code:** add `Before any UI work, read @DESIGN.md and use only its tokens and component recipes.` to `CLAUDE.md`.1043. **Cursor:** create `.cursor/rules/design.mdc` with `alwaysApply: true` and the line `Follow @DESIGN.md for every color, font, radius, shadow, spacing and duration.`1054. **Lovable:** paste section 10 into `src/index.css` and add this file to Project Knowledge; ask for changes by role name (`primary`, `muted-foreground`), never by hex.1065. Default mode is **dark**: put `class="dark"` on `<html>`; light mode is the same file without the class. Use semantic names only (`bg-primary`, `text-muted-foreground`, `.btn-primary`, `var(--radius-lg)`); if a value is not in this file, it does not belong in the UI.107 108## 1. Overview & personality109 110Obsidian Glass is a trading desk at night. The canvas is a blue-black (`#07080d`) lit by two faint violet radial glows, and every panel is a pane of smoked glass: 5% white fill, 28px backdrop blur, a 1px edge and a brighter 1px sheen along the top. Numbers are the hero. Prices, balances and deltas are set in JetBrains Mono with tabular figures, and gains and losses use emerald and coral as the only saturated colors besides the periwinkle `primary`. Headings are Space Grotesk, wide and calm, so a screen full of tickers still feels composed rather than frantic.111 112**At a glance**113 114- Aesthetic: Glass & gradient · Industry: Fintech · Default mode: dark115- Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (mono)116- Brand color (`primary`): `#4a52e6` light · `#8b93ff` dark, on primary, text is `#ffffff` / `#07080d`117- Corners: 6px / 10px / 16px / 22px · Container 1280px · Base motion 240ms118 119**Signature moves**120 121- Smoked panes: `--glass` fill + 28px blur + `--glass-edge` border + `--glass-sheen` top highlight122- Two violet radial glows fixed behind the page; never more than two light sources123- Tabular mono for every price, size and percentage so columns never jitter124- P&L color is semantic: `success` for up, `destructive` for down, never decorative125- Order-book depth bars drawn as 12% tinted fills behind rows, not as separate charts126 127## 2. Color128 129Roles follow shadcn/ui naming, so `primary` is always the brand / main-action color and `foreground` is always body text. Every text pair below is WCAG AA (≥ 4.5:1) in both modes.130 131### Light mode (`:root`)132 133| Role | CSS variable | Value | Contrast | Usage |134|---|---|---|---|---|135| `background` | `--background` | `#f3f4f9` | | Page canvas |136| `foreground` | `--foreground` | `#12141d` | 16.72:1 on background | Body text and headings on background |137| `card` | `--card` | `#ffffff` | | Cards, panels, popovers |138| `cardForeground` | `--card-foreground` | `#12141d` | 18.36:1 on card | Text on card |139| `muted` | `--muted` | `#e9ebf3` | | Subtle fills: table headers, code, skeletons |140| `mutedForeground` | `--muted-foreground` | `#565d73` | 5.50:1 on muted | Secondary text, captions, placeholders |141| `primary` | `--primary` | `#4a52e6` | | Periwinkle action color: Trade, Deposit, active tab. Never used for gains or losses. |142| `primaryForeground` | `--primary-foreground` | `#ffffff` | 5.77:1 on primary | Text and icons on primary |143| `secondary` | `--secondary` | `#e6e8f2` | | Secondary buttons and quiet fills |144| `secondaryForeground` | `--secondary-foreground` | `#12141d` | 15.03:1 on secondary | Text on secondary |145| `accent` | `--accent` | `#e4e6ff` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |146| `accentForeground` | `--accent-foreground` | `#2a2fa0` | 8.48:1 on accent | Text on accent |147| `border` | `--border` | `rgba(18,20,29,0.1)` | | Dividers and card outlines |148| `input` | `--input` | `rgba(18,20,29,0.18)` | | Input borders |149| `ring` | `--ring` | `#4a52e6` | | Focus ring |150| `destructive` | `--destructive` | `#c62828` | | Price down, liquidation warning, negative P&L. |151| `destructiveForeground` | `--destructive-foreground` | `#ffffff` | 5.62:1 on destructive | Text on destructive |152| `success` | `--success` | `#0f7a55` | | Price up, filled order, positive P&L. |153| `successForeground` | `--success-foreground` | `#ffffff` | 5.34:1 on success | Text on success |154| `warning` | `--warning` | `#f5b82e` | | Caution status |155| `warningForeground` | `--warning-foreground` | `#231a00` | 9.66:1 on warning | Text on warning |156| `chart-1…5` | `--chart-1…5` | `#4a52e6` `#0f7a55` `#c62828` `#b7791f` `#0e86b8` | | Data series, in this order |157 158### Dark mode (`.dark`)159 160| Role | CSS variable | Value | Contrast | Usage |161|---|---|---|---|---|162| `background` | `--background` | `#07080d` | | Page canvas |163| `foreground` | `--foreground` | `#eceef5` | 17.26:1 on background | Body text and headings on background |164| `card` | `--card` | `#0f1119` | | Cards, panels, popovers |165| `cardForeground` | `--card-foreground` | `#eceef5` | 16.25:1 on card | Text on card |166| `muted` | `--muted` | `#171a25` | | Subtle fills: table headers, code, skeletons |167| `mutedForeground` | `--muted-foreground` | `#98a0b6` | 6.64:1 on muted | Secondary text, captions, placeholders |168| `primary` | `--primary` | `#8b93ff` | | Periwinkle action color: Trade, Deposit, active tab. Never used for gains or losses. |169| `primaryForeground` | `--primary-foreground` | `#07080d` | 7.35:1 on primary | Text and icons on primary |170| `secondary` | `--secondary` | `#1b1f2c` | | Secondary buttons and quiet fills |171| `secondaryForeground` | `--secondary-foreground` | `#e2e5f0` | 13.06:1 on secondary | Text on secondary |172| `accent` | `--accent` | `#20244a` | | Hover and selected backgrounds (rows, menu items, ghost buttons) |173| `accentForeground` | `--accent-foreground` | `#d9dcff` | 11.07:1 on accent | Text on accent |174| `border` | `--border` | `rgba(255,255,255,0.09)` | | Dividers and card outlines |175| `input` | `--input` | `rgba(255,255,255,0.14)` | | Input borders |176| `ring` | `--ring` | `#a3aaff` | | Focus ring |177| `destructive` | `--destructive` | `#ff6b6b` | | Price down, liquidation warning, negative P&L. |178| `destructiveForeground` | `--destructive-foreground` | `#07080d` | 7.21:1 on destructive | Text on destructive |179| `success` | `--success` | `#34d399` | | Price up, filled order, positive P&L. |180| `successForeground` | `--success-foreground` | `#07080d` | 10.41:1 on success | Text on success |181| `warning` | `--warning` | `#fbbf24` | | Caution status |182| `warningForeground` | `--warning-foreground` | `#1a1200` | 11.13:1 on warning | Text on warning |183| `chart-1…5` | `--chart-1…5` | `#8b93ff` `#34d399` `#ff6b6b` `#fbbf24` `#38bdf8` | | Data series, in this order |184 185### System extras186 187| Variable | Light | Dark | Usage |188|---|---|---|---|189| `--glass` | `rgba(255,255,255,0.66)` | `rgba(255,255,255,0.05)` | Pane fill; always paired with backdrop-filter blur(28px). |190| `--glass-edge` | `rgba(255,255,255,0.9)` | `rgba(255,255,255,0.1)` | 1px border around glass panes. |191| `--glass-sheen` | `linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 40%)` | `linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0) 40%)` | Top-edge highlight laid over a pane with ::before. |192| `--glow-violet` | `rgba(122,132,255,0.22)` | `rgba(122,132,255,0.16)` | Radial glow behind the canvas, top-left. |193| `--glow-cyan` | `rgba(56,189,248,0.16)` | `rgba(56,189,248,0.1)` | Radial glow behind the canvas, bottom-right. |194 195## 3. Typography196 197Load fonts with:198 199```html200<link rel="preconnect" href="https://fonts.googleapis.com" />201<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />202<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" />203```204 205| Role | Font | Size (390px → 1440px) | Line height | Weight | Tracking | Style | Class |206|---|---|---|---|---|---|---|---|207| `display` | Space Grotesk | 38px → 68px | 1.04 | 600 | -0.035em | – | `.type-display` |208| `h1` | Space Grotesk | 30px → 44px | 1.1 | 600 | -0.03em | – | `.type-h1` |209| `h2` | Space Grotesk | 22px → 28px | 1.2 | 600 | -0.02em | – | `.type-h2` |210| `h3` | Space Grotesk | 18px | 1.35 | 500 | -0.01em | – | `.type-h3` |211| `body` | Inter | 15px | 1.6 | 400 | -0.006em | – | `.type-body` |212| `small` | Inter | 13px | 1.5 | 400 | 0em | – | `.type-small` |213| `label` | Inter | 11px | 1.3 | 600 | 0.08em | uppercase | `.type-label` |214| `mono` | JetBrains Mono | 13px | 1.5 | 500 | -0.01em | – | `.type-mono` |215 216- `h1`–`h3` elements map to the roles of the same name; `display` is for one hero headline per page.217- Fluid sizes use `clamp()` between the two values (see `--type-*-size` in tokens.css).218- Only the weights in this table are loaded; never use other weights.219 220## 4. Spacing & layout221 222Spacing is a 4px scale. Use these steps only (`--space-N` = N × 4px):223 224| Token | `--space-1` | `--space-2` | `--space-3` | `--space-4` | `--space-5` | `--space-6` | `--space-8` | `--space-12` | `--space-16` | `--space-24` |225|---|---|---|---|---|---|---|---|---|---|---|226| px | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 48 | 64 | 96 |227 228- Container: max 1280px, 20px side gutters (`.container`).229- Grid: 12 columns, 20px gap.230- Sections: 96px vertical padding on desktop, 56px on mobile (`.section`).231- Long text: max 62ch per line (`.prose`).232- Terminal shell: 56px top bar, 320px order-entry rail on the right, charts fill the remaining width.233- Panes sit on a 20px gutter and never touch; the glow behind the gap is part of the look.234- Marketing pages stack one pane per section over the fixed glow background, max 1280px.235 236## 5. Shape & elevation237 238| Radius | Value | Use |239|---|---|---|240| `--radius-sm` | 6px | badges, checkboxes, small chips |241| `--radius-md` | 10px | buttons, inputs, tabs (= shadcn `--radius`) |242| `--radius-lg` | 16px | cards, panels, menus |243| `--radius-xl` | 22px | dialogs, hero media, large surfaces |244| `--radius-full` | 9999px | avatars, pills, toggles |245 246| Shadow | Mode | Value |247|---|---|---|248| `--shadow-sm` | light | `0 1px 2px rgba(18,20,29,0.06)` |249| `--shadow-md` | light | `0 8px 24px -8px rgba(40,44,110,0.18), 0 1px 2px rgba(18,20,29,0.06)` |250| `--shadow-lg` | light | `0 32px 80px -20px rgba(40,44,110,0.34), 0 0 0 1px rgba(18,20,29,0.06)` |251| `--shadow-sm` | dark | `0 0 0 1px rgba(255,255,255,0.05)` |252| `--shadow-md` | dark | `0 12px 32px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07)` |253| `--shadow-lg` | dark | `0 40px 100px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.1)` |254 255`sm` = resting card · `md` = hover / raised · `lg` = dialogs and popovers. Nothing else casts a shadow.256 257## 6. Motion258 259**Tick flash.** When a live number changes, its background flashes a 16% tint of success or destructive and fades back over the base duration. Panes themselves drift 12px upward on entrance with a soft ease-out; nothing bounces and nothing loops.260 261| Token | Value | Use |262|---|---|---|263| `--duration-instant` | 90ms | press feedback, toggles |264| `--duration-fast` | 150ms | hover, focus, color changes |265| `--duration-base` | 240ms | menus, tabs, popovers, cards lifting |266| `--duration-slow` | 480ms | dialogs and scroll reveals |267| `--ease-standard` | `cubic-bezier(0.3, 0, 0.2, 1)` | state changes |268| `--ease-out` | `cubic-bezier(0.2, 0.9, 0.2, 1)` | entrances and reveals |269| `--ease-in` | `cubic-bezier(0.5, 0, 1, 0.6)` | exits |270 271- Scroll reveal (`.reveal` → `.reveal.is-in` via IntersectionObserver): rise 12px and fade over `--duration-slow` with `--ease-out`; siblings stagger by 60ms (`--reveal-index`).272- Use no durations other than the four above.273- `prefers-reduced-motion: reduce` → no transforms, reveals show immediately (included in tokens.css).274 275## 7. Components276 277Every component reads only variables from section 10, so light and dark mode work with no extra code. These are the exact rules (also in `https://freedesignmd.com/system/obsidian-glass.css`). In React/shadcn projects, put the same declarations on the matching shadcn component variants.278 279### Button280 281```html282<button class="btn btn-primary">Save</button> <!-- btn-secondary · btn-outline · btn-ghost -->283```284 285```css286.btn {287 display: inline-flex;288 align-items: center;289 justify-content: center;290 gap: 8px;291 height: 40px;292 padding: 0 18px;293 font-family: var(--font-sans);294 font-size: 14px;295 font-weight: 600;296 letter-spacing: -0.006em;297 border-radius: var(--radius-md);298 border: 1px solid transparent;299 white-space: nowrap;300 cursor: pointer;301 text-decoration: none;302 transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);303}304.btn-primary {305 background: var(--primary);306 color: var(--primary-foreground);307 box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 24px -10px var(--primary);308}309.btn-primary:hover:not(:disabled) {310 background: color-mix(in oklab, var(--primary) 88%, white);311}312.btn-primary:active:not(:disabled) {313 background: color-mix(in oklab, var(--primary) 88%, black);314 transform: translateY(1px);315}316.btn-secondary {317 background: var(--glass);318 color: var(--foreground);319 border-color: var(--glass-edge);320 backdrop-filter: blur(16px);321 -webkit-backdrop-filter: blur(16px);322}323.btn-secondary:hover:not(:disabled) {324 background: var(--accent);325 color: var(--accent-foreground);326}327.btn-secondary:active:not(:disabled) {328 background: var(--muted);329}330.btn-outline {331 background: transparent;332 color: var(--foreground);333 border-color: var(--input);334}335.btn-outline:hover:not(:disabled) {336 border-color: var(--primary);337 color: var(--primary);338}339.btn-outline:active:not(:disabled) {340 background: var(--accent);341}342.btn-ghost {343 background: transparent;344 color: var(--muted-foreground);345}346.btn-ghost:hover:not(:disabled) {347 background: var(--glass);348 color: var(--foreground);349}350.btn-ghost:active:not(:disabled) {351 background: var(--muted);352}353.btn:focus-visible {354 outline: 2px solid var(--ring);355 outline-offset: 3px;356}357.btn:disabled, .btn[aria-disabled="true"] {358 opacity: 0.4;359 cursor: not-allowed;360 box-shadow: none;361}362```363 364### Input365 366```html367<input class="input" placeholder="you@company.com" /> <!-- aria-invalid="true" for errors -->368```369 370```css371.input {372 display: block;373 width: 100%;374 height: 44px;375 padding: 0 14px;376 font-family: var(--font-mono);377 font-size: 15px;378 color: var(--foreground);379 background: var(--glass);380 border: 1px solid var(--glass-edge);381 border-radius: var(--radius-md);382 outline: none;383 transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);384 backdrop-filter: blur(16px);385 -webkit-backdrop-filter: blur(16px);386 font-variant-numeric: tabular-nums;387}388.input::placeholder {389 color: var(--muted-foreground);390 opacity: 1;391}392.input:hover:not(:disabled):not(:focus) {393 border-color: var(--input);394}395.input:focus, .input:focus-visible {396 border-color: var(--ring);397 box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 22%, transparent);398}399.input[aria-invalid="true"] {400 border-color: var(--destructive);401 box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 22%, transparent);402}403.input:disabled {404 opacity: 0.5;405 cursor: not-allowed;406 background: var(--muted);407}408```409 410### Card411 412```html413<article class="card">…</article> <!-- add card-interactive when the whole card is a link -->414```415 416```css417.card {418 background: var(--glass);419 color: var(--card-foreground);420 border: 1px solid var(--glass-edge);421 border-radius: var(--radius-lg);422 box-shadow: var(--shadow-md);423 padding: 24px;424 transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);425 position: relative;426 backdrop-filter: blur(28px) saturate(140%);427 -webkit-backdrop-filter: blur(28px) saturate(140%);428}429.card-interactive:hover {430 border-color: var(--input);431 transform: translateY(-2px);432}433```434 435### Badge436 437```html438<span class="badge badge-soft" data-tone="success">Paid</span> <!-- badge-solid · badge-outline; tones: primary (default) · success · warning · destructive -->439```440 441```css442.badge {443 --tone: var(--primary);444 --tone-foreground: var(--primary-foreground);445 display: inline-flex;446 align-items: center;447 gap: 6px;448 height: 22px;449 padding: 0 10px;450 border-radius: var(--radius-full);451 font-family: var(--font-mono);452 font-size: 11px;453 font-weight: 500;454 letter-spacing: 0em;455 line-height: 1;456 white-space: nowrap;457}458.badge[data-tone="success"] {459 --tone: var(--success);460 --tone-foreground: var(--success-foreground);461}462.badge[data-tone="warning"] {463 --tone: var(--warning);464 --tone-foreground: var(--warning-foreground);465}466.badge[data-tone="destructive"] {467 --tone: var(--destructive);468 --tone-foreground: var(--destructive-foreground);469}470.badge-solid {471 background: var(--tone);472 color: var(--tone-foreground);473 border: 1px solid var(--tone);474}475.badge-soft {476 background: color-mix(in oklab, var(--tone) 16%, var(--card));477 color: var(--foreground);478 border: 1px solid color-mix(in oklab, var(--tone) 32%, transparent);479}480.badge-outline {481 background: transparent;482 color: var(--foreground);483 border: 1px solid var(--border);484}485```486 487### Navigation bar488 489```html490<nav class="nav"><a class="nav-link" aria-current="page">Home</a><a class="nav-link">Docs</a></nav>491```492 493```css494.nav {495 display: flex;496 align-items: center;497 gap: 4px;498 height: 56px;499 padding: 0 24px;500 background: var(--glass);501 backdrop-filter: blur(28px) saturate(160%);502 -webkit-backdrop-filter: blur(28px) saturate(160%);503 border-bottom: 1px solid var(--glass-edge);504}505.nav-link {506 padding: 6px 12px;507 border-radius: var(--radius-full);508 font-family: var(--font-sans);509 font-size: 13px;510 font-weight: 500;511 letter-spacing: 0em;512 color: var(--muted-foreground);513 text-decoration: none;514 transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);515}516.nav-link:hover {517 color: var(--foreground);518 background: var(--muted);519}520.nav-link[aria-current="page"] {521 color: var(--primary-foreground);522 background: var(--primary);523}524```525 526### Tabs527 528```html529<div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Overview</button>…</div>530```531 532```css533.tabs {534 display: inline-flex;535 gap: 4px;536 padding: 4px;537 background: var(--muted);538 border-radius: var(--radius-full);539}540.tab {541 height: 36px;542 padding: 0 16px;543 border: 0;544 border-radius: var(--radius-full);545 background: transparent;546 color: var(--muted-foreground);547 cursor: pointer;548 font-family: var(--font-sans);549 font-size: 13px;550 font-weight: 500;551 letter-spacing: 0em;552 transition: color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);553}554.tab:hover:not([aria-selected="true"]) {555 color: var(--foreground);556}557.tab[aria-selected="true"] {558 background: var(--card);559 color: var(--foreground);560 box-shadow: var(--shadow-sm);561}562```563 564### Table565 566```html567<table class="table"><thead><tr><th>…</th></tr></thead><tbody><tr><td>…</td></tr></tbody></table>568```569 570```css571.table {572 width: 100%;573 border-collapse: collapse;574 font-size: 13px;575 font-variant-numeric: tabular-nums;576}577.table th {578 text-align: left;579 height: 40px;580 padding: 0 16px;581 font-family: var(--font-sans);582 font-size: 11px;583 font-weight: 600;584 text-transform: uppercase;585 letter-spacing: 0.06em;586 background: var(--muted);587 color: var(--muted-foreground);588 border-bottom: 1px solid var(--border);589}590.table td {591 height: 44px;592 padding: 0 16px;593 border-bottom: 1px solid var(--border);594 color: var(--foreground);595 transition: background-color var(--duration-fast) var(--ease-standard);596}597.table tbody tr:hover td {598 background: var(--accent);599 color: var(--accent-foreground);600}601```602 603### Dialog / modal604 605```html606<div class="dialog-overlay"><div class="dialog" role="dialog" aria-modal="true">…</div></div>607```608 609```css610.dialog-overlay {611 position: fixed;612 inset: 0;613 background: rgba(3,4,8,0.62);614 backdrop-filter: blur(10px);615 -webkit-backdrop-filter: blur(10px);616 display: grid;617 place-items: center;618 padding: 24px;619}620.dialog {621 width: min(480px, 100%);622 background: var(--glass);623 color: var(--card-foreground);624 border: 1px solid var(--glass-edge);625 border-radius: var(--radius-xl);626 box-shadow: var(--shadow-lg);627 padding: 28px;628}629```630 631### Text link632 633```html634<a class="link" href="…">Read more</a>635```636 637```css638.link {639 color: var(--primary);640 text-decoration: underline;641 text-decoration-color: transparent;642 text-decoration-thickness: 1px;643 text-underline-offset: 4px;644 transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard);645}646.link:hover {647 text-decoration-color: var(--primary);648}649```650 651## 8. Imagery & iconography652 653**Imagery.** No photography. Imagery is live product: candlestick and depth charts rendered inside glass panes, token glyphs as 24px circles, and soft violet/cyan glows. Charts use 1.5px lines with a 12% area fill fading to transparent.654 655**Icons.** Lucide line icons at 18px with 1.5px stroke, `muted-foreground` at rest. Asset logos sit in 28px circles with a 1px `glass-edge` ring. Trend arrows are 12px filled triangles in success or destructive.656 657## 9. Do / Don't658 659**Do**660 661- Set every price, quantity and percent in mono with tabular figures662- Use `success` and `destructive` only for direction of change, always with a +/- sign as well663- Keep glass panes to two layers deep; a pane on a pane drops the blur to 16px664- Put one periwinkle `primary` action per pane (Buy, Deposit, Confirm)665- Flash changing numbers with a tint for the base duration, then settle666 667**Don't**668 669- Don't use glass over a flat canvas: without the glow behind it the blur has nothing to show670- Don't color text green or red without a sign or arrow; color alone fails color-blind traders671- Don't stack more than two radial glows or animate them672- Don't use `primary` for gains; it would read as a positive-price signal673- Don't use pure black borders; edges are always white at 5-14% alpha674 675## 10. tokens.css676 677Drop-in, shadcn/ui-compatible. Works with Tailwind v4 as-is (the `@theme inline` block creates `bg-primary`, `text-muted-foreground`, `font-heading`, `text-display`, `rounded-ui-lg`, `shadow-ui-md`…). Plain CSS projects can ignore the `@theme` block.678 679```css680/* Obsidian Glass, tokens.css681 * https://freedesignmd.com/system/obsidian-glass682 * shadcn/ui-compatible variables. Light on :root, dark on .dark.683 * Default mode: dark, add class="dark" to <html>.684 */685@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");686 687:root {688 --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;689 --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;690 --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;691 --type-display-size: clamp(38px, 26.86px + 2.857vw, 68px);692 --type-display-leading: 1.04;693 --type-display-weight: 600;694 --type-display-tracking: -0.035em;695 --type-h1-size: clamp(30px, 24.80px + 1.333vw, 44px);696 --type-h1-leading: 1.1;697 --type-h1-weight: 600;698 --type-h1-tracking: -0.03em;699 --type-h2-size: clamp(22px, 19.77px + 0.571vw, 28px);700 --type-h2-leading: 1.2;701 --type-h2-weight: 600;702 --type-h2-tracking: -0.02em;703 --type-h3-size: 18px;704 --type-h3-leading: 1.35;705 --type-h3-weight: 500;706 --type-h3-tracking: -0.01em;707 --type-body-size: 15px;708 --type-body-leading: 1.6;709 --type-body-weight: 400;710 --type-body-tracking: -0.006em;711 --type-small-size: 13px;712 --type-small-leading: 1.5;713 --type-small-weight: 400;714 --type-small-tracking: 0em;715 --type-label-size: 11px;716 --type-label-leading: 1.3;717 --type-label-weight: 600;718 --type-label-tracking: 0.08em;719 --type-mono-size: 13px;720 --type-mono-leading: 1.5;721 --type-mono-weight: 500;722 --type-mono-tracking: -0.01em;723 --space-1: 4px;724 --space-2: 8px;725 --space-3: 12px;726 --space-4: 16px;727 --space-5: 20px;728 --space-6: 24px;729 --space-8: 32px;730 --space-12: 48px;731 --space-16: 64px;732 --space-24: 96px;733 --radius: 10px;734 --radius-sm: 6px;735 --radius-md: 10px;736 --radius-lg: 16px;737 --radius-xl: 22px;738 --radius-full: 9999px;739 --duration-instant: 90ms;740 --duration-fast: 150ms;741 --duration-base: 240ms;742 --duration-slow: 480ms;743 --ease-standard: cubic-bezier(0.3, 0, 0.2, 1);744 --ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);745 --ease-in: cubic-bezier(0.5, 0, 1, 0.6);746 --reveal-distance: 12px;747 --reveal-stagger: 60ms;748 --container-max: 1280px;749 --gutter: 20px;750 --section-y: 96px;751 --section-y-mobile: 56px;752 --measure: 62ch;753 --background: #f3f4f9;754 --foreground: #12141d;755 --card: #ffffff;756 --card-foreground: #12141d;757 --muted: #e9ebf3;758 --muted-foreground: #565d73;759 --primary: #4a52e6;760 --primary-foreground: #ffffff;761 --secondary: #e6e8f2;762 --secondary-foreground: #12141d;763 --accent: #e4e6ff;764 --accent-foreground: #2a2fa0;765 --border: rgba(18,20,29,0.1);766 --input: rgba(18,20,29,0.18);767 --ring: #4a52e6;768 --destructive: #c62828;769 --destructive-foreground: #ffffff;770 --success: #0f7a55;771 --success-foreground: #ffffff;772 --warning: #f5b82e;773 --warning-foreground: #231a00;774 --chart-1: #4a52e6;775 --chart-2: #0f7a55;776 --chart-3: #c62828;777 --chart-4: #b7791f;778 --chart-5: #0e86b8;779 --shadow-sm: 0 1px 2px rgba(18,20,29,0.06);780 --shadow-md: 0 8px 24px -8px rgba(40,44,110,0.18), 0 1px 2px rgba(18,20,29,0.06);781 --shadow-lg: 0 32px 80px -20px rgba(40,44,110,0.34), 0 0 0 1px rgba(18,20,29,0.06);782 --glass: rgba(255,255,255,0.66);783 --glass-edge: rgba(255,255,255,0.9);784 --glass-sheen: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 40%);785 --glow-violet: rgba(122,132,255,0.22);786 --glow-cyan: rgba(56,189,248,0.16);787}788 789.dark {790 --background: #07080d;791 --foreground: #eceef5;792 --card: #0f1119;793 --card-foreground: #eceef5;794 --muted: #171a25;795 --muted-foreground: #98a0b6;796 --primary: #8b93ff;797 --primary-foreground: #07080d;798 --secondary: #1b1f2c;799 --secondary-foreground: #e2e5f0;800 --accent: #20244a;801 --accent-foreground: #d9dcff;802 --border: rgba(255,255,255,0.09);803 --input: rgba(255,255,255,0.14);804 --ring: #a3aaff;805 --destructive: #ff6b6b;806 --destructive-foreground: #07080d;807 --success: #34d399;808 --success-foreground: #07080d;809 --warning: #fbbf24;810 --warning-foreground: #1a1200;811 --chart-1: #8b93ff;812 --chart-2: #34d399;813 --chart-3: #ff6b6b;814 --chart-4: #fbbf24;815 --chart-5: #38bdf8;816 --shadow-sm: 0 0 0 1px rgba(255,255,255,0.05);817 --shadow-md: 0 12px 32px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);818 --shadow-lg: 0 40px 100px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.1);819 --glass: rgba(255,255,255,0.05);820 --glass-edge: rgba(255,255,255,0.1);821 --glass-sheen: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0) 40%);822 --glow-violet: rgba(122,132,255,0.16);823 --glow-cyan: rgba(56,189,248,0.1);824}825 826/* Tailwind v4: utilities like bg-primary, text-muted-foreground, font-heading, text-display, rounded-ui-lg, shadow-ui-md */827@theme inline {828 --color-background: var(--background);829 --color-foreground: var(--foreground);830 --color-card: var(--card);831 --color-card-foreground: var(--card-foreground);832 --color-muted: var(--muted);833 --color-muted-foreground: var(--muted-foreground);834 --color-primary: var(--primary);835 --color-primary-foreground: var(--primary-foreground);836 --color-secondary: var(--secondary);837 --color-secondary-foreground: var(--secondary-foreground);838 --color-accent: var(--accent);839 --color-accent-foreground: var(--accent-foreground);840 --color-border: var(--border);841 --color-input: var(--input);842 --color-ring: var(--ring);843 --color-destructive: var(--destructive);844 --color-destructive-foreground: var(--destructive-foreground);845 --color-success: var(--success);846 --color-success-foreground: var(--success-foreground);847 --color-warning: var(--warning);848 --color-warning-foreground: var(--warning-foreground);849 --color-chart-1: var(--chart-1);850 --color-chart-2: var(--chart-2);851 --color-chart-3: var(--chart-3);852 --color-chart-4: var(--chart-4);853 --color-chart-5: var(--chart-5);854 --font-heading: var(--font-display);855 --font-body: var(--font-sans);856 --font-code: var(--font-mono);857 --radius-ui-sm: var(--radius-sm);858 --radius-ui-md: var(--radius-md);859 --radius-ui-lg: var(--radius-lg);860 --radius-ui-xl: var(--radius-xl);861 --text-display: var(--type-display-size);862 --text-display--line-height: var(--type-display-leading);863 --text-display--letter-spacing: var(--type-display-tracking);864 --text-display--font-weight: var(--type-display-weight);865 --text-h1: var(--type-h1-size);866 --text-h1--line-height: var(--type-h1-leading);867 --text-h1--letter-spacing: var(--type-h1-tracking);868 --text-h1--font-weight: var(--type-h1-weight);869 --text-h2: var(--type-h2-size);870 --text-h2--line-height: var(--type-h2-leading);871 --text-h2--letter-spacing: var(--type-h2-tracking);872 --text-h2--font-weight: var(--type-h2-weight);873 --text-h3: var(--type-h3-size);874 --text-h3--line-height: var(--type-h3-leading);875 --text-h3--letter-spacing: var(--type-h3-tracking);876 --text-h3--font-weight: var(--type-h3-weight);877 --text-body: var(--type-body-size);878 --text-body--line-height: var(--type-body-leading);879 --text-body--letter-spacing: var(--type-body-tracking);880 --text-body--font-weight: var(--type-body-weight);881 --text-small: var(--type-small-size);882 --text-small--line-height: var(--type-small-leading);883 --text-small--letter-spacing: var(--type-small-tracking);884 --text-small--font-weight: var(--type-small-weight);885 --text-label: var(--type-label-size);886 --text-label--line-height: var(--type-label-leading);887 --text-label--letter-spacing: var(--type-label-tracking);888 --text-label--font-weight: var(--type-label-weight);889 --text-mono: var(--type-mono-size);890 --text-mono--line-height: var(--type-mono-leading);891 --text-mono--letter-spacing: var(--type-mono-tracking);892 --text-mono--font-weight: var(--type-mono-weight);893 --shadow-ui-sm: var(--shadow-sm);894 --shadow-ui-md: var(--shadow-md);895 --shadow-ui-lg: var(--shadow-lg);896}897 898@layer base {899 body {900 background: var(--background);901 color: var(--foreground);902 font-family: var(--font-sans);903 font-size: var(--type-body-size);904 line-height: var(--type-body-leading);905 font-weight: var(--type-body-weight);906 letter-spacing: var(--type-body-tracking);907 -webkit-font-smoothing: antialiased;908 }909 .type-display {910 font-family: var(--font-display);911 font-size: var(--type-display-size);912 line-height: var(--type-display-leading);913 font-weight: var(--type-display-weight);914 letter-spacing: var(--type-display-tracking);915 }916 .type-h1 {917 font-family: var(--font-display);918 font-size: var(--type-h1-size);919 line-height: var(--type-h1-leading);920 font-weight: var(--type-h1-weight);921 letter-spacing: var(--type-h1-tracking);922 }923 .type-h2 {924 font-family: var(--font-display);925 font-size: var(--type-h2-size);926 line-height: var(--type-h2-leading);927 font-weight: var(--type-h2-weight);928 letter-spacing: var(--type-h2-tracking);929 }930 .type-h3 {931 font-family: var(--font-display);932 font-size: var(--type-h3-size);933 line-height: var(--type-h3-leading);934 font-weight: var(--type-h3-weight);935 letter-spacing: var(--type-h3-tracking);936 }937 .type-body {938 font-family: var(--font-sans);939 font-size: var(--type-body-size);940 line-height: var(--type-body-leading);941 font-weight: var(--type-body-weight);942 letter-spacing: var(--type-body-tracking);943 }944 .type-small {945 font-family: var(--font-sans);946 font-size: var(--type-small-size);947 line-height: var(--type-small-leading);948 font-weight: var(--type-small-weight);949 letter-spacing: var(--type-small-tracking);950 }951 .type-label {952 font-family: var(--font-sans);953 font-size: var(--type-label-size);954 line-height: var(--type-label-leading);955 font-weight: var(--type-label-weight);956 letter-spacing: var(--type-label-tracking);957 text-transform: uppercase;958 }959 .type-mono {960 font-family: var(--font-mono);961 font-size: var(--type-mono-size);962 line-height: var(--type-mono-leading);963 font-weight: var(--type-mono-weight);964 letter-spacing: var(--type-mono-tracking);965 }966 h1 {967 font-family: var(--font-display);968 font-size: var(--type-h1-size);969 line-height: var(--type-h1-leading);970 font-weight: var(--type-h1-weight);971 letter-spacing: var(--type-h1-tracking);972 }973 h2 {974 font-family: var(--font-display);975 font-size: var(--type-h2-size);976 line-height: var(--type-h2-leading);977 font-weight: var(--type-h2-weight);978 letter-spacing: var(--type-h2-tracking);979 }980 h3 {981 font-family: var(--font-display);982 font-size: var(--type-h3-size);983 line-height: var(--type-h3-leading);984 font-weight: var(--type-h3-weight);985 letter-spacing: var(--type-h3-tracking);986 }987 code, kbd, samp, pre {988 font-family: var(--font-mono);989 }990 ::selection {991 background: var(--primary);992 color: var(--primary-foreground);993 }994 .container {995 width: 100%;996 max-width: var(--container-max);997 margin-inline: auto;998 padding-inline: var(--gutter);999 }1000 .section {1001 padding-block: var(--section-y);1002 }1003 .prose {1004 max-width: var(--measure);1005 }1006 .reveal {1007 opacity: 0;1008 transform: translateY(var(--reveal-distance));1009 transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);1010 transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));1011 }1012 .reveal.is-in {1013 opacity: 1;1014 transform: none;1015 }1016 @media (prefers-reduced-motion: reduce) {1017 .reveal { opacity: 1; transform: none; transition: none; }1018 *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }1019 }1020}1021```1022 1023Tailwind v3:1024 1025```js1026// tailwind.config.js, Tailwind v3 (v4 users: the @theme block in tokens.css does this)1027module.exports = {1028 darkMode: "class",1029 theme: {1030 extend: {1031 colors: {1032 "background": "var(--background)",1033 "foreground": "var(--foreground)",1034 "card": { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },1035 "muted": { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },1036 "primary": { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },1037 "secondary": { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },1038 "accent": { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },1039 "border": "var(--border)",1040 "input": "var(--input)",1041 "ring": "var(--ring)",1042 "destructive": { DEFAULT: "var(--destructive)", foreground: "var(--destructive-foreground)" },1043 "success": { DEFAULT: "var(--success)", foreground: "var(--success-foreground)" },1044 "warning": { DEFAULT: "var(--warning)", foreground: "var(--warning-foreground)" },1045 chart: { 1: "var(--chart-1)", 2: "var(--chart-2)", 3: "var(--chart-3)", 4: "var(--chart-4)", 5: "var(--chart-5)" },1046 },1047 fontFamily: { heading: ["var(--font-display)"], body: ["var(--font-sans)"], code: ["var(--font-mono)"] },1048 borderRadius: { "ui-sm": "var(--radius-sm)", "ui-md": "var(--radius-md)", "ui-lg": "var(--radius-lg)", "ui-xl": "var(--radius-xl)" },1049 boxShadow: { "ui-sm": "var(--shadow-sm)", "ui-md": "var(--shadow-md)", "ui-lg": "var(--shadow-lg)" },1050 transitionDuration: { instant: "var(--duration-instant)", fast: "var(--duration-fast)", base: "var(--duration-base)", slow: "var(--duration-slow)" },1051 transitionTimingFunction: { standard: "var(--ease-standard)", out: "var(--ease-out)", in: "var(--ease-in)" },1052 maxWidth: { container: "var(--container-max)", measure: "var(--measure)" },1053 },1054 },1055};1056```1057 1058Dependencies: `lucide-react`, `recharts`Save as DESIGN.md in the repo root and add “Follow DESIGN.md for all UI” to CLAUDE.md, AGENTS.md or your Cursor rules.


