🎥 Make videos programmatically with React
handle * {background: green} better
Jonny Burger5b30af5523e5
diff --git a/packages/bundler/src/setup-environment.ts b/packages/bundler/src/setup-environment.tsindex 37810be323..ec382e758e 100644--- a/packages/bundler/src/setup-environment.ts+++ b/packages/bundler/src/setup-environment.ts@@ -8,6 +8,7 @@ Internals.CSSUtils.injectCSS(`line-height: 1;color: white;font-family: Arial, Helvetica, sans-serif;- background-color: #1f2428;+ background: transparent;+ box-sizing: border-box;}`);diff --git a/packages/cli/src/editor/components/CompositionSelector.tsx b/packages/cli/src/editor/components/CompositionSelector.tsxindex 8d23b10e4a..cacbaff376 100644--- a/packages/cli/src/editor/components/CompositionSelector.tsx+++ b/packages/cli/src/editor/components/CompositionSelector.tsx@@ -1,11 +1,11 @@import React, {useCallback, useContext, useMemo, useState} from 'react';import {Internals} from 'remotion';+import {BACKGROUND} from '../helpers/colors';import {createFolderTree,splitParentIntoNameAndParent,} from '../helpers/create-folder-tree';-import type {- ExpandedFoldersState} from '../helpers/persist-open-folders';+import type {ExpandedFoldersState} from '../helpers/persist-open-folders';import {loadExpandedFolders,openFolderKey,@@ -22,6 +22,7 @@ const container: React.CSSProperties = {height: '100%',width: '100%',flex: 1,+ backgroundColor: BACKGROUND,};const list: React.CSSProperties = {diff --git a/packages/cli/src/editor/components/MenuToolbar.tsx b/packages/cli/src/editor/components/MenuToolbar.tsxindex f1df6241bc..3ada904b0d 100644--- a/packages/cli/src/editor/components/MenuToolbar.tsx+++ b/packages/cli/src/editor/components/MenuToolbar.tsx@@ -1,5 +1,6 @@import React, {useCallback, useContext, useMemo, useState} from 'react';import {Internals} from 'remotion';+import {BACKGROUND} from '../helpers/colors';import {pickColor} from '../helpers/pick-color';import {Checkmark} from '../icons/Checkmark';import {CheckerboardContext} from '../state/checkerboard';@@ -23,10 +24,10 @@ const row: React.CSSProperties = {display: 'flex',color: 'white',borderBottom: '1px solid black',-fontSize: 13,paddingLeft: 6,paddingRight: 10,+ backgroundColor: BACKGROUND,};const flex: React.CSSProperties = {diff --git a/packages/cli/src/editor/components/Notifications/Notification.tsx b/packages/cli/src/editor/components/Notifications/Notification.tsxindex af39ea00da..6f45e9d5f2 100644--- a/packages/cli/src/editor/components/Notifications/Notification.tsx+++ b/packages/cli/src/editor/components/Notifications/Notification.tsx@@ -32,5 +32,9 @@ export const Notification: React.FC<{};}, [created, duration, id, onRemove]);- return <div style={notification}>{children}</div>;+ return (+ <div className="css-reset" style={notification}>+ {children}+ </div>+ );};diff --git a/packages/cli/src/editor/components/Notifications/NotificationCenter.tsx b/packages/cli/src/editor/components/Notifications/NotificationCenter.tsxindex 2ef88d549d..6d6649329d 100644--- a/packages/cli/src/editor/components/Notifications/NotificationCenter.tsx+++ b/packages/cli/src/editor/components/Notifications/NotificationCenter.tsx@@ -15,6 +15,7 @@ const container: React.CSSProperties = {flexDirection: 'column',paddingTop: 20,pointerEvents: 'none',+ backgroundColor: 'transparent',};type TNotification = {diff --git a/packages/cli/src/editor/components/PreviewToolbar.tsx b/packages/cli/src/editor/components/PreviewToolbar.tsxindex 1b5765dcbe..4e667b4409 100644--- a/packages/cli/src/editor/components/PreviewToolbar.tsx+++ b/packages/cli/src/editor/components/PreviewToolbar.tsx@@ -1,5 +1,6 @@import React, {useContext, useState} from 'react';import {Internals} from 'remotion';+import {BACKGROUND} from '../helpers/colors';import {TIMELINE_PADDING} from '../helpers/timeline-layout';import {loadLoopOption} from '../state/loop';import {CheckboardToggle} from './CheckboardToggle';@@ -24,6 +25,7 @@ const container: React.CSSProperties = {paddingBottom: 2,alignItems: 'center',flexDirection: 'row',+ background: BACKGROUND,};const sideContainer: React.CSSProperties = {diff --git a/packages/cli/src/editor/components/Timeline/TimelineList.tsx b/packages/cli/src/editor/components/Timeline/TimelineList.tsxindex 7171d1bdd4..525a99661d 100644--- a/packages/cli/src/editor/components/Timeline/TimelineList.tsx+++ b/packages/cli/src/editor/components/Timeline/TimelineList.tsx@@ -1,13 +1,18 @@import React from 'react';+import {BACKGROUND} from '../../helpers/colors';import type {TrackWithHash} from '../../helpers/get-timeline-sequence-sort-key';import {isTrackCollapsed} from './is-collapsed';-import type {TimelineActionState, TimelineViewState} from './timeline-state-reducer';+import type {+ TimelineActionState,+ TimelineViewState,+} from './timeline-state-reducer';import {TimelineListItem} from './TimelineListItem';const container: React.CSSProperties = {flex: 1,display: 'flex',flexDirection: 'column',+ background: BACKGROUND,};export const TimelineList: React.FC<{