Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit a032161

Browse files
authored
Replaced theme with solarized light
Personal preference, and also the theme is designed for max readability.
1 parent d37a8e0 commit a032161

File tree

1 file changed

+47
-37
lines changed

1 file changed

+47
-37
lines changed

_sass/minima/prism.scss

Lines changed: 47 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,44 @@
1-
/* http://prismjs.com/download.html?themes=prism&languages=json&plugins=normalize-whitespace */
2-
/**
3-
* prism.js default theme for JavaScript, CSS and HTML
4-
* Based on dabblet (http://dabblet.com)
5-
* @author Lea Verou
6-
*/
1+
/* http://prismjs.com/download.html?themes=prism-solarizedlight&languages=json&plugins=normalize-whitespace */
2+
/*
3+
Solarized Color Schemes originally by Ethan Schoonover
4+
http://ethanschoonover.com/solarized
5+
6+
Ported for PrismJS by Hector Matos
7+
Website: https://krakendev.io
8+
Twitter Handle: https://twitter.com/allonsykraken)
9+
*/
10+
11+
/*
12+
SOLARIZED HEX
13+
--------- -------
14+
base03 #002b36
15+
base02 #073642
16+
base01 #586e75
17+
base00 #657b83
18+
base0 #839496
19+
base1 #93a1a1
20+
base2 #eee8d5
21+
base3 #fdf6e3
22+
yellow #b58900
23+
orange #cb4b16
24+
red #dc322f
25+
magenta #d33682
26+
violet #6c71c4
27+
blue #268bd2
28+
cyan #2aa198
29+
green #859900
30+
*/
731

832
code[class*="language-"],
933
pre[class*="language-"] {
10-
color: black;
11-
background: none;
12-
text-shadow: 0 1px white;
34+
color: #657b83; /* base00 */
1335
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
1436
text-align: left;
1537
white-space: pre;
1638
word-spacing: normal;
1739
word-break: normal;
1840
word-wrap: normal;
41+
1942
line-height: 1.5;
2043

2144
-moz-tab-size: 4;
@@ -30,51 +53,42 @@ pre[class*="language-"] {
3053

3154
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
3255
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
33-
text-shadow: none;
34-
background: #b3d4fc;
56+
background: #073642; /* base02 */
3557
}
3658

3759
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
3860
code[class*="language-"]::selection, code[class*="language-"] ::selection {
39-
text-shadow: none;
40-
background: #b3d4fc;
41-
}
42-
43-
@media print {
44-
code[class*="language-"],
45-
pre[class*="language-"] {
46-
text-shadow: none;
47-
}
61+
background: #073642; /* base02 */
4862
}
4963

5064
/* Code blocks */
5165
pre[class*="language-"] {
5266
padding: 1em;
5367
margin: .5em 0;
5468
overflow: auto;
69+
border-radius: 0.3em;
5570
}
5671

5772
:not(pre) > code[class*="language-"],
5873
pre[class*="language-"] {
59-
background: #f5f2f0;
74+
background-color: #fdf6e3; /* base3 */
6075
}
6176

6277
/* Inline code */
6378
:not(pre) > code[class*="language-"] {
6479
padding: .1em;
6580
border-radius: .3em;
66-
white-space: normal;
6781
}
6882

6983
.token.comment,
7084
.token.prolog,
7185
.token.doctype,
7286
.token.cdata {
73-
color: slategray;
87+
color: #93a1a1; /* base1 */
7488
}
7589

7690
.token.punctuation {
77-
color: #999;
91+
color: #586e75; /* base01 */
7892
}
7993

8094
.namespace {
@@ -88,41 +102,38 @@ pre[class*="language-"] {
88102
.token.constant,
89103
.token.symbol,
90104
.token.deleted {
91-
color: #905;
105+
color: #268bd2; /* blue */
92106
}
93107

94108
.token.selector,
95109
.token.attr-name,
96110
.token.string,
97111
.token.char,
98112
.token.builtin,
113+
.token.url,
99114
.token.inserted {
100-
color: #690;
115+
color: #2aa198; /* cyan */
101116
}
102117

103-
.token.operator,
104-
.token.entity,
105-
.token.url,
106-
.language-css .token.string,
107-
.style .token.string {
108-
color: #a67f59;
109-
background: hsla(0, 0%, 100%, .5);
118+
.token.entity {
119+
color: #657b83; /* base00 */
120+
background: #eee8d5; /* base2 */
110121
}
111122

112123
.token.atrule,
113124
.token.attr-value,
114125
.token.keyword {
115-
color: #07a;
126+
color: #859900; /* green */
116127
}
117128

118129
.token.function {
119-
color: #DD4A68;
130+
color: #b58900; /* yellow */
120131
}
121132

122133
.token.regex,
123134
.token.important,
124135
.token.variable {
125-
color: #e90;
136+
color: #cb4b16; /* orange */
126137
}
127138

128139
.token.important,
@@ -136,4 +147,3 @@ pre[class*="language-"] {
136147
.token.entity {
137148
cursor: help;
138149
}
139-

0 commit comments

Comments
 (0)