The FluidTopicsThemeService.listThemes() JavaScript method provides information about the portal's published themes.
Example
The following example prints the portal's published themes in the user's browser console.
console.log(FluidTopicsThemeService.listThemes());
[
{
"id": "b2324b77-0c12-44df-be65-8a7725ccb3ca",
"name": "Light theme"
},
{
"id": "8a317675-3109-4957-bfdc-bdc8d67eb5f3",
"name": "Dark theme"
}
]