You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set a different background image for individual slides in Slidev, but the image is not showing—slides remain with the default white background.
Here are some minimal reproducible examples of what I’ve tried:
---
layout: default
background: /bg-image.jpg
---
# What is Slidev?
Slide content goes here…
---
layout: image
background: /bg-image.jpg
---
# What is Slidev?
Slide content goes here…
---
layout: center
background: /bg-image.jpg
---
# What is Slidev?
Slide content goes here…
What I expect
The slide above should display bg-image.jpg as its background.
What actually happens
The slide background remains plain white.
Steps Taken So Far
Placed the image in the public/ directory to ensure it’s served by Vite.
Tried both relative (./bg-image.jpg) and absolute (/bg-image.jpg) paths.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to set a different background image for individual slides in Slidev, but the image is not showing—slides remain with the default white background.
Here are some minimal reproducible examples of what I’ve tried:
What I expect
The slide above should display
bg-image.jpg
as its background.What actually happens
The slide background remains plain white.
Steps Taken So Far
Placed the image in the public/ directory to ensure it’s served by Vite.
Tried both relative (./bg-image.jpg) and absolute (/bg-image.jpg) paths.
Beta Was this translation helpful? Give feedback.
All reactions