mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
18 lines
655 B
Markdown
18 lines
655 B
Markdown
# [◀ Excalidraw Automate How To](../readme.md)
|
|
## Canvas style settings
|
|
Sets the properties of the canvas.
|
|
|
|
### theme, setTheme()
|
|
String. Valid values are "light" and "dark".
|
|
|
|
`setTheme()` accepts a number:
|
|
- 0: "light"
|
|
- any other number: "dark"
|
|
|
|
### viewBackgroundColor
|
|
String. This is the fill color of an object. [CSS Legal Color Values](https://www.w3schools.com/cssref/css_colors_legal.asp)
|
|
|
|
Allowed values are [HTML color names](https://www.w3schools.com/colors/colors_names.asp), hexadecimal RGB strings e.g. `#FF0000` for red, or `transparent`.
|
|
|
|
### gridSize
|
|
Number. The size of the grid. If set to zero, no grid is displayed. |