The site header contains the site logo (if added in Publish settings), the site name, and the mobile hamburger menu if navigation is turned on.

The site header appears as a horizontal header at the top of the page on mobile devices and when navigation is turned off. When navigation is turned on in Publish settings, the site name and logo appear in the left sidebar.

This page lists CSS variables used for Obsidian Publish site header, site logo, and site name

CSS variables

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

VariableDescription
--logo-widthLogo default width
--logo-heightLogo default height
--logo-max-widthLogo max width
--logo-max-heightLogo max height
--logo-radiusLogo corner radius
--header-heightHeight of the site header
--site-name-colorSite name color
--site-name-color-hoverSite name hovered color
--site-name-fontSite name font family
--site-name-sizeSite name font size
--site-name-weightSite name font weight
--site-menu-icon-colorMobile menu icon color
--site-menu-icon-color-hoverMobile menu hovered icon color
--site-menu-icon-sizeMobile menu icon size