Skip to main content
Coding Theme

Cosmic for Obsidian

Cosmic by kaymade is an Obsidian theme with dark and light modes and 3.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 “Cosmic” 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/Cosmic/theme.css
.obsidian/themes/Cosmic/manifest.json

Colors

Palette

Colors extracted from the theme stylesheet.

Dark

Background#ffffff
Secondary background#ffffff
Border#414b58
Text#17151c
Muted text#45414d
Text accent#a8c6e4
Accent background#a8c6e4
Selection background#54b5e557
Highlight background#65d5e547
Code background#ffffff
Code text#ffecef
H1#d7e0eb
H2#b9bcd9
H3#b9bcd9

Light

Background#ffffff
Secondary background#ffffff
Border#c2ccd7
Text#17151c
Muted text#45414d
Text accent#3b5d81
Accent background#3b5d81
Selection background#45a1cf40
Highlight background#5ac9d53b
Code background#ffffff
Code text#462329
H1#35455a
H2#555883
H3#555883

Contrast — Dark

A neutral, muted dark palette anchored on #FFFFFF, pairing note text (#17151C) at 18.09:1 (AAA). 6 of 13 graded roles clear WCAG AA (4.5:1+); H1 (#D7E0EB, 1.33:1), H2–H3 (#B9BCD9, 1.86:1), H4 (#D6C7A9, 1.66:1), H5 (#A3C7BA, 1.83:1), H6 (#D2B5A6, 1.92:1), Accent (#A8C6E4, 1.77:1), and Code (#FFECEF, 1.13:1) sit below 4.5:1 for softer contrast.

Background

#FFFFFF

  • Notethe note text on this background
  • Mutedsecondary labels and metadata
  • Fainthints and placeholders
  • H1heading text in a note
  • H2–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
Dark
Temperature
Neutral
Saturation
Muted
  • Note

    #17151C

    18.09:1AAA

  • Muted

    #45414D

    9.92:1AAA

  • Faint

    #67616F

    5.97:1AA

  • H1

    #D7E0EB

    1.33:1Fail

  • H2–H3

    #B9BCD9

    1.86:1Fail

  • H4

    #D6C7A9

    1.66:1Fail

  • H5

    #A3C7BA

    1.83:1Fail

  • H6

    #D2B5A6

    1.92:1Fail

  • Accent

    #A8C6E4

    1.77:1Fail

  • Code

    #FFECEFon #FFFFFF

    1.13:1Fail

  • Selection

    #17151Con #54B5E557

    13.77:1AAA

  • Highlight

    #17151Con #65D5E547

    15.52:1AAA

  • On accent

    #031421on #A8C6E4

    10.53: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 (#17151C) at 18.09:1 (AAA). All 13 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
  • H1heading text in a note
  • H2–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
Neutral
Saturation
Muted
  • Note

    #17151C

    18.09:1AAA

  • Muted

    #45414D

    9.92:1AAA

  • Faint

    #67616F

    5.97:1AA

  • H1

    #35455A

    9.76:1AAA

  • H2–H3

    #555883

    6.75:1AA

  • H4

    #70592E

    6.65:1AA

  • H5

    #356559

    6.65:1AA

  • H6

    #815142

    6.58:1AA

  • Accent

    #3B5D81

    6.84:1AA

  • Code

    #462329on #FFFFFF

    13.69:1AAA

  • Selection

    #17151Con #45A1CF40

    14.18:1AAA

  • Highlight

    #17151Con #5AC9D53B

    15.53:1AAA

  • On accent

    #F8FDFFon #3B5D81

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