Skip to main content
Coding Theme

Duality for Obsidian

Duality by cascadethemes is an Obsidian theme with dark and light modes and 2.3K 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 “Duality” 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/Duality/theme.css
.obsidian/themes/Duality/manifest.json

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#1c1c1c
Secondary background#151515
Border#4a2c2a
Text#d4c9b5
Muted text#b0a38c
Text accent#ff4500
Selection background#ff45004d
Highlight background#ff4500e6
Code background#2a2a2a
Code text#d4c9b5
H1#ff4500
H2#ff4500
H3#d4c9b5

Light

Background#f5f8ff
Secondary background#e8eeff
Border#a8bdff
Text#3a5ca0
Muted text#6889e0
Text accent#ebd6ad
Accent background#ebd6ad
Selection background#2899d94d
Highlight background#fbc02d80
Red#c62828
Orange#f57c00
Yellow#fbc02d
Green#2e7d32
Cyan#00838f
Blue#1565c0
Purple#6a1b9a
Pink#ad1457
Code background#e8eeff
Code text#3a5ca0
H1#6a1b9a
H2#1565c0
H3#2e7d32
Base 00#f5f8ff
Base 05#e8eeff
Base 10#dbe4ff
Base 20#c8d7ff
Base 25#b8caff
Base 30#a8bdff
Base 35#98b0ff
Base 40#88a3ff
Base 50#7896f0
Base 60#6889e0
Base 70#587cd0
Base 100#3a5ca0

Contrast — Dark

A neutral, muted dark palette anchored on #1C1C1C, pairing note text (#D4C9B5) at 10.40:1 (AAA). 8 of 10 graded roles clear WCAG AA (4.5:1+); Faint (#8C816D, 4.44:1) and Highlight (#D4C9B5, 2.45:1) sit below 4.5:1 for softer contrast.

Background

#1C1C1C

  • Notethe note text on this background
  • Mutedsecondary labels and metadata
  • Fainthints and placeholders
  • H1–H2heading text in a note
  • H3–H4heading text in a note
  • H5–H6heading text in a note
  • Accentlinks and highlighted text
  • Codeinline code in the note
  • Selectiontext inside a selection
  • Highlighthighlighted text
Appearance
Dark
Temperature
Neutral
Saturation
Muted
  • Note

    #D4C9B5

    10.40:1AAA

  • Muted

    #B0A38C

    6.86:1AA

  • Faint

    #8C816D

    4.44:1Fail

  • H1–H2

    #FF4500

    4.95:1AA

  • H3–H4

    #D4C9B5

    10.40:1AAA

  • H5–H6

    #B0A38C

    6.86:1AA

  • Accent

    #FF4500

    4.95:1AA

  • Code

    #D4C9B5on #2A2A2A

    8.76:1AAA

  • Selection

    #D4C9B5on #FF45004D

    7.03:1AAA

  • Highlight

    #D4C9B5on #FF4500E6

    2.45: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.

Contrast — Light

A cool, vivid light palette anchored on #F5F8FF, pairing note text (#3A5CA0) at 6.13:1 (AA). 8 of 14 graded roles clear WCAG AA (4.5:1+); Muted (#6889E0, 3.16:1), Faint (#7896F0, 2.66:1), H4 (#F57C00, 2.54:1), H6 (#00838F, 4.25:1), Accent (#EBD6AD, 1.33:1), and Selection (#3A5CA0, 4.49:1) sit below 4.5:1 for softer contrast.

Background

#F5F8FF

  • 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
Cool
Saturation
Vivid
  • Note

    #3A5CA0

    6.13:1AA

  • Muted

    #6889E0

    3.16:1Fail

  • Faint

    #7896F0

    2.66:1Fail

  • H1

    #6A1B9A

    8.83:1AAA

  • H2

    #1565C0

    5.40:1AA

  • H3

    #2E7D32

    4.82:1AA

  • H4

    #F57C00

    2.54:1Fail

  • H5

    #AD1457

    6.55:1AA

  • H6

    #00838F

    4.25:1Fail

  • Accent

    #EBD6AD

    1.33:1Fail

  • Code

    #3A5CA0on #E8EEFF

    5.62:1AA

  • Selection

    #3A5CA0on #2899D94D

    4.49:1Fail

  • Highlight

    #3A5CA0on #FBC02D80

    4.86:1AA

  • On accent

    #1A1A1Aon #EBD6AD

    12.22: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.