Skip to content

Editor theming

Pick a built-in theme with the theme prop, then override any CSS variable inline or from your own stylesheet — the editor reads from its own custom element scope so overrides don't bleed.

Built-in themes

The editor ships four themes: Light, Grey, Dark, and Night. Open any of them live in the Playground.

jsx
<VideoEditor theme="light" />
<VideoEditor theme="grey" />
<VideoEditor theme="dark" />
<VideoEditor theme="night" />

Brand overrides

jsx
<VideoEditor
  theme="night"
  style={{
    '--vf-primary':       '#a855f7',
    '--vf-primary-hover': '#9333ea',
    '--vf-accent':        '#ec4899',
  }}
/>

Every variable

VariableRole
--vf-bgRoot background.
--vf-panelPanel surface (sidebar, timeline).
--vf-panel-2Elevated surface.
--vf-borderDefault border.
--vf-textPrimary text.
--vf-text-mutedSecondary text.
--vf-primaryBrand colour (buttons, selection).
--vf-primary-hoverBrand hover.
--vf-accentSecondary brand.
--vf-success / --vf-warning / --vf-dangerStatus colours.
--vf-titlebar-heightDefault 48px.
--vf-sidebar-widthDefault 400px.
--vf-timeline-heightDefault 260px.
--vf-radiusDefault radius.
--vf-font-familyDefault system-ui.

NOTE

Scoped. The editor's styles are scoped to its custom-element shell, so overrides you make inline never leak out.

Released under the MIT License.