Skip to content

Commit

Permalink
style(tt): use vs dark as default shiki syntax highlighting theme
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtaholik committed Mar 11, 2024
1 parent 0d7c789 commit 6b726ca
Show file tree
Hide file tree
Showing 4 changed files with 534 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/total-typescript/src/pages/[article].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const getStaticProps: GetStaticProps = async ({params}) => {
(await serializeMDX(article.body, {
useShikiTwoslash: true,
syntaxHighlighterOptions: {
theme: 'github-dark',
authorization: process.env.SHIKI_AUTH_TOKEN,
endpoint: process.env.SHIKI_ENDPOINT,
},
Expand Down
1 change: 0 additions & 1 deletion apps/total-typescript/src/pages/concepts/[slug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const getStaticProps: GetStaticProps = async ({params}) => {
scope: data,
useShikiTwoslash: true,
syntaxHighlighterOptions: {
theme: 'dark-plus',
authorization: process.env.SHIKI_AUTH_TOKEN,
endpoint: process.env.SHIKI_ENDPOINT,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/skill-lesson/markdown/shiki-remote-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {Transformer} from 'unified'
import {Highlighter, getHighlighter} from 'shiki'
import defaultTheme from 'shiki/themes/github-dark.json'
import defaultTheme from './vs-dark-theme.json'

interface MarkdownNode {
type: string
Expand Down
Loading

0 comments on commit 6b726ca

Please sign in to comment.