panel.theme Package#
theme
Package#

- class panel.template.theme.DarkTheme(*, fig, holomap, widgets, fps, max_frames, size, dpi, filename, info, css, widget_location)[source]#
Bases:
Theme
The DefaultTheme uses the standard Panel color palette.
Parameters inherited from:
base_css
= param.Filename(default=PosixPath(‘/home/runner/work/panel/panel/panel/template/theme/dark.css’), label=’Base css’, search_paths=[])bokeh_theme
= param.ClassSelector(class_=(<class ‘bokeh.themes.theme.Theme’>, <class ‘str’>), default=<bokeh.themes.theme.Theme object at 0x7feac88079a0>, label=’Bokeh theme’)
- class panel.template.theme.DefaultTheme(*, fig, holomap, widgets, fps, max_frames, size, dpi, filename, info, css, widget_location)[source]#
Bases:
Theme
The DefaultTheme uses the standard Panel color palette.
Parameters inherited from:
panel.template.theme.Theme
: css, bokeh_themebase_css
= param.Filename(default=PosixPath(‘/home/runner/work/panel/panel/panel/template/theme/default.css’), label=’Base css’, search_paths=[])
- class panel.template.theme.Theme(*, fig, holomap, widgets, fps, max_frames, size, dpi, filename, info, css, widget_location)[source]#
Bases:
Parameterized
A Theme customizes the look and feel of a Template by providing custom CSS and bokeh Theme class.
When adding a new theme a generic Theme class should be created, which is what users will important and set on the Template.theme parameter. Additionally a concrete implementation of the Theme should be created specific to the particular Template being used.
For example when adding a DarkTheme there should be a corresponding MaterialDarkTheme which declares the Template class on its _template class variable. In this way a user can always use the generic Theme but the actual CSS and bokeh Theme will depend on the exact Template being used.
base_css
= param.Filename(allow_None=True, label=’Base css’, search_paths=[])css
= param.Filename(allow_None=True, label=’Css’, search_paths=[])bokeh_theme
= param.ClassSelector(allow_None=True, class_=(<class ‘bokeh.themes.theme.Theme’>, <class ‘str’>), label=’Bokeh theme’)