Backgrounds
Add custom backgrounds behind your screenshots for a polished, professional look. Perfect for social media, presentations, or marketing materials.Available backgrounds
DomShot provides several gradient presets:
View all presets in the Dashboard Playground or create your own in Dashboard Backgrounds.
Basic background
bash
Custom padding and border radius
bash
With mobile viewport
bash
How it works
When you specify abackground, DomShot:
- Captures the screenshot at your specified viewport
- Creates a canvas with the background color/gradient
- Places your screenshot in the center with specified padding
- Applies border radius and shadow effects
- Returns the composite image
Parameters
Finding background IDs
Preset background IDs are listed in the table above. For custom backgrounds:- Go to Dashboard Backgrounds
- Click on your background to view details
- Copy the background ID
See also
- Viewport Presets - Device sizes and dimensions
- Image Formats - PNG, JPEG, WebP options