# DashboardTheme Interface

> DashboardTheme interface in the TX Sheet Control JavaScript API for Node.js: Coordinated canvas and card defaults; explicit widget appearance always wins.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > DashboardTheme Interface
- **1996 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/llms-full.txt

---

Coordinated canvas and card defaults; explicit widget appearance always wins.

Package: `@txtextcontrol/tx-sheet-control-server`. This is a settings/result contract, not a runtime constructor.

### Members

| Property | Description |
|---|---|
| [accent](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/accent-property/llms-full.txt) | Configures accent on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [background](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/background-property/llms-full.txt) | Configures background on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [gradient](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/gradient-property/llms-full.txt) | Configures gradient on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [surface](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/surface-property/llms-full.txt) | Configures surface on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [textColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/textcolor-property/llms-full.txt) | Configures textColor on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [borderColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/bordercolor-property/llms-full.txt) | Configures borderColor on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [positiveColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/positivecolor-property/llms-full.txt) | Configures positiveColor on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [negativeColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/negativecolor-property/llms-full.txt) | Configures negativeColor on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [fontFamily](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/fontfamily-property/llms-full.txt) | Configures fontFamily on DashboardTheme; apply the complete settings object through its owning dashboard. |
| [widgetDefaults](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/widgetdefaults-property/llms-full.txt) | Configures widgetDefaults on DashboardTheme; apply the complete settings object through its owning dashboard. |

### Examples

Configure a complete sales dashboard using this contract. Pass the workbook from your existing editor or server control.

```javascript
async function configureSalesDashboard(book) {
    const sheet = book.sheets.at(0);
    sheet.range('A1:G5').setValues([
        ['Region', 'Country', 'Customer', 'Revenue', 'Profit', 'Date', 'Units'],
        ['Europe', 'Germany', 'Studio', 42000, 12000, '2026-01-15', 12],
        ['Europe', 'France', 'Labs', 38000, 9000, '2026-02-15', 15],
        ['Americas', 'Canada', 'Partners', 31000, 8000, '2026-01-15', 9],
        ['Americas', 'United States', 'Design', 49000, 15000, '2026-02-15', 18]
    ]);
    book.analytics.setSource({ id: 'sales', name: 'Sales', sheetId: sheet.id, range: 'A1:G5', hasHeaderRow: true });
    const dashboard = book.dashboards.add('Sales Performance');
    dashboard.update({ sections: [{ id: 'summary', title: 'Executive Summary' }] });
    dashboard.addWidget({
        id: 'revenue', type: 'column', title: 'Regional Revenue',
        placement: { x: 0, y: 0, width: 8, height: 6 },
        query: { sourceId: 'sales', dimensions: ['Region'], measures: [
            { field: 'Revenue', aggregation: 'SUM', alias: 'Revenue' },
            { field: 'Profit', aggregation: 'SUM', alias: 'Profit' }
        ] }
    });
    const settings = {
        "accent": "#75B5FF",
        "background": "#102238",
        "gradient": {
            "type": "linear",
            "angle": 135,
            "stops": [
                {
                    "offset": 0,
                    "color": "#12335A"
                },
                {
                    "offset": 1,
                    "color": "#376E9C"
                }
            ]
        },
        "surface": "#17385A",
        "textColor": "#F2F6FF",
        "borderColor": "#496586",
        "positiveColor": "#70DDB8",
        "negativeColor": "#FF94A9",
        "fontFamily": "Noto Sans",
        "widgetDefaults": {
            "padding": 20,
            "borderRadius": 16,
            "shadow": {
                "color": "#000000",
                "opacity": 0.12,
                "blur": 16,
                "offsetX": 0,
                "offsetY": 4
            }
        }
    };
    dashboard.update({ theme: settings });
    const { writeFile: saveDashboard } = await import('node:fs/promises');
    await saveDashboard('sales-dashboard.svg', await dashboard.renderSvg());
}
```

---

## In This Section

- [DashboardTheme.accent Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/accent-property/llms-full.txt): DashboardTheme.accent property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.background Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/background-property/llms-full.txt): DashboardTheme.background property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.borderColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/bordercolor-property/llms-full.txt): DashboardTheme.borderColor property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.fontFamily Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/fontfamily-property/llms-full.txt): DashboardTheme.fontFamily property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.gradient Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/gradient-property/llms-full.txt): DashboardTheme.gradient property in the TX Sheet Control JavaScript API for Node.js, with its type DashboardGradient and a JavaScript example.
- [DashboardTheme.negativeColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/negativecolor-property/llms-full.txt): DashboardTheme.negativeColor property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.positiveColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/positivecolor-property/llms-full.txt): DashboardTheme.positiveColor property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.surface Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/surface-property/llms-full.txt): DashboardTheme.surface property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.textColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/textcolor-property/llms-full.txt): DashboardTheme.textColor property in the TX Sheet Control JavaScript API for Node.js, with its type string and a JavaScript example.
- [DashboardTheme.widgetDefaults Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/widgetdefaults-property/llms-full.txt): DashboardTheme.widgetDefaults property in the TX Sheet Control JavaScript API for Node.js, with its type DashboardWidgetAppearance and a JavaScript example.

---

## Nearby

- **Previous:** [DashboardShadow.offsetY Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardshadow/offsety-property/llms-full.txt)
- **Next:** [DashboardTheme.accent Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboardtheme/accent-property/llms-full.txt)
