Skip to content

Commit

Permalink
feat: VSCode modern themes
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinderoubaix committed Feb 9, 2024
1 parent 60e5ec3 commit f5d3eaf
Show file tree
Hide file tree
Showing 4 changed files with 1,302 additions and 5 deletions.
4 changes: 1 addition & 3 deletions demo/src/lib/layout/Code.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
let showButton = false;
$: appliedLanguage = language ?? languageFromFileName(fileName);
$: formattedCode = appliedLanguage
? highlighter.codeToHtml(code, {lang: appliedLanguage, themes: {light: 'catppuccin-latte', dark: 'catppuccin-mocha'}})
: null;
$: formattedCode = appliedLanguage ? highlighter.codeToHtml(code, {lang: appliedLanguage, themes: {light: 'light-plus', dark: 'dark-plus'}}) : null;
</script>

<!-- svelte-ignore a11y-no-static-element-interactions -->
Expand Down
Loading

0 comments on commit f5d3eaf

Please sign in to comment.