SNIPPET
ansewuLJ

obsidian-css

Nine drop-in CSS snippets that turn Obsidian's default theme into a polished, card-based workspace: floating cards, pill tabs, an 8-color file explorer, Mac-style code blocks, full-width tables, and a styled Claudian panel. Zero config — no theme or plugin required, enable only what you need.

obsidian-css

A calm, card-based workspace for Obsidian's default theme.

GitHub Stars Latest Release Downloads License

English | 简体中文

https://github.com/user-attachments/assets/e3a76fb1-ee33-4fa0-971a-5b8935e2c16f

Nine drop-in CSS snippets that turn Obsidian's default theme into a calm, editorial workspace: floating cards, pill tabs, an 8-color file tree, Mac-style code blocks in reading view, full-width tables, and a Claudian chat panel that matches the rest of the UI.

No theme to install, no build step, and no plugin configuration. Enable only the snippets you need.

🌟 Features

  • 🃏 Card-based workspace — the left sidebar, editor, and right sidebar become three floating cards with 12px radius, a 1px border, and a soft shadow.
  • 🏷️ Pill tabs — a 44px tab bar with a clean active pill and a full-width purple underline.
  • 🎨 Colorful file tree — folder icons cycle through eight colors, with open/closed SVG masks, tinted row hovers, and a text-only purple active file.
  • 💻 Mac-style code blocks in reading view — dark #282C34 blocks with traffic-light dots, a fixed copy button, a native thin horizontal scrollbar, and syntax highlighting. Live preview stays close to Obsidian's native block, with rounded corners and a visible theme-colored caret.
  • 📊 Full-width tables — light gray headers and crisp 1px grids.
  • 💬 Claudian, styled — matching user bubbles, dark code blocks, and one-click language labels.
  • 👻 Auto-hiding chrome — view header, ribbon, status bar, vault profile, and scrollbar stay out of the way until you need them.
  • 🧩 Modular — nine independent files; enable only the ones you want.

📦 Install

1. Download

Download the latest release and extract the nine .css files into:

<vault>/.obsidian/snippets/

Or clone the repository and copy them:

git clone https://github.com/ansewuLJ/obsidian-css.git
cp obsidian-css/snippets/*.css <vault>/.obsidian/snippets/

2. Recommended appearance

In Settings → Appearance:

SettingValue
Base colorLight
Accent color#8A5CF5
ThemeDefault

3. Enable the snippets

Open Settings → Appearance → CSS snippets and enable the files you want.

4. Fonts

SettingValue
Interface fontSource Han Sans CN (思源黑体 CN)
Text fontInter, "Source Han Sans CN"
Monospace fontJetBrains Mono
Text font size16px

Install Inter, JetBrains Mono, and Source Han Sans CN first.


📁 Files

FileWhat it does
colors.cssEvery color variable. Edit colors here and nowhere else.
layout.cssThree cards and spacing; auto-hide for view header, ribbon, status bar and vault profile; scrollbars and resize handles.
tabs.cssTab bar height, active pill, purple underline, remove default separators.
file-tree.css8-color folder icons via SVG masks, hover states, selected file text-only purple, recent files active item.
code.cssReading-view Mac-style code blocks, native-style edit-mode blocks, native scrollbar, inline code, syntax highlighting.
table.cssFull-width tables, header background, cell grid.
claudian.cssClaudian user bubbles, code blocks, language label/copy button, inline code.
heading-level-hint.cssShow H1–H6 at the left of headings on hover in reading view.
titlebar-purple-gradient.cssFour-stop purple gradient title bar with light purple text.

📝 Notes

  • Each snippet is independent — enable only what you need.
  • Apart from colors.css, snippets only use variables; the title bar gradient and icon masks are the only literal colors.
  • The recommended appearance settings above are the exact setup used in the demo.

📜 License

MIT © ansewuLJ

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 1mo ago

Tags

claudianobsidianobsidian-css-snippetsobsidian-theme