Skip to content

Commit

Permalink
style: update theme of code block and live editor
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinchen committed Nov 1, 2024
1 parent da005cf commit ea20964
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 202 deletions.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import rehypeAutolinkHeadings from 'rehype-autolink-headings';

const options = {
// Use one of Shiki's packaged themes
theme: 'css-variables',
theme: 'dracula',
// Or your own JSON theme
// theme: JSON.parse(
// fs.readFileSync(require.resolve('./themes/dark.json'), 'utf-8')
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"react-live": "^4.1.6",
"react-test-renderer": "^18.2.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-pretty-code": "^0.9.7",
"rehype-pretty-code": "^0.14.0",
"rehype-slug": "^5.1.0",
"remark-gfm": "^3.0.1",
"rollup": "^4.17.2",
Expand All @@ -110,7 +110,7 @@
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-serve": "^2.0.3",
"shiki": "^0.14.2",
"shiki": "^1.3.0",
"tailwindcss": "^3.3.2",
"ts-jest": "^29.1.2",
"tslib": "^2.4.0",
Expand Down
Loading

0 comments on commit ea20964

Please sign in to comment.