Created
November 4, 2020 09:31
-
-
Save jaclyntan/f87af1772f40ba2039b8fc0631f02cb4 to your computer and use it in GitHub Desktop.
Darktooth theme for Prism
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated with http://k88hudson.github.io/syntax-highlighting-theme-generator/www */ | |
/* http://k88hudson.github.io/react-markdocs */ | |
/** | |
* @author k88hudson | |
* | |
* Based on prism.js default theme for JavaScript, CSS and HTML | |
* Based on dabblet (http://dabblet.com) | |
* @author Lea Verou | |
*/ | |
/********************************************************* | |
* General | |
*/ | |
pre[class*="language-"], | |
code[class*="language-"] { | |
color: #528b8b; | |
font-size: 13px; | |
text-shadow: none; | |
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | |
direction: ltr; | |
text-align: left; | |
white-space: pre; | |
word-spacing: normal; | |
word-break: normal; | |
line-height: 1.5; | |
-moz-tab-size: 4; | |
-o-tab-size: 4; | |
tab-size: 4; | |
-webkit-hyphens: none; | |
-moz-hyphens: none; | |
-ms-hyphens: none; | |
hyphens: none; | |
} | |
pre[class*="language-"]::selection, | |
code[class*="language-"]::selection, | |
pre[class*="language-"]::mozselection, | |
code[class*="language-"]::mozselection { | |
text-shadow: none; | |
background: #b3d4fc; | |
} | |
@media print { | |
pre[class*="language-"], | |
code[class*="language-"] { | |
text-shadow: none; | |
} | |
} | |
pre[class*="language-"] { | |
padding: 1em; | |
margin: .5em 0; | |
overflow: auto; | |
background: #282828; | |
} | |
:not(pre)>code[class*="language-"] { | |
padding: .1em .3em; | |
border-radius: .3em; | |
color: #83a598; | |
background: #282828; | |
} | |
/********************************************************* | |
* Tokens | |
*/ | |
.namespace { | |
opacity: .7; | |
} | |
.token.comment, | |
.token.prolog, | |
.token.doctype, | |
.token.cdata { | |
color: #7c6f64; | |
} | |
.token.punctuation { | |
color: #fdf4c1; | |
} | |
.token.property, | |
.token.tag, | |
.token.boolean, | |
.token.number, | |
.token.constant, | |
.token.symbol, | |
.token.deleted { | |
color: #bbaa97; | |
} | |
.token.selector, | |
.token.attr-name, | |
.token.string, | |
.token.char, | |
.token.builtin, | |
.token.inserted { | |
color: #83a598; | |
} | |
.token.operator, | |
.token.entity, | |
.token.url, | |
.language-css .token.string, | |
.style .token.string { | |
color: #a67f59; | |
background: #2b3c44; | |
} | |
.token.atrule, | |
.token.attr-value, | |
.token.keyword { | |
color: #dd6f48; | |
} | |
.token.function { | |
color: #fe8019; | |
} | |
.token.regex, | |
.token.important, | |
.token.variable { | |
color: #fe8019; | |
} | |
.token.important, | |
.token.bold { | |
font-weight: bold; | |
} | |
.token.italic { | |
font-style: italic; | |
} | |
.token.entity { | |
cursor: help; | |
} | |
/********************************************************* | |
* Line highlighting | |
*/ | |
pre[data-line] { | |
position: relative; | |
} | |
pre[class*="language-"]>code[class*="language-"] { | |
position: relative; | |
z-index: 1; | |
} | |
.line-highlight { | |
position: absolute; | |
left: 0; | |
right: 0; | |
padding: inherit 0; | |
margin-top: 1em; | |
background: #2b3c44; | |
box-shadow: inset 5px 0 0 #fe8019; | |
z-index: 0; | |
pointer-events: none; | |
line-height: inherit; | |
white-space: pre; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment