Images & Media
Adding images and screenshots to your pages
Adding images
Standard Markdown:

Put image files in /images at your project root:
your-project/
├── docs.json
├── images/
│ ├── dashboard.png
│ ├── webhook-flow.png
│ └── logo.svg
├── introduction.mdx
└── quickstart.mdx
Sizing
Append dimensions after the URL:

Width only (height scales automatically):

Frame
Frame adds a border and optional caption — useful for screenshots:
<Frame caption="The payments dashboard">

</Frame>
If you frame one screenshot in a guide, frame all of them for consistency.
Light and dark mode
Show different images based on the user's color scheme:
<img
src="/_jd/images/diagram-light.png?v=mm8hbob8"
srcDark="/images/diagram-dark.png"
alt="Architecture diagram"
/>
Tips
- Descriptive alt text — screen readers and search engines need it
- Under 500KB — PNG for screenshots, JPEG for photos, SVG for diagrams
- WebP where possible — smaller files, same quality
- Clear names —
webhook-flow.pngnotimg_001.png