Closed Eusorph closed 3 weeks ago
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:
data.json
file
"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"
}
]
}
]
.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); }
It would be great if you could add an option to change font size to a whole card.