Skip to main content
Coding Theme
Legacy theme

Modern Dark for Obsidian

Modern Dark by roberts-code is an Obsidian theme with dark mode and 2.6K 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 “Modern Dark” 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/Modern Dark/theme.css
.obsidian/themes/Modern Dark/manifest.json

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#1e1e1e
Secondary background#252526
Border#6a6a6a
Text accent#569cd6
Accent background#4c78cc
Selection background#007fd466

Contrast — Dark

A neutral, muted dark palette anchored on #1E1E1E, pairing faint text (#515663) at 2.27:1 (Fail). 1 of 3 graded roles clear WCAG AA (4.5:1+); Faint (#515663, 2.27:1) and On accent (#DCDDDE, 3.17:1) sit below 4.5:1 for softer contrast.

Background

#1E1E1E

  • Fainthints and placeholders
  • Accentlinks and highlighted text
  • On accenta button label on the accent color
Appearance
Dark
Temperature
Neutral
Saturation
Muted
  • Faint

    #515663

    2.27:1Fail

  • Accent

    #569CD6

    5.65:1AA

  • On accent

    #DCDDDEon #4C78CC

    3.17:1Fail

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. Not set here: Note, Muted, Code.