---
schema_version: "1"
id: ed5c7b4df9bca5a4caf8c04ea655d5f24c362962417355a890a969ab285074fb
title: widgetStyle Properties
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_json/guides/bi-dbjson-gridlayout-widgets-pages-widgetstyle-properties.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-json/guide/bi-dbjson-gridlayout-widgets-pages-widgetstyle-properties.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 19fa9bdbb82d9d11d2621ffb9fe2652376c0ae5fe0ad1091cf6cdd20396744f9
products:
  - Analytics Dashboard JSON Developer Guide
  - analytics
---

# widgetStyle Properties

The `widgetStyle` key contains properties that set the border type, border color, and background color of the widget. You can specify these attributes at two levels. To set the default for all dashboard widgets, use the `widgetStyle` field under `gridLayouts`. To set a specific widget, use the `widgetStyle` field under `widgets`. This setting overrides the default settings for all widgets.

| Property Name     | Type    | Details                                                                                                                                                                                                         |
| ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `backgroundColor` | String  | Background color of the widget. The default is `#FFFFFF`. Included in the Dashboard Designer's user interface.                                                                                                  |
| `borderColor`     | String  | Color of the widget's border. The default is `#FFFFFF`. Included in the Dashboard Designer's user interface.                                                                                                    |
| `borderEdges`     | List    | A list of values that specify which edges of the widget have a border. Valid values are `left`, `right`, `top`, `bottom`, and `all`. Default is no border. Included in the Dashboard Designer's user interface. |
| `borderRadius`    | Integer | The roundness of the border corners.Valid values are: `0` (not rounded, default), `4`, `8`, and `16`. The higher the value, the more rounded the corner.Included in the Dashboard Designer's user interface.    |
| `borderWidth`     | Integer | Width of the widget's border. Valid values are `1`, `2` (default), `4`, and `8`. Included in the Dashboard Designer's user interface.                                                                           |
