You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/theme-builder.adoc
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,23 @@
1
-
= Theme builder
1
+
= Theme builder[beta betaBackground]^Beta^
2
2
:toc: true
3
3
:toclevels: 2
4
4
5
5
:page-title: Theme builder
6
6
:page-pageid: theme-builder-doc
7
7
:page-description: Understanding how to use the theme builder
8
8
9
-
Theme Builder[beta betaBackground]^Beta^ provides a graphical interface to explore the CSS customization options that are currently available for various ThoughtSpot components. You can try out these style customization options and get a preview of the desired look and feel before applying these changes to the ThoughtSpot components in your application environment.
9
+
Theme Builder provides a graphical interface to explore the CSS customization options that are currently available for various ThoughtSpot components. You can try out these style customization options and get a preview of the desired look and feel before applying these changes to the ThoughtSpot components in your application environment.
10
10
11
-
In the current version, Theme Builder supports style customization options for embed components such as Liveboard, visualization, Search data page, and full ThoughtSpot app experience. The Theme Builder playground also provides an option to download and upload CSS variables with custom values in JSON format.
11
+
In the current version, Theme Builder supports style customization options for embed components such as Liveboard, visualization, Search data page, Spotter and full ThoughtSpot app experience. The Theme Builder playground also provides an option to import and export CSS variables with custom values in JSON format.
12
12
13
-
To access Theme Builder, click *Live Playgrounds* > *Theme Builder*[beta betaBackground]^Beta^ on this documentation site, or go to link:https://developers.thoughtspot.com/docs/theme-builder[https://developers.thoughtspot.com/docs/theme-builder, window=_blank].
13
+
//To access Theme Builder, go to *Develop* tab > *Customisations* and click *Theme Builder*.
14
+
Click *Live Playgrounds* > *Theme Builder* on this documentation site, or go to link:https://developers.thoughtspot.com/docs/theme-builder[https://developers.thoughtspot.com/docs/theme-builder, window=_blank].
14
15
15
16
== Try out styles and load changes
16
17
17
18
To try out the customization options:
18
19
19
-
. Go to link:https://developers.thoughtspot.com/docs/theme-builder[Theme Builder].
20
+
. Go to link:https://developers.thoughtspot.com/docs/theme-builder[*Theme Builder*, window=_blank].
20
21
. Choose the desired embed component from the dropdown on the left panel.
. Select the UI element or property to customize. For instance, if you want to edit the background color of the context menu, then click the dropdown for the *Context Menu*. Click on the text box for *Background* and select your desired color.
27
28
+
29
+
If you want to the exact variable name of the element as in ThoughtSpot, hover over the name of the element in the left panel.
. To view the style customizations you just applied, click *Load Changes* in the top-right corner. +
33
-
Alternatively, you can also choose *Realtime loading* checkbox in the top-right corner. If you choose this,
34
-
the iframe refreshes automatically on each customization with your selected input.
35
+
. You will see the style customizations you just applied in real time, as the iframe refreshes automatically on each customization with your selected input.
35
36
36
-
== Download CSS variables in JSON format
37
+
== Export CSS variables in JSON format
37
38
38
39
To download a copy of the CSS variables in JSON:
39
40
40
-
. In the Theme Builder Playground, click *Save JSON*. +
41
+
. In the Theme Builder Playground, click *Export JSON*. +
41
42
. To copy the CSS variables, click *Copy JSON*.
42
-
. To download the JSON to your local directory, click *Download*.
43
+
. To download the JSON to your local directory, click *Export*.
43
44
44
-
The CSS variables in the JSON have default values. You can edit the JSON to add custom specifications as per your Organization's branding guidelines and upload the customized JSON to review the changes.
45
+
You can use this exported JSON to implement the style in your embedded ThoughtSpot instance.
45
46
46
-
== Upload CSS variables with custom specifications
47
+
== Import CSS variables with custom specifications
47
48
48
49
To upload CSS variables JSON:
49
50
50
-
. In the Theme Builder Playground, click *Upload JSON* on the bottom of the left panel.
51
+
. In the Theme Builder Playground, click *Import JSON* on the bottom of the left panel.
51
52
+
52
-
The Upload JSON modal opens.
53
+
The Import JSON modal opens.
53
54
+
54
55
[.bordered]
55
56
[.widthAuto]
56
-
image::./images/json.png[JSON button]
57
-
. Paste the JSON with your custom specifications.
58
-
. Click *Submit*. +
57
+
image::./images/json.png[Import JSON button]
58
+
. Paste the JSON with your custom specifications. Currently, the Theme builder supports only the JSON styling variables.
59
+
. Click *Import*. +
59
60
If there are no errors, a success message appears at the bottom left and the iframe refreshes with the applied JSON.
0 commit comments