obsidian-apple-graph

obsidian-apple-graph

CSS snippet that makes Obsidian's graph view look like Apple made it: frosted glass controls, system colors, spring easing.

obsidian-apple-graph

A CSS snippet that makes Obsidian's graph view look like something Apple would ship. Frosted glass controls, system colors, spring easing on hover.

Graph view with the snippet on

I use Obsidian as long-term memory for my AI agents. They write notes on their own, so the vault grows fast and the graph turned into a gray blob. I wanted it to look good without touching a single note.

Changes

  • Near-black background with a soft blue glow in the middle
  • Graph controls panel becomes a floating frosted-glass card. It lifts a little on hover, buttons scale up on hover and press down on click
  • iOS-green toggles, white slider knobs, rounded search field
  • Node, line and selected-node colors pulled from Apple's dark mode palette
  • Optional color groups per folder (see below)
  • Honors prefers-reduced-motion

Only looks. It doesn't touch your notes, and turning it off puts everything back.

Install

  1. Copy apple-graph.css into <your vault>/.obsidian/snippets/
  2. Settings > Appearance > CSS snippets, hit reload and turn on apple-graph

Tested on Obsidian 1.13.7 with the AnuPpuccin theme (Mocha). The default theme also works, since everything is scoped to the graph view.

Folder colors

color-groups.json has the groups I use, one Apple system color per folder:

FolderColor
00-COMECE-AQUI (index)white #FFFFFF
10-Projetosblue #0A84FF
20-Decisoesorange #FF9F0A
30-Aprendizadosgreen #30D158
40-Sessoesindigo #5E5CE6
50-Referenciascyan #64D2FF
60-Manuaisyellow #FFD60A
70-Livrospink #FF375F
_bibliotecapurple #BF5AF2
_sistemagray #8E8E93

Your folders will have other names. Easiest way: open the graph, gear icon > Groups, add each one by hand with these hex codes.

If you'd rather paste it into .obsidian/graph.json, close the graph tab first. The open graph view keeps its own copy of the settings and writes it back to disk, so an edit made with the graph open gets overwritten. That one bit me.

One limit

The graph is drawn on a canvas, so CSS only reaches the colors and the UI around it. The hover effect that lights up a node's neighbors comes from Obsidian itself and stays the same.

License

MIT

Related

How to Install

  1. Download the repository ZIP below
  2. Unzip it and find the CSS snippet file
  3. Move the CSS file into your vault's .obsidian/snippets/ folder
  4. Open Obsidian → Settings → Appearance → CSS Snippets → Enable it

Stats

Stars

0

Forks

0

License

MIT

Last updated 2mo ago

Categories

Tags

apple-designcssgraph-viewobsidianobsidian-snippet