changed prism colors

This commit is contained in:
2022-09-11 22:39:35 +02:00
parent 31c106c58e
commit 859c1d81b7
7 changed files with 406 additions and 120 deletions

View File

@@ -1,4 +1,3 @@
@charset "UTF-8";
@import "base/generic";
@import "base/prism";

View File

@@ -1,117 +0,0 @@
code[class*="language-"],
pre[class*="language-"] {
color: #657b83;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
font-size: 1em;
-ms-hyphens: none;
-moz-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
line-height: 1.5;
-o-tab-size: 4;
-moz-tab-size: 4;
tab-size: 4;
text-align: left;
white-space: pre;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
}
pre[class*="language-"] {
border-radius: 0.3em;
margin: 0.5em 0;
overflow: auto;
padding: 1em;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background-color: #fdf6e3;
}
:not(pre) > code[class*="language-"] {
border-radius: 0.3em;
padding: 0.1em;
}
code[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
pre[class*="language-"]::-moz-selection {
background: #073642;
}
code[class*="language-"] ::selection,
code[class*="language-"]::selection,
pre[class*="language-"] ::selection,
pre[class*="language-"]::selection {
background: #073642;
}
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
color: #93a1a1;
}
.token.punctuation {
color: #586e75;
}
.namespace {
opacity: 0.7;
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
color: #268bd2;
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string,
.token.url {
color: #2aa198;
}
.token.entity {
background: #eee8d5;
color: #657b83;
cursor: help;
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #859900;
}
.token.class-name,
.token.function {
color: #b58900;
}
.token.regex,
.token.important,
.token.variable {
color: #cb4b16;
}
.token.bold,
.token.important {
font-weight: bold;
}
.token.italic {
font-style: italic;
}

View File

@@ -0,0 +1,131 @@
/**
* GHColors theme by Avi Aryan (http://aviaryan.in)
* Inspired by Github syntax coloring
*/
[data-theme="light"] {
code[class*="language-"],
pre[class*="language-"] {
color: #393A34;
direction: ltr;
font-family: Consolas, Bitstream Vera Sans Mono, Courier New, Courier, monospace;
font-size: .9em;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
line-height: 1.2em;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
text-align: left;
white-space: pre;
word-break: normal;
word-spacing: normal;
}
pre>code[class*="language-"] {
font-size: 1em;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
background: #b3d4fc;
}
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
background: #b3d4fc;
}
/* Code blocks */
pre[class*="language-"] {
background-color: #fff;
border: 1px solid #dddddd;
margin: .5em 0;
overflow: auto;
padding: 1em;
}
/* Inline code */
:not(pre)>code[class*="language-"] {
background: #f8f8f8;
border: 1px solid #dddddd;
padding: .2em;
padding-bottom: 1px;
padding-top: 1px;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999988;
font-style: italic;
}
.token.namespace {
opacity: .7;
}
.token.string,
.token.attr-value {
color: #e3116c;
}
.token.punctuation,
.token.operator {
color: #393A34;
/* no highlight */
}
.token.entity,
.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.property,
.token.regex,
.token.inserted {
color: #36acaa;
}
.token.tag,
.token.selector {
color: #00009f;
}
.token.atrule,
.token.keyword,
.token.attr-name,
.language-autohotkey .token.selector {
color: #00a4db;
}
.token.function,
.token.deleted,
.language-autohotkey .token.tag {
color: #9a050f;
}
.language-autohotkey .token.keyword {
color: #00009f;
}
.token.important,
.token.function,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
}

View File

@@ -0,0 +1,124 @@
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/
[data-theme="dark"] {
code[class*="language-"],
pre[class*="language-"] {
background: none;
color: #ccc;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
font-size: 1em;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
text-align: left;
white-space: pre;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
}
/* Code blocks */
pre[class*="language-"] {
margin: .5em 0;
overflow: auto;
padding: 1em;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d !important;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
border-radius: .3em;
padding: .1em;
white-space: normal;
}
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999;
}
.token.punctuation {
color: #ccc;
}
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
}
.token.function-name {
color: #6196cc;
}
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
}
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
}
.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
}
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
}
.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: #008000;
}
}