Back to Home

NRMP Couples Match Style Guide

Component Library & Design System

Component Library

This style guide showcases all UI components used in the NRMP Couples Match Tool. All components are built with shadcn/ui, Next.js, TypeScript, and Tailwind CSS, featuring Nunito and Quicksand fonts for a modern, playful aesthetic.

Typography

Text styles and hierarchies using Nunito and Quicksand for a modern, playful aesthetic

Title

NRMP Couples Match Tool

Headers

Heading 1 - Large Header

Heading 2 - Section Header

Heading 3 - Subsection Header

Body Text

Normal text: This is the standard paragraph text used throughout the application. It uses Nunito for a modern, friendly, and highly readable appearance.

Bold text: Important information and emphasis

Italic text: Subtle emphasis and notes

NRMP Code Style

1234567890

Small gray text for secondary information

Alerts

System notifications and user feedback messages

Cards

Interactive card components with hover states

DescriptionCard (HoverCard Component)

Multiple Description Cards

Buttons

Various button styles and interactive elements

Circle_Numbered_Colored_Button (Interactive)

Click to cycle through tiers: 1 (light gray) → 2 → 3 → 4 → 5 (darker gray)

Standard Buttons

Add to Partner Buttons (Side-by-side)

Checkbox_Button (Checkbox with Label)

Button Sizes

Button Variants

List Items

Specialized card components for displaying program and address information

ProgramRankItem

Displays ranked program with tier indicator. Background color varies by specialty (vibrant palette).

1

Massachusetts General Hospital

Interventional Radiology Residency

(NRMP: 1404120C0)
Tier
?
2

Johns Hopkins Hospital

Diagnostic Radiology Residency

(NRMP: 1416120C0)
Tier
?
3

Stanford Health Care

General Surgery Residency

(NRMP: 1044120C0)
Tier
?

ProgramAddressItem

Displays institution address with edit capability for travel time adjustments.

Massachusetts General Hospital

55 Fruit Street

Boston, MA

Johns Hopkins Hospital

1800 Orleans Street

Baltimore, MD

ProgramInputItem

Program card for input selection (no rank, no tier, removable with X button).

Massachusetts General Hospital

Interventional Radiology Residency

(NRMP: 1404120C0)

PartnerProgramItem

Read-only program card for displaying programs in a ranked pair (no rank number, no tier, no remove button).

Massachusetts General Hospital

Interventional Radiology Residency

(NRMP: 1404120C0)

Johns Hopkins Hospital

Diagnostic Radiology Residency

(NRMP: 1416120C0)

ProgramPairRankList

Displays a ranked program pair with both partners' programs side-by-side. Hover over the info icon to see detailed preference points and commute time breakdown.

1

Massachusetts General Hospital

Interventional Radiology Residency

(NRMP: 1404120C0)

Johns Hopkins Hospital

Diagnostic Radiology Residency

(NRMP: 1416120C0)
2

Stanford Health Care

General Surgery Residency

(NRMP: 1044120C0)

UCSF Medical Center

Internal Medicine Residency

(NRMP: 1067140C0)

InstitutionsTravelTimeItem

Horizontal layout displaying two institutions with editable travel time and detailed breakdown. Click the travel time to edit, or click the navigation icon for detailed travel times.

Massachusetts General Hospital

55 Fruit Street

Boston, MA

Johns Hopkins Hospital

1800 Orleans Street

Baltimore, MD

travel time

Stanford Health Care

300 Pasteur Drive

Stanford, CA

UCSF Medical Center

505 Parnassus Avenue

San Francisco, CA

travel time

Input Groups

Complex form components combining multiple inputs

NrmpCodeInputButton (Dialog Popup)

RankListInputField

?

Configuration_Input_Field (Two-column layout)

Match Settings

Changes auto-save
?
?
minutes
?
minutes
?
hr
min
?
hr
min
?
minutes
?
minute(s).
?
?
?
?
?
?

Other Components

Additional UI elements including dialogs, navigation, and pagination

Dialog_box

Modal dialog for displaying information

Simple_Header

Simple header with title on left and menu items on right

NRMP Couples Match

ConfigOptionsDropdown

Configuration settings popover with partner priority, max ranks, and travel thresholds

SectionNavigator

Vertical navigation with numbered circles (1 navigates to top, 4 to bottom)

ThemeToggle

Pill-shaped theme toggle with smooth transitions and orbital icon animations

Click to switch between light and dark modes

Component Features

  • Pill-shaped sliding indicator
  • 300ms smooth transitions
  • Orbital icon animations (rotate + fade)
  • Hover glow effect and scale micro-interactions
  • SSR-safe hydration handling
  • Full keyboard accessibility
  • Persists preference to localStorage via next-themes
<ThemeToggle />

Built with shadcn/uiNext.jsTailwind CSS

NRMP Couples Match Optimization Tool © 2026