Skip to content

Commit 3703841

Browse files
Dracula Theme for Pandoc
1 parent 9c46ffc commit 3703841

File tree

7 files changed

+245
-64
lines changed

7 files changed

+245
-64
lines changed

INSTALL.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
### [X](http://link-to-x.com)
1+
### [Pandoc](https://pandoc.org)
22

33
#### Install using Git
44

55
If you are a git user, you can install the theme and keep up to date by cloning the repo:
66

7-
$ git clone https://github.com/dracula/template.git
7+
$ git clone https://github.com/dracula/pandoc.git
88

99
#### Install manually
1010

11-
Download using the [GitHub .zip download](https://github.com/dracula/template/archive/master.zip) option and unzip them.
11+
Download using the [GitHub .zip download](https://github.com/dracula/pandoc/archive/master.zip) option and unzip them.
1212

1313
#### Activating theme
1414

15-
1. Do this
16-
2. Then that
17-
3. Boom! It's working
15+
1. Copy `dracula.theme` and `dracula.yaml` somewhere memorable (perhaps
16+
into `~/.config/pandoc/`)
17+
2. Get `draculatheme.sty` from [the LaTeX Dracula
18+
theme](https://draculatheme.com/latex) and put it with `dracula.theme` and
19+
`dracula.yaml`
20+
3. Replace the paths in `dracula.yaml` with the full paths of wherever you have
21+
placed `dracula.theme` and `draculatheme.sty`
22+
4. Use pandoc with the flag `--defaults path/to/dracula.yaml`
23+
3. Boom! It's working

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Dracula for [X](http://link-to-x.com)
1+
# Dracula for [Pandoc](https://pandoc.org)
22

3-
> A dark theme for [X](http://link-to-x.com).
3+
> A dark theme for [Pandoc](https://pandoc.org).
44
55
![Screenshot](./screenshot.png)
66

77
## Install
88

9-
All instructions can be found at [draculatheme.com/x](https://draculatheme.com/x).
9+
All instructions can be found at [draculatheme.com/pandoc](https://draculatheme.com/pandoc).
1010

1111
## Team
1212

13-
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/template/graphs/contributors).
13+
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/pandoc/graphs/contributors).
1414

15-
[![Zeno Rocha](https://github.com/zenorocha.png?size=100)](https://github.com/zenorocha) |
15+
[![Ellie Clifford](https://github.com/eleanor-clifford.png?size=100)](https://github.com/eleanor-clifford) |
1616
--- |
17-
[Zeno Rocha](https://github.com/zenorocha) |
17+
[Ellie Clifford](https://github.com/eleanor-clifford) |
1818

1919
## License
2020

dracula.theme

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
{
2+
"text-color": null,
3+
"background-color": "#242630",
4+
"line-number-color": "#6272a4",
5+
"line-number-background-color": null,
6+
"text-styles": {
7+
"Other": {
8+
"text-color": "#f8f8f2",
9+
"background-color": null,
10+
"bold": false,
11+
"italic": false,
12+
"underline": false
13+
},
14+
"Attribute": {
15+
"text-color": "#f1fa8c",
16+
"background-color": null,
17+
"bold": false,
18+
"italic": false,
19+
"underline": false
20+
},
21+
"SpecialString": {
22+
"text-color": "#f1fa8c",
23+
"background-color": null,
24+
"bold": false,
25+
"italic": false,
26+
"underline": false
27+
},
28+
"Annotation": {
29+
"text-color": "#f1fa8c",
30+
"background-color": null,
31+
"bold": true,
32+
"italic": false,
33+
"underline": false
34+
},
35+
"Function": {
36+
"text-color": "#50fa7b",
37+
"background-color": null,
38+
"bold": false,
39+
"italic": false,
40+
"underline": false
41+
},
42+
"String": {
43+
"text-color": "#f1fa8c",
44+
"background-color": null,
45+
"bold": false,
46+
"italic": false,
47+
"underline": false
48+
},
49+
"ControlFlow": {
50+
"text-color": "#ff79c6",
51+
"background-color": null,
52+
"bold": true,
53+
"italic": false,
54+
"underline": false
55+
},
56+
"Operator": {
57+
"text-color": "#f8f8f2",
58+
"background-color": null,
59+
"bold": false,
60+
"italic": false,
61+
"underline": false
62+
},
63+
"Error": {
64+
"text-color": "#ff5555",
65+
"background-color": null,
66+
"bold": true,
67+
"italic": false,
68+
"underline": false
69+
},
70+
"BaseN": {
71+
"text-color": "#bd93f9",
72+
"background-color": null,
73+
"bold": false,
74+
"italic": false,
75+
"underline": false
76+
},
77+
"Alert": {
78+
"text-color": "#ff5555",
79+
"background-color": null,
80+
"bold": true,
81+
"italic": false,
82+
"underline": false
83+
},
84+
"Variable": {
85+
"text-color": "#f8f8f2",
86+
"background-color": null,
87+
"bold": false,
88+
"italic": false,
89+
"underline": false
90+
},
91+
"BuiltIn": {
92+
"text-color": "#50fa7b",
93+
"background-color": null,
94+
"bold": false,
95+
"italic": false,
96+
"underline": false
97+
},
98+
"Extension": {
99+
"text-color": null,
100+
"background-color": null,
101+
"bold": false,
102+
"italic": false,
103+
"underline": false
104+
},
105+
"Preprocessor": {
106+
"text-color": "#ff79c6",
107+
"background-color": null,
108+
"bold": false,
109+
"italic": false,
110+
"underline": false
111+
},
112+
"Information": {
113+
"text-color": "#f8f8f2",
114+
"background-color": null,
115+
"bold": true,
116+
"italic": false,
117+
"underline": false
118+
},
119+
"VerbatimString": {
120+
"text-color": "#f1fa8c",
121+
"background-color": null,
122+
"bold": false,
123+
"italic": false,
124+
"underline": false
125+
},
126+
"Warning": {
127+
"text-color": "#ffb86c",
128+
"background-color": null,
129+
"bold": true,
130+
"italic": false,
131+
"underline": false
132+
},
133+
"Documentation": {
134+
"text-color": "#f8f8f2",
135+
"background-color": null,
136+
"bold": false,
137+
"italic": false,
138+
"underline": false
139+
},
140+
"Import": {
141+
"text-color": "#ff79c6",
142+
"background-color": null,
143+
"bold": true,
144+
"italic": false,
145+
"underline": false
146+
},
147+
"Char": {
148+
"text-color": "#f1fa8c",
149+
"background-color": null,
150+
"bold": false,
151+
"italic": false,
152+
"underline": false
153+
},
154+
"DataType": {
155+
"text-color": "#8be9fd",
156+
"background-color": null,
157+
"bold": false,
158+
"italic": false,
159+
"underline": false
160+
},
161+
"Float": {
162+
"text-color": "#bd93f9",
163+
"background-color": null,
164+
"bold": false,
165+
"italic": false,
166+
"underline": false
167+
},
168+
"Comment": {
169+
"text-color": "#6272a4",
170+
"background-color": null,
171+
"bold": false,
172+
"italic": false,
173+
"underline": false
174+
},
175+
"CommentVar": {
176+
"text-color": "#ff79c6",
177+
"background-color": null,
178+
"bold": true,
179+
"italic": false,
180+
"underline": false
181+
},
182+
"Constant": {
183+
"text-color": "#bd93f9",
184+
"background-color": null,
185+
"bold": false,
186+
"italic": false,
187+
"underline": false
188+
},
189+
"SpecialChar": {
190+
"text-color": "#f1fa8c",
191+
"background-color": null,
192+
"bold": false,
193+
"italic": false,
194+
"underline": false
195+
},
196+
"DecVal": {
197+
"text-color": "#bd93f9",
198+
"background-color": null,
199+
"bold": false,
200+
"italic": false,
201+
"underline": false
202+
},
203+
"Keyword": {
204+
"text-color": "#ff79c6",
205+
"background-color": null,
206+
"bold": true,
207+
"italic": false,
208+
"underline": false
209+
}
210+
}
211+
}

dracula.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
metadata:
2+
keywords:
3+
- 'Dracula theme'
4+
5+
pdf-engine: xelatex
6+
highlight-style: /full/path/to/dracula.theme
7+
8+
variables:
9+
geometry: margin=1in
10+
linkcolor: draculapink
11+
filecolor: draculagreen
12+
citecolor: draculapurple
13+
urlcolor: draculacyan
14+
toccolor: draculaorange
15+
header-includes:
16+
- \usepackage{/full/path/to/draculatheme}

sample/sample.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

sample/sample.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

screenshot.png

-387 KB
Loading

0 commit comments

Comments
 (0)