-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Load custom theme.json with Shikiji #1258
Comments
Can you share a minimal repro? Thanks |
Yes sorry, here is it https://stackblitz.com/edit/vitejs-vite-fm6jjj?file=setup%2Fshikiji.ts |
Before the release, here is the workaround: import fs from 'node:fs';
/* ./setup/shiki.ts */
import { defineShikijiSetup } from '@slidev/types';
const myTheme = JSON.parse(
fs.readFileSync('setup/theme/penguin-theme.json', 'utf8')
);
export default defineShikijiSetup(() => ({
themes: { default: myTheme },
defaultColor: 'default',
})); |
Thanks @antfu that was extremely quick 🙏🏻 |
openscript
pushed a commit
to openscript/slidev
that referenced
this issue
Jan 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hi, when I try to load my custom
theme.json
that I used for shiki before:It throws an error:
Is it currently possible to load custom themes? Thanks
To Reproduce
Steps to reproduce the behavior:
npm run dev
Desktop (please complete the following information):
v0.46.3
The text was updated successfully, but these errors were encountered: