Customization
Zoomed images are displayed in a modal <dialog>
element which includes a backdrop displayed behind the image.
Customizing the backdrop
By default, the backdrop background color is an non-transparent color based on Starlight’s color palette.
You can customize this color using the --starlight-image-zoom-backdrop-bg
CSS custom property.
To learn how to add custom CSS styles to Starlight, refer to the “Custom CSS styles” guide in the Starlight documentation.