Theme allows you to maintain a consistent look and feel across all clips and elements in your video. Remember that individual clips and elements can override theme settings when needed.

Properties

PropertyTypeDefaultDescription
backgroundobjectnullThe default background for all clips.
fontFamilystringInterThe default font family used for text elements.
fontColorobject{type: 'color', color: '#000000ff'}The default color for text elements.
backgroundAudioobjectnullThe background audio of the project.

Usage

Here’s an example of how to set up a theme for your project:

import BlendDuck, { Project, Theme } from "@blendduck/node-sdk";

const project = new Project();

project.theme = {
  background: {
    color: {
      type: "color",
      color: '#ffffffff'
    },
    media: {
      type: "image",
      url: "https://s.blendduck.com/images/24.png"
    }
  },
  fontFamily: "Inter",
  fontColor: {
    type: "color",
    color: "#333333ff"
  }
};