Improve colors and styling.

This commit is contained in:
Leo
2021-12-02 21:24:20 -06:00
parent b3a713b9c2
commit 5af8a5a75a

View File

@@ -1,101 +1,92 @@
/** /**
* Prism Essence Theme, based on Material Theme. * Prism Essence Theme, based on Material Theme.
*
* Author: Leo Nguyen
*/ */
$prism-bg: hsl(220, 25%, 25%);
$prism-gray: hsl(230, 40%, 70%);
$prism-red: hsl(0, 100%, 80%);
$prism-orange: hsl(15, 90%, 70%);
$prism-yellow: hsl(50, 100%, 75%);
$prism-green: hsl(100, 80%, 80%);
$prism-cyan: hsl(200, 100%, 80%);
$prism-blue: hsl(230, 100%, 80%);
$prism-purple: hsl(275, 100%, 80%);
code[class*="language-"], pre {
pre[class*="language-"] { margin: 0.5em 0;
padding: 0; padding: 1.5em;
color: #fff; border-radius: 0.5rem;
background: none; background: $prism-bg;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em; font-size: 1rem;
text-align: left; line-height: 1.5;
overflow: auto;
white-space: pre; white-space: pre;
word-spacing: normal; word-spacing: normal;
word-break: normal; word-break: normal;
word-wrap: normal; word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4; tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none; hyphens: none;
code {
padding: 0;
color: #fff;
background: $prism-bg;
}
} }
/* Code blocks */ /* Purple (keyword) */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
border-radius: 8px;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d3748;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
/* Purple (keywords) */
.token.important,
.token.atrule,
.token.keyword, .token.keyword,
.token.builtin { .token.important,
color: #d9a9ff; // #cc99cd; .token.builtin,
.token.atrule {
color: $prism-purple;
} }
/* Yellow (classes, properties) */ /* Yellow (entity, class) */
.token.entity, .token.entity,
.token.class,
.token.name, .token.name,
.token.class-name, .token.class-name,
.token.class,
.token.package, .token.package,
.token.scope, .token.scope,
.token.attr-name { .token.attr-name {
color: #ffe484; // #FFCB6B; color: $prism-yellow;
} }
/* Blue (functions) */ /* Blue (function) */
.token.function-name, .token.function-name,
.token.boolean,
.token.function { .token.function {
color: #82AAFF; color: $prism-blue;
} }
/* Red (tags) */ /* Red (tag) */
.token.tag, .token.tag,
.token.namespace, .token.namespace,
.token.selector, .token.selector,
.token.deleted { .token.deleted {
color: #ff8383; // #F07178; color: $prism-red;
} }
/* Green (strings, attribute values) */ /* Green (string, attribute) */
.token.string, .token.string,
.token.char, .token.char,
.token.property, .token.property,
.token.attr-value, .token.attr-value,
.token.regex { .token.regex {
color: #b5f4a5; // #C3E88D; color: $prism-green;
} }
/* Orange (numbers) */ /* Orange (number, literal) */
.token.number, .token.number,
.token.boolean,
.token.constant { .token.constant {
color: #F78C6C; color: $prism-orange;
} }
/* Cyan (signs) */ /* Cyan (sign) */
.token.symbol, .token.symbol,
.token.punctuation, .token.punctuation,
.token.operator, .token.operator,
@@ -103,22 +94,22 @@ pre[class*="language-"] {
.token.unit, .token.unit,
.token.hexcode, .token.hexcode,
.token.doctype-tag { .token.doctype-tag {
color: #89DDFF; color: $prism-cyan;
} }
/* White (variables, CSS pseudo classes) */ /* White (variable, CSS pseudo class) */
.token.variable, .token.variable,
.token.pseudo-class { .token.pseudo-class {
color: #fff; color: #fff;
} }
/* Gray (comments) */ /* Gray (comment) */
.token.comment, .token.comment,
.token.block-comment, .token.block-comment,
.token.prolog, .token.prolog,
.token.doctype, .token.doctype,
.token.cdata { .token.cdata {
color: #99a3d0; // Palelight color: $prism-gray;
} }
.token.important, .token.important,