Frontmatter Decorator
pendingby Cam Barts
Apply colors and icons from frontmatter properties.
Frontmatter Decorator
An Obsidian plugin that applies colors and icons from frontmatter properties to files throughout the Obsidian interface.
Features
- Frontmatter-driven styling: Define colors and icons directly in your note's frontmatter
- Multiple UI locations: Styles are applied to:
- File Explorer
- Tab Headers
- Quick Switcher (Ctrl/Cmd+O)
- Link Suggester (when typing
[[) - Backlinks Pane
- Bases (database views)
- Editor internal links
- Configurable: Choose which frontmatter fields to use and which UI locations to style
- Performance optimized: Caches frontmatter lookups for efficiency
Usage
Add color and/or icon properties to your note's frontmatter:
---
color: "#0ea5e9"
icon: lucide-list-todo
---
The plugin will automatically apply these styles wherever the file appears in Obsidian.
Color Format
Colors can be specified in any valid CSS color format:
- Hex:
"#0ea5e9","#f00" - RGB:
"rgb(14, 165, 233)" - Named colors:
"blue","coral"
Icon Format
Lucide Icons (built-in):
- With prefix:
lucide-list-todo - Without prefix:
list-todo(prefix added automatically) - Browse at lucide.dev
Phosphor Icons (requires Notebook Navigator):
- Format:
phosphor:icon-name(e.g.,phosphor:bridge) - Browse at phosphoricons.com
Simple Icons (requires Notebook Navigator):
- Format:
simple-icons:icon-name(e.g.,simple-icons:github) - Browse at simpleicons.org
Installation
From Obsidian Community Plugins
Note: This plugin is pending approval for the Obsidian Community Plugins directory. Once approved, you'll be able to install it directly from Obsidian.
- Open Obsidian Settings
- Go to Community Plugins
- Search for "Frontmatter Decorator"
- Click Install, then Enable
Using BRAT (Recommended for now)
BRAT allows you to install plugins directly from GitHub before they're available in the Community Plugins directory.
- Install the BRAT plugin from Community Plugins
- Open BRAT settings
- Click "Add Beta Plugin"
- Enter the repository URL:
cam-barts/obsidian-frontmatter-decorator - Click "Add Plugin"
- Enable "Frontmatter Decorator" in Community Plugins
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder called
frontmatter-decoratorin your vault's.obsidian/plugins/directory - Copy the downloaded files into this folder
- Restart Obsidian and enable the plugin in Settings > Community Plugins
Development Installation
See CONTRIBUTING.md for detailed setup instructions.
Quick start:
- Clone this repository
- Run
npm installto install dependencies - Run
npm run devto start compilation in watch mode - Symlink the plugin folder to your vault's
.obsidian/plugins/frontmatter-decoratordirectory
Settings
| Setting | Description | Default |
|---|---|---|
| Color field | Frontmatter field name for colors | color |
| Icon field | Frontmatter field name for icons | icon |
| File Explorer | Enable styling in File Explorer | On |
| Tab Headers | Enable styling in tab headers | On |
| Quick Switcher | Enable styling in Quick Switcher | On |
| Link Suggester | Enable styling in link suggester | On |
| Backlinks Pane | Enable styling in Backlinks pane | On |
| Bases | Enable styling in Bases views | On |
| Editor Links | Enable styling for internal links | On |
Commands
- Refresh frontmatter styles: Manually refresh all styles (useful if styles aren't updating)
Compatibility
- Requires Obsidian v1.4.0 or higher
- Works on desktop (Windows, macOS, Linux)
- Mobile support (iOS, Android) is not yet tested
Comparison with Supercharged Links
This plugin provides similar functionality to Supercharged Links but with a different approach:
| Feature | Frontmatter Decorator | Supercharged Links |
|---|---|---|
| Color source | Frontmatter color field | Plugin settings |
| Icon source | Frontmatter icon field | Plugin settings |
| Configuration | Per-note | Global selectors |
| CSS generation | None (inline styles) | Auto-generated CSS |
| Style Settings integration | No | Yes |
Attribution & Credits
This project was inspired by and built upon the following resources:
Supercharged Links
- Source: https://github.com/mdelobelle/obsidian_supercharged_links
- Author: mdelobelle
- License: MIT
- Usage: This plugin provides similar functionality with a different, frontmatter-driven approach
Obsidian Sample Plugin
- Source: https://github.com/obsidianmd/obsidian-sample-plugin
- Author: Obsidian Team
- License: MIT
- Usage: Used as the structural template for this plugin
Notebook Navigator
- Source: https://github.com/johansan/notebook-navigator
- Author: johansan
- Usage: Optional integration for Phosphor and Simple Icons support via its icon service
Icon Libraries
This plugin supports icons from the following libraries:
- Lucide Icons: https://lucide.dev - MIT License
- Phosphor Icons: https://phosphoricons.com - MIT License (requires Notebook Navigator)
- Simple Icons: https://simpleicons.org - CC0 1.0 Universal (requires Notebook Navigator)
BRAT
- Source: https://github.com/TfTHacker/obsidian42-brat
- Author: TfTHacker
- License: MIT
- Usage: Recommended for beta plugin installation
License
MIT - See LICENSE for details
Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines on:
- Development setup
- Commit message conventions
- Pre-commit hooks
- Pull request process
Support
If you find this plugin useful, consider supporting development:
- Star the repository on GitHub
- Report bugs and suggest features
- Contribute code or documentation
Built with Claude Code
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.