New template in plotly.io library

Hello,
I want to create a new template with plotly.io and then use it for a line chart. I’m going to set line chart line color in my new template:

pio.templates[‘my_theme’] = go.layout.Template(
layout = go.Layout(
…
)
)
what should I do for that?
Thank you