The Upsolve SDK allows you to fully customize the appearance of your embedded dashboards through theme configuration. You can override any visual property to match your brand’s design system.Documentation Index
Fetch the complete documentation index at: https://docs.upsolve.ai/llms.txt
Use this file to discover all available pages before exploring further.
React SDK Usage
When deploying an<UpsolveDashboard />, provide a theme configuration object to the themeConfigs prop:
Iframe Usage
When embedding dashboards via iframe, pass the theme configuration as a URL-encoded JSON string in thethemeConfigs query parameter:
Complete Iframe Example
Complete Theme Configuration Reference
Common Properties
Properties that apply to both light and dark themes:| Property | Type | Description | Default |
|---|---|---|---|
dashboardColumns | number or {lg, md, sm, xs, xxs} | Number of columns in the dashboard layout. Can be a single number or an object with breakpoint-specific values. | {lg: 8, md: 8, sm: 8, xs: 8, xxs: 8} |
spacing | number | Spacing between dashboard elements in pixels. | 10 |
dashboardFontFamily | string | Font family used in the dashboard. See Available Fonts below. | "Helvetica" |
dashboardFontWeight | number | Font weight used in the dashboard. Valid values: 200, 300, 400, 600, 700, 800, 900. | 400 |
chartFontWeight | number | Font weight used in charts. | 400 |
statCardTitleFontWeight | number | Font weight for stat card titles. | 400 |
statCardContentFontWeight | number | Font weight for stat card content. | 400 |
cardBorderRadius | number | Border radius for cards in pixels. | undefined |
cardPadding | {left, right, top, bottom} | Padding for cards in pixels. | undefined |
cardTitlePosition | "left" | "right" | "center" | Position of card titles. | "left" |
buttonBorderRadius | number | Border radius for buttons in pixels. | undefined |
tabsPlacement | string | Placement of tabs. | "left" |
labelPadding | {left, right, top, bottom} | Padding for labels in pixels. | undefined |
labelFontSize | number | Font size for labels in pixels. | undefined |
chartSubtitlePosition | "left" | "right" | "center" | Position of chart subtitles. | "left" |
chartSubtitleFontWeight | number | Font weight for chart subtitles. | 400 |
chartSubtitleItalic | boolean | Whether chart subtitles should be italic. | false |
yAxisWidth | number | Width of the y-axis in pixels (only used for bar charts). | undefined |
hideFilterPills | boolean | Whether to hide the filter pills display below filters. | false |
hideFilterIcon | boolean | Whether to hide the filter icon button on charts. | false |
hideChartFilterIcon | boolean | Whether to hide the chart filter icon button on charts. | false |
infoTooltipIconSize | number | Size of the chart info tooltip icon in pixels (8-48). | 20 |
infoTooltipIconPosition | "left" | "right" | Position of the chart info tooltip icon relative to the title. | "left" |
noDataText | string | Custom text to display when charts have no data. | undefined |
Light/Dark Theme Properties
Properties that can be set separately for light and dark themes:| Property | Type | Description | Default |
|---|---|---|---|
dashboardBackgroundColor | string | Background color for the dashboard. | "transparent" |
dashboardFontColor | string | Font color used in the dashboard. | "inherit" |
widgetBackgroundColor | string | Background color for widgets/cards. | "transparent" |
chartBackgroundColor | string | Background color for charts. | undefined |
buttonColor | string | Color of buttons. | "inherit" |
buttonTextColor | string | Color of button text. | "#7C3AED" |
chartFontColor | string | Font color used in charts. | "inherit" |
statCardTitleFontColor | string | Font color for stat card titles. | "inherit" |
statCardContentFontColor | string | Font color for stat card content. | "inherit" |
cardBorderColor | string | Border color for cards. | undefined |
sideBarBorderColor | string | Border color for the sidebar. | undefined |
tableHeaderBackgroundColor | string | Background color for table headers. | undefined |
tableActiveRowBackgroundColor | string | Background color for active rows in tables. | undefined |
tableDataBackgroundColor | string | Background color for table data cells. | undefined |
chartSkeletonColor | string | Color of the chart skeleton/loading state. | undefined |
chartSubtitleFontColor | string | Color of chart subtitles. | "inherit" |
Available Fonts
The following font families are available fordashboardFontFamily:
- Arial
- Roboto
- Helvetica
- Inter
- Times New Roman
- Courier New
- Georgia
- Verdana
- Trebuchet MS
- Gill Sans
- Noto Sans
- Avantgarde
- TeX Gyre Adventor
- URW Gothic L
- Optima
- Arial Narrow
- sans-serif
- Didot
- Palatino
- URW Palladio L
- Bookman
- URW Bookman L
- New Century Schoolbook
- TeX Gyre Schola
- American Typewriter
- Andale Mono
- Courier
- FreeMono
- OCR A Std
- DejaVu Sans Mono
- Overpass
- Libre Franklin
- franklin-gothic-atf
- Space Grotesk
- Open Sans
- Spline Sans
- DM Sans
- Maven Pro
- Poppins
Tips
- Color Formats: Use hex colors (e.g.,
"#ff0000"), RGB/RGBA (e.g.,"rgba(255, 0, 0, 0.5)"), or CSS color names. - Responsive Columns: Use the object form of
dashboardColumnsto create responsive layouts that adapt to different screen sizes. - Theme Inheritance: Properties not specified will inherit from the default theme, so you only need to override what you want to change.
- Iframe URL Length: Be mindful of URL length limits when using iframes. Very large theme configs may need to be passed via other methods.