2 KiB
2 KiB
This page explains how you can customize how your Introduction to Obsidian Publish site looks and feels.
Static assets
You can customize your site by Publish and unpublish notes#Publish notes the following files to your site:
publish.css
to add custom CSSpublish.js
to add custom JavaScriptfavicon-32x32.png
to set the favicon
Notes:
- Since Obsidian doesn't support CSS or JavaScript files, you need to use another application to create and edit them.
- By default,
publish.css
andpublish.js
don't appear in the file explorer, but you can still publish them from the Publish changes dialog.
For favicons, Obsidian Publish supports the following naming conventions, where 32
is the icon dimensions in pixels:
favicon-32.png
favicon-32x32.png
favicon.ico
We recommend that you provide one or more of the following dimensions:
favicon-32x32.png
favicon-128x128.png
favicon-152x152.png
favicon-167x167.png
favicon-180x180.png
favicon-192x192.png
favicon-196x196.png
Use a community theme
To use one of the community themes for your site:
- Open your vault in the default file explorer for your OS.
- Go to the vault settings folder (default:
.obsidian
). - Open the
themes
folder. - Copy the CSS file for the theme you want to use for your site.
- Paste the file into the root folder of your vault.
- Rename the CSS file to
publish.css
. - Publish and unpublish notes#Publish notes
publish.css
.
Notes:
- If the style doesn't change within a few minutes, you may need to refresh your browser cache.
- You can switch between light and dark mode in the Manage sites#View site options.
Enable UI features
You can toggle several UI features for your site, such as the graph view or a table of contents.
Browse the available UI features under the Reading experience and Components sections in the Manage sites#View site options