The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Theme configuration for embedded Metabase components.
Properties
| Property | Type | Description |
|---|---|---|
colors? |
MetabaseColors |
Color palette |
components? |
{ cartesian?: { goalLine?: { label?: { fontSize?: string; }; }; label?: { fontSize?: string; }; padding?: string; splitLine?: { lineStyle?: { color?: string; }; }; }; collectionBrowser?: { breadcrumbs?: { expandButton?: { backgroundColor?: string; hoverBackgroundColor?: string; hoverTextColor?: string; textColor?: string; }; }; emptyContent?: { icon?: { height?: Width<... | ...>; width?: Width<... | ...>; }; subtitle?: { fontSize?: FontSize<... | ...>; }; title?: { fontSize?: FontSize<... | ...>; }; }; }; dashboard?: { backgroundColor?: string; card?: { backgroundColor?: string; border?: string; }; gridBorderColor?: string; }; number?: { value?: { fontSize?: FontSize<string | number>; lineHeight?: string; }; }; pivotTable?: { cell?: { fontSize?: string; }; rowToggle?: { backgroundColor?: string; textColor?: string; }; }; popover?: { zIndex?: number; }; question?: { backgroundColor?: string; toolbar?: { backgroundColor?: string; }; }; table?: { cell?: { backgroundColor?: string; fontSize?: string; textColor?: string; }; idColumn?: { backgroundColor?: string; textColor: string; }; stickyBackgroundColor?: string; stripedBackgroundColor?: string; }; tooltip?: { backgroundColor?: string; focusedBackgroundColor?: string; secondaryTextColor?: string; textColor?: string; }; } |
Component theme options |
components.cartesian? |
{ goalLine?: { label?: { fontSize?: string; }; }; label?: { fontSize?: string; }; padding?: string; splitLine?: { lineStyle?: { color?: string; }; }; } |
Cartesian charts |
components.cartesian.goalLine? |
{ label?: { fontSize?: string; }; } |
- |
components.cartesian.goalLine.label? |
{ fontSize?: string; } |
- |
components.cartesian.goalLine.label.fontSize? |
string |
Font size of goal line labels Deprecated Has no effect, goal line labels are not shown on interactive charts. |
components.cartesian.label? |
{ fontSize?: string; } |
- |
components.cartesian.label.fontSize? |
string |
Labels used in cartesian charts, such as axis ticks and series. |
components.cartesian.padding? |
string |
Padding around the chart. |
components.cartesian.splitLine? |
{ lineStyle?: { color?: string; }; } |
- |
components.cartesian.splitLine.lineStyle? |
{ color?: string; } |
- |
components.cartesian.splitLine.lineStyle.color? |
string |
- |
components.collectionBrowser? |
{ breadcrumbs?: { expandButton?: { backgroundColor?: string; hoverBackgroundColor?: string; hoverTextColor?: string; textColor?: string; }; }; emptyContent?: { icon?: { height?: Width<... | ...>; width?: Width<... | ...>; }; subtitle?: { fontSize?: FontSize<... | ...>; }; title?: { fontSize?: FontSize<... | ...>; }; }; } |
- |
components.collectionBrowser.breadcrumbs? |
{ expandButton?: { backgroundColor?: string; hoverBackgroundColor?: string; hoverTextColor?: string; textColor?: string; }; } |
- |
components.collectionBrowser.breadcrumbs.expandButton? |
{ backgroundColor?: string; hoverBackgroundColor?: string; hoverTextColor?: string; textColor?: string; } |
- |
components.collectionBrowser.breadcrumbs.expandButton.backgroundColor? |
string |
- |
components.collectionBrowser.breadcrumbs.expandButton.hoverBackgroundColor? |
string |
- |
components.collectionBrowser.breadcrumbs.expandButton.hoverTextColor? |
string |
- |
components.collectionBrowser.breadcrumbs.expandButton.textColor? |
string |
- |
components.collectionBrowser.emptyContent? |
{ icon?: { height?: Width<... | ...>; width?: Width<... | ...>; }; subtitle?: { fontSize?: FontSize<... | ...>; }; title?: { fontSize?: FontSize<... | ...>; }; } |
- |
components.collectionBrowser.emptyContent.icon? |
{ height?: Width<... | ...>; width?: Width<... | ...>; } |
- |
components.collectionBrowser.emptyContent.icon.height? |
Width<... | ...> |
- |
components.collectionBrowser.emptyContent.icon.width? |
Width<... | ...> |
- |
components.collectionBrowser.emptyContent.subtitle? |
{ fontSize?: FontSize<... | ...>; } |
- |
components.collectionBrowser.emptyContent.subtitle.fontSize? |
FontSize<... | ...> |
- |
components.collectionBrowser.emptyContent.title? |
{ fontSize?: FontSize<... | ...>; } |
- |
components.collectionBrowser.emptyContent.title.fontSize? |
FontSize<... | ...> |
- |
components.dashboard? |
{ backgroundColor?: string; card?: { backgroundColor?: string; border?: string; }; gridBorderColor?: string; } |
- |
components.dashboard.backgroundColor? |
string |
- |
components.dashboard.card? |
{ backgroundColor?: string; border?: string; } |
- |
components.dashboard.card.backgroundColor? |
string |
- |
components.dashboard.card.border? |
string |
Add custom borders to dashboard cards when set. Value is the same as the border property in CSS, such as "1px solid #ff0000". This will replace the card's drop shadow. |
components.dashboard.gridBorderColor? |
string |
Border color of the dashboard grid, shown only when editing dashboards. Defaults to colors.border |
components.number? |
{ value?: { fontSize?: FontSize<string | number>; lineHeight?: string; }; } |
Number chart |
components.number.value? |
{ fontSize?: FontSize<string | number>; lineHeight?: string; } |
Value displayed on number charts. This also applies to the primary value in trend charts. |
components.number.value.fontSize? |
FontSize<string | number> |
- |
components.number.value.lineHeight? |
string |
- |
components.pivotTable? |
{ cell?: { fontSize?: string; }; rowToggle?: { backgroundColor?: string; textColor?: string; }; } |
Pivot table * |
components.pivotTable.cell? |
{ fontSize?: string; } |
- |
components.pivotTable.cell.fontSize? |
string |
Font size of cell values, defaults to ~12px |
components.pivotTable.rowToggle? |
{ backgroundColor?: string; textColor?: string; } |
Button to toggle pivot table rows |
components.pivotTable.rowToggle.backgroundColor? |
string |
- |
components.pivotTable.rowToggle.textColor? |
string |
- |
components.popover? |
{ zIndex?: number; } |
Popover |
components.popover.zIndex? |
number |
z-index of overlays. Useful for embedding components in a modal. Defaults to 200. |
components.question? |
{ backgroundColor?: string; toolbar?: { backgroundColor?: string; }; } |
- |
components.question.backgroundColor? |
string |
Background color for all questions |
components.question.toolbar? |
{ backgroundColor?: string; } |
Toolbar of the default interactive question layout |
components.question.toolbar.backgroundColor? |
string |
- |
components.table? |
{ cell?: { backgroundColor?: string; fontSize?: string; textColor?: string; }; idColumn?: { backgroundColor?: string; textColor: string; }; stickyBackgroundColor?: string; stripedBackgroundColor?: string; } |
Data tables * |
components.table.cell? |
{ backgroundColor?: string; fontSize?: string; textColor?: string; } |
- |
components.table.cell.backgroundColor? |
string |
Default background color of cells, defaults to background |
components.table.cell.fontSize? |
string |
Font size of cell values, defaults to ~12.5px |
components.table.cell.textColor? |
string |
Text color of cells, defaults to text-primary. |
components.table.idColumn? |
{ backgroundColor?: string; textColor: string; } |
- |
components.table.idColumn.backgroundColor? |
string |
Background color of ID column, defaults to lighten(brand) |
components.table.idColumn.textColor |
string |
Text color of ID column, defaults to brand. |
components.table.stickyBackgroundColor? |
string |
Background color of the table header that stays fixed while scrolling. Defaults to white if no cell background color is set |
components.table.stripedBackgroundColor? |
string |
Background color of every other row when the "Striped rows" table setting is enabled. Defaults to a subtle tint of the cell background color |
components.tooltip? |
{ backgroundColor?: string; focusedBackgroundColor?: string; secondaryTextColor?: string; textColor?: string; } |
Tooltip |
components.tooltip.backgroundColor? |
string |
Tooltip background color. |
components.tooltip.focusedBackgroundColor? |
string |
Tooltip background color for focused rows. |
components.tooltip.secondaryTextColor? |
string |
Secondary text color shown in the tooltip, e.g. for tooltip headers and percentage changes. |
components.tooltip.textColor? |
string |
Tooltip text color. |
fontFamily? |
| string & { } | MetabaseFontFamily |
Font family that will be used for all text, it defaults to the instance's default font. |
fontSize? |
string |
Base font size. Supported units are px, em and rem. Defaults to ~14px (0.875em) |
lineHeight? |
string | number |
Base line height |
preset? |
MetabaseThemePreset |
Predefined theme preset to use as a base. |