Skip to Content

Using custom theme on HTML5 app, but doesn't create library-parameters.json

Mar 07 at 04:30 PM


avatar image


I have been following this guide to create a custom theme on a HTML5 application in SAP Cloud Platform:

I have followed the guide and even used the solution given here by Tanushsingh for the missing step in the guide:

However, I am getting this error after I have done everything the guide says and also tried to test the theme multiple times inside the UI Theme Designer, as Akshaya recommends to do in the guide, if you are not able to see the library-parameters.json file. But this does not fix the problem and therefore I am getting the following error when I launch the app:

You can here see the folders in the project inside the Web IDE:

And the index.html file:

How can I generate the library-parameters.json files?

Thank you very much in advance.

error.png (226.8 kB)
folder.png (27.5 kB)
index.png (37.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ivan Mirisola
Mar 07 at 10:25 PM


It is clear that the build on theme disgner didn't write the file "library-parameters.json" in the following path:

theme1 -> UI5 -> sap -> ui -> layout -> themes -> theme1 -> library-parameters.json

The author of the blog says: "If you don’t find this file, do a test build again from themedesigner."

Try exporting the theme from the tool and inspect the zip file to see if the file is being created at all.

Verify that the service subscription for themedesigner is on version 1.30.4 (about screen of the theme designer app). If not, delete the subscription and try accessing it from the services menu on the cockpit. Note: After you delete the subscription will may need to re-"activate" the service.

In general, you call a service from the "go" link instead of calling the subscription - when there is a service for them.
In case of Theme Designer, it is "recommended" that you call it from the Cloud Portal Service -> Site Designer. Please read the note from this link as there the possibility that Theme Designer is running in Local mode instead of Cloud mode. In cloud mode you can assign the theme to a site using the Theme Manager. In local mode, it stores the theme so you can manually import it into your application.

If the exported zip file contains the missing json file and when you import it into your custom app it is still missing, manually import that file from the zip.

Also, check if you are using one of the supported browsers. When you first open the tool asks for storage permissions. If you didn't allow the tool to have local access to the filesystem, then issues may rise from the lack of authorizations.

If everything else fails, open an incident on SAP's support system for further analysis.


10 |10000 characters needed characters left characters exceeded