Skip to main content
Coding Theme

Primary for Obsidian

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

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#2e261f
Secondary background#26211c
Border#3b3026
Text#d7c0a3
Muted text#ab916d
Text accent#4e3e2d
Selection background#7e694e33
Highlight background#ffbb0033
Red#c04e4e
Orange#cb8035
Yellow#e1b243
Green#50c465
Cyan#46a9b4
Blue#3f89b0
Purple#7161c2
Pink#b46464
H1#ebdac6
H2#ebdac6
H3#ebdac6
Base 00#1c1712
Base 05#26211c
Base 10#2e261f
Base 20#342c23
Base 25#3b3026
Base 30#51402f
Base 35#6b563d
Base 40#917959
Base 50#ab916d
Base 60#c7b194
Base 70#d7c0a3
Base 100#ebdac6

Light

Background#f8f5f1
Secondary background#eee7dd
Border#e4d7c3
Text#593e22
Muted text#836b49
Text accent#9d8062
Selection background#cfb69626
Highlight background#ffbb0033
Red#cd4242
Orange#d58534
Yellow#de9f0d
Green#4fab77
Cyan#4caeaa
Blue#3079b0
Purple#7d71c1
Pink#c7707d
H1#432e14
H2#432e14
H3#432e14
Base 00#fcfaf8
Base 05#f8f5f1
Base 10#f2ece3
Base 20#eee7dd
Base 25#ebe3d6
Base 30#e4d7c3
Base 35#cfb696
Base 40#b79d7b
Base 50#9d8062
Base 60#836b49
Base 70#655134
Base 100#432e14

Contrast — Dark

A warm, balanced dark palette anchored on #2E261F, pairing note text (#D7C0A3) at 8.46:1 (AAA). 5 of 7 graded roles clear WCAG AA (4.5:1+); Faint (#917959, 3.59:1) and Accent (#4E3E2D, 1.45:1) sit below 4.5:1 for softer contrast.

Background

#2E261F

  • Notethe note text on this background
  • Mutedsecondary labels and metadata
  • Fainthints and placeholders
  • H1–H6heading text in a note
  • Accentlinks and highlighted text
  • Selectiontext inside a selection
  • Highlighthighlighted text
Appearance
Dark
Temperature
Warm
Saturation
Balanced
  • Note

    #D7C0A3

    8.46:1AAA

  • Muted

    #AB916D

    4.95:1AA

  • Faint

    #917959

    3.59:1Fail

  • H1–H6

    #EBDAC6

    10.88:1AAA

  • Accent

    #4E3E2D

    1.45:1Fail

  • Selection

    #D7C0A3on #7E694E33

    6.96:1AA

  • Highlight

    #D7C0A3on #FFBB0033

    5.31:1AA

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

Contrast — Light

A warm, balanced light palette anchored on #F8F5F1, pairing note text (#593E22) at 9.04:1 (AAA). 5 of 7 graded roles clear WCAG AA (4.5:1+); Faint (#B79D7B, 2.37:1) and Accent (#9D8062, 3.39:1) sit below 4.5:1 for softer contrast.

Background

#F8F5F1

  • Notethe note text on this background
  • Mutedsecondary labels and metadata
  • Fainthints and placeholders
  • H1–H6heading text in a note
  • Accentlinks and highlighted text
  • Selectiontext inside a selection
  • Highlighthighlighted text
Appearance
Light
Temperature
Warm
Saturation
Balanced
  • Note

    #593E22

    9.04:1AAA

  • Muted

    #836B49

    4.63:1AA

  • Faint

    #B79D7B

    2.37:1Fail

  • H1–H6

    #432E14

    11.78:1AAA

  • Accent

    #9D8062

    3.39:1Fail

  • Selection

    #593E22on #CFB69626

    8.34:1AAA

  • Highlight

    #593E22on #FFBB0033

    8.19: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. Not set here: Code.