---
schema_version: "1"
id: 925bef817e7fa860113d119d21efb7197a66a08979353da8871e3624dfebd51b
title: widgetStyle JSON and 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-widgetstyle.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-json/guide/bi-dbjson-widgetstyle.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e52c3e47a4d2e26ca452853bd4ea73b9abb95bb2e130c262128c196f5a543f7b
products:
  - Analytics Dashboard JSON Developer Guide
  - analytics
---

# widgetStyle JSON and Properties

The `widgetStyle` key contains the default widget properties that can be applied to each widget.

**note:** 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`. Settings at the widget level override the default settings for all widgets.

| Property Name     | Type    | Details                                                                                                                                                                                                         |
| ----------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `backgroundColor` | String  | Color of the widget's background, specified in hex color code. The default is `#FFFFFF`. Included in the Dashboard Designer's user interface.                                                                   |
| `borderColor`     | String  | Color of the widget's border, specified in hex color code. The default is `#FFFFFF`. If no border is specified, the widget has no border. 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 | 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 | Thickness of the border.Valid values are: `1`, `2` (default), `4`, and `8`. The higher the value, the thicker the border.Included in the Dashboard Designer's user interface.                                   |
