Skip to main content
Coding Theme

Dark Knight for Obsidian

Dark Knight by jabaho9523 is an Obsidian theme with dark and light modes and 1.4K downloads.

Preview

Theme preview

An Obsidian window rendered with this theme’s palette.

Obsidian desktop preview

Syntax colors, highlights, links, tags, and checkboxes use this theme's palette; window chrome and layout follow Obsidian's default stylesheet.

Install

Install in Obsidian

  1. Open Settings → Appearance → Themes, then Manage.
  2. Search for “Dark Knight” and install it. Obsidian keeps community themes updated.
  3. Or create the folder below and save both theme.css and manifest.json in it, then reload Obsidian.
Theme folder
.obsidian/themes/Dark Knight/theme.css
.obsidian/themes/Dark Knight/manifest.json

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#0a0a0c
Secondary background#14141a
Border#2a2a35
Text#d4d4dc
Muted text#8a8a96
Text accent#f5c518
Accent background#f5c518
Selection background#f5c51840
Highlight background#f5c5184d
Code background#101016
Code text#d4d4dc
H1#ffdb4d
H2#f5c518
H3#e8b412

Light

Background#f4f1ea
Secondary background#ece8df
Border#c8c1b1
Text#1c1c24
Muted text#5b5b66
Text accent#b8920f
Accent background#b8920f
Selection background#b8920f40
Highlight background#b8920f4d
Code background#ebe5d6
Code text#1c1c24
H1#1c1c24
H2#b8920f
H3#d4a813

Contrast — Dark

A cool, muted dark palette anchored on #0A0A0C, pairing note text (#D4D4DC) at 13.42:1 (AAA). 13 of 14 graded roles clear WCAG AA (4.5:1+); H5 (#4A6B8A, 3.54:1) sits below 4.5:1 for softer contrast.

Background

#0A0A0C

  • Notethe note text on this background
  • Mutedsecondary labels and metadata
  • Fainthints and placeholders
  • H1heading text in a note
  • H2heading text in a note
  • H3heading text in a note
  • H4heading text in a note
  • H5heading text in a note
  • H6heading text in a note
  • Accentlinks and highlighted text
  • Codeinline code in the note
  • Selectiontext inside a selection
  • Highlighthighlighted text
  • On accenta button label on the accent color
Appearance
Dark
Temperature
Cool
Saturation
Muted
  • Note

    #D4D4DC

    13.42:1AAA

  • Muted

    #8A8A96

    5.79:1AA

  • Faint

    #82828E

    5.21:1AA

  • H1

    #FFDB4D

    14.59:1AAA

  • H2

    #F5C518

    12.13:1AAA

  • H3

    #E8B412

    10.33:1AAA

  • H4

    #6A8FB5

    5.84:1AA

  • H5

    #4A6B8A

    3.54:1Fail

  • H6

    #8A8A96

    5.79:1AA

  • Accent

    #F5C518

    12.13:1AAA

  • Code

    #D4D4DCon #101016

    12.86:1AAA

  • Selection

    #D4D4DCon #F5C51840

    7.72:1AAA

  • Highlight

    #D4D4DCon #F5C5184D

    6.63:1AA

  • On accent

    #0A0A0Con #F5C518

    12.13:1AAA

AA is 4.5:1 for normal text, 3:1 only for large text (at least 24px, or 18.7px bold). AAA is 7:1 (4.5:1 for large text). Code and terminal text are normal text, so anything under 4.5:1 fails.

Note text, headings, links, code, selection, highlight, and accent text are graded on the surfaces they use. Code uses code-background; selection and highlight paint the normal text color on those backgrounds. Colors the theme leaves unset come from Obsidian's default theme and are not graded.

Contrast — Light

A warm, balanced light palette anchored on #F4F1EA, pairing note text (#1C1C24) at 15.00:1 (AAA). 10 of 14 graded roles clear WCAG AA (4.5:1+); Faint (#8A8474, 3.30:1), H2 (#B8920F, 2.60:1), H3 (#D4A813, 1.97:1), and Accent (#B8920F, 2.60:1) sit below 4.5:1 for softer contrast.

Background

#F4F1EA

  • Notethe note text on this background
  • Mutedsecondary labels and metadata
  • Fainthints and placeholders
  • H1heading text in a note
  • H2heading text in a note
  • H3heading text in a note
  • H4heading text in a note
  • H5heading text in a note
  • H6heading text in a note
  • Accentlinks and highlighted text
  • Codeinline code in the note
  • Selectiontext inside a selection
  • Highlighthighlighted text
  • On accenta button label on the accent color
Appearance
Light
Temperature
Warm
Saturation
Balanced
  • Note

    #1C1C24

    15.00:1AAA

  • Muted

    #5B5B66

    5.94:1AA

  • Faint

    #8A8474

    3.30:1Fail

  • H1

    #1C1C24

    15.00:1AAA

  • H2

    #B8920F

    2.60:1Fail

  • H3

    #D4A813

    1.97:1Fail

  • H4

    #2F5470

    7.09:1AAA

  • H5

    #3D6C8C

    5.00:1AA

  • H6

    #3A3A48

    9.90:1AAA

  • Accent

    #B8920F

    2.60:1Fail

  • Code

    #1C1C24on #EBE5D6

    13.46:1AAA

  • Selection

    #1C1C24on #B8920F40

    12.02:1AAA

  • Highlight

    #1C1C24on #B8920F4D

    11.47:1AAA

  • On accent

    #1C1C24on #B8920F

    5.76:1AA

Note text, headings, links, code, selection, highlight, and accent text are graded on the surfaces they use. Code uses code-background; selection and highlight paint the normal text color on those backgrounds. Colors the theme leaves unset come from Obsidian's default theme and are not graded.