4

I am looking for steps (end to end) on how to create and use custom theme in custom OpenUI5 apps.

I have looked at the OpenUI5 code in GitHub and it is still a bit not clear for me as far as the end to end process goes.

Here's what I have understood so far

  1. Each control has its own *.less file for each theme and there is base.less with the color definitions.
  2. A grunt task loops through the LESS files and generates one common library.css for each library (sap.ui.core, sap.m, etc..)
  3. Add the CSS in the resources folder as shown here

Is this correct, or am I missing a way to create custom themes without any SAP software license?

I think the "UI Theme Designer" needs SAP software to be installed. I am looking for something not linked with the SAP environment.

Boghyon Hoffmann
  • 17,103
  • 12
  • 72
  • 170
c_y
  • 540
  • 3
  • 9
  • 16
  • There is an [upcoming tool](https://github.com/SAP/ui5-webcomponents/issues#issuecomment-885540484) to create custom themes. Once UI5 fully migrates to CSS variables, I guess we can make use of the new tool. Or maybe it's already possible with `data-sap-ui-xx-cssvariables="true"`? Haven't tried it yet. – Boghyon Hoffmann Jul 26 '21 at 09:40

0 Answers0