Adds colored markers to heading levels (H1-H6) to help distinguish them at a glance.

A plugin for Obsidian that adds colored markers to heading levels (H1–H6), helping you quickly distinguish heading levels at a glance. Supports both Edit mode (Live Preview / Source Mode) and Reading mode.
main.js, styles.css, and manifest.json from the latest release.obsidian/plugins/heading-colors/ folderOpen Settings → Heading Colors to customize the color for each heading level (H1–H6) using the built-in color pickers. Changes apply instantly.
Alternatively, install the Style Settings plugin to configure the same colors through its unified settings panel.
For marker size, position, and other advanced tweaks, edit styles.css directly or override via CSS snippets:
/* Marker size */
--marker-width: 8px;
--marker-height: 10px;
--marker-radius: 2px;
/* Position offset (edit mode) */
--marker-left: -14px;
--marker-vertical: 0px;
/* Reading mode compensation */
--reading-left-adjust: -1px;
--show-reading-markers: 1;
/* Heading line height */
--heading-line-height: 1.37;
| Heading Level | Color Code | Color Name |
|---|---|---|
| H1 | #FF6B6B |
Coral Red |
| H2 | #4ECDC4 |
Tiffany Blue |
| H3 | #FFE66D |
Butter Yellow |
| H4 | #A8E6CF |
Mint Green |
| H5 | #DDA0DD |
Lavender |
| H6 | #FFB347 |
Light Orange |
MIT
一款 Obsidian 插件,为标题层级(H1–H6)添加彩色标记,帮助你一目了然地分辨标题层级。支持编辑模式(实时预览 / 源码模式)和阅读模式。
main.js、styles.css 和 manifest.json.obsidian/plugins/heading-colors/ 文件夹打开设置 → Heading Colors,使用内置的颜色选择器为每个标题层级(H1–H6)自定义颜色,修改即时生效。
也可以安装 Style Settings 插件,通过其统一设置面板配置相同的颜色。
如需调整标记尺寸、位置等高级选项,直接编辑 styles.css 或通过 CSS 片段覆盖:
/* 标记尺寸 */
--marker-width: 8px;
--marker-height: 10px;
--marker-radius: 2px;
/* 位置偏移(编辑模式) */
--marker-left: -14px;
--marker-vertical: 0px;
/* 阅读模式补偿 */
--reading-left-adjust: -1px;
--show-reading-markers: 1;
/* 标题行高 */
--heading-line-height: 1.37;
| 标题层级 | 颜色代码 | 颜色名称 |
|---|---|---|
| H1 | #FF6B6B |
珊瑚红 |
| H2 | #4ECDC4 |
蒂芙尼蓝 |
| H3 | #FFE66D |
黄油黄 |
| H4 | #A8E6CF |
薄荷绿 |
| H5 | #DDA0DD |
薰衣草紫 |
| H6 | #FFB347 |
浅橙 |
MIT