styles.css and images ignored when exporting
Author: italomaiaCreated Aug 26, 2026Updated Aug 26, 2026
Labelspending triage
Describe the bug
I created a presentation with images and a custom style.css. Both show properly when running the slides, but if I try to export the slides, the css is not applied nor the images show.
Minimal reproduction
Steps to reproduce the behavior:
- Create a new presentation
- Add images
- Reference images from the slide
- Create style.css in the root of the presentation with a background-color rule
- Apply css rules
- Try to export
You can use https://sli.dev/new to create a new project to reproduce the issue.
Environment
- Slidev version: current
- Browser: chrome
- OS: Ubuntu 25.10
Source: slidevjs/slidev