obsidian-advanced-canvas
obsidian-advanced-canvas copied to clipboard
Font size
It would be great if you could add an option to change font size to a whole card.
How do you imagine the implementation? Should there be a setting in the popup-menu like the settings for the node shapes. Or did you think about something different?
In version 3.0.0 (currently pre-release) you can add custom styling attributes. This is a perfect use case for this new freedom.
Here is a guide to add font size settings:
- Take a look at the following instructions
- Use this snippet for the
data.jsonfile
"customNodeStyleAttributes": [
{
"datasetKey": "fontSize",
"label": "Font Size",
"options": [
{
"icon": "arrow-big-up",
"label": "Large",
"value": "large"
},
{
"icon": "minus",
"label": "Medium (default)",
"value": null
},
{
"icon": "arrow-big-down",
"label": "Small",
"value": "small"
}
]
}
]
- Use this CSS snippet
.canvas-node[data-font-size="large"] {
--font-text-size: var(--font-ui-large);
}
.canvas-node[data-font-size="small"] {
--font-text-size: var(--font-ui-small);
}