Have you ever tried to maintain a set of related themes, e.g. a light, dark, high-contrast black and white version? Where you had to change every parameter multiple times, once for each theme?
Have you ever created a theme based on a newer SAP-provided theme and copied all changes and resources from your existing theme to the new one? Even more with the recent push away from older SAP-provided theme families like Belize?
Let me introduce you to “Migrate Theme”, a newly released feature of UI theme designer.
In this post, I’ll show what you could’ve done to migrate themes in the past, what the new “Migrate Theme” feature looks like, and how you can use it to make your brand shine.
There are times where you have to migrate themes. Some common scenarios:
In the past, you had to either
UI theme designer on SAP BTP Cloud Foundry offers a new action for existing themes: the “Migrate” button. You can find it next to the other actions (like “Edit”, “Publish”, “Rename”, etc.).
Once you press the button, the Migrate dialog opens, with three pre-filled input fields:
Keep in mind that you can change all values, we are simply suggesting reasonable defaults.
Then, all you have to do is press OK.
With that, a new theme is created based on the SAP-provided theme you selected for Based On, with the ID and title you specified as Theme ID and Title. Furthermore, the following is copied from your existing theme:
The theme you migrate from remains intact and can be used or deleted at your convenience afterwards.
Keep in mind that this automated migration might not be perfect and that you may have to polish the migrated theme a bit. It is possible to create scenarios where this automated migration yields unexpected results or even a theme that can’t be compiled. E.g. you may have mapped @sapButton_Background to @sapButton_Hover_Background in a Belize-based theme. However: If you didn’t change anything else, that would create a circular dependency in a Horizon-based theme, because in Horizon-based themes, @sapButton_Hover_Background maps (indirectly) back to @sapButton_Background. With that, the migrated theme can't be compiled.
But except for such edge cases, automated migration saves a lot of effort and yields very good results.
With the “Migrate Theme” feature, you can easily create copies of your themes that are based on different SAP-provided themes. This allows you to
Have you migrated themes in the past manually? Or have you already tried the “Migrate Theme” feature? Let me know in the comments how it went!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
10 | |
9 | |
9 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 |