CSS variables reference
- Application-wide settings
- Navigation panel
- Search bar and Data panel
- Chart switcher
- Button elements
- Natural Language Search interface
- Liveboard
- Visualization and Answer charts
- Tiles on Liveboard, title and description of charts and tables
- Chart selection widget
- Filter chips on visualization and Answer pages
- Axis title and labels on charts
- Menu elements
- Dialogs
- Homepage modules (New experience mode)
- UI element reference
- Sample CSS file with variable definitions
- Additional resources
The ThoughtSpot CSS customization framework defines a number of variables for applying styles throughout embedded ThoughSpot components.
Application-wide settings🔗
The following example shows the supported variables:
Variable | Description |
---|---|
| Background color of the Liveboard, visualization, Search, and Answer pages. |
| Color of the text on application pages. |
| Color of the text on application pages. |
| Font type for the text on application pages. |
| Text transformation specification for UI elements in the app. |
| Font color of the text on toggle buttons such as All, Answers, and Liveboards on the homepage, chart and table titles on the AI Answer page. |
| Background color of the toggle buttons to switch between All, Answers, and Liveboards on the homepage. |
Navigation panel🔗
The navigation panel appears at the top of the application page.
Variable | Description |
---|---|
| Background color of the top navigation panel. |
| Font color of the top navigation panel. |
| Background color of the Search data button. |
| Color of the text on the Search data button. |
| Font of the text on the Search data button. |
Search bar and Data panel🔗
The search bar element that allows passing search tokens.
Variable | Description |
---|---|
| Font color of the text in the Search bar. |
| Font of the text in the Search bar. |
| Font style of the text in the Search bar. |
| Background color of the search bar. |
| Background color of the search suggestions panel. |
| Background color of the navigation panel that allows you to undo, redo, and reset search operations. |
| Background color of the navigation help text that appears at the bottom of the search suggestions panel. |
| Background color of the search suggestion block on hover. |
| Font color of the text in the search suggestion panel. |
| Font color of the sub-text that appears below the keyword in the search suggestion panel. |
| Background color of the data panel. |
| Background color of the vertical panel on the right side of the Answer page, which includes the options to edit charts and tables. |
The following figure shows customizable search page components:
Chart switcher🔗
The chart switcher icon appears on search results and Answer pages:
Variable | Description |
---|---|
| Background color of the chart switcher on search results and Answer pages. |
| Background color of the currently selected chart type in the chart switcher. |
Button elements🔗
ThoughtSpot application contains the following types of button elements:
-
Primary
Buttons that trigger an action for an entire page or a container. For example, the Go button on the search bar.NoteThe Go button appears as a primary button when the search bar is in the focused state. If you click outside the search bar or execute the search query to load search results, the Go button changes to a secondary button.
Primary buttons may contain text, text with an icon, or just an icon.
-
Secondary
Buttons that trigger additional actions. For example, More menu and Share buttons on a Liveboard. -
Tertiary
Buttons that are less prominent and trigger independent actions for sub-tasks on a page. For example,the Undo, Redo, Reset buttons on the Search page.
Use the following variables to customize buttons.
Variable | Element type | Description |
---|---|---|
| Main button | Border-radius of main buttons. |
| Small buttons | Border-radius of small buttons such as secondary buttons. |
| Primary button | Font color of the text on primary buttons. For example, the primary buttons on Liveboard, Answer, Data workspace, SpotIQ, or Home page. |
| Primary button | Font family specification for the text on primary buttons. |
| Primary button | Background color of the primary buttons. For example, the primary buttons such as Pin and Save. |
| Primary button | Background color of the primary buttons on hover. |
| Secondary button | Font color of the text on the secondary buttons. |
| Secondary button | Font family specification for the text on the secondary buttons. |
| Secondary button | Background color of the secondary buttons. |
| Secondary button | Background color of the secondary button on hover. |
| Tertiary button | Font color of the tertiary button. For example, the Undo, Redo, and Reset buttons on the Search page. |
| Tertiary button | Background color of the tertiary button. |
| Tertiary button | Background color of the tertiary button when a user hovers over these buttons. |
Natural Language Search interface🔗
The Natural Language Search interface is also referred to as Sage Search. The Sage Search interface includes several elements such as the header, search bar, suggested queries, and sample questions panel.
Variable | Description |
---|---|
| Background color of the header bar on the Sage Search page. |
| Background color of the data source selector. |
| Font color of the search text. |
| Background color of the Sage search box. |
| Background color of the Answer page generated from a Sage Search query. |
| Background color of the sample questions panel. |
| Font color of the search query text in the sample questions panel. |
| Background color of the sample question panel on hover |
| URL path of the search icon on the header bar. |
| Color of the search icon on the header bar. |
| Visibility of the search icon on the header bar. |
Liveboard🔗
Use the following variables to customize the Liveboard page elements.
Variable | Description |
---|---|
| Background color of the edit panel on the Liveboard. The edit panel is displayed when the Liveboard is in edit mode. |
| Background color of the cross-filter layout. |
Visualization and Answer charts🔗
Use the following variables to customize UI elements on Liveboard, visualization and Answer pages.
Tiles on Liveboard, title and description of charts and tables🔗
You can customize the look and feel of the visualization tiles on a Liveboard, styles for title and description text of charts and tables.
Variable | Description |
---|---|
| Font color of the title text of a visualization or Answer. |
| Font family specification for the title text of a visualization/Answer. |
| Text transformation specification for visualization and Answer titles. |
| Font color of the description text and subtitle of a visualization or Answer. |
| Font family specification of description text and subtitle of a visualization or Answer. |
| Text transformation specification for description text and subtitle of a visualization or Answer. |
| Border-radius for the visualization tiles and header panel on a Liveboard. |
| Box shadow property for the visualization tiles and header panel on a Liveboard. |
| Background color of the visualization tiles and header panel on a Liveboard. |
| Background color of the legend on a visualization or Answer. |
Chart selection widget🔗
The chart selection widget appears on clicking the Change visualization icon on the Answer page or when you open a visualization in the Edit mode.
Use the following variables to customize the background color of the chart type icons:
Variable | Description |
---|---|
| Background color of the selected chart type on the chart selection widget. |
| Background color of the chart type element when a user hovers over a chart type on the chart selection widget. |
Filter chips on visualization and Answer pages🔗
Filter chips appear on the Liveboard, Answer, and visualization pages if filters are applied on charts and tables. You can use the following variables to customize the look and feel of filter chips.
Variable | Description |
---|---|
| Border-radius of filter chips. |
| Shadow effect for filter chips. |
| Background color of filter chips. |
| Font color of the filter label when a filter chip is selected |
| Background color of the filter chips when selected. |
| Font color of the text on filter chips when hovered over. |
| Background color of filter chips on hover. |
| Font color of the text on filter chips. |
| Font family specification for the text on filter chips. |
Axis title and labels on charts🔗
Use the following variables to customize X-axis and Y-axis titles and labels on charts.
Variable | Description |
---|---|
| Font color of axis title on charts. |
| Font family specification for the X and Y axis title text. |
| Font color of the X and Y axis labels. |
| Font family specification for X and Y axis labels . |