Skip to content

🎥 Make videos programmatically with React

remotion.dev/brand: Add Studio UI reference composition

JonnyBurger2a8434e779d0
diff --git a/packages/brand/public/studio-timeline-avatar-strip.png b/packages/brand/public/studio-timeline-avatar-strip.png
new file mode 100644
index 0000000000..e78b2ae956
Binary files /dev/null and b/packages/brand/public/studio-timeline-avatar-strip.png differ
diff --git a/packages/brand/public/studio-timeline-filmstrip.png b/packages/brand/public/studio-timeline-filmstrip.png
new file mode 100644
index 0000000000..8fb2678a45
Binary files /dev/null and b/packages/brand/public/studio-timeline-filmstrip.png differ
diff --git a/packages/brand/src/Root.tsx b/packages/brand/src/Root.tsx
index 650af3d44f..411b8227f2 100644
--- a/packages/brand/src/Root.tsx
+++ b/packages/brand/src/Root.tsx
@@ -136,6 +136,7 @@ import {
} from './video-elements/numbered-chapter';
import {Prompt, PromptSchema} from './video-elements/Prompt';
import {StepGuide, stepGuideSchema} from './video-elements/step-guide';
+import {StudioReference} from './video-elements/Studio';
import {GithubRepo, githubRepoSchema} from './video-elements/upper-reference';
import {UpperThird, upperThirdSchema} from './video-elements/UpperThird';
import {
@@ -396,6 +397,14 @@ export const RemotionRoot: React.FC = () => {
</Folder>
<Folder name="VideoElements">
+ <Composition
+ id="StudioUI"
+ component={StudioReference}
+ durationInFrames={742}
+ fps={30}
+ width={1352}
+ height={760}
+ />
<Composition
id="StepGuide"
component={StepGuide}
diff --git a/packages/brand/src/video-elements/Studio.tsx b/packages/brand/src/video-elements/Studio.tsx
new file mode 100644
index 0000000000..9a910e6b5e
--- /dev/null
+++ b/packages/brand/src/video-elements/Studio.tsx
@@ -0,0 +1,1408 @@
+import React from 'react';
+import {
+ AbsoluteFill,
+ Img,
+ Sequence,
+ staticFile,
+ useCurrentFrame,
+ useVideoConfig,
+} from 'remotion';
+import {Scene11} from '../announcements/whats-new-in-remotion/Scene11';
+import {
+ BracesIcon,
+ CanvasFitIcon,
+ CanvasZoomIcon,
+ CanvasZoomOutIcon,
+ CaretIcon,
+ CheckerboardIcon,
+ EyeIcon,
+ FolderIcon,
+ FullscreenIcon,
+ ImageIcon,
+ InPointIcon,
+ JumpToStartIcon,
+ LoopIcon,
+ MagnetIcon,
+ OutlineIcon,
+ OutPointIcon,
+ PlaybackRateIcon,
+ PlayIcon,
+ RemotionGlyph,
+ RocketIcon,
+ RulerIcon,
+ SearchIcon,
+ SettingsIcon,
+ SidebarIcon,
+ StepBackIcon,
+ StepForwardIcon,
+ VideoIcon,
+ VolumeIcon,
+ VscodeIcon,
+} from './studio-icons';
+
+const BACKGROUND = '#1f2428';
+const INPUT_BACKGROUND = '#2f363d';
+const LIGHT_TEXT = '#A6A7A9';
+const TOOLBAR_FOREGROUND = '#d2d3d4';
+const WHITE = '#ffffff';
+const BLUE = '#0b84f3';
+const TIMELINE_BACKGROUND = '#15181B';
+const SEPARATOR = '#13161B';
+const SPLITTER = '#000000';
+const PLAYHEAD = '#f02c00';
+const MENU_HEIGHT = 30;
+const PREVIEW_TOOLBAR_HEIGHT = 40;
+const SPLITTER_SIZE = 3;
+const LEFT_SIDEBAR_RATIO = 0.1605;
+const RIGHT_SIDEBAR_RATIO = 0.222;
+const TOP_PANEL_RATIO = 0.662;
+const TIMELINE_LABEL_RATIO = 0.2611;
+const REFERENCE_COMPOSITION_WIDTH = 1920;
+const REFERENCE_COMPOSITION_HEIGHT = 1080;
+
+const studioFont: React.CSSProperties = {
+ fontFamily: 'Arial, Helvetica, sans-serif',
+ fontSize: 13,
+};
+
+export type StudioProps = {
+ readonly compositionName: string;
+ readonly compositionWidth: number;
+ readonly compositionHeight: number;
+ readonly content: React.ReactNode;
+ readonly durationInFrames: number;
+ readonly frame: number;
+ readonly showLeftSidebar: boolean;
+ readonly showRightSidebar: boolean;
+};
+
+const IconButton: React.FC<{
+ readonly children: React.ReactNode;
+ readonly active?: boolean;
+ readonly width?: number;
+}> = ({children, active = false, width = 24}) => {
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: 'transparent',
+ borderRadius: 3,
+ color: active ? BLUE : TOOLBAR_FOREGROUND,
+ display: 'flex',
+ height: 24,
+ justifyContent: 'center',
+ width,
+ }}
+ >
+ {children}
+ </div>
+ );
+};
+
+const Divider: React.FC<{readonly height?: number}> = ({height = 18}) => {
+ return (
+ <div
+ style={{
+ backgroundColor: 'transparent',
+ height,
+ marginLeft: 4,
+ marginRight: 4,
+ width: 1,
+ }}
+ />
+ );
+};
+
+const MenuToolbar: React.FC<{
+ readonly compositionName: string;
+ readonly showLeftSidebar: boolean;
+ readonly showRightSidebar: boolean;
+}> = ({compositionName, showLeftSidebar, showRightSidebar}) => {
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: BACKGROUND,
+ borderBottom: `1px solid ${SPLITTER}`,
+ boxSizing: 'border-box',
+ color: TOOLBAR_FOREGROUND,
+ display: 'flex',
+ height: MENU_HEIGHT,
+ position: 'relative',
+ width: '100%',
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: '100%',
+ paddingLeft: 6,
+ position: 'absolute',
+ left: 0,
+ }}
+ >
+ <div style={{marginRight: 4}}>
+ <IconButton>
+ <SidebarIcon
+ color={LIGHT_TEXT}
+ expanded={showLeftSidebar}
+ side="left"
+ size={16}
+ />
+ </IconButton>
+ </div>
+ <IconButton width={30}>
+ <RemotionGlyph color={TOOLBAR_FOREGROUND} size={14} />
+ </IconButton>
+ {['File', 'View', 'Composition', 'Tools', 'Help'].map((item) => (
+ <div
+ key={item}
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 24,
+ paddingLeft: 8,
+ paddingRight: 8,
+ }}
+ >
+ {item}
+ </div>
+ ))}
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ color: 'rgba(255, 255, 255, 0.8)',
+ display: 'flex',
+ gap: 5,
+ left: '50%',
+ position: 'absolute',
+ translate: '-50% 0',
+ whiteSpace: 'nowrap',
+ }}
+ >
+ <span
+ style={{
+ letterSpacing: 0.08,
+ position: 'relative',
+ left: -8,
+ }}
+ >
+ brand / {compositionName}
+ </span>
+ <span style={{color: '#1594f6', display: 'flex'}}>
+ <VscodeIcon size={16} />
+ </span>
+ <CaretIcon
+ color="#5a6065"
+ direction="down"
+ size={13}
+ style={{position: 'relative', left: 4, scale: '0.84 1'}}
+ />
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: '100%',
+ paddingRight: 6,
+ position: 'absolute',
+ right: 0,
+ }}
+ >
+ <IconButton>
+ <SettingsIcon color={LIGHT_TEXT} size={16} />
+ </IconButton>
+ <IconButton>
+ <SidebarIcon
+ color={LIGHT_TEXT}
+ expanded={showRightSidebar}
+ side="right"
+ size={16}
+ />
+ </IconButton>
+ </div>
+ </div>
+ );
+};
+
+const LeftSidebar: React.FC = () => {
+ const folders = [
+ 'Logo',
+ 'HomepageAssets',
+ 'Showcases',
+ 'VideoElements',
+ 'Recorder',
+ 'CloseUps',
+ 'StudioAssets',
+ 'SocialMediaAnnouncements',
+ ];
+
+ return (
+ <div
+ style={{
+ backgroundColor: BACKGROUND,
+ color: LIGHT_TEXT,
+ display: 'flex',
+ flexDirection: 'column',
+ height: '100%',
+ overflow: 'hidden',
+ }}
+ >
+ <div style={{display: 'flex', height: 34, flexShrink: 0}}>
+ <div
+ style={{
+ alignItems: 'center',
+ borderTop: `2px solid ${BLUE}`,
+ boxSizing: 'border-box',
+ color: WHITE,
+ display: 'flex',
+ paddingLeft: 10,
+ width: 109,
+ }}
+ >
+ Compositions
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: INPUT_BACKGROUND,
+ display: 'flex',
+ flex: 1,
+ paddingLeft: 10,
+ }}
+ >
+ Assets
+ </div>
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ borderBottom: `1px solid ${SPLITTER}`,
+ boxSizing: 'border-box',
+ display: 'flex',
+ height: 35,
+ padding: '4px 4px 4px 8px',
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: 'rgba(255, 255, 255, 0.06)',
+ borderRadius: 4,
+ display: 'flex',
+ height: 26,
+ minWidth: 0,
+ paddingLeft: 11,
+ width: 'calc(100% - 28px)',
+ }}
+ >
+ <SearchIcon color="#8d9296" size={14} />
+ <span
+ style={{
+ fontSize: 12,
+ marginLeft: 7,
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ }}
+ >
+ Search...
+ </span>
+ <span
+ style={{
+ fontSize: 11,
+ marginLeft: 'auto',
+ marginRight: 10,
+ opacity: 0.55,
+ whiteSpace: 'nowrap',
+ }}
+ >
+ ⌘+K
+ </span>
+ </div>
+ <div
+ style={{
+ fontSize: 16,
+ letterSpacing: 1,
+ marginLeft: 'auto',
+ paddingBottom: 7,
+ textAlign: 'center',
+ width: 22,
+ }}
+ >
+ …
+ </div>
+ </div>
+ <div style={{paddingTop: 4}}>
+ {folders.map((folder) => (
+ <div
+ key={folder}
+ style={{
+ alignItems: 'center',
+ borderRadius: 4,
+ display: 'flex',
+ height: 28,
+ marginBottom: 1,
+ marginLeft: 8,
+ marginRight: 4,
+ minWidth: 0,
+ paddingLeft: 12,
+ }}
+ >
+ <FolderIcon color={LIGHT_TEXT} expanded={false} size={18} />
+ <div
+ style={{
+ fontSize: 13,
+ marginLeft: 8,
+ maxWidth: 154,
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ }}
+ >
+ {folder}
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ );
+};
+
+const InspectorSectionTitle: React.FC<{readonly children: React.ReactNode}> = ({
+ children,
+}) => {
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ color: LIGHT_TEXT,
+ display: 'flex',
+ fontSize: 12,
+ fontWeight: 600,
+ height: 32,
+ paddingLeft: 10,
+ }}
+ >
+ {children}
+ </div>
+ );
+};
+
+const MetadataRow: React.FC<{
+ readonly label: string;
+ readonly value: React.ReactNode;
+}> = ({label, value}) => {
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 28,
+ paddingLeft: 10,
+ paddingRight: 17,
+ }}
+ >
+ <span style={{color: LIGHT_TEXT}}>{label}</span>
+ <div
+ style={{
+ color: BLUE,
+ display: 'flex',
+ gap: 27,
+ marginLeft: 'auto',
+ }}
+ >
+ {value}
+ </div>
+ </div>
+ );
+};
+
+const RightSidebar: React.FC<{
+ readonly compositionName: string;
+ readonly compositionWidth: number;
+ readonly compositionHeight: number;
+ readonly durationInFrames: number;
+ readonly fps: number;
+}> = ({
+ compositionName,
+ compositionWidth,
+ compositionHeight,
+ durationInFrames,
+ fps,
+}) => {
+ return (
+ <div
+ style={{
+ backgroundColor: BACKGROUND,
+ color: LIGHT_TEXT,
+ height: '100%',
+ overflow: 'hidden',
+ }}
+ >
+ <div style={{display: 'flex', height: 34}}>
+ <div
+ style={{
+ alignItems: 'center',
+ borderTop: `2px solid ${BLUE}`,
+ boxSizing: 'border-box',
+ color: WHITE,
+ display: 'flex',
+ paddingLeft: 10,
+ width: '50%',
+ }}
+ >
+ Inspector
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: INPUT_BACKGROUND,
+ display: 'flex',
+ paddingLeft: 10,
+ width: '50%',
+ }}
+ >
+ Jobs
+ </div>
+ </div>
+ <div style={{padding: '4px 0'}}>
+ <div
+ style={{
+ alignItems: 'center',
+ color: WHITE,
+ display: 'flex',
+ fontSize: 13,
+ height: 28,
+ paddingLeft: 10,
+ }}
+ >
+ {compositionName}
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 28,
+ paddingLeft: 10,
+ }}
+ >
+ <VideoIcon color={LIGHT_TEXT} size={18} />
+ <span style={{marginLeft: 8}}>Root.tsx:127</span>
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 28,
+ paddingLeft: 10,
+ }}
+ >
+ <BracesIcon color={LIGHT_TEXT} size={18} />
+ <span style={{marginLeft: 8}}>Scene11.tsx:11</span>
+ </div>
+ </div>
+ <InspectorSectionTitle>Metadata</InspectorSectionTitle>
+ <div style={{paddingBottom: 4, paddingTop: 4}}>
+ <MetadataRow
+ label="Dimensions"
+ value={
+ <>
+ <span>{compositionWidth}</span>
+ <span>{compositionHeight}</span>
+ </>
+ }
+ />
+ <MetadataRow label="Frame rate" value={<span>{fps}fps</span>} />
+ <MetadataRow
+ label="Duration"
+ value={<span>{durationInFrames} frames</span>}
+ />
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 35,
+ paddingLeft: 10,
+ paddingRight: 6,
+ transform: 'translateY(-2px)',
+ }}
+ >
+ <span style={{fontSize: 12, fontWeight: 600}}>Default Props</span>
+ <div
+ style={{
+ border: '1px solid rgba(0, 0, 0, 0.65)',
+ display: 'flex',
+ height: 22,
+ marginLeft: 8,
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: INPUT_BACKGROUND,
+ color: WHITE,
+ display: 'flex',
+ fontSize: 11,
+ paddingLeft: 7,
+ paddingRight: 7,
+ }}
+ >
+ Schema
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ fontSize: 11,
+ paddingLeft: 7,
+ paddingRight: 7,
+ }}
+ >
+ JSON
+ </div>
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: BACKGROUND,
+ border: '1px solid #0c0e10',
+ boxShadow: 'inset 0 0 0 1px #555555',
+ color: '#d6c400',
+ display: 'flex',
+ fontSize: 11,
+ height: 22,
+ boxSizing: 'border-box',
+ marginLeft: 'auto',
+ paddingLeft: 6,
+ paddingRight: 5,
+ width: 52,
+ }}
+ >
+ âš <span style={{color: LIGHT_TEXT, marginLeft: 3}}>1</span>
+ <CaretIcon color={LIGHT_TEXT} direction="down" size={10} />
+ </div>
+ </div>
+ <div
+ style={{
+ color: LIGHT_TEXT,
+ fontFamily: 'monospace',
+ fontSize: 12,
+ lineHeight: '23px',
+ paddingLeft: 10,
+ position: 'relative',
+ top: 1,
+ }}
+ >
+ platform:
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: INPUT_BACKGROUND,
+ border: '1px solid rgba(0, 0, 0, 0.65)',
+ borderRadius: 4,
+ boxSizing: 'border-box',
+ color: WHITE,
+ display: 'flex',
+ fontSize: 11,
+ height: 20,
+ marginLeft: 10,
+ paddingLeft: 5,
+ width: 60,
+ }}
+ >
+ youtube
+ <CaretIcon
+ color={LIGHT_TEXT}
+ direction="down"
+ size={9}
+ style={{marginLeft: 'auto', marginRight: 3}}
+ />
+ </div>
+ <div style={{height: 7}} />
+ <InspectorSectionTitle>Actions</InspectorSectionTitle>
+ <div style={{height: 4}} />
+ {[
+ ['solid', 'Add Solid'],
+ ['image', 'Add asset...'],
+ ['video', 'Add composition...'],
+ ['braces', 'Browse Elements'],
+ ].map(([icon, label]) => (
+ <div
+ key={label}
+ style={{
+ alignItems: 'center',
+ color: LIGHT_TEXT,
+ display: 'flex',
+ height: 28,
+ paddingLeft: 10,
+ }}
+ >
+ {icon === 'image' ? (
+ <ImageIcon color={LIGHT_TEXT} size={18} />
+ ) : icon === 'video' ? (
+ <VideoIcon color={LIGHT_TEXT} size={18} />
+ ) : icon === 'braces' ? (
+ <BracesIcon color={LIGHT_TEXT} size={18} />
+ ) : (
+ <div
+ style={{
+ border: `1px solid ${LIGHT_TEXT}`,
+ borderRadius: 3,
+ height: 16,
+ width: 18,
+ }}
+ />
+ )}
+ <span style={{marginLeft: 8}}>{label}</span>
+ </div>
+ ))}
+ </div>
+ );
+};
+
+const PreviewCanvas: React.FC<{
+ readonly canvasHeight: number;
+ readonly canvasWidth: number;
+ readonly compositionHeight: number;
+ readonly compositionWidth: number;
+ readonly content: React.ReactNode;
+ readonly durationInFrames: number;
+ readonly frame: number;
+}> = ({
+ canvasHeight,
+ canvasWidth,
+ compositionHeight,
+ compositionWidth,
+ content,
+ durationInFrames,
+ frame,
+}) => {
+ const outerFrame = useCurrentFrame();
+ const scale = Math.min(
+ (canvasWidth - 16) / compositionWidth,
+ (canvasHeight - 15) / compositionHeight,
+ );
+ const previewWidth = compositionWidth * scale;
+ const previewHeight = compositionHeight * scale;
+
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: BACKGROUND,
+ display: 'flex',
+ height: canvasHeight,
+ justifyContent: 'center',
+ overflow: 'hidden',
+ width: canvasWidth,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: 'white',
+ height: previewHeight,
+ overflow: 'hidden',
+ position: 'relative',
+ width: previewWidth,
+ }}
+ >
+ <div
+ style={{
+ height: compositionHeight,
+ left: 0,
+ position: 'absolute',
+ scale: String(scale),
+ top: 0,
+ transformOrigin: 'top left',
+ width: compositionWidth,
+ }}
+ >
+ <Sequence
+ durationInFrames={durationInFrames}
+ from={outerFrame - frame}
+ height={compositionHeight}
+ width={compositionWidth}
+ >
+ {content}
+ </Sequence>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+const PreviewToolbar: React.FC = () => {
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: BACKGROUND,
+ borderTop: '1px solid rgba(0, 0, 0, 0.5)',
+ boxSizing: 'border-box',
+ display: 'flex',
+ height: PREVIEW_TOOLBAR_HEIGHT,
+ position: 'relative',
+ width: '100%',
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ color: TOOLBAR_FOREGROUND,
+ display: 'flex',
+ height: 28,
+ left: 16,
+ position: 'absolute',
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 28,
+ paddingLeft: 4,
+ paddingRight: 4,
+ }}
+ >
+ <CanvasFitIcon color={TOOLBAR_FOREGROUND} size={20} />
+ <div style={{width: 4}} />
+ <span style={{fontSize: 12, lineHeight: '16px', width: 32}}>Fit</span>
+ <div style={{width: 4}} />
+ <CaretIcon color={TOOLBAR_FOREGROUND} direction="down" size={10} />
+ </div>
+ <div style={{width: 16}} />
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 28,
+ paddingLeft: 4,
+ paddingRight: 4,
+ }}
+ >
+ <PlaybackRateIcon color={TOOLBAR_FOREGROUND} size={20} />
+ <div style={{width: 4}} />
+ <span style={{fontSize: 12, lineHeight: '16px', width: 30}}>1x</span>
+ <div style={{width: 4}} />
+ <CaretIcon color={TOOLBAR_FOREGROUND} direction="down" size={10} />
+ </div>
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ left: '50%',
+ position: 'absolute',
+ translate: '-50% 0',
+ }}
+ >
+ <div style={{width: 16}} />
+ <IconButton>
+ <JumpToStartIcon color={TOOLBAR_FOREGROUND} size={18} />
+ </IconButton>
+ <IconButton>
+ <StepBackIcon color={TOOLBAR_FOREGROUND} size={16} />
+ </IconButton>
+ <IconButton>
+ <PlayIcon color={TOOLBAR_FOREGROUND} size={14} />
+ </IconButton>
+ <IconButton>
+ <StepForwardIcon color={TOOLBAR_FOREGROUND} size={16} />
+ </IconButton>
+ <div style={{width: 16}} />
+ <IconButton active>
+ <LoopIcon color={BLUE} size={18} />
+ </IconButton>
+ <div style={{width: 6}} />
+ <IconButton>
+ <VolumeIcon color={TOOLBAR_FOREGROUND} size={21} />
+ </IconButton>
+ <div style={{width: 16}} />
+ <IconButton width={18}>
+ <InPointIcon color={TOOLBAR_FOREGROUND} size={17} />
+ </IconButton>
+ <IconButton width={18}>
+ <OutPointIcon color={TOOLBAR_FOREGROUND} size={17} />
+ </IconButton>
+ <div style={{width: 16}} />
+ <IconButton active>
+ <CheckerboardIcon color={BLUE} size={18} />
+ </IconButton>
+ <div style={{width: 2}} />
+ <IconButton active>
+ <OutlineIcon color={BLUE} size={18} />
+ </IconButton>
+ <div style={{width: 2}} />
+ <IconButton>
+ <RulerIcon color={TOOLBAR_FOREGROUND} size={18} />
+ </IconButton>
+ <div style={{width: 2}} />
+ <IconButton active>
+ <MagnetIcon
+ color={BLUE}
+ size={18}
+ style={{position: 'relative', top: 1}}
+ />
+ </IconButton>
+ <div style={{width: 16}} />
+ <IconButton>
+ <FullscreenIcon color={TOOLBAR_FOREGROUND} size={18} />
+ </IconButton>
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 28,
+ position: 'absolute',
+ right: 12,
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ color: TOOLBAR_FOREGROUND,
+ display: 'flex',
+ gap: 6,
+ height: 28,
+ paddingLeft: 8,
+ paddingRight: 7,
+ }}
+ >
+ <RocketIcon color={TOOLBAR_FOREGROUND} size={18} />
+ <span style={{fontSize: 12}}>Render</span>
+ </div>
+ <Divider height={22} />
+ <CaretIcon color="#9ba0a4" direction="down" size={12} />
+ </div>
+ </div>
+ );
+};
+
+const TimelineRowLabel: React.FC<{
+ readonly children: React.ReactNode;
+ readonly depth: number;
+ readonly expanded?: boolean;
+ readonly secondary?: string;
+}> = ({children, depth, expanded, secondary}) => {
+ return (
+ <div
+ style={{
+ alignItems: 'center',
+ borderBottom: `1px solid ${SEPARATOR}`,
+ boxSizing: 'border-box',
+ color: 'rgba(255, 255, 255, 0.8)',
+ display: 'flex',
+ height: '100%',
+ minWidth: 0,
+ paddingLeft: 10,
+ }}
+ >
+ <div
+ style={{
+ alignItems: 'center',
+ backgroundColor: 'rgba(0, 0, 0, 0.4)',
+ borderRadius: 2,
+ display: 'flex',
+ flexShrink: 0,
+ height: 16,
+ justifyContent: 'center',
+ marginRight: 6,
+ width: 16,
+ }}
+ >
+ <EyeIcon color="#dddddd" size={12} />
+ </div>
+ <div style={{flexShrink: 0, width: depth * 10}} />
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ flexShrink: 0,
+ height: 16,
+ justifyContent: 'center',
+ width: 12,
+ }}
+ >
+ {expanded === undefined ? null : (
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ height: 10,
+ justifyContent: 'center',
+ rotate: expanded ? '90deg' : '0deg',
+ width: 10,
+ }}
+ >
+ <svg aria-hidden="true" height="8" viewBox="0 0 8 10" width="6.4">
+ <path d="M0 0L8 5L0 10Z" fill="#a6a7a9" />
+ </svg>
+ </div>
+ )}
+ </div>
+ <div
+ style={{
+ fontSize: 12,
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ }}
+ >
+ {children}
+ </div>
+ {secondary ? (
+ <div
+ style={{
+ color: 'rgba(255, 255, 255, 0.35)',
+ fontSize: 12,
+ marginLeft: 20,
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ }}
+ >
+ {secondary}
+ </div>
+ ) : null}
+ </div>
+ );
+};
+
+const BlueSequence: React.FC<{
+ readonly frame: number;
+ readonly height: number;
+ readonly width: number;
+}> = ({frame, height, width}) => {
+ return (
+ <div
+ style={{
+ backgroundColor: '#0d69bd',
+ border: '1px solid #327cbf',
+ borderRadius: 2,
+ boxSizing: 'border-box',
+ color: '#8bc5f0',
+ fontFamily: 'monospace',
+ fontSize: 11,
+ height,
+ lineHeight: `${height - 2}px`,
+ overflow: 'hidden',
+ paddingLeft: 5,
+ width,
+ }}
+ >
+ {frame}
+ </div>
+ );
+};
+
+const Filmstrip: React.FC<{
+ readonly height: number;
+ readonly width: number;
+}> = ({height, width}) => {
+ const cells = Math.ceil(width / 957);
+
+ return (
+ <div
+ style={{
+ display: 'flex',
+ height,
+ overflow: 'hidden',
+ width,
+ }}
+ >
+ {Array.from({length: cells}).map((_, index) => (
+ <Img
+ // eslint-disable-next-line react/no-array-index-key
+ key={index}
+ src={staticFile('studio-timeline-filmstrip.png')}
+ style={{flex: '0 0 957px', height, width: 957}}
+ />
+ ))}
+ </div>
+ );
+};
+
+const AvatarStrip: React.FC<{
+ readonly height: number;
+ readonly width: number;
+}> = ({height, width}) => {
+ const cells = Math.ceil(width / 957);
+
+ return (
+ <div
+ style={{
+ display: 'flex',
+ height,
+ overflow: 'hidden',
+ width,
+ }}
+ >
+ {Array.from({length: cells}).map((_, index) => (
+ <Img
+ // eslint-disable-next-line react/no-array-index-key
+ key={index}
+ src={staticFile('studio-timeline-avatar-strip.png')}
+ style={{flex: '0 0 957px', height, width: 957}}
+ />
+ ))}
+ </div>
+ );
+};
+
+const Timeline: React.FC<{
+ readonly durationInFrames: number;
+ readonly fps: number;
+ readonly frame: number;
+ readonly height: number;
+ readonly width: number;
+}> = ({durationInFrames, fps, frame, height, width}) => {
+ const labelWidth = Math.round(width * TIMELINE_LABEL_RATIO);
+ const trackWidth = width - labelWidth;
+ const pixelsPerFrame = 1.29;
+ const sequenceWidth = durationInFrames * pixelsPerFrame;
+ const trackLeft = 19;
+ const timelineFps = Math.max(1, Math.round(fps));
+ const playheadLeft = Math.min(
+ trackLeft + sequenceWidth,
+ trackLeft + frame * pixelsPerFrame,
+ );
+ const totalSeconds = Math.floor(frame / timelineFps);
+ const minutes = Math.floor(totalSeconds / 60);
+ const seconds = totalSeconds % 60;
+ const frameWithinSecond = frame % timelineFps;
+ const timecode = `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}.${String(frameWithinSecond).padStart(2, '0')}`;
+ const ticks = Array.from(
+ {length: Math.floor(durationInFrames / 5) + 1},
+ (_, index) => index * 5,
+ );
+ const rows = [22, 22, 46, 22, 22, 22];
+
+ return (
+ <div
+ style={{
+ backgroundColor: TIMELINE_BACKGROUND,
+ color: LIGHT_TEXT,
+ display: 'flex',
+ height,
+ overflow: 'hidden',
+ position: 'relative',
+ width,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: BACKGROUND,
+ flexShrink: 0,
+ height: '100%',
+ width: labelWidth,
+ }}
+ >
+ <div
+ style={{
+ borderBottom: `1px solid ${SEPARATOR}`,
+ boxSizing: 'border-box',
+ height: 39,
+ paddingLeft: 10,
+ paddingTop: 6,
+ }}
+ >
+ <div
+ style={{
+ color: LIGHT_TEXT,
+ fontFamily: 'monospace',
+ fontSize: 14,
+ fontVariantNumeric: 'tabular-nums',
+ lineHeight: '18px',
+ }}
+ >
+ {timecode}
+ </div>
+ <div
+ style={{
+ fontFamily: 'monospace',
+ fontSize: 10,
+ lineHeight: '10px',
+ }}
+ >
+ {frame}
+ </div>
+ <div
+ style={{
+ alignItems: 'center',
+ display: 'flex',
+ gap: 4,
+ left: 217,
+ position: 'absolute',
+ top: 7,
+ }}
+ >
+ <IconButton>
+ <CanvasZoomOutIcon color={TOOLBAR_FOREGROUND} size={20} />
+ </IconButton>
+ <div
+ style={{
+ backgroundColor: '#353a3e',
+ borderRadius: 8,
+ height: 6,
+ position: 'relative',
+ width: 80,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: WHITE,
+ borderRadius: '50%',
+ height: 14,
+ left: 0,
+ position: 'absolute',
+ top: -4,
+ width: 14,
+ }}
+ />
+ </div>
+ <IconButton>
+ <CanvasZoomIcon color={TOOLBAR_FOREGROUND} size={20} />
+ </IconButton>
+ </div>
+ </div>
+ <div style={{height: rows[0]}}>
+ <TimelineRowLabel depth={0} expanded>
+ Video
+ </TimelineRowLabel>
+ </div>
+ <div style={{height: rows[1]}}>
+ <TimelineRowLabel depth={1} expanded>
+ Container
+ </TimelineRowLabel>
+ </div>
+ <div style={{height: rows[2]}}>
+ <TimelineRowLabel depth={2} secondary="whats11.mov">
+ &lt;Video&gt;
+ </TimelineRowLabel>
+ </div>
+ <div style={{height: rows[3]}}>
+ <TimelineRowLabel depth={1} expanded>
+ &lt;AbsoluteFill&gt;
+ </TimelineRowLabel>
+ </div>
+ <div style={{height: rows[4]}}>
+ <TimelineRowLabel depth={2} expanded>
+ &lt;AbsoluteFill&gt;
+ </TimelineRowLabel>
+ </div>
+ <div style={{height: rows[5]}}>
+ <TimelineRowLabel depth={4} secondary="remotion-avatar.png">
+ &lt;Img&gt;
+ </TimelineRowLabel>
+ </div>
+ </div>
+ <div
+ style={{
+ backgroundColor: TIMELINE_BACKGROUND,
+ height: '100%',
+ overflow: 'hidden',
+ position: 'relative',
+ width: trackWidth,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: BACKGROUND,
+ borderBottom: `1px solid ${SEPARATOR}`,
+ boxSizing: 'border-box',
+ height: 39,
+ position: 'relative',
+ }}
+ >
+ {ticks.map((tick) => (
+ <React.Fragment key={tick}>
+ <div
+ style={{
+ backgroundColor: '#303438',
+ height:
+ tick % (timelineFps * 5) === 0
+ ? 15
+ : tick % timelineFps === 0
+ ? 5
+ : 2,
+ left: trackLeft + tick * pixelsPerFrame,
+ position: 'absolute',
+ top: 0,
+ width: 2,
+ }}
+ />
+ {tick > 0 && tick % (timelineFps * 5) === 0 ? (
+ <div
+ style={{
+ color: 'rgba(255, 255, 255, 0.55)',
+ fontSize: 12,
+ left: trackLeft + tick * pixelsPerFrame + 9,
+ position: 'absolute',
+ top: 3,
+ }}
+ >
+ 00:{String(tick / timelineFps).padStart(2, '0')}.00
+ </div>
+ ) : null}
+ </React.Fragment>
+ ))}
+ </div>
+ <div style={{height: rows[0], paddingLeft: trackLeft}}>
+ <BlueSequence frame={frame} height={21} width={sequenceWidth} />
+ </div>
+ <div style={{height: rows[1], paddingLeft: trackLeft}}>
+ <BlueSequence frame={frame} height={21} width={sequenceWidth} />
+ </div>
+ <div style={{height: rows[2], paddingLeft: trackLeft}}>
+ <Filmstrip height={45} width={sequenceWidth} />
+ </div>
+ <div style={{height: rows[3], paddingLeft: trackLeft}}>
+ <BlueSequence frame={frame} height={21} width={sequenceWidth} />
+ </div>
+ <div style={{height: rows[4], paddingLeft: trackLeft}}>
+ <BlueSequence frame={frame} height={21} width={sequenceWidth} />
+ </div>
+ <div style={{height: rows[5], paddingLeft: trackLeft}}>
+ <AvatarStrip height={21} width={sequenceWidth} />
+ </div>
+ <div
+ style={{
+ backgroundColor: PLAYHEAD,
+ bottom: 0,
+ left: playheadLeft,
+ position: 'absolute',
+ top: 0,
+ width: 1,
+ zIndex: 2,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: PLAYHEAD,
+ clipPath: 'polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%)',
+ height: 16,
+ left: -8,
+ position: 'absolute',
+ top: 0,
+ width: 17,
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export const Studio: React.FC<StudioProps> = ({
+ compositionName,
+ compositionWidth,
+ compositionHeight,
+ content,
+ durationInFrames,
+ frame,
+ showLeftSidebar,
+ showRightSidebar,
+}) => {
+ const {width, height, fps} = useVideoConfig();
+ const topPanelHeight = Math.round(
+ (height - MENU_HEIGHT - SPLITTER_SIZE) * TOP_PANEL_RATIO,
+ );
+ const timelineHeight = height - MENU_HEIGHT - topPanelHeight - SPLITTER_SIZE;
+ const canvasRowHeight = topPanelHeight - PREVIEW_TOOLBAR_HEIGHT;
+ const leftSidebarWidth = showLeftSidebar
+ ? Math.min(350, Math.round(width * LEFT_SIDEBAR_RATIO))
+ : 0;
+ const rightSidebarWidth = showRightSidebar
+ ? Math.min(350, Math.max(250, Math.round(width * RIGHT_SIDEBAR_RATIO)))
+ : 0;
+ const canvasWidth =
+ width -
+ leftSidebarWidth -
+ rightSidebarWidth -
+ (showLeftSidebar ? SPLITTER_SIZE : 0) -
+ (showRightSidebar ? SPLITTER_SIZE : 0);
+
+ return (
+ <AbsoluteFill
+ style={{
+ ...studioFont,
+ backgroundColor: BACKGROUND,
+ color: WHITE,
+ fontWeight: 400,
+ lineHeight: 1.5,
+ overflow: 'hidden',
+ }}
+ >
+ <MenuToolbar
+ compositionName={compositionName}
+ showLeftSidebar={showLeftSidebar}
+ showRightSidebar={showRightSidebar}
+ />
+ <div style={{height: topPanelHeight, width}}>
+ <div style={{display: 'flex', height: canvasRowHeight, width}}>
+ {showLeftSidebar ? (
+ <>
+ <div style={{width: leftSidebarWidth}}>
+ <LeftSidebar />
+ </div>
+ <div style={{backgroundColor: SPLITTER, width: SPLITTER_SIZE}} />
+ </>
+ ) : null}
+ <PreviewCanvas
+ canvasHeight={canvasRowHeight}
+ canvasWidth={canvasWidth}
+ compositionHeight={compositionHeight}
+ compositionWidth={compositionWidth}
+ content={content}
+ durationInFrames={durationInFrames}
+ frame={frame}
+ />
+ {showRightSidebar ? (
+ <>
+ <div style={{backgroundColor: SPLITTER, width: SPLITTER_SIZE}} />
+ <div style={{width: rightSidebarWidth}}>
+ <RightSidebar
+ compositionHeight={compositionHeight}
+ compositionName={compositionName}
+ compositionWidth={compositionWidth}
+ durationInFrames={durationInFrames}
+ fps={fps}
+ />
+ </div>
+ </>
+ ) : null}
+ </div>
+ <PreviewToolbar />
+ </div>
+ <div style={{backgroundColor: SPLITTER, height: SPLITTER_SIZE, width}} />
+ <Timeline
+ durationInFrames={durationInFrames}
+ fps={fps}
+ frame={frame}
+ height={timelineHeight}
+ width={width}
+ />
+ </AbsoluteFill>
+ );
+};
+
+export const StudioReference: React.FC = () => {
+ return (
+ <Studio
+ compositionHeight={REFERENCE_COMPOSITION_HEIGHT}
+ compositionName="Chapter11-Outro"
+ compositionWidth={REFERENCE_COMPOSITION_WIDTH}
+ content={<Scene11 platform="youtube" />}
+ durationInFrames={742}
+ frame={655}
+ showLeftSidebar
+ showRightSidebar
+ />
+ );
+};
diff --git a/packages/brand/src/video-elements/studio-icons.tsx b/packages/brand/src/video-elements/studio-icons.tsx
new file mode 100644
index 0000000000..db31ea863d
--- /dev/null
+++ b/packages/brand/src/video-elements/studio-icons.tsx
@@ -0,0 +1,468 @@
+import type {ReactNode, SVGProps} from 'react';
+import React from 'react';
+
+export type StudioIconProps = Omit<SVGProps<SVGSVGElement>, 'color'> & {
+ readonly color?: string;
+ readonly size?: number;
+};
+
+type SvgIconProps = StudioIconProps & {
+ readonly children: ReactNode;
+ readonly viewBox: string;
+};
+
+const SvgIcon: React.FC<SvgIconProps> = ({
+ children,
+ color = 'currentColor',
+ size = 18,
+ viewBox,
+ ...svgProps
+}) => {
+ return (
+ <svg
+ aria-hidden="true"
+ focusable="false"
+ height={size}
+ width={size}
+ viewBox={viewBox}
+ color={color}
+ xmlns="http://www.w3.org/2000/svg"
+ {...svgProps}
+ >
+ {children}
+ </svg>
+ );
+};
+
+export const RemotionGlyph: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 415 426" {...props}>
+ <path
+ fill="currentColor"
+ d="M93.4691 0.0367432C84.4873 0.520935 77.2494 1.93634 69.9553 4.69266C66.3176 6.05219 60.3548 9.0134 57.0734 11.062C43.3476 19.6103 32.8846 32.4606 27.428 47.4154C26.3405 50.3766 23.3966 59.8188 21.5027 66.3185C8.88329 109.768 1.7204 157.277 0.182822 207.561C-0.0609408 215.569 -0.0609408 234.639 0.182822 242.517C1.21413 275.854 4.42055 305.949 10.2334 336.641C12.596 349.063 16.3837 365.75 18.5776 373.33C23.059 388.732 32.2095 401.843 45.2227 411.453C53.9419 417.896 63.8425 422.217 74.8118 424.34C80.0996 425.365 87.075 425.83 92.2127 425.495C99.3194 425.029 113.42 423.148 124.877 421.118C176.517 411.974 224.22 395.604 267.478 372.175C294.874 357.332 318.294 341.26 340.888 321.761C363.408 302.355 382.609 281.478 399.504 258.049C403.423 252.63 405.392 249.464 407.361 245.478C412.424 235.198 414.805 224.974 414.786 213.539C414.786 202.886 412.761 193.425 408.392 183.741C406.292 179.066 404.286 175.714 399.785 169.345C383.21 145.898 364.815 125.467 342.389 105.614C307.624 74.8481 266.335 49.613 220.226 30.9334C210.232 26.8921 200.387 23.335 188.537 19.4799C163.448 11.3413 132.396 4.28293 106.126 0.763062C102.001 0.204346 96.3942 -0.112244 93.4691 0.0367432Z"
+ />
+ </SvgIcon>
+ );
+};
+
+export type SidebarIconProps = StudioIconProps & {
+ readonly expanded?: boolean;
+ readonly side: 'left' | 'right';
+};
+
+export const SidebarIcon: React.FC<SidebarIconProps> = ({
+ expanded = true,
+ side,
+ ...props
+}) => {
+ const dividerX = side === 'left' ? 5.75 : 10.25;
+
+ return (
+ <SvgIcon viewBox="0 0 16 16" {...props}>
+ <rect
+ x="0.5"
+ y="0.5"
+ width="15"
+ height="15"
+ rx="2.5"
+ fill="none"
+ stroke="currentColor"
+ />
+ {expanded ? (
+ <path
+ d={side === 'left' ? 'M1 1h4.75v14H1z' : 'M10.25 1H15v14h-4.75z'}
+ fill="currentColor"
+ />
+ ) : null}
+ <path d={`M${dividerX} 1v14`} fill="none" stroke="currentColor" />
+ </SvgIcon>
+ );
+};
+
+export type FolderIconProps = StudioIconProps & {
+ readonly expanded?: boolean;
+};
+
+export const FolderIcon: React.FC<FolderIconProps> = ({
+ expanded = true,
+ ...props
+}) => {
+ return (
+ <SvgIcon viewBox={expanded ? '0 0 576 512' : '0 0 512 512'} {...props}>
+ <path
+ fill="currentColor"
+ d={
+ expanded
+ ? 'M566.6 211.6C557.5 199.1 543.4 192 527.1 192H134.2C114.3 192 96.2 204.5 89.23 223.1L32 375.8V96c0-17.64 14.36-32 32-32h117.5c8.549 0 16.58 3.328 22.63 9.375L258.7 128H448c17.64 0 32 14.36 32 32h32c0-35.35-28.65-64-64-64H272L226.7 50.75C214.7 38.74 198.5 32 181.5 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h403.1c21.11 0 39.53-13.53 45.81-33.69l60-192C578.4 239.6 575.8 224 566.6 211.6zM543.2 244.8l-60 192C481.1 443.5 475 448 467.1 448H64c-3.322 0-6.357-.9551-9.373-1.898-2.184-1.17-4.109-2.832-5.596-4.977-3.031-4.375-3.703-9.75-1.828-14.73l72-192C121.5 228.2 127.5 224 134.2 224h393.8c5.141 0 9.844 2.375 12.89 6.516C543.9 234.7 544.8 239.9 543.2 244.8z'
+ : 'M447.1 96H272L226.7 50.75C214.7 38.74 198.5 32 181.5 32H63.1c-35.35 0-64 28.65-64 64v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C511.1 124.7 483.3 96 447.1 96zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V96c0-17.64 14.36-32 32-32h117.5c8.549 0 16.58 3.328 22.63 9.375L258.7 128H448c17.64 0 32 14.36 32 32V416z'
+ }
+ />
+ </SvgIcon>
+ );
+};
+
+export const SearchIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 640 640" {...props}>
+ <path
+ fill="currentColor"
+ d="M432 272C432 183.6 360.4 112 272 112C183.6 112 112 183.6 112 272C112 360.4 183.6 432 272 432C360.4 432 432 360.4 432 272zM401.1 435.1C365.7 463.2 320.8 480 272 480C157.1 480 64 386.9 64 272C64 157.1 157.1 64 272 64C386.9 64 480 157.1 480 272C480 320.8 463.2 365.7 435.1 401.1L569 535C578.4 544.4 578.4 559.6 569 568.9C559.6 578.2 544.4 578.3 535.1 568.9L401.1 435.1z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const CanvasFitIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 640 640" {...props}>
+ <path
+ fill="currentColor"
+ d="M448 272C448 174.8 369.2 96 272 96C174.8 96 96 174.8 96 272C96 369.2 174.8 448 272 448C369.2 448 448 369.2 448 272zM407.3 430C371 461.2 323.7 480 272 480C157.1 480 64 386.9 64 272C64 157.1 157.1 64 272 64C386.9 64 480 157.1 480 272C480 323.7 461.2 371 430 407.3L571.3 548.7C577.5 554.9 577.5 565.1 571.3 571.3C565.1 577.5 554.9 577.5 548.7 571.3L407.3 430z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const CanvasZoomIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 640 640" {...props}>
+ <path
+ fill="currentColor"
+ d="M272 96C369.2 96 448 174.8 448 272C448 369.2 369.2 448 272 448C174.8 448 96 369.2 96 272C96 174.8 174.8 96 272 96zM272 480C323.7 480 371 461.2 407.3 430L548.7 571.3C554.9 577.5 565.1 577.5 571.3 571.3C577.5 565.1 577.5 554.9 571.3 548.7L430 407.3C461.2 371 480 323.7 480 272C480 157.1 386.9 64 272 64C157.1 64 64 157.1 64 272C64 386.9 157.1 480 272 480zM256 344C256 352.8 263.2 360 272 360C280.8 360 288 352.8 288 344L288 288L344 288C352.8 288 360 280.8 360 272C360 263.2 352.8 256 344 256L288 256L288 200C288 191.2 280.8 184 272 184C263.2 184 256 191.2 256 200L256 256L200 256C191.2 256 184 263.2 184 272C184 280.8 191.2 288 200 288L256 288L256 344z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const CanvasZoomOutIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 640 640" {...props}>
+ <path
+ fill="currentColor"
+ d="M272 96C369.2 96 448 174.8 448 272C448 369.2 369.2 448 272 448C174.8 448 96 369.2 96 272C96 174.8 174.8 96 272 96zM272 480C323.7 480 371 461.2 407.3 430L548.7 571.3C554.9 577.5 565.1 577.5 571.3 571.3C577.5 565.1 577.5 554.9 571.3 548.7L430 407.3C461.2 371 480 323.7 480 272C480 157.1 386.9 64 272 64C157.1 64 64 157.1 64 272C64 386.9 157.1 480 272 480zM192 256C183.2 256 176 263.2 176 272C176 280.8 183.2 288 192 288L352 288C360.8 288 368 280.8 368 272C368 263.2 360.8 256 352 256L192 256z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const PlaybackRateIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 640 640" {...props}>
+ <path
+ fill="currentColor"
+ d="M320 96C443.7 96 544 196.3 544 320C544 443.7 443.7 544 320 544C196.3 544 96 443.7 96 320C96 196.3 196.3 96 320 96zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 384C337.7 384 352 398.3 352 416C352 433.7 337.7 448 320 448C302.3 448 288 433.7 288 416C288 398.3 302.3 384 320 384zM320 480C355.3 480 384 451.3 384 416C384 386.2 363.6 361.1 336 354L336 160C336 151.2 328.8 144 320 144C311.2 144 304 151.2 304 160L304 354C276.4 361.1 256 386.2 256 416C256 451.3 284.7 480 320 480zM208 232C221.3 232 232 221.3 232 208C232 194.7 221.3 184 208 184C194.7 184 184 194.7 184 208C184 221.3 194.7 232 208 232zM184 320C184 306.7 173.3 296 160 296C146.7 296 136 306.7 136 320C136 333.3 146.7 344 160 344C173.3 344 184 333.3 184 320zM480 344C493.3 344 504 333.3 504 320C504 306.7 493.3 296 480 296C466.7 296 456 306.7 456 320C456 333.3 466.7 344 480 344zM456 208C456 194.7 445.3 184 432 184C418.7 184 408 194.7 408 208C408 221.3 418.7 232 432 232C445.3 232 456 221.3 456 208z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const SettingsIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M168 255.1c0-47.7 39.4-88 88-88s88 40.3 88 88c0 49.5-39.4 88.9-88 88.9s-88-39.4-88-88.9zm88-56c-30.9 0-56 26-56 56 0 31.8 25.1 56 56 56s56-24.2 56-56c0-30-25.1-56-56-56zM65.67 230.6l-40.33-36.8c-11.12-10.1-13.68-26.6-6.16-39.6l30.24-52.4c7.52-13.02 23.09-19.05 37.42-14.48l51.96 16.58c13.4-10.34 28.2-18.94 44-25.47l11.7-53.27C197.7 10.47 210.7 0 225.8 0h60.4c15.1 0 28.1 10.47 31.3 25.16l11.7 53.27c14.9 6.53 30.6 15.13 44 25.47l52-16.58c14.3-4.57 29.9 1.46 37.4 14.48l30.2 52.4c7.5 13 5 29.5-6.1 39.6l-40.4 36.8c1.1 8.3 1.7 16.8 1.7 24.5 0 9.5-.6 18-1.7 26.3l40.4 36.8c11.1 10.1 13.6 26.6 6.1 39.6l-30.2 52.4c-7.5 13-23.1 19-37.4 14.5l-52-16.6c-13.4 10.3-29.1 18.9-44 25.5l-11.7 53.2c-3.2 14.7-16.2 25.2-31.3 25.2h-60.4c-15.1 0-28.1-10.5-31.3-25.2l-11.7-53.2c-15.8-6.6-30.6-15.2-44-25.5l-51.96 16.6c-14.33 4.5-29.9-1.5-37.42-14.5l-30.24-52.4c-7.52-13-4.96-29.5 6.16-39.6l40.33-36.8c-1.1-8.3-1.67-16.8-1.67-26.3 0-7.7.57-16.2 1.67-24.5zm92.73-101.4-13.3 10.3-67.97-21.7-30.24 52.4 52.69 48-2.19 16.6c-.92 6.9-1.39 14-1.39 20.3 0 8.1.47 15.2 1.39 22.1l2.19 16.6-52.69 48 30.24 52.4 67.97-21.7 13.3 10.3c11.1 8.6 23.5 15.8 36.6 20.3l15.5 7.3 15.3 69.6h60.4l15.3-69.6 14.6-7.3c14-4.5 26.4-11.7 37.5-20.3l13.3-10.3 68 21.7 30.2-52.4-52.7-48 2.2-16.6c.9-6.9 1.4-14 1.4-21.2 0-7.2-.5-14.3-1.4-21.2l-2.2-16.6 52.7-48-30.2-52.4-68 21.7-13.3-10.3c-11.1-8.6-23.5-15.8-37.5-21.2l-14.6-6.4L286.2 32h-60.4l-15.3 69.6L195 108c-13.1 5.4-25.5 12.6-36.6 21.2z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const VscodeIcon: React.FC<StudioIconProps> = ({
+ color = '#23a9f2',
+ ...props
+}) => {
+ return (
+ <SvgIcon color={color} viewBox="0 0 40 40" {...props}>
+ <path
+ clipRule="evenodd"
+ fill="currentColor"
+ fillRule="evenodd"
+ d="M26.02 34.13c.23.09.48.13.72.12.25-.01.49-.07.71-.18l5.93-2.85c.31-.15.56-.38.74-.66.18-.29.28-.62.28-.96V10.25c0-.34-.1-.67-.28-.96-.18-.28-.43-.51-.74-.66l-5.93-2.85c-.34-.16-.71-.22-1.08-.15-.36.06-.7.23-.96.5L14.05 16.48 9.11 12.73a1.2 1.2 0 0 0-1.53.07L5.99 14.24a1.2 1.2 0 0 0 0 1.77l4.29 3.92-4.29 3.91a1.2 1.2 0 0 0 0 1.77l1.59 1.44a1.2 1.2 0 0 0 1.53.07l4.94-3.75 11.36 10.36c.17.17.38.31.61.4Zm1.18-20.74-8.61 6.54 8.61 6.53V13.39Z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const BracesIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 576 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M144 32c-44.2 0-80 35.8-80 80v53.5c0 12.7-5.1 24.9-14.1 33.9L4.7 244.7c-3 3-4.7 7.1-4.7 11.3s1.7 8.3 4.7 11.3L50 312.6c9 9 14.1 21.2 14.1 33.9V400c0 44.2 35.8 80 80 80h64c8.8 0 16-7.2 16-16s-7.2-16-16-16h-64c-26.5 0-48-21.5-48-48v-53.5c0-21.2-8.4-41.6-23.4-56.6L38.6 256l34-33.9c15-15 23.4-35.4 23.4-56.6V112c0-26.5 21.5-48 48-48h64c8.8 0 16-7.2 16-16s-7.2-16-16-16h-64zm288 0h-64c-8.8 0-16 7.2-16 16s7.2 16 16 16h64c26.5 0 48 21.5 48 48v53.5c0 21.2 8.4 41.6 23.4 56.6l33.9 33.9-33.9 33.9c-15 15-23.4 35.4-23.4 56.6V400c0 26.5-21.5 48-48 48h-64c-8.8 0-16 7.2-16 16s7.2 16 16 16h64c44.2 0 80-35.8 80-80v-53.5c0-12.7 5.1-24.9 14.1-33.9l45.3-45.3c3-3 4.7-7.1 4.7-11.3s-1.7-8.3-4.7-11.3l-45.3-45.3c-9-9-14.1-21.2-14.1-33.9V112c0-44.2-35.8-80-80-80z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const JumpToStartIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M0 415.1V96.03c0-17.67 14.33-31.1 31.1-31.1C49.67 64.03 64 78.36 64 96.03v131.8l171.5-156.5C256.1 54.28 288 68.66 288 96.03v131.9l171.5-156.5C480.1 54.28 512 68.66 512 96.03v319.9c0 27.37-31.88 41.74-52.5 24.62L288 285.2v130.7c0 27.37-31.88 41.74-52.5 24.62L64 285.2v130.7c0 17.67-14.33 31.1-31.1 31.1C14.33 447.1 0 433.6 0 415.1z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const StepBackIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 448 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const PlayIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 448 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const StepForwardIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 448 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const LoopIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M384 150.3V41.6l64 53.3v2l-64 53.3zM352 23.5V80H192C86 80 0 166 0 272c0 8.8 7.2 16 16 16s16-7.2 16-16c0-88.4 71.6-160 160-160h160v56.5c0 13 10.5 23.5 23.5 23.5 5.5 0 10.8-1.9 15-5.4l78-65c7.3-6.1 11.5-15.1 11.5-24.6v-2c0-9.5-4.2-18.5-11.5-24.6l-78-65c-4.2-3.5-9.5-5.4-15-5.4-13 0-23.5 10.5-23.5 23.5zM128 415.9v54.5l-64-53.3v-2l64-53.3v54.1zM160 400v-56.5c0-13-10.5-23.5-23.5-23.5-5.5 0-10.8 1.9-15 5.4l-78 65C36.2 396.5 32 405.5 32 415v2c0 9.5 4.2 18.5 11.5 24.6l78 65c4.2 3.5 9.5 5.4 15 5.4 13 0 23.5-10.5 23.5-23.5V432h160c106 0 192-86 192-192 0-8.8-7.2-16-16-16s-16 7.2-16 16c0 88.4-71.6 160-160 160H160z"
+ />
+ </SvgIcon>
+ );
+};
+
+const speakerPath =
+ 'M112 320H48c-8.8 0-16-7.2-16-16v-96c0-8.8 7.2-16 16-16h64c8.5 0 16.6-3.4 22.6-9.4L252.7 64.6c.4-.4.9-.6 1.4-.6 1.1 0 1.9.9 1.9 1.9V446c0 1.1-.9 1.9-1.9 1.9-.5 0-1-.2-1.4-.6L134.6 329.4c-6-6-14.1-9.4-22.6-9.4zm0-160H48c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h64l118.1 118.1c6.4 6.4 15 9.9 24 9.9 18.7 0 33.9-15.2 33.9-33.9V65.9C288 47.2 272.8 32 254.1 32c-9 0-17.6 3.6-24 9.9L112 160zm243.2 22.4c-5.3 7.1-3.9 17.1 3.2 22.4 15.6 11.7 25.6 30.3 25.6 51.2s-10 39.5-25.6 51.2c-7.1 5.3-8.5 15.3-3.2 22.4s15.3 8.5 22.4 3.2C400.9 315.3 416 287.4 416 256s-15.1-59.3-38.4-76.8c-7.1-5.3-17.1-3.9-22.4 3.2zm87-74.5c-6.8-5.6-16.9-4.7-22.5 2.1s-4.7 16.9 2.1 22.5C457.4 161.9 480 206.3 480 256s-22.6 94.1-58.2 123.4c-6.8 5.6-7.8 15.7-2.1 22.5s15.7 7.8 22.5 2.2C484.8 368.9 512 315.6 512 256s-27.2-112.9-69.8-148.1z';
+
+export type VolumeIconProps = StudioIconProps & {
+ readonly muted?: boolean;
+};
+
+export const VolumeIcon: React.FC<VolumeIconProps> = ({
+ muted = false,
+ ...props
+}) => {
+ return (
+ <SvgIcon viewBox="0 0 576 512" {...props}>
+ <g transform="translate(32 0)">
+ <path d={speakerPath} fill="currentColor" />
+ </g>
+ {muted ? (
+ <path
+ d="M16-16 560 528"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeWidth="32"
+ />
+ ) : null}
+ </SvgIcon>
+ );
+};
+
+export const InPointIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 192 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M0 88C0 57.1 25.1 32 56 32h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H56c-4.4 0-8 3.6-8 8v336c0 4.4 3.6 8 8 8h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H56c-30.9 0-56-25.1-56-56V88z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const OutPointIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 192 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M192 88c0-30.9-25.1-56-56-56H72C58.7 32 48 42.7 48 56s10.7 24 24 24h64c4.4 0 8 3.6 8 8v336c0 4.4-3.6 8-8 8H72c-13.3 0-24 10.7-24 24s10.7 24 24 24h64c30.9 0 56-25.1 56-56V88z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const CheckerboardIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M256 48h184c13.3 0 24 10.7 24 24v184H256V48zM48 256h208v208H72c-13.3 0-24-10.7-24-24V256z"
+ />
+ <rect
+ x="48"
+ y="48"
+ width="416"
+ height="416"
+ rx="24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="32"
+ />
+ <path
+ d="M256 48v416M48 256h416"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="32"
+ />
+ </SvgIcon>
+ );
+};
+
+export const OutlineIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ d="M64 64H448V448H64V64Z"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="36"
+ />
+ {[
+ [16, 16],
+ [400, 16],
+ [16, 400],
+ [400, 400],
+ ].map(([x, y]) => {
+ return (
+ <rect
+ key={`${x}-${y}`}
+ x={x}
+ y={y}
+ width="96"
+ height="96"
+ rx="24"
+ fill="#1f2428"
+ stroke="currentColor"
+ strokeWidth="32"
+ />
+ );
+ })}
+ </SvgIcon>
+ );
+};
+
+export const RulerIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 576 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M525.9 154.2L186.5 493.6c-6.2 6.2-16.4 6.2-22.6 0L50.7 380.5c-6.2-6.2-6.2-16.4 0-22.6l33.9-33.9 56.6 56.6c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-56.6-56.6 39.6-39.6 33.9 33.9c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-33.9-33.9 39.6-39.6 56.6 56.6c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-56.6-56.6 39.6-39.6 33.9 33.9c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-33.9-33.9 39.6-39.6 56.6 56.6c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-56.6-56.6 33.9-33.9c6.2-6.2 16.4-6.2 22.6 0L525.9 131.5c6.2 6.2 6.2 16.4 0 22.6zM73.3 289.9L28.1 335.2c-18.7 18.7-18.7 49.1 0 67.9L141.2 516.2c18.7 18.7 49.1 18.7 67.9 0L548.5 176.8c18.7-18.7 18.7-49.1 0-67.9L435.4-4.2C416.6-23 386.2-23 367.5-4.2 77.1 286.2 140.3 223 73.3 289.9z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const MagnetIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 448 512" {...props}>
+ <path
+ fill="currentColor"
+ transform="rotate(180 224 256)"
+ d="M48 64c-8.8 0-16 7.2-16 16v80h80V80c0-8.8-7.2-16-16-16H48zM32 288c0 106 86 192 192 192s192-86 192-192v-96h-80v96c0 61.9-50.1 112-112 112s-112-50.1-112-112v-96H32v96zM416 160V80c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v80h80zM0 80c0-26.5 21.5-48 48-48h48c26.5 0 48 21.5 48 48v208c0 44.2 35.8 80 80 80s80-35.8 80-80V80c0-26.5 21.5-48 48-48h48c26.5 0 48 21.5 48 48v208c0 123.7-100.3 224-224 224S0 411.7 0 288V80z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const FullscreenIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 448 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M136 32c13.3 0 24 10.7 24 24s-10.7 24-24 24H48v88c0 13.3-10.7 24-24 24S0 181.3 0 168V56C0 42.7 10.7 32 24 32h112zM0 344c0-13.3 10.7-24 24-24s24 10.7 24 24v88h88c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V344zM424 32c13.3 0 24 10.7 24 24v112c0 13.3-10.7 24-24 24s-24-10.7-24-24V80h-88c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM400 344c0-13.3 10.7-24 24-24s24 10.7 24 24v112c0 13.3-10.7 24-24 24H312c-13.3 0-24-10.7-24-24s10.7-24 24-24h88v-88z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const RocketIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M188.9 372l-50.4-50.4c18.6-42.6 61.7-137.7 95.1-187C304.6 30.1 409 24.6 475.7 36.3c11.7 66.7 6.2 171.1-98.4 242-49.4 33.5-145.5 75.6-188.4 93.7zm-79.9-62.8c-5.2 11.9-2.5 25.7 6.7 34.9l50.7 50.7c9.1 9.1 22.7 11.9 34.5 6.9 6.5-2.7 14.3-6 23-9.8L224 496c0 5.5 2.9 10.7 7.6 13.6s10.6 3.2 15.6.7l101.5-50.7c21.7-10.8 35.4-33 35.4-57.2v-90.3c4-2.5 7.7-4.9 11.3-7.3C516.1 222.9 520.1 100.9 506.7 28.1c-2.1-11.6-11.2-20.6-22.8-22.8C411.1-8.1 289.1-4.1 207.2 116.7c-2.4 3.6-4.9 7.3-7.3 11.3h-90.2c-24.2 0-46.4 13.7-57.2 35.4L1.7 264.8c-2.5 5-2.2 10.8.7 15.6s8.1 7.6 13.6 7.6h102.5c-3.6 8-6.8 15.2-9.4 21.2zM256 470.1v-92.5c30.3-13.7 65.4-30.3 96-47v71.7c0 12.1-6.8 23.2-17.7 28.6L256 470.1zM109.7 160h71.5c-16.9 30.7-34 65.8-48.1 96H41.9L81 177.7c5.4-10.8 16.5-17.7 28.6-17.7zM392 144a24 24 0 1 1-48 0 24 24 0 1 1 48 0zM368 88a56 56 0 1 0 0 112 56 56 0 1 0 0-112z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const EyeIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 24 16" {...props}>
+ <path
+ fill="currentColor"
+ d="M24 7.551S19.748 16 12.015 16C4.835 16 0 7.551 0 7.551S4.446 0 12.015 0C19.709 0 24 7.551 24 7.551zM17 8c0-2.757-2.243-5-5-5S7 5.243 7 8s2.243 5 5 5 5-2.243 5-5z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const VideoIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M448 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V96C512 60.65 483.3 32 448 32zM384 64v176H128V64h256zM32 96c0-17.64 14.36-32 32-32h32v80H32V96zm0 80h64v64H32v-64zm0 96h64v64H32v-64zm32 176c-17.64 0-32-14.36-32-32v-48h64v80H64zm64 0V272h256v176H128zm352-32c0 17.64-14.36 32-32 32h-32v-80h64v48zm0-80h-64v-64h64v64zm0-96h-64v-64h64v64zm0-96h-64V64h32c17.64 0 32 14.36 32 32v48z"
+ />
+ </SvgIcon>
+ );
+};
+
+export const ImageIcon: React.FC<StudioIconProps> = (props) => {
+ return (
+ <SvgIcon viewBox="0 0 512 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M144 288c0-61.9 50.1-112 112-112s112 50.1 112 112-50.1 112-112 112-112-50.1-112-112zm112-80c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80zM362.9 64.82L373.3 96H448c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V160c0-35.3 28.65-64 64-64h74.7l10.4-31.18C155.6 45.22 173.9 32 194.6 32h122.8c20.7 0 39 13.22 45.5 32.82zM64 128c-17.67 0-32 14.3-32 32v256c0 17.7 14.33 32 32 32h384c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-97.7l-17.7-53.06C330.4 68.41 324.3 64 317.4 64H194.6c-6.9 0-13 4.41-15.2 10.94L161.7 128H64z"
+ />
+ </SvgIcon>
+ );
+};
+
+export type CaretIconProps = StudioIconProps & {
+ readonly direction?: 'down' | 'right';
+};
+
+export const CaretIcon: React.FC<CaretIconProps> = ({
+ direction = 'down',
+ ...props
+}) => {
+ if (direction === 'right') {
+ return (
+ <SvgIcon viewBox="0 0 192 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"
+ />
+ </SvgIcon>
+ );
+ }
+
+ return (
+ <SvgIcon viewBox="0 0 448 512" {...props}>
+ <path
+ fill="currentColor"
+ d="M235.3 411.3c-6.2 6.2-16.4 6.2-22.6 0l-208-208c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L224 377.4l196.7-196.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-208 208z"
+ />
+ </SvgIcon>
+ );
+};