This page lists CSS variables used for Obsidian Publish site components.

CSS variables

Publish-specific variables should be defined on the .published-container.

Component titles

Styles for the title above components such as Backlinks, Graph, Table of contents, when these components are turned on in the site settings.

VariableDescription
--component-title-colorFont color
--component-title-fontFont family
--component-title-sizeFont size
--component-title-styleFont style, e.g. normal or italic
--component-title-transformText transform, e.g. uppercase
--component-title-variantFont variant
--component-title-weightFont weight

Outline

When activated in Publish settings, a table of contents is displayed in the right sidebar showing a navigable list of headings on the page.

VariableDescription
--outline-heading-colorFont color for inactive headings
--outline-heading-color-hoverFont color for hovered heading
--outline-heading-color-activeFont color for active heading
--outline-heading-weight-activeFont weight for active heading

Graph

The graph component can be turned on in Publish settings. More graph CSS variables for node and line colors are present in the inherited CSS.

VariableDescription
--graph-heightHeight of the graph component