Skip to main content

Theme Stable

A theme sets the editor's colours, font and bar sizes so it matches your app. Every field is optional: set only what you change, and the rest keeps the default look. Setting a theme replaces the previous one, so to switch between light and dark, set the other theme.

dock.theme = EditorTheme(
background: "#101418",
bar: "#0b0e11",
accent: "#2ee6a6",
font: "Brand Sans",
clips: .init(video: "#3355ff", audio: "#18a058")
)

Fields​

Colours are #rrggbb, or #rrggbbaa with transparency.

FieldWhat it colours
backgroundBehind the editor controls.
barThe tool bar.
panelPanels a tool opens (sliders, choices).
textLabels.
mutedTextSecondary labels, the time ruler.
accentThe active tool, sliders, snapping guides, the current keyframe, progress.
dividerLines between parts.
timelineBackgroundBehind the timeline and its ruler.
laneEach lane of the timeline.
selectionThe selected clip's outline and trim handles.
playheadThe playhead.
clipsClip colours by kind: video, image, sticker, text, solid, audio, effects.
fontThe labels' font family: a system font or one you registered.
barHeight, transportHeightHeights of the tool bar (40–120 pt) and the transport row (32–96 pt).

A field the SDK doesn't know is an error, so a typo doesn't go unnoticed.

Light and dark​

The editor doesn't follow the system appearance by itself: set the theme that matches your app whenever it changes, for example from the trait collection on iOS, the configuration on Android, or prefers-color-scheme on the web.