Full App Embed > Appearance
Match a Draxlr full app embed to your product with your colors, fonts and custom CSS, including selectors for the sidebar, page headers, My Queries and the query editor.
Open Appearance in the embed builder to match the embed to your product. It has three sections: Customize Colors, Customize Fonts and Custom CSS.
Click Apply to update the preview. The panel stays open, so you can keep adjusting.
Customize Colors
| Setting | What it does |
|---|---|
| Background | The embed's page background. Draxlr picks a light or dark theme from this color. |
| Dashboard Item background | The background of dashboard cards. |
| Primary color | Your brand color, used for buttons, active states and highlights in place of Draxlr's green. Lighter shades are generated automatically. Click Reset to go back to Draxlr's green. |
Customize Fonts
- Custom Font Family URL: the URL of a font stylesheet, for example
https://fonts.googleapis.com/css2?family=Inter. - Font Family name: for Google Fonts URLs, Draxlr reads the name from the URL. For any other URL, enter the font family name your stylesheet defines.
The font applies to all text in the embed, including chart labels. Clear the URL to go back to the default font.
Custom CSS
Write your CSS in Write Custom CSS. Under the editor, Available Selectors lists every selector you can use. Click one to copy it.
Your CSS only affects the embed:
Draxlr scopes every rule to the embed, so it never changes anything on your own page.
What you can write:
- Combine selectors with elements and pseudo-classes, for example
.query-list-item:hoveror.sidebar-item-active span. @mediaqueries work, and the rules inside them are scoped too.:rootandbodytarget the embed itself, so you can set CSS variables there.@font-faceand@keyframesare passed through unchanged.
Dashboards and tables
Dashboards in the embed use the same selectors as a dashboard embed: the filters, dashboard-card, table and embed groups. See Embed Dashboard: Appearance for the full list and for the styles that need !important.
.table-header, .table-row and .table-cell also style the results table in the query editor, with the same !important rules.
Sidebar
| Selector | Description |
|---|---|
.sidebar | The sidebar on the left, expanded or collapsed. |
.sidebar-section-title | The section headings: Browse Data, Shared Dashboards and My Dashboards. |
.sidebar-item | One item in the sidebar: My Queries, New Query, AI Assistant, a folder, a dashboard or New Dashboard. In the collapsed sidebar, each icon button. |
.sidebar-item-active | The item for the page that's open. |
.sidebar-item-icon | The icon in a sidebar item. |
.sidebar-divider | The lines between the sidebar's sections. |
.sidebar-toggle-button | The button that collapses or expands the sidebar. |
The active item also matches .sidebar-item, so write the .sidebar-item-active rule after your .sidebar-item rule.
Example:
.sidebar {
background: #f8fafc;
}
.sidebar-section-title {
color: #6366f1;
}
.sidebar-item-active {
background: #e0e7ff;
color: #3730a3;
}
Page Header
| Selector | Description |
|---|---|
.page-header | The bar at the top of each page: a dashboard, My Queries, AI Assistant, New Query and the query editor. |
.page-header-title | The page's icon and title. |
.page-header-back-button | Back, on the New Query screens and in the query editor. |
.page-header-icon-button | The icon buttons in the header. On a dashboard: download PDF, download Excel, and reset, shown once a filter is applied. In the query editor: export, refresh and delete. |
.primary-button | The main action button: New Query, New chat, Add element, Save Query and New Dashboard, including the ones on empty pages. |
.primary-button uses the Primary color unless you change it.
Example:
.page-header {
border-bottom: 2px solid #e0e7ff;
}
.page-header-title {
color: #3730a3;
}
.primary-button {
border-radius: 999px;
}
My Queries
| Selector | Description |
|---|---|
.queries-folders | The Folders list on the left of My Queries. |
.queries-folder-item | One folder. |
.queries-folder-item-active | The folder that's open. |
.queries-search-input | The Search Queries box in the header. |
.query-list | The list of saved queries in the open folder. |
.query-list-item | One saved query. |
.query-list-item-name | The query's name. |
.query-list-item-description | The query's description, shown when it has one. |
.query-list-item-tag | The tags for the tables a query uses: the first table, and +N for the rest. |
Example:
.queries-folder-item-active {
background: #e0e7ff;
color: #3730a3;
}
.query-list-item:hover {
background: #f5f3ff;
}
.query-list-item-tag {
background: #eef2ff;
border-color: #c7d2fe;
}
Query Editor
| Selector | Description |
|---|---|
.query-editor-panel | The left panel with the query builder or SQL editor. |
.query-results | The middle area that shows the results. |
.query-settings-panel | The right panel with the visualization settings, shown once the query has results. |
Example:
.query-editor-panel {
border-right: 1px solid #c7d2fe;
}
.query-results {
padding: 24px;
}
Your rules replace hover and disabled colors:
The sidebar, page header, My Queries and query editor selectors don't need !important. Your rules take priority over Draxlr's own styles, including their hover and disabled colors. If you set a background on .sidebar-item or .primary-button, add :hover and :disabled rules to style those states too.
In the API request
The embed code sends these settings in configuration. If you write the request yourself, use these fields:
| Field | Type | Description |
|---|---|---|
backgroundColor | string | Page background color |
cardBackgroundColor | string | Background color of dashboard cards |
primaryColor | string | Brand color as a hex code (#RGB or #RRGGBB) |
appearance.fontFamilyUrl | string | URL of the font stylesheet |
appearance.fontFamilyName | string | Font family name to apply. Required for the font to apply; the builder fills it in for Google Fonts URLs |
appearance.customCss | string | Your custom CSS |
See Generate Embed URL API for the full request.