Skip to content

Commit d79b3bd

Browse files
committed
feat: update code blocks colors
1 parent 9b9590a commit d79b3bd

File tree

10 files changed

+46
-27
lines changed

10 files changed

+46
-27
lines changed

components/docs/mdx.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const components = {
144144
pre: ({ className, ...props }) => (
145145
<pre
146146
className={cn(
147-
"mt-6 mb-4 overflow-x-auto rounded-lg bg-slate-50 py-4",
147+
"mt-6 mb-4 overflow-x-auto rounded-lg bg-slate-900 py-4",
148148
className
149149
)}
150150
{...props}

content/blog/deploying-next-apps.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ Something a wise person once told me about typography is:
6868
6969
It's probably important that images look okay here by default as well:
7070

71-
![](/images/blog/blog-post-4.jpg)
71+
<Image
72+
src="/images/blog/blog-post-4.jpg"
73+
width="718"
74+
height="404"
75+
alt="Image"
76+
/>
7277

7378
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7479

content/blog/dynamic-routing-static-regeneration.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ Something a wise person once told me about typography is:
6868
6969
It's probably important that images look okay here by default as well:
7070

71-
![](/images/blog/blog-post-4.jpg)
71+
<Image
72+
src="/images/blog/blog-post-4.jpg"
73+
width="718"
74+
height="404"
75+
alt="Image"
76+
/>
7277

7378
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7479

content/blog/preview-mode-headless-cms.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ Something a wise person once told me about typography is:
6868
6969
It's probably important that images look okay here by default as well:
7070

71-
![](/images/blog/blog-post-4.jpg)
71+
<Image
72+
src="/images/blog/blog-post-4.jpg"
73+
width="718"
74+
height="404"
75+
alt="Image"
76+
/>
7277

7378
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7479

content/blog/server-client-components.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ Something a wise person once told me about typography is:
6868
6969
It's probably important that images look okay here by default as well:
7070

71-
![](/images/blog/blog-post-4.jpg)
71+
<Image
72+
src="/images/blog/blog-post-4.jpg"
73+
width="718"
74+
height="404"
75+
alt="Image"
76+
/>
7277

7378
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7479

content/docs/documentation/style-guide.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ Something a wise person once told me about typography is:
6565
6666
It's probably important that images look okay here by default as well:
6767

68-
![](/images/blog/blog-post-4.jpg)
68+
<Image
69+
src="/images/blog/blog-post-4.jpg"
70+
width="718"
71+
height="404"
72+
alt="Image"
73+
/>
6974

7075
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7176

content/guides/build-blog-using-contentlayer-mdx.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ Something a wise person once told me about typography is:
7171
7272
It's probably important that images look okay here by default as well:
7373

74-
![](/images/blog/blog-post-4.jpg)
74+
<Image
75+
src="/images/blog/blog-post-4.jpg"
76+
width="718"
77+
height="404"
78+
alt="Image"
79+
/>
7580

7681
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7782

content/guides/using-next-auth-next-13.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ Something a wise person once told me about typography is:
7171
7272
It's probably important that images look okay here by default as well:
7373

74-
![](/images/blog/blog-post-4.jpg)
74+
<Image
75+
src="/images/blog/blog-post-4.jpg"
76+
width="718"
77+
height="404"
78+
alt="Image"
79+
/>
7580

7681
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
7782

contentlayer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default makeSource({
151151
[
152152
rehypePrettyCode,
153153
{
154-
theme: "css-variables",
154+
theme: "github-dark",
155155
onVisitLine(node) {
156156
// Prevent lines from collapsing in `display: grid` mode, and allow empty
157157
// lines to be copy/pasted

styles/mdx.css

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
:root {
2-
--shiki-color-text: #414141;
3-
--shiki-color-background: transparent;
4-
--shiki-token-constant: #114b84;
5-
--shiki-token-string: #0e7226;
6-
--shiki-token-comment: #aaa;
7-
--shiki-token-keyword: #d32f2f;
8-
--shiki-token-parameter: #ff9800;
9-
--shiki-token-function: #6f42c1;
10-
--shiki-token-string-expression: #0e7226;
11-
--shiki-token-punctuation: #212121;
12-
--shiki-token-link: #0e7226;
13-
--nextra-shiki-deleted: #f00;
14-
--nextra-shiki-inserted: #0e7226;
15-
}
16-
171
[data-rehype-pretty-code-fragment] code {
182
@apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0 text-sm text-black;
193
counter-reset: line;
@@ -32,13 +16,13 @@
3216
color: gray;
3317
}
3418
[data-rehype-pretty-code-fragment] .line--highlighted {
35-
@apply bg-slate-500 bg-opacity-10;
19+
@apply bg-slate-300 bg-opacity-10;
3620
}
3721
[data-rehype-pretty-code-fragment] .line-highlighted span {
3822
@apply relative;
3923
}
4024
[data-rehype-pretty-code-fragment] .word--highlighted {
41-
@apply rounded-md bg-slate-500 bg-opacity-10 p-1;
25+
@apply rounded-md bg-slate-300 bg-opacity-10 p-1;
4226
}
4327
[data-rehype-pretty-code-title] {
4428
@apply mt-4 py-2 px-4 text-sm font-medium;

0 commit comments

Comments
 (0)