Skip to content

Commit 2eb3dad

Browse files
ryan-williamsclaude
andcommitted
demo: pin colorSchema: dark so OG image renders dark, not light
slidev default is `colorSchema: auto` (= follow system). Headless Chrome during Playwright export has no `prefers-color-scheme` set, so "auto" resolves to light — and the build emits a light-mode OG image even though the actual deck is normally viewed in dark mode. Pin to `dark` to match both the OG image and the live default render. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ab26b34 commit 2eb3dad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

demo/starter/slides.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
theme: seriph
3+
# Pin dark; the default `auto` (= follow system) renders the OG image in light
4+
# mode because headless Chrome has no media-preference set during the build's
5+
# Playwright export.
6+
colorSchema: dark
37
title: Open-Athena/slidev
48
description: A fork of sli.dev that adds direct manipulation — click any image to drag, resize, rotate, reorder, or crop, with snap-to-alignment, undo/redo, and multi-tab live edits.
59
info: |

0 commit comments

Comments
 (0)