Skip to main content
Coding Theme

Monokai Syntax for Obsidian

Monokai Syntax by darkings is an Obsidian theme with dark and light modes and 2.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 “Monokai Syntax” 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/Monokai Syntax/theme.css
.obsidian/themes/Monokai Syntax/manifest.json

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#2d2a2e
Secondary background#221f22
Border#403e41
Text#fcfcfa
Muted text#c1c0c0
Text accent#ff6188
Accent background#ff6188
Highlight background#ffd8663d
Code background#221f22
Code text#fcfcfa
H1#ff6188
H2#fc9867
H3#ffd866

Light

Background#faf8f2
Secondary background#f0eee7
Border#d2cec4
Text#343434
Muted text#606060
Text accent#e14775
Accent background#e14775
Highlight background#e8b30a3d
Code background#f0eee7
Code text#343434
H1#e14775
H2#e16032
H3#cc7a0a

Contrast — Dark

A cool, muted dark palette anchored on #2D2A2E, pairing note text (#FCFCFA) at 13.79:1 (AAA). All 12 graded roles clear WCAG AA (4.5:1+) for normal code and UI text.

Background

#2D2A2E

  • 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
  • Highlighthighlighted text
Appearance
Dark
Temperature
Cool
Saturation
Muted
  • Note

    #FCFCFA

    13.79:1AAA

  • Muted

    #C1C0C0

    7.80:1AAA

  • Faint

    #939293

    4.56:1AA

  • H1

    #FF6188

    4.93:1AA

  • H2

    #FC9867

    6.62:1AA

  • H3

    #FFD866

    10.29:1AAA

  • H4

    #A9DC76

    8.89:1AAA

  • H5

    #78DCE8

    8.90:1AAA

  • H6

    #AB9DF2

    5.96:1AA

  • Accent

    #FF6188

    4.93:1AA

  • Code

    #FCFCFAon #221F22

    15.88:1AAA

  • Highlight

    #FCFCFAon #FFD8663D

    7.27: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 #FAF8F2, pairing note text (#343434) at 11.72:1 (AAA). 6 of 12 graded roles clear WCAG AA (4.5:1+); Faint (#77736C, 4.44:1), H1 (#E14775, 3.68:1), H2 (#E16032, 3.33:1), H3 (#CC7A0A, 3.11:1), H4 (#269D69, 3.23:1), and Accent (#E14775, 3.68:1) sit below 4.5:1 for softer contrast.

Background

#FAF8F2

  • 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
  • Highlighthighlighted text
Appearance
Light
Temperature
Warm
Saturation
Balanced
  • Note

    #343434

    11.72:1AAA

  • Muted

    #606060

    5.92:1AA

  • Faint

    #77736C

    4.44:1Fail

  • H1

    #E14775

    3.68:1Fail

  • H2

    #E16032

    3.33:1Fail

  • H3

    #CC7A0A

    3.11:1Fail

  • H4

    #269D69

    3.23:1Fail

  • H5

    #0F6478

    6.34:1AA

  • H6

    #7058BE

    5.16:1AA

  • Accent

    #E14775

    3.68:1Fail

  • Code

    #343434on #F0EEE7

    10.72:1AAA

  • Highlight

    #343434on #E8B30A3D

    10.14:1AAA

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.