This page lists CSS variables for links.

Obsidian supports three different types of links:

  • Resolved internal links link to an existing note.
  • Unresolved internal links link to a non-existing note.
  • External links link to an external URL or URI.

CSS variables

VariableDescription
--link-colorResolved link text color
--link-color-hoverResolved link text color (hover)
--link-decorationResolved link text decoration
--link-decoration-hoverResolved link text decoration (hover)
--link-decoration-thicknessResolved link text decoration thickness
--link-weightLink font weight
--link-unresolved-colorUnresolved link text color
--link-unresolved-opacityUnresolved link opacity
--link-unresolved-filterUnresolved link filter, e.g. hue-rotate
--link-unresolved-decoration-styleUnresolved link text decoration style
--link-unresolved-decoration-colorUnresolved link text decoration color
--link-external-colorExternal link text color
--link-external-color-hoverExternal link text color (hover)
--link-external-decorationExternal link text decoration
--link-external-decoration-hoverExternal link text decoration (hover)