Add dark mode code theme (#856)

This commit is contained in:
Paul Toffoloni 2023-07-18 01:20:44 +02:00 committed by GitHub
parent 1d9b0d49a2
commit 00b739243a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 53 additions and 0 deletions

View File

@ -125,3 +125,56 @@
.hljs-ln .hljs-ln-n:before {
content: attr(data-line-number);
}
@media (prefers-color-scheme: dark) {
.md-typeset .hljs {
color: #8194F7;
}
.hljs-class .hljs-title,
.hljs-type {
color: #a6e3ff;
}
.hljs-code,
.hljs-string,
.hljs-meta-string {
color: #F9ECFB;
}
.hljs-function {
color: #F9ECFB;
}
.hljs-variable,
.hljs-template-variable {
color: #40c4ff;
}
.hljs-attr {
color: #DF3EFB
}
.hljs-section {
color: #F9ECFB;
}
.hljs-meta {
color: #c0764e;
}
.hljs-subst {
color: #F9ECFB
}
.hljs-addition {
background-color: transparent;
color: #60e260;
}
.hljs-deletion {
background-color: transparent;
color: #ff7b72;
}
}