Button
Button44px 4px solid midnight-navy primary CTA (.ua-primary) and 1.3px bordered secondary (.ua-secondary), zero shadow.
3 states
Oxford Ledger 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: academic portals, registries, publishing desks
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.
跟踪 64 位法学与历史学者提交记录,18 例补交申请中有 14 例源于课表与考务截止日分属两套系统,整合进单页校历滑片后准时率跃升。
React + Tailwind v4, replace components per STYLE.md256px midnight-navy rail, 4px double-folio cards, 45px zebra tables, zero left bars.
Every physical measure follows Student Portal geometry unified with Oxford's scholarly palette: #f5f7fb paper canvas holding flat 4px double-folio cards (1.3px #ced8e5 perimeter + 0.7px offset wireframe, zero shadow), anchored by a 256px midnight-navy rail, pastel subject washes, and 2px status stamps.
Cards and buttons use 4px, filled wells .ua-field use 6px, and .ua-stamp tags stay 2px (never pills).
Slips .ua-slip, double-folios .ua-folio, and controls stay shadow-none; only .ua-overlay carries --ua-float.
Active nav rows use .ua-nav-active (1.3px full perimeter + 6px radius); alerts and slips use full-perimeter .ua-slip-* strokes.
A ::after hairline (0.7px #ced8e5) offset by +6px replaces soft shadows as Oxford Ledger's signature depth.
Controls follow measured variables --ua-header-h, --ua-ctl-h, --ua-field-h, and --ua-row-h.
Reserve .ua-primary (#111c32 light / #7098ff dark) for the main action; secondary actions use .ua-secondary or ghost.
Even rows tint #f4f6f7 (--ua-zebra) at 45px height with tabular marks and 2px stamps for effortless scanning.
.ua-display and .ua-figure stay font-style: normal at -0.02em; body uses Source Sans 3 14/21; codes use JetBrains Mono.
Lilac, parchment amber, sky, and sage washes accent course and KPI cards under high-contrast #111c32 ink.
Light paper #f5f7fb and dark nocturnal navy #0b1120 live in tokens.css; focus uses a crisp 1.3px cobalt edge.
Single primary CTA on the screen
default (.ua-primary): Oxford navy (#111c32 light / #7098ff dark), 4px corners, 44px tall, flat
Secondary & supporting actions
secondary (.ua-secondary 1.3px rule), outline, ghost, or Oxford cobalt link
Filter a table or switch chart range
6px .ua-field track with a flat 4px 1.3px-bordered active thumb (zero shadow)
Switch major views below a header
1.3px baseline with sliding 2px cobalt underline; variant='well' for a .ua-field switcher
Pick one option in a form
36px .ua-field trigger showing option label, opening a ruled 1.3px .ua-overlay menu
Very long lists or native mobile picker
Native <select> styled as the 36px 6px .ua-field well
Choice inside a running sentence
Oxford cobalt dashed-underline trigger inside a 2px .ua-stamp tint
Single choice with credit metadata
4px .ua-slip cards switching to 1.3px cobalt perimeter and --ua-tint-blue
Multi-select filters or tracks
button = 36px .ua-slip strip; card = double-folio .ua-folio cards
Confirm an action or register a record
4px .ua-overlay (1.3px rule + --ua-float) with ruled header and --ua-well footer
Inspect a record from Exam Board
Flush edge drawer with 68px bottom-ruled header matching the portal top bar
Label an icon-only button
4px Oxford navy popover with concise 12px white copy
Action menu on a row or header
.ua-overlay menu with 36px ruled rows, .ua-meta labels, and 2px check stamps
Right-click menu
Matches Dropdown Menu .ua-overlay framing and 36px ruled items
Read-only link or citation preview
4px .ua-overlay read-only preview slip triggered from a cobalt link
Search and jump (⌘K)
Keyboard-driven .ua-overlay index palette with .ua-field search header
Brief confirmation after saving
.ua-overlay with full-perimeter semantic strokes and 2px icon stamp
Persistent inline notice
1.3px semantic-bordered .ua-slip with zero left bar and 2px tinted icon box
Blank course list or search miss
.ua-slip + .ua-folio plate over --ua-well with 44px icon tile and Newsreader title
Term completion progress
Measured 6px track (12px radius, --ua-bar-track) with tabular stamp value
Exam Board or assessment roster
45px ruleless .ua-zebra rows (#f4f6f7 alternating), single 1px header rule, tabular marks
Sort, select, and paginate records
.ua-slip wrapper over Table with sortable headers, 2px Checkbox, and --ua-well pagination
Stacked homework or task slips
4px .ua-slip rows; active row shifts to cobalt perimeter + --ua-tint-blue
Assignment status columns
.ua-banner lanes with .ua-meta headers, count stamps, and .ua-folio cards
Course catalog or resource cards
Double-folio .ua-folio cards with optional subject wash (lilac, amber, sky, sage)
General card container
tone='slip' (1.3px), 'folio' (+6px ghost frame), 'banner' (#f4f6f7), or subject washes
Single metric over time, highlight latest
4px-top bars over --ua-bar-track, focal bar in Oxford navy --chart-1
Multiple trends or term comparison
2px strokes, dashed comparison line, 2px square vertices, .ua-overlay tooltip
Single cumulative trend
Single --chart-1 line with vertical wash fade over ruled hairlines
Share of credits (up to 5 faculties)
Concentric 0.7px hairlines, upright Newsreader center figure, 2px square ChartLegend
Bars + line or dual units
.ua-folio plot plate combining bars and lines with optional axis='right'
Multi-axis evaluation
1.3px outer polygon, dashed inner rings, 2px square vertices, .ua-meta axis labels
Term rings or readiness gauge
rings or gauge over --ua-bar-track centered on a Newsreader figure
Inline spark trend inside a KPI
36px trace with dashed midpoint rule and square terminal node
Hero GPA, tabular figure & stamp
KPI tone='gold' (midnight navy) or subject washes paired with 2px .ua-stamp badges
Inline Seminar Tutor AI workspace
Navy user slips, 1.3px white tutor replies, full-perimeter ToolCall & zero-left-bar reasoning
.ua-primary · .ua-secondaryFlat 44px 4px-radius midnight-navy primary CTA paired with a 1.3px #ced8e5 bordered white secondary button and 1px press feedback.
.ua-field · .ua-stampFilled .ua-field track framing a flat 4px 1.3px-bordered active thumb over 21px-tall 2px micro-corner academic status stamps.
.ua-folio · .ua-goldDouble-folio .ua-folio (+6px 0.7px offset wireframe) sits beside the midnight-navy .ua-gold hero KPI — zero drop shadow, zero left bar.
| Token | Used for | Light | Dark |
|---|---|---|---|
| Oxford paper canvas & measured surfaces | |||
--background | Oxford paper canvas / nocturnal navy | #f5f7fb | #0b1120 |
--card | 4px cards, ledger slips & 68px top bar | #ffffff | #121b30 |
--popover | .ua-overlay popup surface | #ffffff | #141f38 |
--ua-well | .ua-banner announcement well | #f4f6f7 | #141f36 |
--ua-zebra | 45px ruleless Exam Board even rows | #f4f6f7 | #15213a |
--ua-field | 36px 6px filled input & select well | #f5f6f8 | #152038 |
--ua-bar-track | 6px term progress rail & bar track | #eceef3 | #1e2c4a |
--ua-code-bg | Monospace code block surface | #eef2f8 | #0d1527 |
| Midnight-navy inks, cobalt brand & anchored rail | |||
--foreground | Headings, KPI figures & primary ink | #111c32 | #edf2fb |
--muted-foreground | Secondary labels & .ua-cents decimals | #495d72 | #93a4c0 |
--ua-ink-quiet | Mono eyebrows, placeholders & ticks | #697b91 | #7487a6 |
--primary | Primary CTA (.ua-primary) | #111c32 | #7098ff |
--primary-foreground | High-contrast text on primary | #ffffff | #091124 |
--ua-brand | Oxford cobalt focus & action links | #2f62d6 | #7098ff |
--ua-brand-text | High-contrast cobalt link & code ink | #1f4bb3 | #9cb9ff |
--accent | Selected row & active tab wash | #e8effd | #18274a |
--accent-foreground | Ink inside cobalt accent wash | #1b3d8f | #9cb9ff |
--sidebar | 256px full-bleed midnight-navy rail | #111c32 | #080d19 |
--sidebar-foreground | Primary ink on navy sidebar | #edf2fb | #edf2fb |
| Rules, subject washes & 2px status stamps | |||
--ua-rule | 1.3px slip frame, 0.7px folio & bar rule | #ced8e5 | #253657 |
--ua-inner-rule | 1px internal card, menu & chart hairlines | #dfe7ee | #1e2d4a |
--ua-gold-mid | Hero .ua-gold KPI midnight-navy surface | #111c32 | #13203d |
--ua-on-gold | Primary white ink on .ua-gold | #ffffff | #ffffff |
--ua-on-gold-muted | Muted label ink on .ua-gold | #b8c7e3 | #b8c7e3 |
--ua-wash-lilac | Subject wash 1 · Lilac course/KPI card | #e6dcff | #231c3d |
--ua-wash-amber | Subject wash 2 · Parchment amber wash | #fde4b6 | #2e2313 |
--ua-wash-sky | Subject wash 3 · Sky course/icon wash | #c2e8f6 | #132838 |
--ua-wash-sage | Subject wash 4 · Sage course/KPI wash | #d1f0c5 | #152b1d |
--ua-badge-sage-fg | Distinction / pass 2px stamp ink | #2f6e1c | #7be08a |
--ua-badge-sage-bg | Distinction / pass 2px stamp fill | #d9eed1 | #122c1b |
--destructive | Overdue & withdrawal danger ink | #dc2626 | #f87171 |
| Academic 5-channel charts | |||
--chart-1 | Series 1 · Oxford navy (focal) | #111c32 | #7098ff |
--chart-2 | Series 2 · Oxford cobalt | #2f62d6 | #a78bfa |
--chart-3 | Series 3 · Collegiate violet | #7c3aed | #38bdf8 |
--chart-4 | Series 4 · Parchment amber | #d97706 | #fbbf24 |
--chart-5 | Series 5 · Bodleian teal | #0d9488 | #2dd4bf |
| Pair | Use | Light | Dark |
|---|---|---|---|
foreground on background | Body on Oxford paper, 4.5:1 min | Aa15.8Pass | Aa16.8Pass |
foreground on card | Body on 4px card, 4.5:1 min | Aa17.0Pass | Aa15.3Pass |
muted-foreground on background | Muted copy & .ua-cents, 4.5:1 min | Aa6.3Pass | Aa7.5Pass |
primary-foreground on primary | Primary CTA contrast, 4.5:1 min | Aa17.0Pass | Aa6.8Pass |
ua-brand-text on background | Cobalt links & paper codes, 4.5:1 min | Aa7.2Pass | Aa9.7Pass |
accent-foreground on accent | Selected row & tab wash, 4.5:1 min | Aa8.6Pass | Aa7.6Pass |
sidebar-foreground on sidebar | 256px navy sidebar, 4.5:1 min | Aa15.1Pass | Aa17.3Pass |
ua-on-gold on ua-gold-mid | White ink on .ua-gold, 4.5:1 min | Aa17.0Pass | Aa16.1Pass |
ua-on-gold-muted on ua-gold-mid | Muted label on .ua-gold, 4.5:1 min | Aa10.0Pass | Aa9.5Pass |
ua-badge-sage-fg on ua-badge-sage-bg | Distinction 2px stamp, 4.5:1 min | Aa5.1Pass | Aa9.2Pass |
destructive on background | Overdue & withdrawal ink, 4.5:1 min | Aa4.5Pass | Aa6.8Pass |
36 / 40 · 600 · -0.02em · upright26 / 32 · 600 · -0.02em · upright28 / 32 · 600 · tabular16 / 22 · 600 · Source Sans 314 / 21 · 400 · Source Sans 311 / 16 · 500 · +0.06em · mono2px micro4px crisp4px crisp6px soft12px rail9999px circleshadow-none--ua-float21px · .ua-stamp exam & task stamp height36px · --ua-field-h 6px filled well44px · --ua-ctl-h buttons & nav rows (48px lg)45px · --ua-row-h ruleless zebra row height68px · --ua-header-h bottom-ruled top bar256px · full-bleed midnight-navy sidebar (scaled)All four registered papers are on schedule for Examination Schools.
Centre a double-folio .ua-folio empty plate with a 44px icon tile to guide paper registration
| Code | Paper | Faculty | Mark | Status |
|---|---|---|---|---|
| OX-401 | Constitutional Law II | Jurisprudence | 78% | Distinction |
| OX-402 | Early Modern Europe | History | 72% | Pass |
| OX-403 | Quantitative Methods | PPE | 84% | Distinction |
| OX-404 | Political Philosophy | Philosophy | 69% | In review |
| OX-405 | Monetary Macroeconomics | Economics | 75% | Pass |
Filter Exam Board papers with a .ua-field Segment, search codes, and scan a 45px ruleless .ua-zebra Data Table
Toggle Exam Board notices, Bodleian recall alerts, and default academic term inside one 1.3px .ua-slip Card
styles/oxford/fonts/Newsreader-Variable-latin.woff2styles/oxford/fonts/SourceSans3-Variable-latin.woff2styles/oxford/fonts/JetBrainsMono-Variable-latin.woff2