-
Notifications
You must be signed in to change notification settings - Fork 503
/
prism-theme-template.css
226 lines (185 loc) · 4.3 KB
/
prism-theme-template.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
/**
* Your theme's name
* If this is an adaptation of an existing theme, credit the creator and/or leave a link to it!
* Optional: Your name and/or username
*/
/**
* Prism supports IE11, which does not support CSS variables
* However, you are encouraged to leave a list of colours you use here
* so that when we transition to Prism V2 (and drop support for IE11),
* the transition will be a little easier!
*/
/**
* How to use this template:
*
* This file contains all the boilerplate necessary for a Prism theme along with template rules for you to fill in.
*
* All properties with the value `unset` are for you to change.
* You should fill in all `color` and `background` properties.
* If you don't need an `unset` property (e.g. `border-radius`), then feel free to remove it.
* You are also free to add more properties that aren't stated, such as `text-shadow`.
* If you wish to style the plugins, you may grab their selectors from their respective .css files in the template folder.
*
* Your finished theme should have all `unset` properties either filled in or removed.
*/
/* Set the main properties of the code, code blocks, and inline code */
code[class*="language-"],
pre[class*="language-"] {
background: unset;
color: unset;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; /* this is the default */
/* The following properties are standard, please leave them as they are */
font-size: 1em;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
line-height: 1.5;
/* The default is 4, but you could change it if you really, really want to */
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
/* The following properties are also standard */
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Optional: What the code looks like when highlighted */
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection {
background: unset;
color: unset;
}
code[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection {
background: unset;
color: unset;
}
/* Properties specific to code blocks */
pre[class*="language-"] {
padding: 1em; /* this is standard */
margin: 0.5em 0; /* this is the default */
overflow: auto; /* this is standard */
border-radius: unset;
}
/* Properties specific to inline code */
:not(pre) > code[class*="language-"] {
padding: 0.1em; /* this is the default */
border-radius: unset;
white-space: normal; /* this is standard */
}
/**
* These are the minimum tokens you must style, you can rearrange them and/or style more tokens as you want
* The concepts behind these standard tokens, as well as some examples, can be found here: https://prismjs.com/tokens.html
*/
.token.comment {
color: unset;
}
.token.prolog {
color: unset;
}
.token.cdata {
color: unset;
}
.token.doctype {
color: unset;
}
.token.punctuation {
color: unset;
}
.token.entity {
color: unset;
}
.token.attr-name {
color: unset;
}
.token.class-name {
color: unset;
}
.token.boolean {
color: unset;
}
.token.constant {
color: unset;
}
.token.number {
color: unset;
}
.token.atrule {
color: unset;
}
.token.keyword {
color: unset;
}
.token.property {
color: unset;
}
.token.tag {
color: unset;
}
.token.symbol {
color: unset;
}
.token.deleted {
color: unset;
}
.token.important {
color: unset;
}
.token.selector {
color: unset;
}
.token.string {
color: unset;
}
.token.char {
color: unset;
}
.token.builtin {
color: unset;
}
.token.inserted {
color: unset;
}
.token.regex {
color: unset;
}
.token.attr-value {
color: unset;
}
.token.variable {
color: unset;
}
.token.operator {
color: unset;
}
.token.function {
color: unset;
}
.token.url {
color: unset;
}
/* The following rules are pretty similar across themes, but feel free to adjust them */
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.namespace {
opacity: 0.7;
}
/* LANGUAGE-SPECIFIC OVERRIDES */
/* If you'd like your theme to have overrides for specific languages, here's an example, you can remove it and/or add more overrides */
.language-css .token.important {
color: unset;
}