add_theme_visual_style_preset
Add a named visual-style preset to a theme, enabling visuals to opt into a defined look. Specify card-level properties such as font size, bold, and background color.
Instructions
Add a NAMED visual-style PRESET to the theme so a visual can opt into a look (theme.visualStyles[visualType][presetName]). cardProperties = JSON object of cardName -> property map or array, e.g. {"title":{"fontSize":14,"bold":true},"background":{"show":true,"color":{"solid":{"color":"#FFFFFF"}}}}. Run generate_theme first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| presetName | Yes | the preset name shown in the style gallery | |
| visualType | Yes | canonical visualType key, e.g. lineChart, tableEx | |
| cardProperties | Yes | JSON object of cardName -> property map/array | |
| reportSessionId | Yes |