Skip to main content
Coding Theme

GitHub Theme for Obsidian

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

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#0d1117
Secondary background#161b22
Border#30363d
Text#c9d1d9
Muted text#8b949e
Text accent#57a5ff
Selection background#57a5ff66
Highlight background#ff000066
Red#fdac54
Orange#ffa198
Yellow#d29922
Green#a5d6ff
Cyan#a5d6ff
Blue#6cb6ff
Purple#d2a8ff
Pink#f778ba
Code background#161b22
Code text#8b949e
H1#a5d6ff
H2#a5d6ff
H3#a5d6ff
Base 00#0d1117
Base 10#161b22
Base 20#161b22
Base 25#010409
Base 30#30363d
Base 35#21262d
Base 40#30363d
Base 50#6e7681
Base 60#999999
Base 70#8b949e
Base 100#c9d1d9

Light

Background#ffffff
Secondary background#f6f8fa
Border#d0d7de
Text#24292f
Muted text#57606a
Text accent#096cdc
Selection background#096cdc33
Highlight background#ff000066
Red#b35900
Orange#fa4549
Yellow#bd8e37
Green#218bff
Cyan#2db7b5
Blue#086ddd
Purple#876be0
Pink#c32b74
Code background#f6f8fa
Code text#57606a
H1#24292f
H2#24292f
H3#24292f
Base 00#ffffff
Base 05#fcfcfc
Base 10#f6f8fa
Base 20#f6f8fa
Base 25#f6f8fa
Base 30#d0d7de
Base 35#d4d4d4
Base 40#bdbdbd
Base 50#6e7781
Base 60#707070
Base 70#57606a
Base 100#24292f

Contrast — Dark

A cool, balanced dark palette anchored on #0D1117, pairing note text (#C9D1D9) at 12.26:1 (AAA). 7 of 8 graded roles clear WCAG AA (4.5:1+); Faint (#6E7681, 4.11:1) sits below 4.5:1 for softer contrast.

Background

#0D1117

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

    #C9D1D9

    12.26:1AAA

  • Muted

    #8B949E

    6.15:1AA

  • Faint

    #6E7681

    4.11:1Fail

  • H1–H6

    #A5D6FF

    12.31:1AAA

  • Accent

    #57A5FF

    7.41:1AAA

  • Code

    #8B949Eon #161B22

    5.62:1AA

  • Selection

    #C9D1D9on #57A5FF66

    5.68:1AA

  • Highlight

    #C9D1D9on #FF000066

    7.95: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 neutral, muted light palette anchored on #FFFFFF, pairing note text (#24292F) at 14.65:1 (AAA). All 8 graded roles clear WCAG AA (4.5:1+) for normal code and UI text.

Background

#FFFFFF

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

    #24292F

    14.65:1AAA

  • Muted

    #57606A

    6.38:1AA

  • Faint

    #6E7781

    4.54:1AA

  • H1–H6

    #24292F

    14.65:1AAA

  • Accent

    #096CDC

    5.01:1AA

  • Code

    #57606Aon #F6F8FA

    6.00:1AA

  • Selection

    #24292Fon #096CDC33

    11.03:1AAA

  • Highlight

    #24292Fon #FF000066

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