Design System & Component Library

Alibi Styleguide

Case-file noir design tokens, typography, and atomic primitives. Built for precision graph detective gameplay where every lie leaves a path.

Tokens

Color Palette

background
background#0A0908
surface-1
surface-1#110F0D
surface-2
surface-2#181513
surface-3
surface-3#211D1A
border
border#2B2622
border-strong
border-strong#3A332D
text-primary
text-primary#F3EEE6
text-secondary
text-secondary#B3AA9E
text-tertiary
text-tertiary#968D81
primary
primary#D13636
primary-hover
primary-hover#E24A4A
primary-pressed
primary-pressed#B82C2C
on-primary
on-primary#FFFFFF
thread
thread#FF7A70
brass
brass#C9A45C
on-brass
on-brass#1A1405
paper
paper#E9E1D3
ink
ink#1B1713
inspector
inspector#86B6C9
danger
danger#F2555A
success
success#5CCB8B
status-contradiction
status-contradiction#FF7A70
status-rehearsed
status-rehearsed#C9A45C
status-impossible
status-impossible#E58F3A
status-cleared
status-cleared#5CCB8B
status-inferred
status-inferred#86B6C9
Type Scale

Typography Hierarchy

display-xl (Playfair 56px)
The Thread Led to Clara
display-lg (Playfair 40px)
Case File 03: The Blackout Dinner
display-md (Playfair 28px)
Who could have performed the act?
headline (Inter 18px / 600)
Suspect Interrogation & Cross-Examination
body-lg (Inter 16px) & body-md (Inter 14px)

Every suspect statement corresponds to an authored claim in the knowledge graph. When claims conflict with hard physical evidence or the mansion topology, reasoning queries identify contradictions.

Secondary body text explaining subtle alibi overlaps and physical room access constraints.

typewriter (IBM Plex Mono uppercase)
EXHIBIT C · CRIME SCENE DOOR LOG · TICK 14
mono-md (IBM Plex Mono 13px)
MATCH (a:Person)-[:IN_ROOM]->(r:Room) WHERE a.id = $person RETURN r
Controls

Buttons & Variants

Atoms

Chips & Metadata Pills

3 statements2 tells noticedContradiction detectedImpossible moveCleared by evidenceAI Inspector FlagSearched roomBait active
Atoms

Investigation Stamps

CONTRADICTIONREHEARSEDIMPOSSIBLECLEAREDINFERREDSLIPUNVERIFIED
Atoms

Suspect Cards

Clara Vale
Clara Vale
Daughter, finance director
4 claims on graph
Tobias Finch
Tobias Finch
Family Bookkeeper
3 claims on graph
Roz Vale
Roz Vale
Second wife
2 claims on graph
Edmund Vale
Edmund Vale(Victim)
Shipping Magnate
Atoms

Polaroid Cards (Evidence & Statements)

EXHIBIT A

Broken Pocket Watch

Found stopped at 9:18 on the library parquet, crystal shattered from impact.

Found in Library (Tick 4)
STATEMENT

Whereabouts at 9:15

I was in the drawing room pouring wine for everyone when the blackout began.

By Clara Vale (Slot 4)
CONTRADICTION
EXHIBIT B

Electronic Door Log

Magnetic lock record confirms the conservatory door remained locked throughout slots 4 to 6.

Security Panel · Kitchen
Feedback & States

Error Banners & Empty States

The case file is empty.

Begin by questioning suspects about their whereabouts, or inspect rooms for physical evidence.

No contradictions detected yet.

When two statements place someone in two rooms at once, or clash with physical logs, a red thread will bind them.

Engine Inspector

Cypher Trace Rows

Contradiction Detection
9 rows4.2ms
Candidate Elimination
1 row12.8ms
ask
3 rows2.1ms
Hero Screen

Chronological Timeline Grid

Cross-references statements and hard exhibits over 8 slots. Flags contradictory rooms with a thread ring, highlights rehearsed alibis with brass brackets, and displays cleared suspect badges.

Soft Statement
Green room
Hard Evidence
Prop store (E1)
Inferred Single Survivor
Study (Inferred)
Row Status Badges
ClearedUnclear
Visual Graph Canvas

Evidence Board (React Flow)

Interactive 2D graph canvas of suspects, soft statements, physical exhibits, flags, and hypotheses. Drawn with red threads of contradiction, dashed orange impossible journeys, and brass rehearsal edges.

Search a room or ask a question.

Statements and physical exhibits land as pinned cards on this corkboard, connected by red threads of contradiction.

AI Copilot Feed

AI Inspector Reasoning Stream

Streams real-time SSE tool calls, result rows, flags, hypotheses, and narrative conclusions. Supports deterministic assist, live cold case re-execution, and accusation pre-fill.

Inspector Deductions

Ask the Inspector to reason.

The AI Inspector queries the play graph to identify impossible moves, alibi contradictions, and motive connections.

Psychological Gambits

Bait Announcements (Task U6)

Prepared public announcements designed to elicit slips of the tongue from suspects with guilty knowledge.

ANNOUNCEMENT APrepared

“We have found Penhallow's missing signet ring in the courtyard planter.”

ANNOUNCEMENT BSLIP DETECTED

“The courtyard gate camera was switched off all evening.”

* Suspect slipped: “Switched off? It was on, I would swear to it.” *
Case Inquest & Inquest Resolution

Accusation & Verdict States (Task U6)

Formal indictment outcomes, 3-star mastery ratings, step-by-step case replay, and ground truth reveal cards.

3-Star Inquest Mastery
★★★
3 STARS

Flawless solve on first accusation with all proof items derived on the graph.

Outcome: PartialPARTIAL

“You have the hand, not the head.”

1 participant identified; co-conspirator or mastermind remains unnamed.

Outcome: FullCASE CLOSED

“Accusation confirmed.”

All conspirators brought to justice. Truth revealed on verdict screen.

STEP 02

Fabricated Alibis Exposed

3 proofs

Kofi and Hana claim they were in the prop store together at slot 5. The door access log places Okoye in the green room alone, proving Dee, Kofi, and Hana rehearsed identical details.

c1_dee_loc5c1_kofi_loc5e1_doorlog
Spatial Intelligence

Mini Floor Plan Schematics

Pure SVG crime scene topologies displaying hallway connectivity, locked barriers, discovered secret passages, and one-click room exploration.

Case 1: Playhouse Topology (Prop Store Crime Scene)
Spatial Layout & Corridors
Scene
Foyer - SearchedFoyerBox Office - Click to searchBox OfficeStage - Click to searchStageGreen Room - Click to searchGreen Room1 ex.Prop Store (Crime Scene) - SearchedProp Store2 ex.Lighting Booth - Click to searchLighting Bo…
Click room to search2/6 explored
Case 3: Manor House with Discovered Secret Passage
Spatial Layout & Corridors
ScenePassage Open
SECRETDining Hall - Click to searchDining HallKitchen - Click to searchKitchenGreat Hall - SearchedGreat HallLibrary - SearchedLibrary1 ex.Study (Crime Scene) - SearchedStudy2 ex.Drawing Room - Click to searchDrawing RoomConservatory - Click to searchConservatory
Click room to search3/7 explored
Quality & Ergonomics

Accessibility & Present Mode (Task U7)

Strict WCAG 2.1 AA text contrast (4.5:1+), visible 2px thread focus indicators, aria-live stream regions, and 1.15 font scaling for recording.

2px Thread Focus Ring

Interactive controls feature high-contrast keyboard navigation rings with 2px offset.

Present Mode (?present=1)

Recording mode scales the root font by 1.15×, hides development toggles, and maximizes label legibility.

HTML.present-mode font-size: 115%
Responsive Breakpoints

Targeted for 1920×1080 and 1440×900 display viewports with graceful stacking below 1180px.

Target: 1440×900 / 1920×1080
Investigator Tools

Detective Phone & Case 0 Walkthrough

A handheld node-link FalkorDB visualizer that starts in a clean blank state and dynamically renders real-time alibi links, red contradiction threads, and clearance shields.

Guided Induction Walkthrough Banner
Pocket Graph (Docked & Panel Modes)
Docked Under Interrogation
Expanded Inside File Tabs