How to get the M3 H5 theme of the user in my application H5 SDK ?


I'm developping an H5 application SDK for M3. I want to get the M3 H5 theme of the user  to change the color of my application. How can do this ?

If i hardcode a color in my index.html, it works. For example:

var colors = '#3B1470';
var longThemeName = 'theme-soho-light';
var shortThemeName = 'soho';
var blockUI = '/controls/app/views/layout.html'.indexOf('embedded') > -1 ? false : true;
colors: colors,
theme: longThemeName,
blockUI: blockUI