Add the styles that you have created to your Next Experience theme to modify the look and feel of the user experience.
Pourquoi et quand exécuter cette tâche
The Next Experience includes two themes, Polaris and Coral. You can reuse or customize either theme as a starting point when you create or modify your own themes.
Pourquoi et quand exécuter cette tâche
Remarque : If you're customizing a theme that you created with
Theme Builder and enter invalid JSON code, you can't save your theme record. While working in the UX theme record, you can navigate to the Editor page by using the
Open in Theme
Builder button. For more information, see
Manage or edit a theme with Theme Builder.
Procédure
-
Navigate to .
-
Create a theme record by selecting New.
-
Enter a name and a description for your theme.
-
Select the Additional actions icon
and select Save.
-
On the Compositional: App Theme tab, insert rows to add styles that are associated with your theme.
You assign values in four columns:
- Applicability
-
Overrides the base theme. Users who meet the applicability constraints see those overrides in their theme rather than the base style. For example, a style with different fonts can be applied to managers. Users who
meet the manager applicability see the different fonts in the
Next Experience UI, which overrides the base system theme values. Administrators do not have to copy or create an entire theme with changes for the applicable audience.
Remarque : Leaving the Applicability
constraint to empty will apply the style to all users.
- Order
- Specifies when the style is applied. The higher the order means that the greater its priority is.
Remarque : If you want to use a custom style, make sure that your style order number is higher than the standard Polaris or
Coral style.
- Style
- Configures four main styles. You can't edit the style names that are used in the provided Polaris or Coral themes, but you can copy the JSON code that is associated with each style from either theme and paste and
edit it in your custom style's form.
- Type
- Specifies two types: Core and Variant. The Core styles include the color, shape and form, typography, and imagery. Variants specify a different version of the theme, such as the different colors that users can
select. The most common variant is a dark version of the theme. The Dark theme is the only variant that is shipped with Next Experience. For more information, see Working with themes in Next Experience.
-
Select the Style field and select the lookup icon
.
-
Select New.
-
Select Primary, Secondary, and Neutral colors.
Remarque : A theme is made up of multiple variables, so you may notice the default Polaris or Coral theme coloring coming through in different places.
-
When you have your organization's branding colors, navigate to the color generator at https://theme.deoprototypes.com/color-generator-algo-v1.
-
Select the Auto Generate button.
A modal pops up and asks you to enter in the three colors from your organization.
-
Enter your hex code values for your organization's colors.
-
Select Generate.
-
Gather your CSS variables by selecting Copy JSON.
-
Fill in the UX style form.
-
Select Submit.
-
Select Update.
Que faire ensuite
To publish your custom theme, see Publish multiple themes in Next Experience.