Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Rainbow Brackets

yndarrayndarra43 downloads

Color brackets by nesting depth, highlight the pair at the cursor and mark unmatched brackets in red.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Makes nested brackets readable in plain Markdown text — like rainbow brackets in VS Code.

  • Colors by depth — (), [] and {} are colored by nesting level (4 colors, cycling). Both brackets of a pair share a color.
  • Pair at the cursor — the bracket next to the cursor and its match get a highlight.
  • Unmatched brackets — shown in red with a dotted underline. In [ ( ] only the ( is flagged.

Ignored: brackets inside inline code, code blocks, math ($...$) and frontmatter, escaped brackets (\(), and ordered list markers like 1) / a) at the start of a line.

Works in the editor (Live Preview and Source mode). Reading view is not affected. Desktop and mobile.

Installation

From Community plugins: Settings → Community plugins → Browse → search "Rainbow Brackets".

Manually: download main.js, manifest.json and styles.css from the latest release into <your vault>/.obsidian/plugins/rainbow-brackets/, then enable the plugin in Settings → Community plugins.

With BRAT: add yndarra/obsidian-rainbow-brackets.

Customizing colors

Create a CSS snippet (Settings → Appearance → CSS snippets) and override the variables:

body.theme-dark {
    --rb-0: #ffb20d;  /* level 1 */
    --rb-1: #da70d6;  /* level 2 */
    --rb-2: #4fc1ff;  /* level 3 */
    --rb-3: #6fdc8c;  /* level 4 */
    --rb-bad: #ff4d4d;                       /* unmatched */
    --rb-active-bg: rgba(255, 255, 255, .18); /* pair at the cursor */
}
body.theme-light { /* same variables for the light theme */ }

Development

No build step — main.js is the plugin itself. Tests: node --test.


По-русски

Плагин подсвечивает скобки в обычном тексте заметок: раскрашивает их по уровню вложенности, выделяет пару к скобке у курсора и показывает красным скобки без пары. Скобки в коде, формулах и маркеры списков вида 1) не трогает. Цвета можно поменять через CSS-сниппет (см. выше).

License

MIT

HealthExcellent
ReviewPassed
About
Color nested brackets by depth for (), [] and {}, cycling four colors so matching pairs share a color. Highlight the bracket next to the cursor with its match and mark unmatched brackets in red with a wavy underline, ignoring code, math, frontmatter, escaped brackets and list markers; works in Live Preview and Source editor on desktop and mobile.
SyntaxEditing
Details
Current version
1.0.2
Last updated
22 hours ago
Created
Last week
Updates
3 releases
Downloads
43
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
yndarrayndarra
GitHubyndarra
  1. Community
  2. Plugins
  3. Syntax
  4. Rainbow Brackets

Related plugins

VSCode Editor

Edit Code Files like VSCode.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Advanced Tables

Improved table navigation, formatting, and manipulation.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

Hover Editor

Transform the Page Preview hover popover into a fully working editor instance.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Outliner

Work with your lists like in Workflowy or Roam Research.