Skip to main content

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
The backgroundPadding parameter accepts pixel values. If not specified, it defaults to 5% of the viewport’s minimum dimension.

With mobile viewport

bash

How it works

When you specify a background, DomShot:
  1. Captures the screenshot at your specified viewport
  2. Creates a canvas with the background color/gradient
  3. Places your screenshot in the center with specified padding
  4. Applies border radius and shadow effects
  5. Returns the composite image

Parameters

Backgrounds add extra canvas size. Calculate final dimensions as: Final size = Viewport size + (padding × 2)

Finding background IDs

Preset background IDs are listed in the table above. For custom backgrounds:
  1. Go to Dashboard Backgrounds
  2. Click on your background to view details
  3. Copy the background ID
Backgrounds are scoped to your organization. You can only use backgrounds that belong to your organization or the system presets.

See also