Create a custom theme by cloning a Theme Builder theme record
Create a custom theme in the Next Experience more efficiently using a published Theme Builder theme record.
Vorbereitungen
In order to clone a Theme Builder theme, the theme must be published. For information on publishing your Theme Builder theme, see Publish your themes with Theme Builder.
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
To avoid your work from being overwritten, your new cloned theme isn’t editable in Theme Builder.
Prozedur
-
Navigate to All > Now Experience Framework > Themes.
The UX Themes table appears.
- Under the Name column, search for the Theme Builder theme you want to clone and select the record.
-
Clone the five UX Theme style records.
- From the Compositional: App Theme tab, select and hold (or right-click) the Mobile Colors style record and select Open link in new tab.
-
In the Name field, enter your theme name.
For example, ABC Company - Mobile Colors.
-
Select and hold (or right-click) the header bar and select Insert and Stay.
This action creates a copy of the style record and redirects the information to the new style record.
Abbildung : 1. Cloned Mobile Colors style record - Close the open tab.
- Repeat this process for the Shape and Form, Colors, Imagery, and Typography style records.
Hinweis:The cloned style records don’t appear in the current theme record and this behavior is expected. -
Clone the UX theme record.
-
From the Name field, change the name of the theme record.
For example, Custom ABC Company.
-
Select and hold (or right-click) the header bar and select Insert and Stay.
Your new UX theme record appears. The style records within this theme are empty and this behavior is expected.
Abbildung : 2. Newly created UX Theme record
-
From the Name field, change the name of the theme record.
-
Add the newly created style records to your theme.
- Double-click under the Style column to expose the lookup field.
- Search for and select one of your new style records from the drop-down.
- Save your selection by selecting the green checkmark.
-
Double-click under the Type column to expose the drop-down list and select Core.
Abbildung : 3. Style Type drop-down list -
Save your selection by selecting the green checkmark.
This action associates your style record to the current theme.
- Repeat this process for the remaining four style records.
-
Select and hold (or right-click) the header bar and select Save.
If the changes haven't been saved, green bars are displayed next to the style records that you have added.
Abbildung : 4. UX Theme record before the record is saved
-
Publish your custom theme.
To publish your custom theme, see Publish multiple themes in Next Experience.Now that your custom theme is published, you’re ready to customize your theme. For a step-by-step tutorial for editing your UX Style color record, see Exercise 3, Activity 2 and 3 of the Next Experience Workshop in the ServiceNow Community.