Skip to main content
Coding Theme

VS Code for Obsidian

VS Code by cxw is an Obsidian theme with dark and light modes and 422 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 “VS Code” 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/VS Code/theme.css
.obsidian/themes/VS Code/manifest.json

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#121314
Secondary background#191a1b
Border#2a2b2c
Text#bbbebf
Muted text#8c8c8c
Text accent#48a0c7
Accent background#297aa0
Selection background#276782dd
Highlight background#ffa65740
Red#f48771
Orange#ffa657
Yellow#e5ba7d
Green#73c991
Cyan#7ee787
Blue#79c0ff
Purple#d2a8ff
Pink#ff7b72
Code background#1b1c1d
Code text#bbbebf
H1#79c0ff
H2#79c0ff
H3#79c0ff

Light

Background#ffffff
Secondary background#fafafd
Border#f0f1f2
Text#202020
Muted text#606060
Text accent#0069cc
Accent background#0069cc
Selection background#0069cc40
Highlight background#ffe8cc
Red#ad0707
Orange#953800
Yellow#667309
Green#587c0c
Cyan#116329
Blue#0550ae
Purple#8250df
Pink#cf222e
Code background#eaeaea
Code text#202020
H1#0550ae
H2#0550ae
H3#0550ae

Contrast — Dark

A cool, muted dark palette anchored on #121314, pairing note text (#BBBEBF) at 9.94:1 (AAA). 7 of 9 graded roles clear WCAG AA (4.5:1+); Faint (#6E7173, 3.78:1) and Selection (#BBBEBF, 3.94:1) sit below 4.5:1 for softer contrast.

Background

#121314

  • 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
  • On accenta button label on the accent color
Appearance
Dark
Temperature
Cool
Saturation
Muted
  • Note

    #BBBEBF

    9.94:1AAA

  • Muted

    #8C8C8C

    5.53:1AA

  • Faint

    #6E7173

    3.78:1Fail

  • H1–H6

    #79C0FF

    9.56:1AAA

  • Accent

    #48A0C7

    6.31:1AA

  • Code

    #BBBEBFon #1B1C1D

    9.12:1AAA

  • Selection

    #BBBEBFon #276782DD

    3.94:1Fail

  • Highlight

    #BBBEBFon #FFA65740

    5.88:1AA

  • On accent

    #FFFFFFon #297AA0

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

Contrast — Light

A neutral, muted light palette anchored on #FFFFFF, pairing note text (#202020) at 16.29:1 (AAA). 8 of 9 graded roles clear WCAG AA (4.5:1+); Faint (#8E8E90, 3.26:1) sits below 4.5:1 for softer contrast.

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
  • On accenta button label on the accent color
Appearance
Light
Temperature
Neutral
Saturation
Muted
  • Note

    #202020

    16.29:1AAA

  • Muted

    #606060

    6.28:1AA

  • Faint

    #8E8E90

    3.26:1Fail

  • H1–H6

    #0550AE

    7.59:1AAA

  • Accent

    #0069CC

    5.39:1AA

  • Code

    #202020on #EAEAEA

    13.54:1AAA

  • Selection

    #202020on #0069CC40

    11.22:1AAA

  • Highlight

    #202020on #FFE8CC

    13.70:1AAA

  • On accent

    #FFFFFFon #0069CC

    5.39:1AA

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.