Skip to content

🎥 Make videos programmatically with React

scope tailwind

Jonny Burgercb9942e3e032
diff --git a/packages/promo-pages/package.json b/packages/promo-pages/package.json
index fc2916fba6..35f7f1fd4e 100644
--- a/packages/promo-pages/package.json
+++ b/packages/promo-pages/package.json
@@ -9,30 +9,31 @@
"lint": "next lint"
},
"dependencies": {
- "react": "19.0.0",
- "react-dom": "19.0.0",
- "next": "15.1.4",
- "create-video": "workspace:*",
- "remotion": "workspace:*",
"@remotion/animated-emoji": "workspace:*",
- "@remotion/player": "workspace:*",
"@remotion/lambda": "workspace:*",
"@remotion/lottie": "workspace:*",
- "hls.js": "^0.14.17",
- "polished": "4.3.1",
"@remotion/paths": "workspace:*",
+ "@remotion/player": "workspace:*",
"@remotion/shapes": "workspace:*",
+ "create-video": "workspace:*",
+ "hls.js": "^0.14.17",
+ "next": "15.1.4",
+ "polished": "4.3.1",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
+ "remotion": "workspace:*",
"zod": "3.22.3"
},
"devDependencies": {
+ "@eslint/eslintrc": "3.1.0",
"@types/hls.js": "^0.13.3",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
- "postcss": "8.4.47",
- "plyr": "^3.7.3",
- "tailwindcss": "3.4.13",
"eslint": "9.14.0",
"eslint-config-next": "15.0.4",
- "@eslint/eslintrc": "3.1.0"
+ "plyr": "^3.7.3",
+ "postcss": "8.4.47",
+ "tailwindcss": "3.4.13",
+ "tailwindcss-scoped-preflight": "3.4.10"
}
}
diff --git a/packages/promo-pages/public/favicon.ico b/packages/promo-pages/public/favicon.ico
deleted file mode 100644
index 76cef1e103..0000000000
Binary files a/packages/promo-pages/public/favicon.ico and /dev/null differ
diff --git a/packages/promo-pages/public/manifest.json b/packages/promo-pages/public/manifest.json
deleted file mode 100644
index be7a6d289c..0000000000
--- a/packages/promo-pages/public/manifest.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "Remotion Convert",
- "id": "com.remotion.convert",
- "short_name": "Remotion Convert",
- "description": "Convert videos using WebCodecs",
- "start_url": "/convert",
- "display": "standalone",
- "background_color": "#ffffff",
- "theme_color": "#0B84F3",
- "icons": [
- {
- "src": "/pwa-icon-192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "/pwa-icon-512.png",
- "sizes": "512x512",
- "type": "image/png"
- },
- {
- "src": "/pwa-icon-512.png",
- "sizes": "512x512",
- "type": "image/png",
- "purpose": "maskable"
- }
- ]
-}
diff --git a/packages/promo-pages/public/pwa-icon-192.png b/packages/promo-pages/public/pwa-icon-192.png
deleted file mode 100644
index 6e273b25c7..0000000000
Binary files a/packages/promo-pages/public/pwa-icon-192.png and /dev/null differ
diff --git a/packages/promo-pages/public/pwa-icon-512.png b/packages/promo-pages/public/pwa-icon-512.png
deleted file mode 100644
index 11a6a15be1..0000000000
Binary files a/packages/promo-pages/public/pwa-icon-512.png and /dev/null differ
diff --git a/packages/promo-pages/src/app/globals.css b/packages/promo-pages/src/app/globals.css
index 6b717ad346..7d51dc6d48 100644
--- a/packages/promo-pages/src/app/globals.css
+++ b/packages/promo-pages/src/app/globals.css
@@ -2,20 +2,40 @@
@tailwind components;
@tailwind utilities;
-:root {
- --background: #ffffff;
- --foreground: #171717;
+body {
+ font-family: Arial, Helvetica, sans-serif;
}
-@media (prefers-color-scheme: dark) {
- :root {
- --background: #0a0a0a;
- --foreground: #ededed;
- }
+@font-face {
+ font-family: 'GTPlanar';
+ src: url('/gt-planar-bold.woff2') format('woff2');
+ font-weight: 700;
+ font-style: normal;
+ font-feature-settings: 'ss03' on;
+}
+@font-face {
+ font-family: 'GTPlanar';
+ src: url('/gt-planar-medium.woff2') format('woff2');
+ font-weight: 500;
+ font-style: normal;
+ font-feature-settings: 'ss03' on;
+}
+@font-face {
+ font-family: 'GTPlanar';
+ src: url('/gt-planar-regular.woff2') format('woff2');
+ font-weight: 400;
+ font-style: normal;
+ font-feature-settings: 'ss03' on;
}
-body {
- color: var(--foreground);
- background: var(--background);
- font-family: Arial, Helvetica, sans-serif;
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ letter-spacing: -0.025em;
+ word-spacing: -0.025em;
+ font-family: 'GTPlanar';
+ font-feature-settings: 'ss03' on;
}
diff --git a/packages/promo-pages/src/app/layout.tsx b/packages/promo-pages/src/app/layout.tsx
index f7fa87eb87..9899fe78da 100644
--- a/packages/promo-pages/src/app/layout.tsx
+++ b/packages/promo-pages/src/app/layout.tsx
@@ -1,34 +1,21 @@
-import type { Metadata } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
-import "./globals.css";
-
-const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
-});
-
-const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
-});
+import type {Metadata} from 'next';
+import './globals.css';
export const metadata: Metadata = {
- title: "Create Next App",
- description: "Generated by create next app",
+ title: 'Create Next App',
+ description: 'Generated by create next app',
};
export default function RootLayout({
- children,
+ children,
}: Readonly<{
- children: React.ReactNode;
+ children: React.ReactNode;
}>) {
- return (
- <html lang="en">
- <body
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
- >
- {children}
- </body>
- </html>
- );
+ return (
+ <html lang="en">
+ <body className={`remotion-tailwind-landing antialiased`}>
+ {children}
+ </body>
+ </html>
+ );
}
diff --git a/packages/promo-pages/tailwind.config.ts b/packages/promo-pages/tailwind.config.ts
index 109807be0f..ae7af4a9db 100644
--- a/packages/promo-pages/tailwind.config.ts
+++ b/packages/promo-pages/tailwind.config.ts
@@ -1,18 +1,30 @@
-import type { Config } from "tailwindcss";
+import type {Config} from 'tailwindcss';
+
+import {
+ isolateInsideOfContainer,
+ scopedPreflightStyles,
+} from 'tailwindcss-scoped-preflight';
export default {
- content: [
- "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
- "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
- "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
- ],
- theme: {
- extend: {
- colors: {
- background: "var(--background)",
- foreground: "var(--foreground)",
- },
- },
- },
- plugins: [],
+ content: [
+ './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
+ './src/components/**/*.{js,ts,jsx,tsx,mdx}',
+ './src/app/**/*.{js,ts,jsx,tsx,mdx}',
+ ],
+ theme: {
+ extend: {
+ colors: {
+ background: 'var(--background)',
+ foreground: 'var(--foreground)',
+ },
+ },
+ },
+ plugins: [
+ scopedPreflightStyles({
+ isolationStrategy: isolateInsideOfContainer(
+ '.remotion-tailwind-landing',
+ {},
+ ),
+ }),
+ ],
} satisfies Config;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 492786dd57..81bb89ee01 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1705,6 +1705,9 @@ importers:
tailwindcss:
specifier: 3.4.13
version: 3.4.13
+ tailwindcss-scoped-preflight:
+ specifier: 3.4.10
packages/renderer:
dependencies:
@@ -28819,6 +28822,16 @@ packages:
tailwindcss: 3.4.13
dev: false
+ resolution: {integrity: sha512-eYG6wGrcaA2nu+iUSUB1kLR+kyq99mYD6PQaFo5Yp287KHm2uN8FBi37k56f8jeblCbDXe1HeeFnLSCSRTko4Q==}
+ peerDependencies:
+ postcss: ^8
+ tailwindcss: ^3
+ dependencies:
+ postcss: 8.4.47
+ tailwindcss: 3.4.13
+ dev: true
+
resolution: {integrity: sha512-KqjHOJKogOUt5Bs752ykCeiwvi0fKVkr5oqsFNt/8px/tA8scFPIlkygsf6jXrfCqGHz7VflA6+yytWuM+XhFw==}
engines: {node: '>=14.0.0'}