Skip to content

Commit

Permalink
feat(guide): light theme for syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Mar 25, 2023
1 parent ba93bc8 commit b8b852e
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 617 deletions.
3 changes: 1 addition & 2 deletions apps/guide/contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { defineDocumentType, makeSource } from 'contentlayer/source-files';
// import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
import themeGitHubDarkDimmed from './src/assets/github-dark-dimmed.json';

export const Content = defineDocumentType(() => ({
name: 'Content',
Expand Down Expand Up @@ -68,7 +67,7 @@ export default makeSource({
contentDirPath: 'src/content',
documentTypes: [Content],
mdx: {
remarkPlugins: [remarkGfm, [remarkCodeHike, { theme: themeGitHubDarkDimmed, lineNumbers: true }]],
remarkPlugins: [remarkGfm, [remarkCodeHike, { theme: 'css-variables', lineNumbers: true }]],
rehypePlugins: [
rehypeSlug,
// [
Expand Down
2 changes: 1 addition & 1 deletion apps/guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"homepage": "https://discord.js.org",
"dependencies": {
"@code-hike/mdx": "^0.8.1",
"@code-hike/mdx": "^0.7.5-next.0",
"@discordjs/ui": "workspace:^",
"@react-icons/all-files": "^4.1.0",
"@vercel/analytics": "^0.1.11",
Expand Down
1 change: 1 addition & 0 deletions apps/guide/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import '@unocss/reset/tailwind-compat.css';
import '~/styles/unocss.css';
import '~/styles/cmdk.css';
import '@code-hike/mdx/styles.css';
import '~/styles/ch.css';
import '~/styles/main.css';

export const metadata: Metadata = {
Expand Down
Loading

2 comments on commit b8b852e

@vercel
Copy link

@vercel vercel bot commented on b8b852e Mar 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on b8b852e Mar 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.