Skip to content

Commit

Permalink
feat: updates theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Jun 8, 2023
1 parent 54cb827 commit 483f5fc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/styles/prism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ const prismStyles = css`
/* Overrides */
--prism-scheme: dark;
--prism-foreground: #ffa657;
--prism-foreground: #a5d6ff;
--prism-background: #1a202c;
--prism-comment: #7285b7;
--prism-string: #a5d6ff;
--prism-literal: #429988;
--prism-keyword: #ff7b72;
--prism-keyword: #5fb6ff;
--prism-function: #79c0ff;
--prism-function-variable: #d2a8ff;
--prism-deleted: #a14f55;
--prism-class: #7ee787;
--prism-class: #b794f4;
--prism-builtin: #c9d1d9;
--prism-property: #79c0ff;
--prism-parameter: #c9d1d9;
Expand All @@ -88,9 +88,9 @@ const prismStyles = css`
--prism-decorator: #bd8f8f;
--prism-number: #6394bf;
--prism-boolean: #1c6b48;
--prism-variable: #c2b36e;
--prism-variable: #4299e1;
--prism-regex: #ab5e3f;
--prism-json-property: #6b8b9e;
--prism-json-property: #5fb6ff;
--prism-line-number: #888888;
--prism-line-number-gutter: #eeeeee;
--prism-line-highlight-background: #444444;
Expand Down Expand Up @@ -338,7 +338,7 @@ const prismStyles = css`
#181924
); /* Set highlight bg color */
border-left-width: 2px;
border-left-color: rgb(255 166 87); /* Set highlight accent border color */
border-left-color: #b794f4; /* Set highlight accent border color */
}
.line-number::before {
Expand Down Expand Up @@ -380,14 +380,15 @@ const prismStyles = css`
.rehype-code-title {
margin: ${theme.space[6]} 0 0;
padding: ${theme.space[2]} ${theme.space[4]};
padding: ${theme.space[4]} ${theme.space[6]};
font-family: ${theme.fonts.mono};
background: ${theme.colors.gray[200]};
color: ${theme.colors.gray[800]};
border-top-left-radius: ${theme.radii.sm};
border-top-right-radius: ${theme.radii.sm};
border-width: 1px;
border-bottom: 0;
font-size: 0.8rem;
font-weight: 600;
width: 100%;
+ pre[class*="language-"] {
Expand All @@ -403,8 +404,9 @@ const prismStyles = css`
}
.rehype-code-title {
background: ${theme.colors.gray[700]};
background: ${theme.colors.gray[900]};
color: ${theme.colors.gray[100]};
border-color: ${theme.colors.gray[700]};
}
:not(pre) > code {
Expand Down

1 comment on commit 483f5fc

@vercel
Copy link

@vercel vercel bot commented on 483f5fc Jun 8, 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.