michaellw / Obsidian-Canvas-Style-Menu

Customize canvas styles seamlessly through the canvas menu and support styles extension using CSS snippets.
58 stars 4 forks source link

Text size #7

Open Eusorph opened 5 months ago

Eusorph commented 5 months ago

Also, it would be awesome to have a command that changes the text size of the whole note.

michaellw commented 5 months ago

Hello, this can be done by adding custom css, you can refer to the following way to add custom font styles and canvas menu buttons: Step1: add these css snippets to your custom css:

.canvas-node.canvas-font-small .markdown-preview-sizer {
  font-size: small;
}
.canvas-node.canvas-font-medium .markdown-preview-sizer {
  font-size: medium;
}
.canvas-node.canvas-font-large .markdown-preview-sizer {
  font-size: large;
}

Step2: Adding menu buttons in plugin settings: image Step3: Using the canvas menu image

Eusorph commented 5 months ago

Thank you, this is great.