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
+ */
7
31
8
32
code [class *= " language-" ],
9
33
pre [class *= " language-" ] {
10
- color : black ;
11
- background : none ;
12
- text-shadow : 0 1px white ;
34
+ color : #657b83 ; /* base00 */
13
35
font-family : Consolas, Monaco, ' Andale Mono' , ' Ubuntu Mono' , monospace ;
14
36
text-align : left ;
15
37
white-space : pre ;
16
38
word-spacing : normal ;
17
39
word-break : normal ;
18
40
word-wrap : normal ;
41
+
19
42
line-height : 1.5 ;
20
43
21
44
-moz-tab-size : 4 ;
@@ -30,51 +53,42 @@ pre[class*="language-"] {
30
53
31
54
pre [class *= " language-" ]::-moz-selection , pre [class *= " language-" ] ::-moz-selection ,
32
55
code [class *= " language-" ]::-moz-selection , code [class *= " language-" ] ::-moz-selection {
33
- text-shadow : none ;
34
- background : #b3d4fc ;
56
+ background : #073642 ; /* base02 */
35
57
}
36
58
37
59
pre [class *= " language-" ]::selection , pre [class *= " language-" ] ::selection ,
38
60
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 */
48
62
}
49
63
50
64
/* Code blocks */
51
65
pre [class *= " language-" ] {
52
66
padding : 1em ;
53
67
margin : .5em 0 ;
54
68
overflow : auto ;
69
+ border-radius : 0.3em ;
55
70
}
56
71
57
72
:not (pre ) > code [class *= " language-" ],
58
73
pre [class *= " language-" ] {
59
- background : #f5f2f0 ;
74
+ background-color : #fdf6e3 ; /* base3 */
60
75
}
61
76
62
77
/* Inline code */
63
78
:not (pre ) > code [class *= " language-" ] {
64
79
padding : .1em ;
65
80
border-radius : .3em ;
66
- white-space : normal ;
67
81
}
68
82
69
83
.token.comment ,
70
84
.token.prolog ,
71
85
.token.doctype ,
72
86
.token.cdata {
73
- color : slategray ;
87
+ color : #93a1a1 ; /* base1 */
74
88
}
75
89
76
90
.token.punctuation {
77
- color : #999 ;
91
+ color : #586e75 ; /* base01 */
78
92
}
79
93
80
94
.namespace {
@@ -88,41 +102,38 @@ pre[class*="language-"] {
88
102
.token.constant ,
89
103
.token.symbol ,
90
104
.token.deleted {
91
- color : #905 ;
105
+ color : #268bd2 ; /* blue */
92
106
}
93
107
94
108
.token.selector ,
95
109
.token.attr-name ,
96
110
.token.string ,
97
111
.token.char ,
98
112
.token.builtin ,
113
+ .token.url ,
99
114
.token.inserted {
100
- color : #690 ;
115
+ color : #2aa198 ; /* cyan */
101
116
}
102
117
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 */
110
121
}
111
122
112
123
.token.atrule ,
113
124
.token.attr-value ,
114
125
.token.keyword {
115
- color : #07a ;
126
+ color : #859900 ; /* green */
116
127
}
117
128
118
129
.token.function {
119
- color : #DD4A68 ;
130
+ color : #b58900 ; /* yellow */
120
131
}
121
132
122
133
.token.regex ,
123
134
.token.important ,
124
135
.token.variable {
125
- color : #e90 ;
136
+ color : #cb4b16 ; /* orange */
126
137
}
127
138
128
139
.token.important ,
@@ -136,4 +147,3 @@ pre[class*="language-"] {
136
147
.token.entity {
137
148
cursor : help ;
138
149
}
139
-
0 commit comments