Skip to content

🎥 Make videos programmatically with React

fix blue

Jonny Burger9dfc0b09f2b8
diff --git a/packages/cli/src/editor/components/Menu/styles.ts b/packages/cli/src/editor/components/Menu/styles.ts
index fe2c644f3c..066b137e70 100644
--- a/packages/cli/src/editor/components/Menu/styles.ts
+++ b/packages/cli/src/editor/components/Menu/styles.ts
@@ -1,5 +1,5 @@
import type React from 'react';
-import {BACKGROUND} from '../../helpers/colors';
+import {BACKGROUND, BLUE} from '../../helpers/colors';
export const MENU_VERTICAL_PADDING = 4;
export const SUBMENU_LEFT_INSET = -8;
@@ -40,6 +40,6 @@ export const outerPortal: React.CSSProperties = {
export const inlineCodeSnippet: React.CSSProperties = {
fontSize: 14,
- color: 'var(--blue)',
+ color: BLUE,
fontFamily: 'monospace',
};
diff --git a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
index 2c99e638b1..fb06714ec8 100644
--- a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
+++ b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
@@ -39,7 +39,7 @@ import {GearIcon} from '../../icons/gear';
import {GifIcon} from '../../icons/gif';
import type {AnyZodObject} from 'zod';
-import {BLUE, LIGHT_TEXT} from '../../helpers/colors';
+import {BLUE, BLUE_DISABLED, LIGHT_TEXT} from '../../helpers/colors';
import {ModalsContext} from '../../state/modals';
import {SidebarContext} from '../../state/sidebar';
import {Spacing} from '../layout';
@@ -898,9 +898,7 @@ const RenderModal: React.FC<
disabled={renderDisabled}
style={{
...buttonStyle,
- backgroundColor: outnameValidation.valid
- ? 'var(--blue)'
- : 'var(--blue-disabled)',
+ backgroundColor: outnameValidation.valid ? BLUE : BLUE_DISABLED,
}}
>
{state.type === 'idle' ? `Render ${renderMode}` : 'Rendering...'}
diff --git a/packages/cli/src/preview-server/error-overlay/remotion-overlay/CodeFrame.tsx b/packages/cli/src/preview-server/error-overlay/remotion-overlay/CodeFrame.tsx
index 4f18746ce7..ce2531c438 100644
--- a/packages/cli/src/preview-server/error-overlay/remotion-overlay/CodeFrame.tsx
+++ b/packages/cli/src/preview-server/error-overlay/remotion-overlay/CodeFrame.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import {HORIZONTAL_SCROLLBAR_CLASSNAME} from '../../../editor/components/Menu/is-menu-item';
+import {BLUE} from '../../../editor/helpers/colors';
import type {ScriptLine} from '../react-overlay/utils/stack-frame';
const container: React.CSSProperties = {
@@ -56,7 +57,7 @@ export const CodeFrame: React.FC<{
whiteSpace: 'pre',
tabSize: 2,
color: s.highlight ? 'white' : 'rgba(255, 255, 255, 0.6)',
- backgroundColor: s.highlight ? 'var(--blue)' : 'transparent',
+ backgroundColor: s.highlight ? BLUE : 'transparent',
lineHeight: 1.7,
paddingRight: 12,
paddingLeft: 12,
diff --git a/packages/cli/src/preview-server/error-overlay/remotion-overlay/ErrorTitle.tsx b/packages/cli/src/preview-server/error-overlay/remotion-overlay/ErrorTitle.tsx
index f0cbbd73ef..16aee88b55 100644
--- a/packages/cli/src/preview-server/error-overlay/remotion-overlay/ErrorTitle.tsx
+++ b/packages/cli/src/preview-server/error-overlay/remotion-overlay/ErrorTitle.tsx
@@ -1,4 +1,5 @@
import React from 'react';
+import {BLUE} from '../../../editor/helpers/colors';
import {didUnmountReactApp} from '../react-overlay';
import {DismissButton} from './DismissButton';
import {ErrorMessage} from './ErrorMessage';
@@ -20,7 +21,7 @@ const left: React.CSSProperties = {
const errName: React.CSSProperties = {
fontSize: 18,
- color: 'var(--blue)',
+ color: BLUE,
display: 'inline-block',
};