themes
Mojo module 🡭
themes
Ready-made dark, minimal, high-contrast, and print-safe themes.
from dataviz import Plot, save
from dataviz.core.themes import dark
var plot = Plot().mark_line().encode(x=x, y=y).theme(dark())Preset fields can be overridden before applying the theme:
var t = dark()
t.mark_color = CORNFLOWERBLUE
t.show_gridlines = False
var plot = Plot().mark_line().encode(x=x, y=y).theme(t)Presets do not compose. Choose the closest preset and override its fields.