Spaces:
Sleeping
Sleeping
cssClass: reference | |
This page lists CSS variables used for Obsidian Publish pages. | |
## CSS variables | |
Publish-specific variables should be defined on the `.published-container`. | |
### Page width and padding | |
| Variable | Description | | |
| ----------------------- | ---------------------------------------------- | | |
| `--page-width` | Width of a note when readable line width is on | | |
| `--page-padding` | Padding around a note | | |
### Page title | |
The note title displayed at the top of the page. This title can be hidden in the Publish site settings using the "**Hide page title**" option. | |
| Variable | Description | | |
| -------------------------- | --------------------------------- | | |
| `--page-title-color` | Font color | | |
| `--page-title-font` | Font family, see [[Site fonts]] | | |
| `--page-title-line-height` | Line height | | |
| `--page-title-size` | Font size | | |
| `--page-title-style` | Font style, e.g. normal or italic | | |
| `--page-title-variant` | Font variant | | |
| `--page-title-weight` | Font weight | |