Primer / Published template

Developer API Reference Portal

A developer portal that combines conceptual guidance, navigable API reference, executable examples, and clear error documentation.

Prompt reference v1
Developer API Reference Portal interface structure preview

Structure blueprint

Data-driven fallback
PrimerStructure v1

Persistent documentation navigation frames a readable article column and an adjacent code example panel with language and response tabs.

Developer PortalContent FirstData DenseUnderstated

Composition principles

Keep the selected API operation and product context visible. Constrain prose width, preserve code line wrapping controls, and place prerequisites before executable examples.

Behavior and access

All tabs follow keyboard tab patterns, copied code produces non-blocking feedback, deep links retain headings, and search results identify their reference section.

Engineering boundaries

Render reference content on the server from a versioned contract. Mark code and output semantically, avoid embedding credentials in examples, and keep authentication guidance separate from sample values.

Primer token ledger

Structure v1

GitHub's open-source design system for productive developer interfaces.

Color roles

model
functional scales
requiredRoles
canvas, foreground, border, accent, success, danger

Typography

approach
interface and code typography
requirements
readable code, compact metadata

Spacing

approach
compact developer workflow
baseUnitPx
4

Component rules

code
Separate code, output, and explanatory prose semantically.
navigation
Keep repository or product context visible.

Where this template fits