Skip to content

Conversation

@Debbl
Copy link
Contributor

@Debbl Debbl commented Nov 18, 2025

fix shiki dark mode in the preview component.

image

apps/docs/components/custom/preview.tsx is currently a Server Component, so it can't access the resolved theme on client. I followed the class-based dark mode approach from the Shiki documentation to make the theme switching work.
https://shiki.style/guide/dual-themes#class-based-dark-mode

There’s also a spacing issue included in this PR, but I’m not sure about the best way to fix it.

image

@vercel
Copy link
Contributor

vercel bot commented Nov 18, 2025

@Debbl is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@haydenbleasel
Copy link
Member

Appreciated @Debbl 🙏

@haydenbleasel haydenbleasel merged commit 034e5b4 into vercel:main Nov 26, 2025
5 of 7 checks passed
@Debbl Debbl deleted the fix/shiki-dark-mode branch November 27, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants