Interface RpEditorTheme

Theme customization for the editor modal

interface RpEditorTheme {
    accent?: string;
    accentContrast?: string;
    applyButtonBackground?: string;
    applyButtonBorderColor?: string;
    applyButtonText?: string;
    applyButtonTextColor?: string;
    borderColor?: string;
    buttonBorderRadius?: string;
    cancelButtonBackground?: string;
    cancelButtonBorderColor?: string;
    cancelButtonText?: string;
    cancelButtonTextColor?: string;
    editorBackground?: string;
    footerBackground?: string;
    headerBackground?: string;
    headerBadgeSize?: number;
    headerLogo?: string;
    headerLogoSize?: number;
    headerSubtitle?: string;
    headerTextColor?: string;
    headerTitle?: string;
    modalBorderRadius?: string;
    modalHeight?: string;
    modalMaxWidth?: string;
    showHeaderBadge?: boolean;
    surface0?: string;
    surface1?: string;
    surface2?: string;
    textMuted?: string;
    textPrimary?: string;
    toolbarActiveBackground?: string;
    toolbarActiveIconColor?: string;
    toolbarActiveTextColor?: string;
    toolbarBackground?: string;
    toolbarIconColor?: string;
    variant?: "dark" | "light";
}

Properties

accent?: string

Accent color used for the primary CTA, active tool tile, and focus ring. Maps to --rp-ie-accent. Falls back to toolbarActiveBackground when unset for back-compat.

accentContrast?: string

Contrast color painted on top of accent. Maps to --rp-ie-accent-contrast.

applyButtonBackground?: string
applyButtonBorderColor?: string
applyButtonText?: string
applyButtonTextColor?: string
borderColor?: string

Hairline border color. Maps to --rp-ie-border.

buttonBorderRadius?: string
cancelButtonBackground?: string
cancelButtonBorderColor?: string
cancelButtonText?: string
cancelButtonTextColor?: string
editorBackground?: string
footerBackground?: string
headerBackground?: string
headerBadgeSize?: number

Size in CSS pixels of the header badge square (the container around the logo/icon). Defaults to 40. Ignored when the badge is hidden via showHeaderBadge: false.

headerLogo?: string

Optional image URL (or data URI) rendered inside the header badge, to the left of headerTitle. Use this to show your product/brand logo. Any square image works best; it is rendered at ~24×24 CSS px inside the badge with object-fit: contain, so a 16×16, 24×24 or larger source image will all look correct.

When unset, the built-in editor icon is used.

headerLogoSize?: number

Size in CSS pixels of the logo / built-in icon rendered inside the header badge. Defaults to 24 (custom logo image) or 22 (built-in icon). When set, both variants use this value.

headerSubtitle?: string

Optional subtitle text rendered under headerTitle. Defaults to 'Edit your image with ease'. Pass an empty string ('') to hide the subtitle row entirely.

headerTextColor?: string
headerTitle?: string
modalBorderRadius?: string
modalHeight?: string

Height of the modal frame. Any valid CSS length is accepted (e.g. '720px', '85vh', 'min(92vh, 900px)'). Defaults to 'min(92vh, 820px)'. Only applies when the editor is launched via openEditorModal.

modalMaxWidth?: string

Maximum width of the modal frame. Any valid CSS length is accepted (e.g. '1400px', '80vw', 'min(90vw, 1400px)'). Defaults to '1200px'. Only applies when the editor is launched via openEditorModal.

showHeaderBadge?: boolean

Whether to show the square badge (logo/icon) to the left of the header title. Defaults to true. Set to false to hide the badge and reclaim horizontal space in the top bar.

surface0?: string

App-level background (behind panels). Maps to --rp-ie-surface-0.

surface1?: string

Panel background. Maps to --rp-ie-surface-1.

surface2?: string

Elevated / active surface. Maps to --rp-ie-surface-2.

textMuted?: string

Muted / secondary text color. Maps to --rp-ie-text-muted.

textPrimary?: string

Primary text color. Maps to --rp-ie-text.

toolbarActiveBackground?: string

Background color of the selected/active toolbar button. Defaults to #1976d2. Choose a color with strong contrast against toolbarBackground so users can clearly see the current selection.

toolbarActiveIconColor?: string

Deprecated

Use toolbarActiveBackground instead. Retained for backward compatibility — when set, it is used as the active button background if toolbarActiveBackground is not provided.

toolbarActiveTextColor?: string

Icon/text color used inside the active toolbar button. Defaults to #ffffff. If left unset while toolbarActiveBackground is customized, a readable foreground is auto-derived from the background luminance.

toolbarBackground?: string
toolbarIconColor?: string
variant?: "dark" | "light"

Overall variant. When 'light', the shell swaps to the light palette.