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

Frontmatter Metadata Link Classes

zmeeeeevazmeeeeeva392 downloads

Adds classes to internal links based on frontmatter metadata.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Enhance your Obsidian links by automatically adding classes based on frontmatter metadata! Style links dynamically using your custom CSS rules.

✨ Features

  • Automatic class assignment from page frontmatter metadata.
  • Handles boolean, string, and array metadata keys.
  • Target links with CSS like .link-publish-true or .link-tags-todo.

✨ How It Works

Given a note with frontmatter metadata:

draft: false
publish: true
danger: true
tags: ['todo', 'hit']
type: 'lorem-ipsum'

All internal links of this note will receive the following classes:

.link-publish-true
.link-danger-true
.link-tags-todo
.link-tags-hit
.link-type-lorem-ipsum

Simply target these in your custom CSS snippets.

HealthGood
ReviewCaution
About
Add CSS classes to internal links based on a note’s frontmatter metadata. Handle boolean, string, and array keys to create predictable classes (e.g. .link-publish-true, .link-tags-todo, .link-type-lorem-ipsum) for styling via custom CSS.
LinksCSSProperties
Details
Current version
1.0.0
Last updated
Last year
Created
Last year
Updates
1 release
Downloads
392
Compatible with
Obsidian 0.14.0+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Author
zmeeeeevazmeeeeeva
zmeeva.io
GitHubzmeeeeeva
  1. Community
  2. Plugins
  3. Links
  4. Frontmatter Metadata Link Classes

Related plugins

Wikilink Types

Type @ inside wikilink aliases to add relationship types, auto-synced to YAML frontmatter.

Auto Card Link

Automatically fetches metadata from a URL and makes it as a card-styled link.

Astro Composer

Turn your notes into posts and pages for your Astro blog with automated content management features.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced URI

Control everything with URI.

Meta Bind

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

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Style Settings

Adjust theme, plugin, and snippet CSS variables.