A collection of 52 Plotly figure templates with a Bootstrap theme. Two theme switch components. Stylesheet to apply Bootstrap themes to Plotly Dash components.
Dash Bootstrap Templates is a library that provides Bootstrap themed Plotly figure templates for Dash applications. It includes 26 different Bootstrap/Bootswatch themes and allows for easy styling of figures with theme colors and fonts. The library also includes two All-in-One components for changing themes in a Dash app.
To use Dash Bootstrap Templates, follow these steps:
pip install dash-bootstrap-components>=V1.0.0
dbc.css
stylesheet to your app:external_stylesheets = [
'https://your-cdn.com/bootstrap.min.css',
'https://your-cdn.com/dbc.css'
]
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
className="dbc"
attribute in the outer container or component of your app to style Dash components with Bootstrap theme:app.layout = html.Div(className="dbc", children=[
# your app layout here
])
Dash Bootstrap Templates is a useful library for styling Dash applications with Bootstrap themes. It provides Plotly figure templates, theme-switching components, and a stylesheet to style Dash Core Components and DataTables. By using this library, users can easily enhance the visual appearance of their Dash apps and achieve a cohesive Bootstrap theme.