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

SettingWhat it does
BackgroundThe embed's page background. Draxlr picks a light or dark theme from this color.
Dashboard Item backgroundThe background of dashboard cards.
Primary colorYour 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:hover or .sidebar-item-active span.
  • @media queries work, and the rules inside them are scoped too.
  • :root and body target the embed itself, so you can set CSS variables there.
  • @font-face and @keyframes are 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.

SelectorDescription
.sidebarThe sidebar on the left, expanded or collapsed.
.sidebar-section-titleThe section headings: Browse Data, Shared Dashboards and My Dashboards.
.sidebar-itemOne 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-activeThe item for the page that's open.
.sidebar-item-iconThe icon in a sidebar item.
.sidebar-dividerThe lines between the sidebar's sections.
.sidebar-toggle-buttonThe 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;
}
SelectorDescription
.page-headerThe bar at the top of each page: a dashboard, My Queries, AI Assistant, New Query and the query editor.
.page-header-titleThe page's icon and title.
.page-header-back-buttonBack, on the New Query screens and in the query editor.
.page-header-icon-buttonThe 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-buttonThe 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

SelectorDescription
.queries-foldersThe Folders list on the left of My Queries.
.queries-folder-itemOne folder.
.queries-folder-item-activeThe folder that's open.
.queries-search-inputThe Search Queries box in the header.
.query-listThe list of saved queries in the open folder.
.query-list-itemOne saved query.
.query-list-item-nameThe query's name.
.query-list-item-descriptionThe query's description, shown when it has one.
.query-list-item-tagThe 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

SelectorDescription
.query-editor-panelThe left panel with the query builder or SQL editor.
.query-resultsThe middle area that shows the results.
.query-settings-panelThe 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:

FieldTypeDescription
backgroundColorstringPage background color
cardBackgroundColorstringBackground color of dashboard cards
primaryColorstringBrand color as a hex code (#RGB or #RRGGBB)
appearance.fontFamilyUrlstringURL of the font stylesheet
appearance.fontFamilyNamestringFont family name to apply. Required for the font to apply; the builder fills it in for Google Fonts URLs
appearance.customCssstringYour custom CSS

See Generate Embed URL API for the full request.