albertoos125 downloadsColor markdown headers (H1-H6) with customizable palettes. Supports colormap cycling and per-level user-defined colors.
Color your markdown headers (H1–H6) in Obsidian with customizable colors — in both the editor and reading view.
npm install
npm run build
main.js, manifest.json, and styles.css to your vault:<Vault>/.obsidian/plugins/rainbow-header-coloring/
| Setting | Default | Description |
|---|---|---|
| Mode | colormap |
colormap cycles colors automatically; userDefined gives per-level control |
| Colormap | hsv |
Color palette (hsv, cool, warm, greyscale) |
| Shades | 20 |
Number of color steps in the palette (10–40) |
| Font opacity | 1.0 |
Opacity of the generated header text color (0.0–1.0) |
| Background opacity | 0.1 |
Opacity of the generated header background color (0.0–1.0) |
| Enable in editor | true |
Apply coloring in Live Preview and Source mode |
| Enable in reading view | true |
Apply coloring in Reading view |
Per heading level (H1–H6):
| Setting | Default | Description |
|---|---|---|
| Font color | One Dark Pro palette | CSS color for the heading text |
| Background color | One Dark Pro palette | CSS color for the heading background |
| Enable background | true |
Toggle background color on/off per level |
| Bold | false |
Make the heading bold |
| Italic | false |
Make the heading italic |
# Install dependencies
npm install
# Dev build with watch
npm run dev
# Production build
npm run build
# Lint
npm run lint
# Build and install into the test vault
npm run install-test
A test-plugin-vault/ directory is included in the repo with 9 markdown files covering all edge cases (code blocks, YAML frontmatter, blockquotes, callouts, inline formatting, etc.). After running npm run install-test, open that folder as an Obsidian vault to do manual QA.
See CHANGELOG for release history.