Skip to content

Commit

Permalink
feat: create syntax-highlighting styles for fark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Dec 12, 2022
1 parent b952006 commit e51568f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/styles/syntax-highlighting.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
pre[data-theme='dark'] {
color-scheme: dark;
}

html.light {
pre[data-theme='dark'] {
display: none;
}

div[data-rehype-pretty-code-title=''][data-theme='dark'] {
display: none;
}
}

html.dark {
pre[data-theme='light'] {
display: none;
}

div[data-rehype-pretty-code-title=''][data-theme='light'] {
display: none;
}
}

0 comments on commit e51568f

Please sign in to comment.