Contents

Joplin, my favourite note taking app, my custom dark theme

https://joplinapp.org/images/home-top-img-4x.webpJoplin is my favourite note taking app, Im using it with encryption enabled and sync them using WebDav in my Synology NAS to all my computers.

I prefer the dark note style and I spent lot of time to find a dark theme for my taste but unfortunately I was not satisfied with the themes I found, so created my own based on multiple themes I found in Github and I created my own favourite.

Current Joplin config/details:

Note
Joplin v2.8.8
Theme selection “Dark”
Installed plugins:
– Favourites
– Note Tabs
– Rich Markdown (enabled “Add additional CSS Classes for enhanced customization” option)

Theme screenshots:

/assets/joplin/joplin1-1024x670.jpg /assets/joplin/joplin2-1024x670.jpg

Installation:

Launch Joplin desktop application:

Make sure that Joplin is using the dark mode in Tools > Options > Appearance
Go to “Tools > Options > Appearance > Show Advanced Settings”. Paste the content of userstyle.css in the file opened by clicking on the button “Custom stylesheet for rendered Markdown” paste the content of userchrome.css in the file opened by clicking on the button “Custom stylesheet for Joplin wide-app styles”.

Alternatively, you can also clone this repository and create symbolic links to userchrome.css and userstyle.css inside Joplin configuration folder (e.g. in ~/.config/joplin-desktop on Linux).

Repo Url: https://github.com/aganet/joplin-dark-theme.git

userstyle.css file

  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
/* Style for rendered Markdown */
:root {
  --dark-main-selected: #434d32;
  --links: #65a2ff;
  --sidebar: #656464;
  --red: #ed8796;
  --yellow: #eed49f;
  --lavender: #dadada; /* highlights color text */
  --text: #dadada; /* text color */
  --textDarker: #bababa;
  --darkblue: #272c3c;
  --base: #1e1e1e; /* text background color */
  --dark-block: #242424; /* code block background */
  --crust: #262626;
  --white: #d9e0ee;
  --black: #000000;
  --light: #f5f5f5;
  --lighter-grey: #c3bac6;
  --light-grey: #988ba2;
  --green: #7fdc63;

  --font-face: "Noto Sans", Arial, Helvetica, sans-serif;
  --font-mono: "Monospace", Courier, monospace;

  --icon-size: 16px;

  --regular: 400;
  --bolder: 600;

  --scroll-radius: 3px;

  --opacity-0-8: 0.8;
}


/* Scrollbars */
::-webkit-scrollbar-thumb {
  background-color: var(--sidebar) !important;
  border-radius: var(--scroll-radius) !important;
}

body {
  background-color: var(--base);
  font-size: 15px;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
}


/*********************************************************************************
* TITLES
*********************************************************************************/

h1 {
  border-bottom: 1px solid var(--base) !important;
  font-weight: var(--bolder) !important;
}

h2,
h3,
h4,
h5,
h6 {
  border-bottom: 0 !important;
  font-weight: var(--bolder) !important;
}

/*********************************************************************************
* LINKS
*********************************************************************************/

a {
  color: var(--links) !important;
  text-decoration: underline !important;
}

a:hover {
  text-decoration: underline !important;
}

/* Joplin icon in Joplin link */
.resource-icon {
  background-color: var(--links) !important;
}

/*********************************************************************************
* CODE BLOCK
*********************************************************************************/

pre,
.hljs {
  background-color: var(--dark-block) !important;
  font-family: var(--font-mono) !important;
  padding: 10px !important;
  color: var(--textDarker) !important;
  font-size: 15px !important;
  overflow: scroll !important;
}

/* Inline code */
.inline-code {
  background-color: transparent !important;
  border: 0 !important;
  font-family: var(--font-mono) !important;
  color: var(--yellow) !important;
  font-size: 15px !important;
}

/*********************************************************************************
* BLOCKQUOTE
*********************************************************************************/

blockquote {
  background-color: var(--darkblue) !important;
  padding: 10px !important;
  color: var(--light) !important;
  font-size: 15px !important;
  font-style: italic !important;
  border: 0 !important;
  border-left: 5px solid var(--green) !important;
}


/*********************************************************************************
* HIGHLIGHTING
*********************************************************************************/

::selection {
  background-color: var(--lavender) !important;
  color: var(--crust) !important;
}

mark,
mark strong {
  background: var(--yellow) !important;
  color: var(--crust) !important;
}

/* Highlighted searched item */
mark[data-markjs] {
  background-color: var(--lavender) !important;
}


/*********************************************************************************
* PRINT VERSION
*********************************************************************************/

@media print {
  #rendered-md,
  body,
  th,
  td {
    /* background-color: var(--white) !important; */
    background-color: #ffffff !important;
    font-family: var(--font-face) !important;
  }

  p,
  ul,
  ol,
  li {
    color: var(--black) !important;
  }

  strong {
    color: var(--black) !important;
  }

  h1 {
    border-bottom: 1px solid var(--black) !important;
    font-weight: var(--bolder) !important;
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    border-bottom: 0 !important;
    font-weight: var(--bolder) !important;
  }

  hr {
    border: none;
    border-bottom: 1px solid var(--black) !important;
    margin: 2.5em 0 !important;
  }

  a {
    color: var(--red) !important;
    text-decoration: underline !important;
  }

  /* Inline code */
  .inline-code {
    background-color: transparent !important;
    border: 0 !important;
    font-family: var(--font-mono) !important;
    /* color: var(--yellow) !important; */
    color: #1e1e2e !important;
    font-size: 15px !important;
  }

  pre,
  .hljs {
    background-color: var(--lighter-grey) !important;
    font-family: var(--font-mono) !important;
    padding: 10px !important;
    color: var(--crust) !important;
    font-size: 14px !important;
    overflow: scroll !important;
  }

  blockquote {
    background-color: var(--lighter-grey) !important;
    padding: 10px !important;
    color: var(--crust) !important;
    font-size: 15px !important;
    font-style: italic !important;
    border: 0 !important;
    border-left: 5px solid var(--light-grey) !important;
  }
}

userchrome.css file

  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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
/* For styling the entire Joplin app (except the rendered Markdown, which is defined in `userstyle.css`) */

:root {
  --dark-main-selected: #255f77;
  --links: #65a2ff;
  --sidebar: #656464;
  --white: #f8f8f0;
  --yellow: #edea3c;
  --green: #a6da95;
  --blue: #6fb3d2;
  --lavender: #c9d1d9;
  --text: #dadada; /* text color */
  --textDarker: #bababa;
  --overlay0: #6c728d;
  --surface2: #5a5f78;
  --surface0: #363a4f;
  --base: #1e1e1e; /* text background color */
  --dark-block: #242424;
  --crust: #262626;
  --green-terminal: #b4d682;
  --orange: #fda331;
  --font-face: "Noto Sans", Arial, Helvetica, sans-serif;
  --font-mono: "Roboto Mono", Courier, monospace;
  --icon-size: 16px;
  --scroll-radius: 3px;

  --regular: 400;
  --bolder: 600;
  --opacity-0-8: 0.8;

  --h1: #edea3c;
  --h2: #edea3c;
  --h3: #6db8b4;
  --h4: #f17d7d;
  --h5: #71eb71;
  --h6: #6783ff;
}

/* Font used by Joplin */
* {
  font-family: var(--font-face) !important;
}

html,
body {
  background-color: var(--base) !important;
  font-weight: var(--regular) !important;
  color: var(--light) !important;
}
.CodeMirror-selected {
  /* background-color: var(--lighter-grey) !important; */
  background: #6b6b6b !important;
}
.rli-root {
  background-color: var(--base) !important;
}

/* Icons */
.fa,
.far,
.fas {
  font-weight: 900 !important;
  font-family: "Font Awesome 5 Free" !important;
  font-size: var(--icon-size) !important;
}

::placeholder {
  color: var(--lavender) !important;
}

/* Scrollbars */
::-webkit-scrollbar-thumb {
  background-color: var(--sidebar) !important;
  border-radius: var(--scroll-radius) !important;
}

/*********************************************************************************
* PANELS
*********************************************************************************/

/*********************************************************************************
* SIDEBAR
*********************************************************************************/

/* Folders sidebar background */
.bHqyGr {
  background: var(--dark-main) !important;
}

/* Folders Selection */

.all-notes:checked {
  background-color: var(--dark-main-selected) !important;
}

.list-item-container.selected {
  background-color: var(--dark-main-selected) !important;
}

.list-item-container.selected a {
  color: var(--dark-grey) !important;
}

a.bxcDPk div.note-count-label {
  color: var(--white) !important;
}

.note-count-label {
  color: var(--white) !important;
}

.sidebar {
  background: var(--base) !important;
}

.resizableLayoutItem {
  background: var(--base) !important;
}

/*********************************************************************************
*NOTE LIST
*********************************************************************************/

.note-list {
  background-color: var(--dark-block) !important;
  border: none !important;
}
/* remove notes separator in list */
.note-list *::before {
  border-bottom: none !important;
}

/*********************************************************************************
* EDITOR
*********************************************************************************/

/* BUTTONS SEARCH, SORT NOTES, NEW NOTE AND NEW TASK */

div[height="50"] {
  background-color: var(--dark-block) !important;
}

div[height="50"] input {
  border: none !important;
  color: var(--text) !important;
  background-color: var(--dark-block) !important;
}

div[height="50"] button {
  background: transparent !important;
  color: var(--text) !important;
  border: 0 !important;
}

div[height="50"] button:hover {
  opacity: var(--opacity-0-8);
}

div[height="50"] button span {
  color: var(--text) !important;
}

/* EDITOR TOOLBAR */

/* Title */
/* Changes frequently with updates, need to keep tabs */
.rli-editor .cCOtNv > input {
  padding-top: 5px;
  background-color: var(--base) !important;
}
.editor-toolbar {
  background-color: transparent !important;
}

.editor-toolbar > div > a:hover {
  opacity: var(--opacity-0-8);
}

/* Breadcrumbs (In:...) - Used in tag listings */
.cJOYJm {
  background-color: var(--lavender) !important;
  margin: 0px !important;
  padding: 5px !important;
}

.cJOYJm:hover {
  opacity: var(--opacity-0-8);
}

/* CONTENT */
/* Empty notebook */
.rli-editor > div > div:empty {
  background-color: var(--base) !important;
}

/* Editor layout splitter */
.rli-editor > div > div > div > div > div > div > div:last-of-type {
  border-color: var(--base) !important;
}
div.sc-AxirZ.hagDvo,
div.sc-AxirZ.hagDvo > div {
  background-color: var(--dark-block) !important;
  color: var(--text) !important;
}

/* NOTE SEARCH BAR */
.note-search-bar,
.note-search-bar > div > div {
  background-color: var(--base) !important;
  width: 100%;
  border: 0 !important;
}

.note-search-bar input {
  border: 0 !important;
  padding: 5px;
  color: var(--text) !important;
  background-color: var(--base) !important;
}

/* TAGS */
.tag-bar {
  background-color: transparent !important;
}

.tag-list > span {
  color: var(--lavender) !important;
  background-color: var(--crust) !important;
}

/*********************************************************************************
* EDITOR (CODE MIRROR)
*********************************************************************************/

/* HEADERS */

/* headers colors */
.cm-s-material-darker span.cm-header-1 {
  color: var(--h1) !important;
}

.cm-s-material-darker span.cm-header-2 {
  color: var(--h2) !important;
}

.cm-s-material-darker span.cm-header-3 {
  color: var(--h3) !important;
}

.cm-s-material-darker span.cm-header-4 {
  color: var(--h4) !important;
}

.cm-s-material-darker span.cm-header-5 {
  color: var(--h5) !important;
}

.cm-s-material-darker span.cm-header-6 {
  color: var(--h6) !important;
}

.cm-s-material-darker.CodeMirror {
  background-color: var(--base) !important;
  color: var(--text) !important;
}

/* Header */
.cm-header {
  color: var(--lavender) !important;
}

/* Italics/Emphasis, Bold, BoldItalics */
.cm-strong,
.cm-strong.cm-em {
  color: var(--orange) !important;
}

.cm-em {
  color: var(--blue) !important;
}

/* Lists (Bullet/number/todo) */
.cm-variable-2,
.cm-variable-3,
.cm-keyword {
  color: var(--text) !important;
}

.cm-s-material-darker .cm-variable-2.cm-rm-list-token {
  color: var(--text) !important;
}

/* Links (link) */
.cm-url {
  color: var(--links) !important;
  opacity: 1;
  text-decoration: underline;
}

/* Links (text) */
.cm-link-text {
  color: var(--links) !important;
}
pre.CodeMirror-line {
  color: var(--text) !important;
}
/* Image link in editor */
span.cm-string.cm-url.cm-overlay.cm-rm-link.cm-overlay.cm-rm-image {
  color: var(--lavender) !important;
}
/* Comment outside code block */
pre.CodeMirror-line span.cm-comment {
  color: var(--yellow) !important;
  border: 0 !important;
}

/* Codeblock selection colour */
/* For some reason, the CodeMirror selection does not pick the colour correctly, left for now. */
pre.CodeMirror-line span.CodeMirror-selectedtext {
  /* background: var(--surface2) !important; */
  background: #6b6b6b !important;
}

div[class^="cm-jn-code-block-background "]::selection {
  background-color: var(--base) !important;
  border-color: var(--base) !important;
}

.cm-jn-monospace {
  color: var(--textDarker) !important;
}

pre.cm-jn-code-block.CodeMirror-line
  span.cm-comment.cm-jn-monospace.CodeMirror-selectedtext {
  /* background: var(--surface2) !important; */
  background: #6b6b6b !important;
}
pre.cm-jn-code-block.CodeMirror-line::selection {
  /* background: var(--surface2) !important; */
  background: #6b6b6b !important;
}
div.cm-jn-code-block-background.CodeMirror-linebackground::selection {
  /* background: var(--surface2) !important; */
  background: #6b6b6b !important;
}
pre.cm-jn-code-block.CodeMirror-line::selection span {
  /* background: var(--surface2) !important; */
  background: #6b6b6b !important;
}

div.CodeMirror span.cm-comment.cm-jn-inline-code {
  background-color: transparent !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Code Block Text */
div.CodeMirror span.cm-comment:not(.cm-jn-inline-code) {
  /*color: var(--text) !important; */
  color: var(--green-terminal) !important;
  background-color: transparent !important;
}

/* Code block background */
div.CodeMirror div.cm-jn-code-block-background {
  background-color: var(--dark-block) !important;
}

/* Horizontal Line */
.cm-hr {
  color: var(--overlay0) !important;
}

/* Cursor colour */
.CodeMirror-cursor {
  border-left: 1px solid var(--white) !important;
  border-right: none !important;
  width: 0 !important;
}
.cm-fat-cursor div.CodeMirror-cursor {
  width: 10px !important;
  border: 0 !important;
  background: var(--white) !important;
}
.cm-fat-cursor div.CodeMirror-cursors {
  z-index: 1 !important;
}
.cm-fat-cursor-mark {
  background-color: rgba(150, 205, 251, 0.5) !important;
}

.cm-animate-fat-cursor {
  width: auto !important;
  border: 0;
  background-color: var(--white) !important;
}

/* Rich Markdown Extra CSS Classes
Please opt in "Add additional CSS classes for enhanced customization" in plugin
settings, see https://github.com/CalebJohn/joplin-rich-markdown#extra-css */

.cm-header.cm-rm-header-token {
  color: var(--green) !important;
}

.cm-strong.cm-rm-strong-token {
  color: var(--blue) !important;
}

pre.cm-rm-blockquote.CodeMirror-line {
  font-style: italic !important;
}

/* Command palette coloring */

div.modal-dialog {
  background-color: var(--dark-block) !important;
}

.modal-dialog > div > input {
  background-color: var(--crust) !important;
  color: var(--text) !important;
}

.modal-dialog > .item-list {
  background-color: var(--crust) !important;
  color: var(--text) !important;
}

.modal-dialog > .item-list div[class="selected"] {
  background-color: var(--surface2) !important;
}

.modal-dialog > .item-list div[class="selected"] > div {
  color: var(--text) !important;
}

.modal-dialog > .item-list > * {
  color: var(--text) !important;
}

/* Reduce the size and visibility of the header hash tags.   color: grey; */
/* The additional CSS option must be enabled */
div.CodeMirror .cm-header.cm-rm-header-token {
  font-size: 0.9em;
  color: grey;
}