How to use Dark Theme in Material template?

Hi,

I’m trying to follow this guide on how to use Material for panel.
https://panel.holoviz.org/reference/templates/Material.html

I’m trying use the DarkTheme but keep getting error :
material = pn.template.MaterialTemplate(title=‘Material Template’, theme=Darktheme)

NameError: name ‘DarkTheme’ is not defined

How exactly do I use the Dark theme on Material or bootstrap template ?|

Thanks in advance.
Regards

I’ve got it.
It should be: theme=“dark”

2 Likes