Skip to content

Instantly share code, notes, and snippets.

@nschneid
Last active June 4, 2017 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nschneid/849905f538b0021a41b71137e6f7f753 to your computer and use it in GitHub Desktop.
Save nschneid/849905f538b0021a41b71137e6f7f753 to your computer and use it in GitHub Desktop.
Vivid themes for highlight.js
/* Vivid Dark - Theme for highlight.js */
/* by Nathan Schneider (@nschneid) */
/* adapted from Atom theme: https://github.com/nschneid/vivid-syntax */
/* medium gray */
.hljs-comment {
color: hsl(220,9%, 55%)
}
/* orange */
.hljs-variable,
.hljs-regexp,
.hljs-attribute,
.ruby .hljs-constant,
.xml .hljs-pi,
.xml .hljs-doctype,
.html .hljs-doctype,
.language-css .hljs-class,
.language-css .hljs-pseudo {
color: hsl(30, 100%, 70%);
}
/* orange */
.hljs-number,
.language-css .css-rule .css-value,
.hljs-preprocessor,
.hljs-pragma,
.hljs-built_in,
.hljs-literal,
.hljs-params,
.hljs-constant,
.hljs-class .hljs-title {
color: hsl(30, 100%, 70%);
}
/* light purple */
.hljs-string,
.hljs-value,
.hljs-inheritance,
.hljs-header,
.ruby .hljs-symbol,
.xml .hljs-cdata,
.hljs-class .hljs-params {
color: rgb(195, 161, 242);
}
/* green */
.hljs-decorator,
.language-css .hljs-attribute,
.ruby .hljs-title .hljs-keyword,
.perl .hljs-sub {
color: hsl(95, 38%, 62%);
}
/* blue */
.hljs-function .hljs-title,
.language-css .hljs-id {
color: hsl(207, 82%, 66%);
}
/* magenta */
.hljs-keyword,
.hljs-function,
.hljs-tag,
.xml .hljs-tag .hljs-title {
color: hsl(334, 100%, 70%);
}
.hljs {
display: block;
overflow-x: auto;
background: hsl(220,13%,18%);
color: hsl(220, 14%, 71%);
padding: 0.5em;
-webkit-text-size-adjust: none;
}
.coffeescript .javascript,
.javascript .xml,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
opacity: 0.5;
}
/* Vivid Light - Theme for highlight.js */
/* by Nathan Schneider (@nschneid) */
/* adapted from Atom theme: https://github.com/nschneid/vivid-syntax */
/* medium gray */
.hljs-comment {
color: hsl(220,9%, 75%)
}
/* orange */
.hljs-variable,
.hljs-regexp,
.hljs-attribute,
.ruby .hljs-constant,
.xml .hljs-pi,
.xml .hljs-doctype,
.html .hljs-doctype,
.language-css .hljs-class,
.language-css .hljs-pseudo {
color: hsl(33, 100%, 50%);
}
/* orange */
.hljs-number,
.language-css .css-rule .css-value,
.hljs-preprocessor,
.hljs-pragma,
.hljs-built_in,
.hljs-literal,
.hljs-params,
.hljs-constant,
.hljs-class .hljs-title {
color: hsl(33, 100%, 50%);
}
/* light purple */
.hljs-string,
.hljs-value,
.hljs-inheritance,
.hljs-header,
.ruby .hljs-symbol,
.xml .hljs-cdata,
.hljs-class .hljs-params {
color: hsl(270, 50%, 70%);
}
/* green */
.hljs-decorator,
.language-css .hljs-attribute,
.ruby .hljs-title .hljs-keyword,
.perl .hljs-sub {
color: hsl(95, 38%, 50%);
}
/* blue */
.hljs-function .hljs-title,
.language-css .hljs-id {
color: hsl(207, 82%, 60%);
}
/* magenta */
.hljs-keyword,
.hljs-function,
.hljs-tag,
.xml .hljs-tag .hljs-title {
color: hsl(329, 92%, 50%);
}
.hljs {
display: block;
overflow-x: auto;
background: #fff;
color: hsl(220, 14%, 33%);
padding: 0.5em;
-webkit-text-size-adjust: none;
}
.coffeescript .javascript,
.javascript .xml,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
opacity: 0.5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment