Skip to content

🎥 Make videos programmatically with React

Fix `@remotion/design`

Jonny Burgerc9713cf268f1
diff --git a/packages/convert/app/tailwind.css b/packages/convert/app/tailwind.css
index 3999f62846..e8aae1de62 100644
--- a/packages/convert/app/tailwind.css
+++ b/packages/convert/app/tailwind.css
@@ -165,3 +165,7 @@
@apply bg-background text-foreground;
}
}
+
+* {
+ box-sizing: border-box;
+}
diff --git a/packages/design/src/Switch.tsx b/packages/design/src/Switch.tsx
index 7a440e813f..88d5f49fe9 100644
--- a/packages/design/src/Switch.tsx
+++ b/packages/design/src/Switch.tsx
@@ -7,12 +7,12 @@ export const Switch: React.FC<{
return (
<div
data-active={active}
- className="h-[24px] transition-all rounded-full w-[48px] border-2 border-b-4 bg-gray-200 p-[2px] cursor-pointer data-[active=true]:bg-brand border-black relative"
+ className="h-[34px] transition-all rounded-full w-[56px] border-2 border-b-4 bg-gray-200 p-[2px] cursor-pointer data-[active=true]:bg-brand border-black relative"
onClick={onToggle}
>
<div
data-active={active}
- className="h-[16px] w-[16px] box-content left-[4px] top-[4px] transition-all rounded-full bg-white border-2 border-black absolute data-[active=true]:left-[calc(100%-24px)]"
+ className="h-[20px] w-[20px] box-content left-[4px] top-[4px] transition-all rounded-full bg-white border-2 border-black absolute data-[active=true]:left-[calc(100%-24px)]"
/>
</div>
);
diff --git a/packages/promo-pages/src/index.css b/packages/promo-pages/src/index.css
index 1613645fd9..0ad6ecaec0 100644
--- a/packages/promo-pages/src/index.css
+++ b/packages/promo-pages/src/index.css
@@ -76,6 +76,11 @@ html {
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';
}
+
+* {
+ box-sizing: border-box;
+}
+
body {
margin: 0;
}