Attached document gives you the clarity on the steps being followed to apply a custom theme for any HANA XS based applications on both cloud and on premise which uses SAP UI5 as front-end technology.
Setting Custom-Themes for HANA XS Applications - Cloud & Onpremise