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.

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.

1 participant