-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I’m a bit confused about the current usage of shikiTheme and would appreciate clearer documentation around it.
Previously, I was using shikiTheme like this:
<Streamdown
{content}
shikiTheme={mode.current === 'dark' ? 'github-dark-default' : 'github-light-default'}
components={{ code: Code }}
baseTheme="shadcn"
{...restProps}
/>However, in the latest version, shikiTheme no longer seems to work as expected.
For example, switching themes dynamically like this:
shikiTheme={mode.current === 'dark'
? 'github-dark-default'
: 'github-light-default'}doesn’t seem to work in the latest version. I’m not sure if this is expected behavior, a breaking change, or if there’s a new recommended way to handle dynamic Shiki theme switching.
Additionally, in v2 we had support for preloading themes, something like:
shikiPreloadThemes={["github-dark-default", "github-light-default"]}It would be really helpful to have documentation covering:
- The correct way to use
shikiThemenow - How to use themes like
vesper,github-light-default, andgithub-dark-default - Whether theme preloading is still supported, and if so, how to configure it
clearer docs here would really help users migrating from earlier versions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels