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

Style link by tag

jajapersonjajaperson3 downloads

Adds `data-tags` metadata to link elements so they can be selectively styled by tag.

  • Overview
  • Scorecard
  • Updates1

This simple plugin adds a markdown postprocessor which adds data-tags metadata to all internal links in the document. This can then be used in conjunction with CSS snippets to selectively style links based on their tag. For example, say we have the following files

  1. file.md

    I am a file, see also [[linked file]].
    
  2. linked file.md

    ---
    tags:
      - public
      - foo
    ---
    
    # Title
    
    Foo #bar
    

The the <a> element for [[linked file]] in file.md will have the property data-tags="public foo bar". This can be then used in css, for example

.internal-link[data-tags~="public"] {
  color: red;
}

styles all links resolved to files tagged #public in red.

HealthExcellent
ReviewCaution
About
Add data-tags attributes to internal links reflecting the target note's YAML and inline tags. Style links with CSS selectors based on those data-tags to highlight or filter links by tag.
TagsCSSLinks
Details
Current version
1.0.0
Last updated
5 months ago
Created
5 months ago
Updates
1 release
Downloads
3
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Author
jajapersonjajaperson
jajaperson.me
GitHubjajaperson
  1. Community
  2. Plugins
  3. Tags
  4. Style link by tag

Related plugins

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Admonition

Admonition block-styled content.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Advanced URI

Control everything with URI.

Breadcrumbs

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

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

Consistent Attachments and Links

Move note attachments and update links automatically.