When to use an image
- Use an image to show where something is in a busy UI, what a finished result looks like, or how parts of a system connect.
- Don’t use an image to repeat what the text already says clearly, or in place of text. Readers who use screen readers, search, and AI agents can’t read text inside an image.
- Don’t capture a whole step-by-step flow in screenshots. Write the steps, and add an image only for the step that’s hardest to follow.
Screenshots
When an existing image is out of date:
- If only part of the image is wrong and that part isn’t needed, crop it out.
- If the image is still needed, replace it with a new one.
- If the page is clear without the image, remove it.
Adding an image to a page
Save images and GIFs in theimages/ directory. Reference them with a path that starts with /images/, and wrap them in a <Frame> component:
File names
- Use lowercase letters and hyphens between words:
event-tag-filter.png. - Keep the name short, two or three words that summarize the alt text.
- Don’t use spaces or capital letters in file names.
- Don’t use generic names such as
screenshot-1.pngorimage.png.
Alt text
Alt text describes an image for people who use screen readers and for search engines and AI tools. Every image needs alt text.- Explain why the image is there. Describe what the reader should notice, in the context of the surrounding text.
- Keep it short. Aim for under 125 characters.
- Don’t start with “Image of” or “Screenshot of.” Screen readers already announce that it’s an image.
- Don’t list every detail. Describe what matters for the task, not every label or number.
- Don’t stuff keywords. Write a clear sentence for a person.
If an image is purely decorative, which is rare in docs, consider removing it.
Video
- Place a video in the section it supports, not on a page by itself.
- Don’t rely on video alone. Include the key steps and information as text.
- Use videos that show the current UI and branding.
Embed a YouTube video
- On YouTube, open the video and click Share → Embed.
- Copy the video URL from the
srcvalue in the embed code. - Change the domain from
youtube.comtoyoutube-nocookie.com. Without this change, the video doesn’t play for readers who block cookies, and YouTube tracks viewers by default. - Add the video inside a
<Frame>: