element which will serve as the Defines the minimum number of characters allowed in the element. import plotly.graph_objects as go import plotly.io as pio pio.templates["plotly_dark_custom"] = go.layout.Template( ...custom definitions here... ) pio.templates.default = "plotly_dark_custom" Below is an example with a figure created with plotly.graph_objects. Used in conjunction with persistence_type. dcc.Textarea is a wrapper around the