Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

feat: add light mode theme support

webadderall3a6ebc8aa5a5
diff --git a/src/App.tsx b/src/App.tsx
index 3ba05874..fa6e9d52 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -54,7 +54,7 @@ export default function App() {
return (
<>
<LaunchWindow />
- <Toaster theme="dark" className="pointer-events-auto" />
+ <Toaster className="pointer-events-auto" />
</>
);
case "source-selector":
@@ -72,8 +72,8 @@ export default function App() {
);
default:
return (
- <div className="flex h-full w-full items-center justify-center bg-slate-950 text-white">
- <div className="flex items-center gap-4 rounded-2xl border border-white/10 bg-white/5 px-6 py-5 shadow-2xl shadow-black/30 backdrop-blur-xl">
+ <div className="flex h-full w-full items-center justify-center bg-editor-bg text-foreground">
+ <div className="flex items-center gap-4 rounded-2xl border border-foreground/10 bg-foreground/5 px-6 py-5 shadow-2xl shadow-black/30 backdrop-blur-xl">
<img
src="/app-icons/recordly-128.png"
alt={t("app.name", "Recordly")}
@@ -83,7 +83,7 @@ export default function App() {
<h1 className="text-xl font-semibold tracking-tight">
{t("app.name", "Recordly")}
</h1>
- <p className="text-sm text-white/65">
+ <p className="text-sm text-foreground/65">
{t("app.subtitle", "Screen recording and editing")}
</p>
</div>
diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx
index 3ac6a39f..a9ee8293 100644
--- a/src/components/ui/accordion.tsx
+++ b/src/components/ui/accordion.tsx
@@ -12,7 +12,7 @@ const AccordionItem = React.forwardRef<
>(({ className, ...props }, ref) => (
<AccordionPrimitive.Item
ref={ref}
- className={cn("border-b border-white/5", className)}
+ className={cn("border-b border-foreground/5", className)}
{...props}
/>
));
@@ -26,13 +26,13 @@ const AccordionTrigger = React.forwardRef<
<AccordionPrimitive.Trigger
ref={ref}
className={cn(
- "flex flex-1 items-center justify-between py-3 text-sm font-medium text-slate-200 transition-all hover:text-white [&[data-state=open]>svg]:rotate-180",
+ "flex flex-1 items-center justify-between py-3 text-sm font-medium text-foreground transition-all hover:text-foreground [&[data-state=open]>svg]:rotate-180",
className,
)}
{...props}
>
{children}
- <ChevronDown className="h-4 w-4 shrink-0 text-slate-400 transition-transform duration-200" />
+ <ChevronDown className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" />
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
));
diff --git a/src/components/ui/item-content.tsx b/src/components/ui/item-content.tsx
index 0b7aa293..8e2aef02 100644
--- a/src/components/ui/item-content.tsx
+++ b/src/components/ui/item-content.tsx
@@ -7,7 +7,7 @@ interface ItemContentProps extends PropsWithChildren {
function ItemContent({ children, classes }: ItemContentProps) {
return (
<div
- className={`bg-white/5 border border-white/10 rounded-md shadow-sm w-full flex flex-row items-center px-3 py-1 gap-2 transition-all duration-150 hover:bg-[#2563EB]/10 hover:shadow-lg ${classes}`}
+ className={`bg-foreground/5 border border-foreground/10 rounded-md shadow-sm w-full flex flex-row items-center px-3 py-1 gap-2 transition-all duration-150 hover:bg-[#2563EB]/10 hover:shadow-lg ${classes}`}
style={{ minHeight: 40 }}
>
{children}
diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsx
index 63933ee3..ecf72005 100644
--- a/src/components/ui/slider.tsx
+++ b/src/components/ui/slider.tsx
@@ -12,7 +12,7 @@ const Slider = React.forwardRef<
className={cn("relative flex w-full touch-none select-none items-center", className)}
{...props}
>
- <SliderPrimitive.Track className="relative h-2.5 w-full grow overflow-hidden rounded-full bg-white/10">
+ <SliderPrimitive.Track className="relative h-2.5 w-full grow overflow-hidden rounded-full bg-foreground/10">
<SliderPrimitive.Range className="absolute h-full bg-[#2563EB]" />
</SliderPrimitive.Track>
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-[#2563EB] bg-[#2563EB] shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#2563EB]/50 disabled:pointer-events-none disabled:opacity-50" />
diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx
index 9afe95db..fe1e3905 100644
--- a/src/components/ui/sonner.tsx
+++ b/src/components/ui/sonner.tsx
@@ -5,7 +5,6 @@ type ToasterProps = React.ComponentProps<typeof Sonner>;
const Toaster = ({ ...props }: ToasterProps) => {
return (
<Sonner
- theme="light"
className="toaster group"
duration={3000}
toastOptions={{
diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx
index fae3ca44..4e9b838d 100644
--- a/src/components/ui/switch.tsx
+++ b/src/components/ui/switch.tsx
@@ -10,7 +10,7 @@ const Switch = React.forwardRef<
<SwitchPrimitives.Root
className={cn(
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
- "data-[state=checked]:bg-[#2563EB] data-[state=unchecked]:bg-[#23232a]",
+ "data-[state=checked]:bg-[#2563EB] data-[state=unchecked]:bg-muted",
className,
)}
{...props}
@@ -19,7 +19,7 @@ const Switch = React.forwardRef<
<SwitchPrimitives.Thumb
className={cn(
"pointer-events-none block h-4 w-4 rounded-full shadow-lg ring-0 transition-transform",
- "bg-[#f5f5f7] dark:bg-[#23232a]",
+ "bg-background",
"data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",
)}
/>
diff --git a/src/components/video-editor/AddCustomFontDialog.tsx b/src/components/video-editor/AddCustomFontDialog.tsx
index 65e901c6..2fe3aac6 100644
--- a/src/components/video-editor/AddCustomFontDialog.tsx
+++ b/src/components/video-editor/AddCustomFontDialog.tsx
@@ -134,23 +134,23 @@ export function AddCustomFontDialog({ onFontAdded }: AddCustomFontDialogProps) {
<Button
variant="outline"
size="sm"
- className="w-full bg-white/5 border-white/10 text-slate-200 hover:bg-white/10 h-9 text-xs"
+ className="w-full bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10 h-9 text-xs"
>
<Plus className="w-3 h-3 mr-1" />
{t("addFont.title")}
</Button>
</DialogTrigger>
- <DialogContent className="bg-[#1a1a1c] border-white/10 text-slate-200">
+ <DialogContent className="bg-editor-surface-alt border-foreground/10 text-foreground">
<DialogHeader>
<DialogTitle>{t("addFont.heading")}</DialogTitle>
- <DialogDescription className="text-slate-400">
+ <DialogDescription className="text-muted-foreground">
{t("addFont.description")}
</DialogDescription>
</DialogHeader>
<div className="space-y-4 mt-4">
<div className="space-y-2">
- <Label htmlFor="import-url" className="text-slate-200">
+ <Label htmlFor="import-url" className="text-foreground">
{t("addFont.urlLabel")}
</Label>
<Input
@@ -158,13 +158,13 @@ export function AddCustomFontDialog({ onFontAdded }: AddCustomFontDialogProps) {
placeholder={t("addFont.urlPlaceholder")}
value={importUrl}
onChange={(e) => handleImportUrlChange(e.target.value)}
- className="bg-white/5 border-white/10 text-slate-200"
+ className="bg-foreground/5 border-foreground/10 text-foreground"
/>
- <p className="text-xs text-slate-400">{t("addFont.urlHelp")}</p>
+ <p className="text-xs text-muted-foreground">{t("addFont.urlHelp")}</p>
</div>
<div className="space-y-2">
- <Label htmlFor="font-name" className="text-slate-200">
+ <Label htmlFor="font-name" className="text-foreground">
{t("addFont.nameLabel")}
</Label>
<Input
@@ -172,16 +172,16 @@ export function AddCustomFontDialog({ onFontAdded }: AddCustomFontDialogProps) {
placeholder={t("addFont.namePlaceholder")}
value={fontName}
onChange={(e) => setFontName(e.target.value)}
- className="bg-white/5 border-white/10 text-slate-200"
+ className="bg-foreground/5 border-foreground/10 text-foreground"
/>
- <p className="text-xs text-slate-400">{t("addFont.nameHelp")}</p>
+ <p className="text-xs text-muted-foreground">{t("addFont.nameHelp")}</p>
</div>
<div className="flex justify-end gap-2 mt-6">
<Button
variant="outline"
onClick={() => handleOpenChange(false)}
- className="bg-white/5 border-white/10 text-slate-200 hover:bg-white/10"
+ className="bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10"
>
{t("addFont.cancel")}
</Button>
diff --git a/src/components/video-editor/AnnotationOverlay.tsx b/src/components/video-editor/AnnotationOverlay.tsx
index 32a8fa9d..4081cd21 100644
--- a/src/components/video-editor/AnnotationOverlay.tsx
+++ b/src/components/video-editor/AnnotationOverlay.tsx
@@ -95,7 +95,7 @@ export function AnnotationOverlay({
);
}
return (
- <div className="w-full h-full flex items-center justify-center text-slate-400 text-sm">
+ <div className="w-full h-full flex items-center justify-center text-muted-foreground text-sm">
No image
</div>
);
@@ -103,7 +103,7 @@ export function AnnotationOverlay({
case "figure":
if (!annotation.figureData) {
return (
- <div className="w-full h-full flex items-center justify-center text-slate-400 text-sm">
+ <div className="w-full h-full flex items-center justify-center text-muted-foreground text-sm">
No arrow data
</div>
);
diff --git a/src/components/video-editor/AnnotationSettingsPanel.tsx b/src/components/video-editor/AnnotationSettingsPanel.tsx
index 33e9859c..a190ba01 100644
--- a/src/components/video-editor/AnnotationSettingsPanel.tsx
+++ b/src/components/video-editor/AnnotationSettingsPanel.tsx
@@ -139,10 +139,10 @@ export function AnnotationSettingsPanel({
};
return (
- <div className="flex-[2] min-w-0 bg-[#161619] border border-white/10 rounded-2xl p-4 flex flex-col shadow-xl h-full overflow-y-auto custom-scrollbar">
+ <div className="flex-[2] min-w-0 bg-editor-panel border border-foreground/10 rounded-2xl p-4 flex flex-col shadow-xl h-full overflow-y-auto custom-scrollbar">
<div className="mb-6">
<div className="flex items-center justify-between mb-4">
- <span className="text-sm font-medium text-slate-200">
+ <span className="text-sm font-medium text-foreground">
{t("annotations.settings")}
</span>
<span className="text-[10px] uppercase tracking-wider font-medium text-[#2563EB] bg-[#2563EB]/10 px-2 py-1 rounded-full">
@@ -156,24 +156,24 @@ export function AnnotationSettingsPanel({
onValueChange={(value) => onTypeChange(value as AnnotationType)}
className="mb-6"
>
- <TabsList className="mb-4 bg-white/5 border border-white/5 p-1 w-full grid grid-cols-4 h-auto rounded-xl">
+ <TabsList className="mb-4 bg-foreground/5 border border-foreground/5 p-1 w-full grid grid-cols-4 h-auto rounded-xl">
<TabsTrigger
value="text"
- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-slate-400 py-2 rounded-lg transition-all gap-2"
+ className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"
>
<Type className="w-4 h-4" />
{t("annotations.text")}
</TabsTrigger>
<TabsTrigger
value="image"
- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-slate-400 py-2 rounded-lg transition-all gap-2"
+ className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"
>
<ImageIcon className="w-4 h-4" />
{t("annotations.image")}
</TabsTrigger>
<TabsTrigger
value="figure"
- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-slate-400 py-2 rounded-lg transition-all gap-2"
+ className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"
>
<svg
className="w-4 h-4"
@@ -192,7 +192,7 @@ export function AnnotationSettingsPanel({
</TabsTrigger>
<TabsTrigger
value="blur"
- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-slate-400 py-2 rounded-lg transition-all gap-2"
+ className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"
>
<SquareDashed className="w-4 h-4" />
{t("annotations.blur")}
@@ -202,7 +202,7 @@ export function AnnotationSettingsPanel({
{/* Text Content */}
<TabsContent value="text" className="mt-0 space-y-4">
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.textContent")}
</label>
<textarea
@@ -210,7 +210,7 @@ export function AnnotationSettingsPanel({
onChange={(e) => onContentChange(e.target.value)}
placeholder={t("annotations.textPlaceholder")}
rows={5}
- className="w-full px-3 py-2 bg-white/5 border border-white/10 rounded-lg text-slate-200 text-sm placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-[#2563EB] focus:border-transparent resize-none"
+ className="w-full px-3 py-2 bg-foreground/5 border border-foreground/10 rounded-lg text-foreground text-sm placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-[#2563EB] focus:border-transparent resize-none"
/>
</div>
@@ -219,7 +219,7 @@ export function AnnotationSettingsPanel({
{/* Font Family & Size */}
<div className="grid grid-cols-2 gap-2">
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.fontStyle")}
</label>
<Select
@@ -228,12 +228,12 @@ export function AnnotationSettingsPanel({
onStyleChange({ fontFamily: value })
}
>
- <SelectTrigger className="w-full bg-white/5 border-white/10 text-slate-200 h-9 text-xs">
+ <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground h-9 text-xs">
<SelectValue
placeholder={t("annotations.selectStyle")}
/>
</SelectTrigger>
- <SelectContent className="bg-[#1a1a1c] border-white/10 text-slate-200 max-h-[300px]">
+ <SelectContent className="bg-editor-surface-alt border-foreground/10 text-foreground max-h-[300px]">
{fontFamilies.map((font) => (
<SelectItem
key={font.value}
@@ -245,7 +245,7 @@ export function AnnotationSettingsPanel({
))}
{customFonts.length > 0 && (
<>
- <div className="px-2 py-1.5 text-[10px] font-medium text-slate-400 uppercase tracking-wider">
+ <div className="px-2 py-1.5 text-[10px] font-medium text-muted-foreground uppercase tracking-wider">
Custom Fonts
</div>
{customFonts.map((font) => (
@@ -263,7 +263,7 @@ export function AnnotationSettingsPanel({
</Select>
</div>
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.size")}
</label>
<Select
@@ -272,10 +272,10 @@ export function AnnotationSettingsPanel({
onStyleChange({ fontSize: parseInt(value) })
}
>
- <SelectTrigger className="w-full bg-white/5 border-white/10 text-slate-200 h-9 text-xs">
+ <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground h-9 text-xs">
<SelectValue placeholder={t("annotations.size")} />
</SelectTrigger>
- <SelectContent className="bg-[#1a1a1c] border-white/10 text-slate-200 max-h-[200px]">
+ <SelectContent className="bg-editor-surface-alt border-foreground/10 text-foreground max-h-[200px]">
{FONT_SIZES.map((size) => (
<SelectItem key={size} value={size.toString()}>
{size}px
@@ -300,7 +300,7 @@ export function AnnotationSettingsPanel({
<div className="flex items-center justify-between gap-2">
<ToggleGroup
type="multiple"
- className="justify-start bg-white/5 p-1 rounded-lg border border-white/5"
+ className="justify-start bg-foreground/5 p-1 rounded-lg border border-foreground/5"
>
<ToggleGroupItem
value="bold"
@@ -316,7 +316,7 @@ export function AnnotationSettingsPanel({
: "bold",
})
}
- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-slate-400 hover:bg-white/5 hover:text-slate-200"
+ className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
>
<Bold className="h-4 w-4" />
</ToggleGroupItem>
@@ -334,7 +334,7 @@ export function AnnotationSettingsPanel({
: "italic",
})
}
- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-slate-400 hover:bg-white/5 hover:text-slate-200"
+ className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
>
<Italic className="h-4 w-4" />
</ToggleGroupItem>
@@ -354,7 +354,7 @@ export function AnnotationSettingsPanel({
: "underline",
})
}
- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-slate-400 hover:bg-white/5 hover:text-slate-200"
+ className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
>
<Underline className="h-4 w-4" />
</ToggleGroupItem>
@@ -363,13 +363,13 @@ export function AnnotationSettingsPanel({
<ToggleGroup
type="single"
value={annotation.style.textAlign}
- className="justify-start bg-white/5 p-1 rounded-lg border border-white/5"
+ className="justify-start bg-foreground/5 p-1 rounded-lg border border-foreground/5"
>
<ToggleGroupItem
value="left"
aria-label={t("annotations.alignLeft")}
onClick={() => onStyleChange({ textAlign: "left" })}
- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-slate-400 hover:bg-white/5 hover:text-slate-200"
+ className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
>
<AlignLeft className="h-4 w-4" />
</ToggleGroupItem>
@@ -377,7 +377,7 @@ export function AnnotationSettingsPanel({
value="center"
aria-label={t("annotations.alignCenter")}
onClick={() => onStyleChange({ textAlign: "center" })}
- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-slate-400 hover:bg-white/5 hover:text-slate-200"
+ className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
>
<AlignCenter className="h-4 w-4" />
</ToggleGroupItem>
@@ -385,7 +385,7 @@ export function AnnotationSettingsPanel({
value="right"
aria-label={t("annotations.alignRight")}
onClick={() => onStyleChange({ textAlign: "right" })}
- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-slate-400 hover:bg-white/5 hover:text-slate-200"
+ className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"
>
<AlignRight className="h-4 w-4" />
</ToggleGroupItem>
@@ -395,28 +395,28 @@ export function AnnotationSettingsPanel({
{/* Colors */}
<div className="grid grid-cols-2 gap-4">
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.textColor")}
</label>
<Popover>
<PopoverTrigger asChild>
<Button
variant="outline"
- className="w-full h-9 justify-start gap-2 bg-white/5 border-white/10 hover:bg-white/10 px-2"
+ className="w-full h-9 justify-start gap-2 bg-foreground/5 border-foreground/10 hover:bg-foreground/10 px-2"
>
<div
- className="w-4 h-4 rounded-full border border-white/20"
+ className="w-4 h-4 rounded-full border border-foreground/20"
style={{
backgroundColor: annotation.style.color,
}}
/>
- <span className="text-xs text-slate-300 truncate flex-1 text-left">
+ <span className="text-xs text-muted-foreground truncate flex-1 text-left">
{annotation.style.color}
</span>
<ChevronDown className="h-3 w-3 opacity-50" />
</Button>
</PopoverTrigger>
- <PopoverContent className="w-[260px] p-3 bg-[#1a1a1c] border border-white/10 rounded-xl shadow-xl">
+ <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">
<Block
color={annotation.style.color}
colors={colorPalette}
@@ -431,16 +431,16 @@ export function AnnotationSettingsPanel({
</Popover>
</div>
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.background")}
</label>
<Popover>
<PopoverTrigger asChild>
<Button
variant="outline"
- className="w-full h-9 justify-start gap-2 bg-white/5 border-white/10 hover:bg-white/10 px-2"
+ className="w-full h-9 justify-start gap-2 bg-foreground/5 border-foreground/10 hover:bg-foreground/10 px-2"
>
- <div className="w-4 h-4 rounded-full border border-white/20 relative overflow-hidden">
+ <div className="w-4 h-4 rounded-full border border-foreground/20 relative overflow-hidden">
<div className="absolute inset-0 checkerboard-bg opacity-50" />
<div
className="absolute inset-0"
@@ -450,7 +450,7 @@ export function AnnotationSettingsPanel({
}}
/>
</div>
- <span className="text-xs text-slate-300 truncate flex-1 text-left">
+ <span className="text-xs text-muted-foreground truncate flex-1 text-left">
{annotation.style.backgroundColor ===
"transparent"
? t("annotations.none")
@@ -459,7 +459,7 @@ export function AnnotationSettingsPanel({
<ChevronDown className="h-3 w-3 opacity-50" />
</Button>
</PopoverTrigger>
- <PopoverContent className="w-[260px] p-3 bg-[#1a1a1c] border border-white/10 rounded-xl shadow-xl">
+ <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">
<Block
color={
annotation.style.backgroundColor ===
@@ -478,7 +478,7 @@ export function AnnotationSettingsPanel({
<Button
variant="ghost"
size="sm"
- className="w-full mt-2 text-xs h-7 hover:bg-white/5 text-slate-400"
+ className="w-full mt-2 text-xs h-7 hover:bg-foreground/5 text-muted-foreground"
onClick={() => {
onStyleChange({
backgroundColor: "transparent",
@@ -506,14 +506,14 @@ export function AnnotationSettingsPanel({
<Button
onClick={() => fileInputRef.current?.click()}
variant="outline"
- className="w-full gap-2 bg-white/5 text-slate-200 border-white/10 hover:bg-[#2563EB] hover:text-white hover:border-[#2563EB] transition-all py-8"
+ className="w-full gap-2 bg-foreground/5 text-foreground border-foreground/10 hover:bg-[#2563EB] hover:text-foreground hover:border-[#2563EB] transition-all py-8"
>
<Upload className="w-5 h-5" />
{t("annotations.uploadImage")}
</Button>
{annotation.content && annotation.content.startsWith("data:image") && (
- <div className="rounded-lg border border-white/10 overflow-hidden bg-white/5 p-2">
+ <div className="rounded-lg border border-foreground/10 overflow-hidden bg-foreground/5 p-2">
<img
src={annotation.content}
alt="Uploaded annotation"
@@ -522,14 +522,14 @@ export function AnnotationSettingsPanel({
</div>
)}
- <p className="text-xs text-slate-500 text-center leading-relaxed">
+ <p className="text-xs text-muted-foreground/70 text-center leading-relaxed">
{t("annotations.supportedFormats")}
</p>
</TabsContent>
<TabsContent value="figure" className="mt-0 space-y-4">
<div>
- <label className="text-xs font-medium text-slate-200 mb-3 block">
+ <label className="text-xs font-medium text-foreground mb-3 block">
{t("annotations.arrowDirection")}
</label>
<div className="grid grid-cols-4 gap-2">
@@ -565,7 +565,7 @@ export function AnnotationSettingsPanel({
"h-16 rounded-lg border flex items-center justify-center transition-all p-2",
annotation.figureData?.arrowDirection === direction
? "bg-[#2563EB] border-[#2563EB]"
- : "bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/20",
+ : "bg-foreground/5 border-foreground/10 hover:bg-foreground/10 hover:border-foreground/20",
)}
>
<ArrowComponent
@@ -584,7 +584,7 @@ export function AnnotationSettingsPanel({
</div>
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.strokeWidth", undefined, {
width: annotation.figureData?.strokeWidth || 4,
})}
@@ -606,29 +606,29 @@ export function AnnotationSettingsPanel({
</div>
<div>
- <label className="text-xs font-medium text-slate-200 mb-2 block">
+ <label className="text-xs font-medium text-foreground mb-2 block">
{t("annotations.arrowColor")}
</label>
<Popover>
<PopoverTrigger asChild>
<Button
variant="outline"
- className="w-full h-10 justify-start gap-2 bg-white/5 border-white/10 hover:bg-white/10"
+ className="w-full h-10 justify-start gap-2 bg-foreground/5 border-foreground/10 hover:bg-foreground/10"
>
<div
- className="w-5 h-5 rounded-full border border-white/20"
+ className="w-5 h-5 rounded-full border border-foreground/20"
style={{
backgroundColor:
annotation.figureData?.color || "#2563EB",
}}
/>
- <span className="text-xs text-slate-300 truncate flex-1 text-left">
+ <span className="text-xs text-muted-foreground truncate flex-1 text-left">
{annotation.figureData?.color || "#2563EB"}
</span>
<ChevronDown className="h-3 w-3 opacity-50" />
</Button>
</PopoverTrigger>
- <PopoverContent className="w-[260px] p-3 bg-[#1a1a1c] border border-white/10 rounded-xl shadow-xl">
+ <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">
<Block
color={annotation.figureData?.color || "#2563EB"}
colors={colorPalette}
@@ -649,10 +649,10 @@ export function AnnotationSettingsPanel({
</TabsContent>
<TabsContent value="blur" className="mt-0 space-y-4">
- <div className="p-4 bg-white/5 rounded-xl border border-white/10 flex flex-col items-center">
+ <div className="p-4 bg-foreground/5 rounded-xl border border-foreground/10 flex flex-col items-center">
<div className="w-full space-y-3">
<div className="flex items-center justify-between">
- <span className="text-xs font-medium text-slate-200">
+ <span className="text-xs font-medium text-foreground">
{t("annotations.blurStrength", undefined, {
strength: annotation.blurIntensity ?? 20,
})}
@@ -670,7 +670,7 @@ export function AnnotationSettingsPanel({
<div className="w-full space-y-3 mt-4">
<div className="flex items-center justify-between">
- <span className="text-xs font-medium text-slate-200">
+ <span className="text-xs font-medium text-foreground">
{t("annotations.solidColor", "Solid Color (Censorship)")}
</span>
</div>
@@ -682,11 +682,11 @@ export function AnnotationSettingsPanel({
!annotation.blurColor ||
annotation.blurColor === "transparent"
? "border-[#2563EB] scale-110"
- : "border-transparent hover:border-white/20",
+ : "border-transparent hover:border-foreground/20",
)}
title={t("annotations.none", "None")}
>
- <div className="w-5 h-5 rounded-full bg-slate-800 flex items-center justify-center overflow-hidden relative">
+ <div className="w-5 h-5 rounded-full bg-editor-bg flex items-center justify-center overflow-hidden relative">
<div className="absolute w-full h-0.5 bg-red-500 rotate-45" />
</div>
</button>
@@ -696,7 +696,7 @@ export function AnnotationSettingsPanel({
"w-8 h-8 rounded-full border-2 transition-all bg-black",
annotation.blurColor === "#000000"
? "border-[#2563EB] scale-110"
- : "border-transparent hover:border-white/20",
+ : "border-transparent hover:border-foreground/20",
)}
title="Black"
/>
@@ -706,7 +706,7 @@ export function AnnotationSettingsPanel({
"w-8 h-8 rounded-full border-2 transition-all bg-white",
annotation.blurColor === "#FFFFFF"
? "border-[#2563EB] scale-110"
- : "border-transparent hover:border-white/20",
+ : "border-transparent hover:border-foreground/20",
)}
title="White"
/>
@@ -724,7 +724,7 @@ export function AnnotationSettingsPanel({
"",
].includes(annotation.blurColor)
? "border-[#2563EB] scale-110"
- : "border-transparent hover:border-white/20",
+ : "border-transparent hover:border-foreground/20",
)}
style={{
backgroundColor:
@@ -747,13 +747,13 @@ export function AnnotationSettingsPanel({
"transparent",
"",
].includes(annotation.blurColor)) && (
- <div className="w-full h-full flex items-center justify-center bg-white/5">
+ <div className="w-full h-full flex items-center justify-center bg-foreground/5">
<div className="w-full h-full bg-gradient-to-tr from-red-500 via-green-500 to-blue-500 opacity-50" />
</div>
)}
</button>
</PopoverTrigger>
- <PopoverContent className="w-[260px] p-3 bg-[#1a1a1c] border border-white/10 rounded-xl shadow-xl">
+ <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">
<Block
color={annotation.blurColor || "#2563EB"}
colors={colorPalette}
@@ -782,14 +782,14 @@ export function AnnotationSettingsPanel({
{t("annotations.deleteAnnotation")}
</Button>
- <div className="mt-6 p-3 bg-white/5 rounded-lg border border-white/5">
- <div className="flex items-center gap-2 mb-2 text-slate-300">
+ <div className="mt-6 p-3 bg-foreground/5 rounded-lg border border-foreground/5">
+ <div className="flex items-center gap-2 mb-2 text-muted-foreground">
<Info className="w-3.5 h-3.5" />
<span className="text-xs font-medium">
{t("annotations.shortcutsAndTips")}
</span>
</div>
- <ul className="text-[10px] text-slate-400 space-y-1.5 list-disc pl-3 leading-relaxed">
+ <ul className="text-[10px] text-muted-foreground space-y-1.5 list-disc pl-3 leading-relaxed">
<li>{t("annotations.tipSelectAnnotation")}</li>
<li>{t("annotations.tipCycleForward")}</li>
<li>{t("annotations.tipCycleBackward")}</li>
diff --git a/src/components/video-editor/ExportSettingsMenu.tsx b/src/components/video-editor/ExportSettingsMenu.tsx
index 82e483a2..ae82de1c 100644
--- a/src/components/video-editor/ExportSettingsMenu.tsx
+++ b/src/components/video-editor/ExportSettingsMenu.tsx
@@ -66,12 +66,12 @@ export function ExportSettingsMenu({
return (
<div
className={cn(
- "w-full rounded-2xl border border-white/10 bg-[#17171a] p-3 text-slate-200",
+ "w-full rounded-2xl border border-foreground/10 bg-editor-surface p-3 text-foreground",
className,
)}
>
<div className="mb-2 flex items-center justify-between">
- <span className="text-[11px] font-semibold uppercase tracking-[0.18em] text-slate-400">
+ <span className="text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">
{tSettings("export.title", "Export")}
</span>
</div>
@@ -96,7 +96,7 @@ export function ExportSettingsMenu({
"relative flex-1 overflow-hidden rounded-xl border py-2 text-xs font-medium transition-colors",
isActive
? "border-[#2563EB]/50 text-white"
- : "border-white/10 bg-white/5 text-slate-400 hover:bg-white/10 hover:text-slate-200",
+ : "border-foreground/10 bg-foreground/5 text-muted-foreground hover:bg-foreground/10 hover:text-foreground",
)}
>
{isActive ? (
@@ -118,7 +118,7 @@ export function ExportSettingsMenu({
{exportFormat === "mp4" ? (
<LayoutGroup id="header-export-quality-toggle">
- <div className="mb-3 grid min-h-12 w-full grid-cols-4 rounded-xl border border-white/5 bg-white/5 p-0.5">
+ <div className="mb-3 grid min-h-12 w-full grid-cols-4 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">
{(
[
{ value: "medium", label: tSettings("export.quality.low") },
@@ -139,7 +139,7 @@ export function ExportSettingsMenu({
{isActive ? (
<motion.span
layoutId="header-export-quality-pill"
- className="absolute inset-0 rounded-lg bg-white"
+ className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"
transition={{
type: "spring",
stiffness: 420,
@@ -151,17 +151,17 @@ export function ExportSettingsMenu({
<span
className={cn(
isActive
- ? "text-black"
- : "text-slate-400 hover:text-slate-200",
- )}
- >
- {option.label}
- </span>
- {mp4OutputDimensions ? (
- <span
- className={cn(
- "mt-0.5 text-[9px]",
- isActive ? "text-black/75" : "text-slate-500",
+ ? "text-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
+ )}
+ >
+ {option.label}
+ </span>
+ {mp4OutputDimensions ? (
+ <span
+ className={cn(
+ "mt-0.5 text-[9px]",
+ isActive ? "text-white/75 dark:text-black/75" : "text-muted-foreground/70",
)}
>
{mp4OutputDimensions[option.value].width} x{" "}
@@ -174,11 +174,11 @@ export function ExportSettingsMenu({
})}
</div>
<div className="mb-1 flex items-center justify-between px-1">
- <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-slate-500">
+ <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground/70">
{tSettings("export.encodingTitle", "Encoding")}
</span>
</div>
- <div className="mb-3 grid min-h-10 w-full grid-cols-3 rounded-xl border border-white/5 bg-white/5 p-0.5">
+ <div className="mb-3 grid min-h-10 w-full grid-cols-3 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">
{(
[
{ value: "fast", label: tSettings("export.encoding.fast", "Fast") },
@@ -204,7 +204,7 @@ export function ExportSettingsMenu({
{isActive ? (
<motion.span
layoutId="header-export-encoding-pill"
- className="absolute inset-0 rounded-lg bg-white"
+ className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"
transition={{
type: "spring",
stiffness: 420,
@@ -216,8 +216,8 @@ export function ExportSettingsMenu({
className={cn(
"relative z-10",
isActive
- ? "text-black"
- : "text-slate-400 hover:text-slate-200",
+ ? "text-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{option.label}
@@ -227,11 +227,11 @@ export function ExportSettingsMenu({
})}
</div>
<div className="mb-1 flex items-center justify-between px-1">
- <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-slate-500">
+ <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground/70">
{tSettings("export.fpsTitle", "FPS")}
</span>
</div>
- <div className="mb-3 grid min-h-10 w-full grid-cols-3 rounded-xl border border-white/5 bg-white/5 p-0.5">
+ <div className="mb-3 grid min-h-10 w-full grid-cols-3 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">
{MP4_FRAME_RATES.map((rate) => {
const isActive = mp4FrameRate === rate;
return (
@@ -245,7 +245,7 @@ export function ExportSettingsMenu({
{isActive ? (
<motion.span
layoutId="header-export-fps-pill"
- className="absolute inset-0 rounded-lg bg-white"
+ className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"
transition={{
type: "spring",
stiffness: 420,
@@ -257,8 +257,8 @@ export function ExportSettingsMenu({
className={cn(
"relative z-10",
isActive
- ? "text-black"
- : "text-slate-400 hover:text-slate-200",
+ ? "text-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{rate}
@@ -268,11 +268,11 @@ export function ExportSettingsMenu({
})}
</div>
<div className="mb-1 flex items-center justify-between px-1">
- <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-slate-500">
+ <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground/70">
{tSettings("export.pipelineTitle", "Pipeline")}
</span>
</div>
- <div className="mb-3 grid min-h-10 w-full grid-cols-2 rounded-xl border border-white/5 bg-white/5 p-0.5">
+ <div className="mb-3 grid min-h-10 w-full grid-cols-2 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">
{(
[
{
@@ -297,7 +297,7 @@ export function ExportSettingsMenu({
{isActive ? (
<motion.span
layoutId="header-export-pipeline-pill"
- className="absolute inset-0 rounded-lg bg-white"
+ className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"
transition={{
type: "spring",
stiffness: 420,
@@ -309,8 +309,8 @@ export function ExportSettingsMenu({
className={cn(
"relative z-10",
isActive
- ? "text-black"
- : "text-slate-400 hover:text-slate-200",
+ ? "text-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{option.label}
@@ -319,7 +319,7 @@ export function ExportSettingsMenu({
);
})}
</div>
- <p className="mb-3 px-1 text-[10px] text-slate-500">
+ <p className="mb-3 px-1 text-[10px] text-muted-foreground/70">
{isLegacyModel
? tSettings(
"export.pipeline.legacyHint",
@@ -335,7 +335,7 @@ export function ExportSettingsMenu({
<div className="mb-3 space-y-2">
<div className="flex items-center gap-2">
<LayoutGroup id="header-gif-frame-rate-toggle">
- <div className="grid h-8 flex-1 grid-cols-4 rounded-xl border border-white/5 bg-white/5 p-0.5">
+ <div className="grid h-8 flex-1 grid-cols-4 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">
{GIF_FRAME_RATES.map((rate) => {
const isActive = gifFrameRate === rate.value;
return (
@@ -349,7 +349,7 @@ export function ExportSettingsMenu({
{isActive ? (
<motion.span
layoutId="header-gif-frame-rate-pill"
- className="absolute inset-0 rounded-lg bg-white"
+ className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"
transition={{
type: "spring",
stiffness: 420,
@@ -361,8 +361,8 @@ export function ExportSettingsMenu({
className={cn(
"relative z-10",
isActive
- ? "text-black"
- : "text-slate-400 hover:text-slate-200",
+ ? "text-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{rate.value}
@@ -373,7 +373,7 @@ export function ExportSettingsMenu({
</div>
</LayoutGroup>
<LayoutGroup id="header-gif-size-toggle">
- <div className="grid h-8 flex-1 grid-cols-3 rounded-xl border border-white/5 bg-white/5 p-0.5">
+ <div className="grid h-8 flex-1 grid-cols-3 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">
{Object.entries(GIF_SIZE_PRESETS).map(([key]) => {
const isActive = gifSizePreset === key;
return (
@@ -389,7 +389,7 @@ export function ExportSettingsMenu({
{isActive ? (
<motion.span
layoutId="header-gif-size-pill"
- className="absolute inset-0 rounded-lg bg-white"
+ className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"
transition={{
type: "spring",
stiffness: 420,
@@ -401,8 +401,8 @@ export function ExportSettingsMenu({
className={cn(
"relative z-10",
isActive
- ? "text-black"
- : "text-slate-400 hover:text-slate-200",
+ ? "text-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{key === "original"
@@ -427,11 +427,11 @@ export function ExportSettingsMenu({
</LayoutGroup>
</div>
<div className="flex items-center justify-between px-1">
- <span className="text-[10px] text-slate-500">
+ <span className="text-[10px] text-muted-foreground/70">
{gifOutputDimensions.width} × {gifOutputDimensions.height}px
</span>
<div className="flex items-center gap-2">
- <span className="text-[10px] text-slate-400">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("export.loop")}
</span>
<Switch
diff --git a/src/components/video-editor/ExtensionManager.tsx b/src/components/video-editor/ExtensionManager.tsx
index eee87489..6038bb5e 100644
--- a/src/components/video-editor/ExtensionManager.tsx
+++ b/src/components/video-editor/ExtensionManager.tsx
@@ -88,34 +88,34 @@ function InstalledExtensionCard({
? "border-red-500/30 bg-red-500/5"
: isActive
? "border-[#2563EB]/20 bg-[#2563EB]/5"
- : "border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04]",
+ : "border-foreground/[0.06] bg-white/[0.02] hover:bg-foreground/[0.04]",
)}
onClick={onClick}
>
- <div className="flex-shrink-0 w-8 h-8 rounded-lg bg-white/5 border border-white/10 flex items-center justify-center overflow-hidden">
+ <div className="flex-shrink-0 w-8 h-8 rounded-lg bg-foreground/5 border border-foreground/10 flex items-center justify-center overflow-hidden">
<ExtensionIcon
icon={extension.manifest.icon}
extensionPath={extension.path}
- className="w-3.5 h-3.5 text-slate-400"
+ className="w-3.5 h-3.5 text-muted-foreground"
imageClassName="w-8 h-8 rounded-lg"
/>
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-1.5">
- <span className="text-[13px] font-medium text-slate-200 truncate">
+ <span className="text-[13px] font-medium text-foreground truncate">
{extension.manifest.name}
</span>
</div>
{extension.manifest.author && (
- <p className="text-[10px] text-slate-500 mt-0.5">
+ <p className="text-[10px] text-muted-foreground/70 mt-0.5">
{homepageUrl ? (
<a
href={homepageUrl}
target="_blank"
rel="noopener noreferrer"
- className="hover:text-slate-300 transition-colors"
+ className="hover:text-muted-foreground transition-colors"
onClick={(e) => e.stopPropagation()}
>
{t("detail.by", undefined, { author: extension.manifest.author })}
@@ -126,7 +126,7 @@ function InstalledExtensionCard({
</p>
)}
- <p className="text-[11px] text-slate-500 mt-0.5 line-clamp-3">
+ <p className="text-[11px] text-muted-foreground/70 mt-0.5 line-clamp-3">
{extension.manifest.description || t("detail.noDescription")}
</p>
@@ -141,7 +141,7 @@ function InstalledExtensionCard({
{extension.manifest.permissions.map((perm) => (
<span
key={perm}
- className="text-[8px] px-1 py-[1px] rounded bg-white/5 text-slate-600 font-mono"
+ className="text-[8px] px-1 py-[1px] rounded bg-foreground/5 text-muted-foreground font-mono"
>
{perm}
</span>
@@ -155,7 +155,7 @@ function InstalledExtensionCard({
<Button
variant="ghost"
size="icon"
- className="h-6 w-6 text-slate-600 hover:text-red-400 hover:bg-red-500/10"
+ className="h-6 w-6 text-muted-foreground hover:text-red-400 hover:bg-red-500/10"
onClick={(e) => {
e.stopPropagation();
onUninstall();
@@ -192,10 +192,10 @@ function MarketplaceCard({
const homepageUrl = toSafeHttpUrl(extension.homepage);
return (
<div
- className="flex items-start gap-3 p-3 rounded-xl border border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.04] transition-colors cursor-pointer"
+ className="flex items-start gap-3 p-3 rounded-xl border border-foreground/[0.06] bg-white/[0.02] hover:bg-foreground/[0.04] transition-colors cursor-pointer"
onClick={onClick}
>
- <div className="flex-shrink-0 w-8 h-8 rounded-lg bg-gradient-to-br from-white/10 to-white/5 border border-white/10 flex items-center justify-center overflow-hidden">
+ <div className="flex-shrink-0 w-8 h-8 rounded-lg bg-gradient-to-br from-white/10 to-white/5 border border-foreground/10 flex items-center justify-center overflow-hidden">
{extension.iconUrl ? (
<img
src={extension.iconUrl}
@@ -203,24 +203,24 @@ function MarketplaceCard({
className="w-8 h-8 rounded-lg object-cover"
/>
) : (
- <ExtensionIcon icon={undefined} className="w-3.5 h-3.5 text-slate-400" />
+ <ExtensionIcon icon={undefined} className="w-3.5 h-3.5 text-muted-foreground" />
)}
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-1.5">
- <span className="text-[13px] font-medium text-slate-200 truncate">
+ <span className="text-[13px] font-medium text-foreground truncate">
{extension.name}
</span>
</div>
- <p className="text-[10px] text-slate-500 mt-0.5">
+ <p className="text-[10px] text-muted-foreground/70 mt-0.5">
{homepageUrl ? (
<a
href={homepageUrl}
target="_blank"
rel="noopener noreferrer"
- className="hover:text-slate-300 transition-colors"
+ className="hover:text-muted-foreground transition-colors"
onClick={(e) => e.stopPropagation()}
>
{t("detail.by", undefined, { author: extension.author })}
@@ -230,12 +230,12 @@ function MarketplaceCard({
)}
</p>
- <p className="text-[11px] text-slate-500 mt-0.5 line-clamp-3">
+ <p className="text-[11px] text-muted-foreground/70 mt-0.5 line-clamp-3">
{extension.description}
</p>
<div className="flex items-center gap-3 mt-1.5">
- <span className="flex items-center gap-0.5 text-[10px] text-slate-600">
+ <span className="flex items-center gap-0.5 text-[10px] text-muted-foreground">
<Download className="w-2.5 h-2.5" />
{extension.downloads.toLocaleString()}
</span>
@@ -297,10 +297,10 @@ function ScreenshotGallery({ screenshots }: { screenshots: string[] }) {
return (
<div>
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-500 mb-1.5">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/70 mb-1.5">
{t("detail.preview")}
</p>
- <div className="relative group rounded-lg overflow-hidden bg-black/20 border border-white/[0.06]">
+ <div className="relative group rounded-lg overflow-hidden bg-black/20 border border-foreground/[0.06]">
<img
src={screenshots[index]}
alt={t("detail.screenshotAlt", undefined, { number: String(index + 1) })}
@@ -310,14 +310,14 @@ function ScreenshotGallery({ screenshots }: { screenshots: string[] }) {
<>
<button
type="button"
- className="absolute left-1 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-black/60 text-white/80 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-black/80"
+ className="absolute left-1 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-editor-bg/80 text-foreground/80 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-editor-bg/80"
onClick={() => setIndex((i) => (i - 1 + count) % count)}
>
<ChevronLeft className="w-3.5 h-3.5" />
</button>
<button
type="button"
- className="absolute right-1 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-black/60 text-white/80 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-black/80"
+ className="absolute right-1 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-editor-bg/80 text-foreground/80 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-editor-bg/80"
onClick={() => setIndex((i) => (i + 1) % count)}
>
<ChevronRight className="w-3.5 h-3.5" />
@@ -329,7 +329,7 @@ function ScreenshotGallery({ screenshots }: { screenshots: string[] }) {
key={i}
className={cn(
"w-1.5 h-1.5 rounded-full transition-colors",
- i === index ? "bg-white" : "bg-white/30 hover:bg-white/50",
+ i === index ? "bg-white" : "bg-white/30 hover:bg-foreground/50",
)}
onClick={() => setIndex(i)}
/>
@@ -383,11 +383,11 @@ function ExtensionDetailModal({
if (!open) onClose();
}}
>
- <DialogContent className="max-w-md bg-[#161619] border-white/10 text-slate-200 p-0 gap-0 overflow-hidden">
+ <DialogContent className="max-w-md bg-editor-panel border-foreground/10 text-foreground p-0 gap-0 overflow-hidden">
{/* Header */}
<div className="p-5 pb-4">
<div className="flex items-start gap-3.5">
- <div className="flex-shrink-0 w-12 h-12 rounded-xl bg-gradient-to-br from-[#2563EB]/20 to-[#2563EB]/5 border border-white/10 flex items-center justify-center">
+ <div className="flex-shrink-0 w-12 h-12 rounded-xl bg-gradient-to-br from-[#2563EB]/20 to-[#2563EB]/5 border border-foreground/10 flex items-center justify-center">
{detail.source === "marketplace" && detail.ext.iconUrl ? (
<img
src={detail.ext.iconUrl}
@@ -404,18 +404,18 @@ function ExtensionDetailModal({
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-1.5">
- <h2 className="text-[15px] font-semibold text-white truncate">
+ <h2 className="text-[15px] font-semibold text-foreground truncate">
{name}
</h2>
</div>
- <p className="text-[11px] text-slate-500 mt-0.5">
+ <p className="text-[11px] text-muted-foreground/70 mt-0.5">
{author ? (
homepageUrl ? (
<a
href={homepageUrl}
target="_blank"
rel="noopener noreferrer"
- className="hover:text-slate-300 transition-colors inline-flex items-center gap-1"
+ className="hover:text-muted-foreground transition-colors inline-flex items-center gap-1"
>
{t("detail.by", undefined, { author })}
<ExternalLink className="w-2.5 h-2.5" />
@@ -433,7 +433,7 @@ function ExtensionDetailModal({
{/* Stats for marketplace extensions */}
{detail.source === "marketplace" && (
<div className="flex items-center gap-3 mt-3">
- <span className="flex items-center gap-1 text-[11px] text-slate-500">
+ <span className="flex items-center gap-1 text-[11px] text-muted-foreground/70">
<Download className="w-3 h-3" />
{t("detail.downloads", undefined, {
count: detail.ext.downloads.toLocaleString(),
@@ -450,10 +450,10 @@ function ExtensionDetailModal({
{/* Description */}
<div>
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-500 mb-1.5">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/70 mb-1.5">
{t("detail.description")}
</p>
- <p className="text-[12px] text-slate-400 leading-relaxed whitespace-pre-wrap">
+ <p className="text-[12px] text-muted-foreground leading-relaxed whitespace-pre-wrap">
{description}
</p>
</div>
@@ -461,7 +461,7 @@ function ExtensionDetailModal({
{/* Tags */}
{detail.source === "marketplace" && detail.ext.tags.length > 0 && (
<div>
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-500 mb-1.5">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/70 mb-1.5">
{t("detail.tags")}
</p>
<div className="flex flex-wrap gap-1.5">
@@ -481,14 +481,14 @@ function ExtensionDetailModal({
{/* Permissions */}
{permissions.length > 0 && (
<div>
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-500 mb-1.5">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/70 mb-1.5">
{t("detail.permissions")}
</p>
<div className="flex flex-wrap gap-1.5">
{permissions.map((perm) => (
<span
key={perm}
- className="text-[10px] px-2 py-0.5 rounded bg-white/5 text-slate-400 font-mono"
+ className="text-[10px] px-2 py-0.5 rounded bg-foreground/5 text-muted-foreground font-mono"
>
{perm}
</span>
@@ -500,10 +500,10 @@ function ExtensionDetailModal({
{/* Path (installed extensions) */}
{isInstalled && (
<div>
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-500 mb-1.5">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/70 mb-1.5">
{t("detail.location")}
</p>
- <p className="text-[10px] text-slate-500 font-mono break-all">
+ <p className="text-[10px] text-muted-foreground/70 font-mono break-all">
{detail.ext.path}
</p>
</div>
@@ -518,7 +518,7 @@ function ExtensionDetailModal({
</div>
{/* Footer actions */}
- <div className="flex items-center gap-2 px-5 py-3 border-t border-white/[0.06] bg-white/[0.02]">
+ <div className="flex items-center gap-2 px-5 py-3 border-t border-foreground/[0.06] bg-white/[0.02]">
{isInstalled && onToggle && (
<div className="flex items-center gap-2">
<Switch
@@ -526,7 +526,7 @@ function ExtensionDetailModal({
onCheckedChange={onToggle}
disabled={isError}
/>
- <span className="text-[11px] text-slate-400">
+ <span className="text-[11px] text-muted-foreground">
{detail.isActive ? t("status.enabled") : t("status.disabled")}
</span>
</div>
@@ -556,7 +556,7 @@ function ExtensionDetailModal({
<Button
variant="ghost"
size="sm"
- className="h-8 px-3 text-[12px] text-slate-400 hover:text-slate-200 hover:bg-white/10"
+ className="h-8 px-3 text-[12px] text-muted-foreground hover:text-foreground hover:bg-foreground/10"
onClick={onClose}
>
{t("actions.close")}
@@ -583,7 +583,7 @@ function TabSwitcher({
const t = useScopedT("extensions");
return (
<LayoutGroup id="extension-tab-switcher">
- <div className="grid h-8 w-full grid-cols-2 rounded-xl border border-white/10 bg-white/[0.04] p-1">
+ <div className="grid h-8 w-full grid-cols-2 rounded-xl border border-foreground/10 bg-foreground/[0.04] p-1">
{TAB_OPTIONS.map((option) => {
const isActive = activeTab === option.value;
const count = option.value === "installed" ? extensionCount : undefined;
@@ -604,7 +604,7 @@ function TabSwitcher({
<span
className={cn(
"relative z-10 flex items-center justify-center gap-1",
- isActive ? "text-white" : "text-slate-400 hover:text-slate-200",
+ isActive ? "text-white" : "text-muted-foreground hover:text-foreground",
)}
>
{t(option.labelKey)}
@@ -613,8 +613,8 @@ function TabSwitcher({
className={cn(
"text-[8px] px-1 rounded-full font-semibold min-w-[14px] text-center leading-[14px]",
isActive
- ? "bg-white/20 text-white"
- : "bg-white/5 text-slate-600",
+ ? "bg-foreground/20 text-foreground"
+ : "bg-foreground/5 text-muted-foreground",
)}
>
{count}
@@ -776,19 +776,19 @@ export default function ExtensionManager() {
);
return (
- <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-[#161619] border border-white/10 rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">
+ <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-editor-panel border border-foreground/10 rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">
{/* Header */}
<div className="flex-shrink-0 p-4 pb-3">
<div className="flex items-center justify-between mb-3">
<div className="flex items-center gap-2">
<Puzzle className="w-4 h-4 text-[#2563EB]" />
- <h3 className="text-[13px] font-semibold text-slate-200">{t("title")}</h3>
+ <h3 className="text-[13px] font-semibold text-foreground">{t("title")}</h3>
</div>
<div className="flex items-center gap-0.5">
<Button
variant="ghost"
size="icon"
- className="h-6 w-6 text-slate-500 hover:text-slate-300 hover:bg-white/10"
+ className="h-6 w-6 text-muted-foreground/70 hover:text-muted-foreground hover:bg-foreground/10"
onClick={() =>
window.electronAPI?.openExternalUrl(EXTENSIONS_SUBMIT_URL)
}
@@ -799,7 +799,7 @@ export default function ExtensionManager() {
<Button
variant="ghost"
size="icon"
- className="h-6 w-6 text-slate-500 hover:text-slate-300 hover:bg-white/10"
+ className="h-6 w-6 text-muted-foreground/70 hover:text-muted-foreground hover:bg-foreground/10"
onClick={() => window.electronAPI?.openExternalUrl(EXTENSIONS_DOCS_URL)}
title={t("actions.docs")}
>
@@ -808,7 +808,7 @@ export default function ExtensionManager() {
<Button
variant="ghost"
size="icon"
- className="h-6 w-6 text-slate-500 hover:text-slate-300 hover:bg-white/10"
+ className="h-6 w-6 text-muted-foreground/70 hover:text-muted-foreground hover:bg-foreground/10"
onClick={handleRefresh}
disabled={isRefreshing}
title={t("actions.refresh")}
@@ -818,7 +818,7 @@ export default function ExtensionManager() {
<Button
variant="ghost"
size="icon"
- className="h-6 w-6 text-slate-500 hover:text-slate-300 hover:bg-white/10"
+ className="h-6 w-6 text-muted-foreground/70 hover:text-muted-foreground hover:bg-foreground/10"
onClick={openDirectory}
title={t("actions.openFolder")}
>
@@ -841,7 +841,7 @@ export default function ExtensionManager() {
>
{!ready ? (
<div className="flex-1 flex items-center justify-center py-12">
- <Loader2 className="w-5 h-5 text-slate-600 animate-spin" />
+ <Loader2 className="w-5 h-5 text-muted-foreground animate-spin" />
</div>
) : (
<AnimatePresence mode="wait" initial={false}>
@@ -948,12 +948,12 @@ function InstalledTab({
if (extensions.length === 0) {
return (
<div className="flex flex-col items-center justify-center gap-3 py-10">
- <div className="w-11 h-11 rounded-full bg-white/[0.04] flex items-center justify-center">
- <Puzzle className="w-5 h-5 text-slate-600" />
+ <div className="w-11 h-11 rounded-full bg-foreground/[0.04] flex items-center justify-center">
+ <Puzzle className="w-5 h-5 text-muted-foreground" />
</div>
<div className="text-center">
- <p className="text-[13px] font-medium text-slate-400">{t("empty.title")}</p>
- <p className="text-[11px] text-slate-600 mt-1 leading-relaxed max-w-[200px]">
+ <p className="text-[13px] font-medium text-muted-foreground">{t("empty.title")}</p>
+ <p className="text-[11px] text-muted-foreground mt-1 leading-relaxed max-w-[200px]">
{t("empty.description")}
</p>
</div>
@@ -961,7 +961,7 @@ function InstalledTab({
<Button
variant="ghost"
size="sm"
- className="h-7 px-2.5 text-[11px] text-slate-400 hover:text-slate-200 hover:bg-white/10 gap-1"
+ className="h-7 px-2.5 text-[11px] text-muted-foreground hover:text-foreground hover:bg-foreground/10 gap-1"
onClick={onInstallFromFolder}
>
<Plus className="w-3 h-3" />
@@ -970,7 +970,7 @@ function InstalledTab({
<Button
variant="ghost"
size="sm"
- className="h-7 px-2.5 text-[11px] text-slate-400 hover:text-slate-200 hover:bg-white/10 gap-1"
+ className="h-7 px-2.5 text-[11px] text-muted-foreground hover:text-foreground hover:bg-foreground/10 gap-1"
onClick={onOpenDirectory}
>
<FolderOpen className="w-3 h-3" />
@@ -984,13 +984,13 @@ function InstalledTab({
return (
<div className="flex flex-col gap-2">
<div className="flex items-center justify-between mb-1">
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-400">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">
{t("tabs.installed")}
</p>
<Button
variant="ghost"
size="sm"
- className="h-6 px-2 text-[10px] text-slate-500 hover:text-slate-300 hover:bg-white/10 gap-1"
+ className="h-6 px-2 text-[10px] text-muted-foreground/70 hover:text-muted-foreground hover:bg-foreground/10 gap-1"
onClick={onInstallFromFolder}
>
<Plus className="w-2.5 h-2.5" />
@@ -1045,7 +1045,7 @@ function BrowseTab({
<div className="flex flex-col gap-3">
{/* Search */}
<div className="relative">
- <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-slate-500 pointer-events-none" />
+ <Search className="absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground/70 pointer-events-none" />
<input
type="text"
placeholder={t("search.placeholder")}
@@ -1055,14 +1055,14 @@ function BrowseTab({
e.stopPropagation();
if (e.key === "Enter") onSearch();
}}
- className="w-full h-8 pl-8 pr-3 rounded-lg bg-white/[0.04] border border-white/[0.08] text-[12px] text-slate-200 placeholder:text-slate-600 focus:outline-none focus:ring-1 focus:ring-[#2563EB]/50 focus:border-[#2563EB]/30 transition-colors"
+ className="w-full h-8 pl-8 pr-3 rounded-lg bg-foreground/[0.04] border border-foreground/[0.08] text-[12px] text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-[#2563EB]/50 focus:border-[#2563EB]/30 transition-colors"
/>
</div>
{/* Results */}
{loading && (
<div className="flex items-center justify-center py-10">
- <Loader2 className="w-5 h-5 text-slate-600 animate-spin" />
+ <Loader2 className="w-5 h-5 text-muted-foreground animate-spin" />
</div>
)}
@@ -1073,7 +1073,7 @@ function BrowseTab({
<Button
variant="ghost"
size="sm"
- className="h-7 px-2.5 text-[11px] text-slate-400 hover:text-slate-200 hover:bg-white/10"
+ className="h-7 px-2.5 text-[11px] text-muted-foreground hover:text-foreground hover:bg-foreground/10"
onClick={onSearch}
>
{t("actions.retry")}
@@ -1083,8 +1083,8 @@ function BrowseTab({
{!loading && !error && results.length === 0 && (
<div className="flex flex-col items-center gap-2 py-10">
- <Search className="w-5 h-5 text-slate-600" />
- <p className="text-[11px] text-slate-600 text-center">
+ <Search className="w-5 h-5 text-muted-foreground" />
+ <p className="text-[11px] text-muted-foreground text-center">
{searchQuery ? t("search.noResults") : t("search.noMarketplace")}
</p>
</div>
@@ -1092,7 +1092,7 @@ function BrowseTab({
{!loading && !error && results.length > 0 && (
<div className="flex flex-col gap-2">
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-400">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">
{results.length !== 1
? t("search.countPlural", undefined, { count: results.length })
: t("search.count", undefined, { count: results.length })}
diff --git a/src/components/video-editor/FormatSelector.tsx b/src/components/video-editor/FormatSelector.tsx
index 66bd9632..f54ce856 100644
--- a/src/components/video-editor/FormatSelector.tsx
+++ b/src/components/video-editor/FormatSelector.tsx
@@ -50,24 +50,24 @@ export function FormatSelector({
onClick={() => onFormatChange(option.value)}
className={cn(
"relative flex flex-col items-center gap-2 p-4 rounded-xl border transition-all duration-200",
- "focus:outline-none focus:ring-2 focus:ring-[#2563EB]/50 focus:ring-offset-2 focus:ring-offset-[#09090b]",
+ "focus:outline-none focus:ring-2 focus:ring-[#2563EB]/50 focus:ring-offset-2 focus:ring-offset-editor-dialog",
isSelected
? "bg-[#2563EB]/10 border-[#2563EB]/50 text-white"
- : "bg-white/5 border-white/10 text-slate-400 hover:bg-white/10 hover:border-white/20 hover:text-slate-200",
+ : "bg-foreground/5 border-foreground/10 text-muted-foreground hover:bg-foreground/10 hover:border-foreground/20 hover:text-foreground",
disabled && "opacity-50 cursor-not-allowed",
)}
>
<div
className={cn(
"w-10 h-10 rounded-full flex items-center justify-center transition-colors",
- isSelected ? "bg-[#2563EB]/20 text-[#2563EB]" : "bg-white/5",
+ isSelected ? "bg-[#2563EB]/20 text-[#2563EB]" : "bg-foreground/5",
)}
>
{option.icon}
</div>
<div className="text-center">
<div className="font-medium text-sm">{option.label}</div>
- <div className="text-xs text-slate-500 mt-0.5">
+ <div className="text-xs text-muted-foreground/70 mt-0.5">
{option.description}
</div>
</div>
diff --git a/src/components/video-editor/GifOptionsPanel.tsx b/src/components/video-editor/GifOptionsPanel.tsx
index 6db68f34..fbf98d09 100644
--- a/src/components/video-editor/GifOptionsPanel.tsx
+++ b/src/components/video-editor/GifOptionsPanel.tsx
@@ -45,7 +45,7 @@ export function GifOptionsPanel({
<div className="space-y-4 animate-in slide-in-from-bottom-2 duration-200">
{/* Frame Rate */}
<div className="space-y-2">
- <label className="text-xs font-medium text-slate-400 uppercase tracking-wider">
+ <label className="text-xs font-medium text-muted-foreground uppercase tracking-wider">
{t("gifOptions.frameRate")}
</label>
<Select
@@ -53,15 +53,15 @@ export function GifOptionsPanel({
onValueChange={(value) => onFrameRateChange(Number(value) as GifFrameRate)}
disabled={disabled}
>
- <SelectTrigger className="w-full bg-white/5 border-white/10 text-slate-200 hover:bg-white/10">
+ <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10">
<SelectValue />
</SelectTrigger>
- <SelectContent className="bg-[#1a1a1f] border-white/10 z-[100]">
+ <SelectContent className="bg-editor-surface-alt border-foreground/10 z-[100]">
{GIF_FRAME_RATES.map((rate) => (
<SelectItem
key={rate.value}
value={String(rate.value)}
- className="text-slate-200 focus:bg-white/10 focus:text-white"
+ className="text-foreground focus:bg-foreground/10 focus:text-foreground"
>
{rate.label}
</SelectItem>
@@ -72,7 +72,7 @@ export function GifOptionsPanel({
{/* Size Preset */}
<div className="space-y-2">
- <label className="text-xs font-medium text-slate-400 uppercase tracking-wider">
+ <label className="text-xs font-medium text-muted-foreground uppercase tracking-wider">
{t("gifOptions.outputSize")}
</label>
<Select
@@ -80,22 +80,22 @@ export function GifOptionsPanel({
onValueChange={(value) => onSizePresetChange(value as GifSizePreset)}
disabled={disabled}
>
- <SelectTrigger className="w-full bg-white/5 border-white/10 text-slate-200 hover:bg-white/10">
+ <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10">
<SelectValue />
</SelectTrigger>
- <SelectContent className="bg-[#1a1a1f] border-white/10 z-[100]">
+ <SelectContent className="bg-editor-surface-alt border-foreground/10 z-[100]">
{sizePresetOptions.map((option) => (
<SelectItem
key={option.value}
value={option.value}
- className="text-slate-200 focus:bg-white/10 focus:text-white"
+ className="text-foreground focus:bg-foreground/10 focus:text-foreground"
>
{option.label}
</SelectItem>
))}
</SelectContent>
</Select>
- <div className="text-xs text-slate-500">
+ <div className="text-xs text-muted-foreground/70">
{t("gifOptions.outputDimensions", undefined, {
width: String(outputDimensions.width),
height: String(outputDimensions.height),
@@ -106,10 +106,10 @@ export function GifOptionsPanel({
{/* Loop Toggle */}
<div className="flex items-center justify-between py-2">
<div>
- <label className="text-sm font-medium text-slate-200">
+ <label className="text-sm font-medium text-foreground">
{t("gifOptions.loopAnimation")}
</label>
- <p className="text-xs text-slate-500">{t("gifOptions.loopDescription")}</p>
+ <p className="text-xs text-muted-foreground/70">{t("gifOptions.loopDescription")}</p>
</div>
<Switch checked={loop} onCheckedChange={onLoopChange} disabled={disabled} />
</div>
diff --git a/src/components/video-editor/KeyboardShortcutsHelp.tsx b/src/components/video-editor/KeyboardShortcutsHelp.tsx
index 9c99ee16..f8db05e0 100644
--- a/src/components/video-editor/KeyboardShortcutsHelp.tsx
+++ b/src/components/video-editor/KeyboardShortcutsHelp.tsx
@@ -23,18 +23,18 @@ export function KeyboardShortcutsHelp() {
return (
<div className="relative group">
- <HelpCircle className="w-4 h-4 text-slate-500 hover:text-[#2563EB] transition-colors cursor-help" />
+ <HelpCircle className="w-4 h-4 text-muted-foreground/70 hover:text-[#2563EB] transition-colors cursor-help" />
- <div className="absolute right-0 top-full mt-2 w-64 bg-[#09090b] border border-white/10 rounded-lg p-3 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-xl z-50">
+ <div className="absolute right-0 top-full mt-2 w-64 bg-editor-dialog border border-foreground/10 rounded-lg p-3 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-xl z-50">
<div className="flex items-center justify-between mb-2">
- <span className="text-xs font-semibold text-slate-200">
+ <span className="text-xs font-semibold text-foreground">
{t("keyboardShortcuts.title")}
</span>
<button
type="button"
onClick={openConfig}
title={t("keyboardShortcuts.customizeTooltip")}
- className="flex items-center gap-1 text-[10px] text-slate-500 hover:text-[#2563EB] transition-colors"
+ className="flex items-center gap-1 text-[10px] text-muted-foreground/70 hover:text-[#2563EB] transition-colors"
>
<Settings2 className="w-3 h-3" />
{t("keyboardShortcuts.customize")}
@@ -44,35 +44,35 @@ export function KeyboardShortcutsHelp() {
<div className="space-y-1.5 text-[10px]">
{SHORTCUT_ACTIONS.map((action) => (
<div key={action} className="flex items-center justify-between">
- <span className="text-slate-400">{SHORTCUT_LABELS[action]}</span>
- <kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-mono">
+ <span className="text-muted-foreground">{SHORTCUT_LABELS[action]}</span>
+ <kbd className="px-1 py-0.5 bg-white/5 border border-foreground/10 rounded text-[#2563EB] font-mono">
{formatBinding(shortcuts[action], isMac)}
</kbd>
</div>
))}
- <div className="pt-1 border-t border-white/5 mt-1">
+ <div className="pt-1 border-t border-foreground/5 mt-1">
<div className="flex items-center justify-between">
- <span className="text-slate-400">
+ <span className="text-muted-foreground">
{t("keyboardShortcuts.panTimeline")}
</span>
- <kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-mono">
+ <kbd className="px-1 py-0.5 bg-white/5 border border-foreground/10 rounded text-[#2563EB] font-mono">
{scrollLabels.pan}
</kbd>
</div>
<div className="flex items-center justify-between mt-1.5">
- <span className="text-slate-400">
+ <span className="text-muted-foreground">
{t("keyboardShortcuts.zoomTimeline")}
</span>
- <kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-mono">
+ <kbd className="px-1 py-0.5 bg-white/5 border border-foreground/10 rounded text-[#2563EB] font-mono">
{scrollLabels.zoom}
</kbd>
</div>
<div className="flex items-center justify-between mt-1.5">
- <span className="text-slate-400">
+ <span className="text-muted-foreground">
{t("keyboardShortcuts.cycleAnnotations")}
</span>
- <kbd className="px-1 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-mono">
+ <kbd className="px-1 py-0.5 bg-white/5 border border-foreground/10 rounded text-[#2563EB] font-mono">
{t("keyboardShortcuts.tab")}
</kbd>
</div>
diff --git a/src/components/video-editor/PlaybackControls.tsx b/src/components/video-editor/PlaybackControls.tsx
index 729ccdb5..3636994c 100644
--- a/src/components/video-editor/PlaybackControls.tsx
+++ b/src/components/video-editor/PlaybackControls.tsx
@@ -41,15 +41,15 @@ export default function PlaybackControls({
const progress = duration > 0 ? (currentTime / duration) * 100 : 0;
return (
- <div className="flex items-center gap-2 px-1.5 pr-3 py-0.5 rounded-full bg-black/75 backdrop-blur-md border border-white/10 transition-colors duration-300 hover:bg-black/80 hover:border-white/20">
+ <div className="flex items-center gap-2 px-1.5 pr-3 py-0.5 rounded-full bg-black/75 backdrop-blur-md border border-foreground/10 transition-colors duration-300 hover:bg-black/80 hover:border-white/20">
<Button
onClick={onTogglePlayPause}
size="icon"
className={cn(
- "w-8 h-8 rounded-full transition-all duration-200 border border-white/10",
+ "w-8 h-8 rounded-full transition-all duration-200 border border-foreground/10",
isPlaying
- ? "bg-white/10 text-white hover:bg-white/20"
- : "bg-white text-black hover:bg-white/90",
+ ? "bg-foreground/10 text-foreground hover:bg-foreground/20"
+ : "bg-foreground text-background hover:bg-foreground/90",
)}
aria-label={isPlaying ? t("playback.pause") : t("playback.play")}
>
@@ -60,13 +60,13 @@ export default function PlaybackControls({
)}
</Button>
- <span className="text-[9px] font-medium text-slate-300 tabular-nums w-[30px] text-right">
+ <span className="text-[9px] font-medium text-muted-foreground tabular-nums w-[30px] text-right">
{formatTime(currentTime)}
</span>
<div className="flex-1 relative h-6 flex items-center group">
{/* Custom Track Background */}
- <div className="absolute left-0 right-0 h-0.5 bg-white/10 rounded-full overflow-hidden">
+ <div className="absolute left-0 right-0 h-0.5 bg-foreground/10 rounded-full overflow-hidden">
<div
className="h-full bg-[#2563EB] rounded-full"
style={{ width: `${progress}%` }}
@@ -86,7 +86,7 @@ export default function PlaybackControls({
{/* Custom Thumb (visual only, follows progress) */}
<div
- className="absolute w-2.5 h-2.5 bg-white rounded-full pointer-events-none group-hover:scale-125 transition-transform duration-100"
+ className="absolute w-2.5 h-2.5 bg-foreground rounded-full pointer-events-none group-hover:scale-125 transition-transform duration-100"
style={{
left: `${progress}%`,
transform: "translateX(-50%)",
@@ -94,20 +94,20 @@ export default function PlaybackControls({
/>
</div>
- <span className="text-[9px] font-medium text-slate-500 tabular-nums w-[30px]">
+ <span className="text-[9px] font-medium text-muted-foreground tabular-nums w-[30px]">
{formatTime(duration)}
</span>
<div className="flex items-center gap-1.5 pl-1">
{volume <= 0.001 ? (
- <VolumeX className="h-3.5 w-3.5 text-slate-400" />
+ <VolumeX className="h-3.5 w-3.5 text-muted-foreground" />
) : (
- <Volume2 className="h-3.5 w-3.5 text-slate-400" />
+ <Volume2 className="h-3.5 w-3.5 text-muted-foreground" />
)}
<div className="group relative flex h-6 w-20 items-center">
- <div className="absolute left-0 right-0 h-0.5 rounded-full bg-white/10 overflow-hidden">
+ <div className="absolute left-0 right-0 h-0.5 rounded-full bg-foreground/10 overflow-hidden">
<div
- className="h-full rounded-full bg-white/70"
+ className="h-full rounded-full bg-foreground/70"
style={{ width: `${volume * 100}%` }}
/>
</div>
@@ -121,7 +121,7 @@ export default function PlaybackControls({
className="absolute inset-0 h-full w-full cursor-pointer opacity-0"
/>
<div
- className="pointer-events-none absolute h-2.5 w-2.5 rounded-full bg-white transition-transform duration-100 group-hover:scale-125"
+ className="pointer-events-none absolute h-2.5 w-2.5 rounded-full bg-foreground transition-transform duration-100 group-hover:scale-125"
style={{ left: `${volume * 100}%`, transform: "translateX(-50%)" }}
/>
</div>
diff --git a/src/components/video-editor/ProjectBrowserDialog.tsx b/src/components/video-editor/ProjectBrowserDialog.tsx
index 26c92297..60ad69ab 100644
--- a/src/components/video-editor/ProjectBrowserDialog.tsx
+++ b/src/components/video-editor/ProjectBrowserDialog.tsx
@@ -172,10 +172,10 @@ export default function ProjectBrowserDialog({
ref={panelRef}
role="dialog"
aria-label="Projects"
- className="pointer-events-auto mb-1.5 w-[300px] max-h-[400px] overflow-hidden rounded-[14px] border border-white/[0.07] bg-[rgba(22,22,30,0.96)] text-slate-200 shadow-[0_12px_32px_rgba(0,0,0,0.22),0_2px_10px_rgba(0,0,0,0.1)] animate-in fade-in-0 duration-150"
+ className="pointer-events-auto mb-1.5 w-[300px] max-h-[400px] overflow-hidden rounded-[14px] border border-foreground/[0.07] bg-editor-panel/[0.96] text-foreground shadow-[0_12px_32px_rgba(0,0,0,0.22),0_2px_10px_rgba(0,0,0,0.1)] animate-in fade-in-0 duration-150"
>
- <div className="border-b border-white/10 px-3 py-2.5">
- <div className="text-sm font-medium tracking-tight text-white">Projects</div>
+ <div className="border-b border-foreground/10 px-3 py-2.5">
+ <div className="text-sm font-medium tracking-tight text-foreground">Projects</div>
</div>
<div className="max-h-[360px] overflow-y-auto px-2.5 py-2.5">
{visibleEntries.length > 0 ? (
@@ -191,7 +191,7 @@ export default function ProjectBrowserDialog({
onClick={() => onOpenProject(entry.path)}
className="group flex flex-col gap-1 rounded-lg bg-transparent p-0.5 text-left outline-none transition focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0"
>
- <div className="relative aspect-[16/10] w-full overflow-hidden rounded-[5px] bg-[#0d0d11] shadow-[0_10px_18px_rgba(0,0,0,0.28)] transition duration-200 group-hover:-translate-y-0.5 group-hover:shadow-[0_16px_30px_rgba(0,0,0,0.38)]">
+ <div className="relative aspect-[16/10] w-full overflow-hidden rounded-[5px] bg-editor-dialog-alt shadow-[0_10px_18px_rgba(0,0,0,0.28)] transition duration-200 group-hover:-translate-y-0.5 group-hover:shadow-[0_16px_30px_rgba(0,0,0,0.38)]">
{thumbnailSrc ? (
<img
src={thumbnailSrc}
@@ -200,7 +200,7 @@ export default function ProjectBrowserDialog({
draggable={false}
/>
) : (
- <div className="flex h-full w-full items-center justify-center bg-[linear-gradient(180deg,_rgba(37,99,235,0.22),_rgba(13,17,23,0.92))] text-[10px] font-medium text-slate-300">
+ <div className="flex h-full w-full items-center justify-center bg-[linear-gradient(180deg,_rgba(37,99,235,0.22),_rgba(13,17,23,0.92))] text-[10px] font-medium text-muted-foreground">
No preview yet
</div>
)}
@@ -213,7 +213,7 @@ export default function ProjectBrowserDialog({
) : null}
</div>
<div className="flex flex-1 flex-col px-0.5 py-0.5">
- <div className="truncate text-[11px] font-semibold tracking-tight text-white">
+ <div className="truncate text-[11px] font-semibold tracking-tight text-foreground">
{entry.name}
</div>
</div>
@@ -222,8 +222,8 @@ export default function ProjectBrowserDialog({
})}
</div>
) : (
- <div className="flex min-h-[140px] flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-white/10 bg-[#111215] px-4 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]">
- <div className="text-sm font-semibold text-white">
+ <div className="flex min-h-[140px] flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-foreground/10 bg-editor-bg px-4 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]">
+ <div className="text-sm font-semibold text-foreground">
No saved projects yet
</div>
</div>
@@ -240,10 +240,10 @@ export default function ProjectBrowserDialog({
role="dialog"
aria-label="Projects"
style={{ top: `${position.top}px`, left: `${position.left}px` }}
- className="pointer-events-auto fixed w-[min(280px,calc(100vw-24px))] overflow-hidden rounded-2xl border border-white/10 bg-[#17171a] text-slate-200 shadow-2xl animate-in fade-in-0 duration-150"
+ className="pointer-events-auto fixed w-[min(280px,calc(100vw-24px))] overflow-hidden rounded-2xl border border-foreground/10 bg-editor-surface text-foreground shadow-2xl animate-in fade-in-0 duration-150"
>
- <div className="border-b border-white/10 px-3 py-2.5">
- <div className="text-sm font-medium tracking-tight text-white">Projects</div>
+ <div className="border-b border-foreground/10 px-3 py-2.5">
+ <div className="text-sm font-medium tracking-tight text-foreground">Projects</div>
</div>
<div
className="overflow-y-auto px-2.5 py-2.5"
@@ -262,7 +262,7 @@ export default function ProjectBrowserDialog({
onClick={() => onOpenProject(entry.path)}
className="group flex flex-col gap-1 rounded-lg bg-transparent p-0.5 text-left outline-none transition focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0"
>
- <div className="relative aspect-[16/10] w-full overflow-hidden rounded-[5px] bg-[#0d0d11] shadow-[0_10px_18px_rgba(0,0,0,0.28)] transition duration-200 group-hover:-translate-y-0.5 group-hover:shadow-[0_16px_30px_rgba(0,0,0,0.38)]">
+ <div className="relative aspect-[16/10] w-full overflow-hidden rounded-[5px] bg-editor-dialog-alt shadow-[0_10px_18px_rgba(0,0,0,0.28)] transition duration-200 group-hover:-translate-y-0.5 group-hover:shadow-[0_16px_30px_rgba(0,0,0,0.38)]">
{thumbnailSrc ? (
<img
src={thumbnailSrc}
@@ -271,7 +271,7 @@ export default function ProjectBrowserDialog({
draggable={false}
/>
) : (
- <div className="flex h-full w-full items-center justify-center bg-[linear-gradient(180deg,_rgba(37,99,235,0.22),_rgba(13,17,23,0.92))] text-[10px] font-medium text-slate-300">
+ <div className="flex h-full w-full items-center justify-center bg-[linear-gradient(180deg,_rgba(37,99,235,0.22),_rgba(13,17,23,0.92))] text-[10px] font-medium text-muted-foreground">
No preview yet
</div>
)}
@@ -284,7 +284,7 @@ export default function ProjectBrowserDialog({
) : null}
</div>
<div className="flex flex-1 flex-col px-0.5 py-0.5">
- <div className="truncate text-[11px] font-semibold tracking-tight text-white">
+ <div className="truncate text-[11px] font-semibold tracking-tight text-foreground">
{entry.name}
</div>
</div>
@@ -293,8 +293,8 @@ export default function ProjectBrowserDialog({
})}
</div>
) : (
- <div className="flex min-h-[140px] flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-white/10 bg-[#111215] px-4 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]">
- <div className="text-sm font-semibold text-white">
+ <div className="flex min-h-[140px] flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-foreground/10 bg-editor-bg px-4 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]">
+ <div className="text-sm font-semibold text-foreground">
No saved projects yet
</div>
</div>
diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx
index c7f63e10..d1a52321 100644
--- a/src/components/video-editor/SettingsPanel.tsx
+++ b/src/components/video-editor/SettingsPanel.tsx
@@ -28,6 +28,7 @@ import tahoeCursorUrl from "../../assets/cursors/Cursor=Default.svg";
import { useI18n, useScopedT } from "../../contexts/I18nContext";
import type { AppLocale } from "../../i18n/config";
import { SUPPORTED_LOCALES } from "../../i18n/config";
+import { useTheme } from "@/contexts/ThemeContext";
import { AnnotationSettingsPanel } from "./AnnotationSettingsPanel";
import { loadEditorPreferences, saveEditorPreferences } from "./editorPreferences";
import { SliderControl } from "./SliderControl";
@@ -134,7 +135,7 @@ function getBackgroundTabForWallpaper(value: string): BackgroundTab {
function SectionLabel({ children }: { children: React.ReactNode }) {
return (
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-400">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">
{children}
</p>
);
@@ -155,8 +156,8 @@ function ExtensionSettingsSection({
const [, forceUpdate] = useState(0);
return (
- <div className="flex flex-col gap-1.5 mt-2 pt-2 border-t border-white/[0.06]">
- <p className="text-[10px] font-semibold uppercase tracking-widest text-slate-500">
+ <div className="flex flex-col gap-1.5 mt-2 pt-2 border-t border-foreground/[0.06]">
+ <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/70">
{label}
</p>
{fields.map((field) => {
@@ -167,9 +168,9 @@ function ExtensionSettingsSection({
return (
<div
key={field.id}
- className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-1.5"
+ className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5"
>
- <span className="text-[11px] text-slate-300">{field.label}</span>
+ <span className="text-[11px] text-muted-foreground">{field.label}</span>
<Switch
checked={Boolean(value)}
onCheckedChange={(checked) => {
@@ -190,9 +191,9 @@ function ExtensionSettingsSection({
return (
<div
key={field.id}
- className="flex items-center justify-between gap-2 rounded-lg bg-white/[0.03] px-2.5 py-1.5"
+ className="flex items-center justify-between gap-2 rounded-lg bg-foreground/[0.03] px-2.5 py-1.5"
>
- <span className="text-[11px] text-slate-300 flex-shrink-0">
+ <span className="text-[11px] text-muted-foreground flex-shrink-0">
{field.label}
</span>
<div className="flex items-center gap-1.5">
@@ -216,7 +217,7 @@ function ExtensionSettingsSection({
}}
className="w-20 h-1 accent-[#2563EB]"
/>
- <span className="text-[10px] text-slate-500 w-8 text-right font-mono">
+ <span className="text-[10px] text-muted-foreground/70 w-8 text-right font-mono">
{(typeof value === "number"
? value
: (field.defaultValue as number)
@@ -231,9 +232,9 @@ function ExtensionSettingsSection({
return (
<div
key={field.id}
- className="flex items-center justify-between gap-2 rounded-lg bg-white/[0.03] px-2.5 py-1.5"
+ className="flex items-center justify-between gap-2 rounded-lg bg-foreground/[0.03] px-2.5 py-1.5"
>
- <span className="text-[11px] text-slate-300 flex-shrink-0">
+ <span className="text-[11px] text-muted-foreground flex-shrink-0">
{field.label}
</span>
<Select
@@ -243,7 +244,7 @@ function ExtensionSettingsSection({
forceUpdate((n) => n + 1);
}}
>
- <SelectTrigger className="h-6 w-24 text-[10px] border-white/10 bg-white/[0.03]">
+ <SelectTrigger className="h-6 w-24 text-[10px] border-foreground/10 bg-foreground/[0.03]">
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -266,9 +267,9 @@ function ExtensionSettingsSection({
return (
<div
key={field.id}
- className="flex items-center justify-between gap-2 rounded-lg bg-white/[0.03] px-2.5 py-1.5"
+ className="flex items-center justify-between gap-2 rounded-lg bg-foreground/[0.03] px-2.5 py-1.5"
>
- <span className="text-[11px] text-slate-300 flex-shrink-0">
+ <span className="text-[11px] text-muted-foreground flex-shrink-0">
{field.label}
</span>
<input
@@ -282,7 +283,7 @@ function ExtensionSettingsSection({
);
forceUpdate((n) => n + 1);
}}
- className="w-7 h-5 rounded border border-white/10 cursor-pointer bg-transparent"
+ className="w-7 h-5 rounded border border-foreground/10 cursor-pointer bg-transparent"
/>
</div>
);
@@ -292,9 +293,9 @@ function ExtensionSettingsSection({
return (
<div
key={field.id}
- className="flex items-center justify-between gap-2 rounded-lg bg-white/[0.03] px-2.5 py-1.5"
+ className="flex items-center justify-between gap-2 rounded-lg bg-foreground/[0.03] px-2.5 py-1.5"
>
- <span className="text-[11px] text-slate-300 flex-shrink-0">
+ <span className="text-[11px] text-muted-foreground flex-shrink-0">
{field.label}
</span>
<input
@@ -308,7 +309,7 @@ function ExtensionSettingsSection({
);
forceUpdate((n) => n + 1);
}}
- className="w-24 h-6 rounded bg-white/[0.06] border border-white/10 px-1.5 text-[10px] text-slate-200"
+ className="w-24 h-6 rounded bg-foreground/[0.06] border border-foreground/10 px-1.5 text-[10px] text-foreground"
/>
</div>
);
@@ -661,7 +662,7 @@ function CursorStylePreview({
if (style === "dot") {
return (
- <span className="h-[14px] w-[14px] rounded-full border-[2.5px] border-slate-900 bg-white shadow-[0_8px_12px_rgba(15,23,42,0.16)]" />
+ <span className="h-[14px] w-[14px] rounded-full border-[2.5px] border-foreground bg-white shadow-[0_8px_12px_rgba(15,23,42,0.16)]" />
);
}
@@ -768,6 +769,7 @@ export function SettingsPanel({
}: SettingsPanelProps) {
const tSettings = useScopedT("settings");
const { locale, setLocale, t } = useI18n();
+ const { preference: themePreference, setPreference: setThemePreference } = useTheme();
const isBackgroundPanel = panelMode === "background";
const initialEditorPreferences = useMemo(() => loadEditorPreferences(), []);
const [builtInWallpapers, setBuiltInWallpapers] =
@@ -1157,10 +1159,10 @@ export function SettingsPanel({
const wallpaperTileClass = (isSelected: boolean) =>
cn(
- "group relative aspect-square w-full overflow-hidden rounded-[10px] border bg-[#101115] transition-colors duration-150",
+ "group relative aspect-square w-full overflow-hidden rounded-[10px] border bg-editor-bg transition-colors duration-150",
isSelected
- ? "border-[#2563EB] bg-white/8"
- : "border-white/10 bg-white/[0.045] hover:border-white/20 hover:bg-white/[0.07]",
+ ? "border-[#2563EB] bg-foreground/[0.08]"
+ : "border-foreground/10 bg-foreground/[0.045] hover:border-foreground/20 hover:bg-foreground/[0.07]",
);
const renderWallpaperImageTile = (
@@ -1182,7 +1184,7 @@ export function SettingsPanel({
onClick={props?.onClick}
role="button"
>
- <div className="absolute inset-[1px] overflow-hidden rounded-[8px] bg-[#0d0e11]">
+ <div className="absolute inset-[1px] overflow-hidden rounded-[8px] bg-editor-dialog">
{isVideoWallpaperSource(wallpaperUrl) ? (
<video
src={wallpaperUrl}
@@ -1427,7 +1429,7 @@ export function SettingsPanel({
<div className="w-full">
<LayoutGroup id="background-picker-switcher">
- <div className="grid h-8 w-full grid-cols-4 rounded-xl border border-white/10 bg-white/[0.04] p-1">
+ <div className="grid h-8 w-full grid-cols-4 rounded-xl border border-foreground/10 bg-foreground/[0.04] p-1">
{(
[
{ value: "image", label: tSettings("background.image") },
@@ -1459,8 +1461,8 @@ export function SettingsPanel({
className={cn(
"relative z-10",
isActive
- ? "text-white"
- : "text-slate-400 hover:text-slate-200",
+ ? "text-foreground"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{option.label}
@@ -1492,7 +1494,7 @@ export function SettingsPanel({
<Button
onClick={() => fileInputRef.current?.click()}
variant="outline"
- className="w-full gap-2 bg-white/5 text-slate-200 border-white/10 hover:bg-[#2563EB] hover:text-white hover:border-[#2563EB] transition-all h-7 text-[10px]"
+ className="w-full gap-2 bg-foreground/5 text-foreground border-foreground/10 hover:bg-[#2563EB] hover:text-foreground hover:border-[#2563EB] transition-all h-7 text-[10px]"
>
<Upload className="w-3 h-3" />
{tSettings("background.uploadCustom")}
@@ -1521,7 +1523,7 @@ export function SettingsPanel({
}
className="absolute top-0.5 right-0.5 w-3 h-3 bg-red-500/90 hover:bg-red-500 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"
>
- <X className="w-2 h-2 text-white" />
+ <X className="w-2 h-2 text-foreground" />
</button>
),
});
@@ -1550,7 +1552,7 @@ export function SettingsPanel({
<Button
onClick={handleVideoUpload}
variant="outline"
- className="w-full gap-2 bg-white/5 text-slate-200 border-white/10 hover:bg-[#2563EB] hover:text-white hover:border-[#2563EB] transition-all h-7 text-[10px]"
+ className="w-full gap-2 bg-foreground/5 text-foreground border-foreground/10 hover:bg-[#2563EB] hover:text-foreground hover:border-[#2563EB] transition-all h-7 text-[10px]"
>
<Upload className="w-3 h-3" />
{tSettings("background.uploadCustomVideo", "Upload Video")}
@@ -1581,7 +1583,7 @@ export function SettingsPanel({
}
className="absolute top-0.5 right-0.5 w-3 h-3 bg-red-500/90 hover:bg-red-500 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"
>
- <X className="w-2 h-2 text-white" />
+ <X className="w-2 h-2 text-foreground" />
</button>
),
},
@@ -1653,7 +1655,7 @@ export function SettingsPanel({
}}
aria-label="Custom color picker"
>
- <div className="absolute inset-0 flex items-center justify-center text-[9px] font-semibold uppercase tracking-[0.18em] text-white/90">
+ <div className="absolute inset-0 flex items-center justify-center text-[9px] font-semibold uppercase tracking-[0.18em] text-foreground/90">
Pick
</div>
</button>
@@ -1724,14 +1726,14 @@ export function SettingsPanel({
if (isBackgroundPanel) {
return (
- <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-[#161619] rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">
+ <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-editor-panel rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">
<div
className="flex-1 min-h-0 overflow-y-auto custom-scrollbar p-4 pb-0"
style={{ scrollbarGutter: "stable" }}
>
<div className="mb-4 flex items-center gap-2">
<Palette className="w-4 h-4 text-[#2563EB]" />
- <span className="text-sm font-medium text-slate-200">
+ <span className="text-sm font-medium text-foreground">
{tSettings("background.title")}
</span>
</div>
@@ -1787,8 +1789,8 @@ export function SettingsPanel({
formatValue={(v) => `${v}%`}
parseInput={(text) => parseFloat(text.replace(/%$/, ""))}
/>
- <div className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-1.5">
- <span className="text-[10px] text-slate-400">
+ <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("effects.removeBackground")}
</span>
<Switch
@@ -1801,7 +1803,7 @@ export function SettingsPanel({
{availableFrames.length > 0 && (
<div className="flex flex-col gap-1.5 mt-1">
<div className="flex items-center justify-between">
- <span className="text-[10px] text-slate-400">Frame</span>
+ <span className="text-[10px] text-muted-foreground">Frame</span>
{frame && (
<button
type="button"
@@ -1824,10 +1826,10 @@ export function SettingsPanel({
"flex flex-col items-center gap-1 p-1.5 rounded-lg border transition-all text-center",
isSelected
? "border-[#2563EB]/50 bg-[#2563EB]/10 ring-1 ring-[#2563EB]/30"
- : "border-white/[0.06] bg-white/[0.02] hover:bg-white/[0.05]",
+ : "border-foreground/[0.06] bg-white/[0.02] hover:bg-foreground/[0.05]",
)}
>
- <div className="w-full aspect-video rounded bg-black/30 overflow-hidden flex items-center justify-center">
+ <div className="w-full aspect-video rounded bg-foreground/10 overflow-hidden flex items-center justify-center">
<img
src={f.thumbnailPath}
alt={f.label}
@@ -1835,7 +1837,7 @@ export function SettingsPanel({
draggable={false}
/>
</div>
- <span className="text-[8px] text-slate-400 truncate w-full leading-tight">
+ <span className="text-[8px] text-muted-foreground truncate w-full leading-tight">
{f.label}
</span>
</button>
@@ -1924,7 +1926,7 @@ export function SettingsPanel({
{t("common.actions.reset", "Reset")}
</button>
</div>
- <div className="flex items-center gap-2 text-[10px] text-slate-400">
+ <div className="flex items-center gap-2 text-[10px] text-muted-foreground">
<span>{tSettings("captions.enabled", "Show")}</span>
<Switch
checked={autoCaptionSettings.enabled}
@@ -1934,29 +1936,29 @@ export function SettingsPanel({
</div>
</div>
- <div className="rounded-lg bg-white/[0.03] px-2.5 py-2 space-y-3">
+ <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2 space-y-3">
<div>
<Button
type="button"
variant="outline"
onClick={onPickWhisperModel}
- className="h-10 w-full rounded-xl border-white/10 bg-white/5 px-4 text-sm text-slate-200 hover:bg-white/10 hover:text-white"
+ className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 px-4 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground"
>
{tSettings("captions.selectModel", "Select Model")}
</Button>
</div>
<div className="flex items-center justify-between gap-3">
- <div className="text-sm font-medium text-slate-200">
+ <div className="text-sm font-medium text-foreground">
{tSettings("captions.language", "Language")}
</div>
<Select
value={autoCaptionSettings.language || "auto"}
onValueChange={(value) => updateAutoCaptionSettings({ language: value })}
>
- <SelectTrigger className="h-10 w-[180px] rounded-xl border-white/10 bg-white/5 text-sm text-slate-200 hover:bg-white/10">
+ <SelectTrigger className="h-10 w-[180px] rounded-xl border-foreground/10 bg-foreground/5 text-sm text-foreground hover:bg-foreground/10">
<SelectValue />
</SelectTrigger>
- <SelectContent className="border-white/10 bg-[#1a1a1f] text-slate-200">
+ <SelectContent className="border-foreground/10 bg-editor-surface-alt text-foreground">
{CAPTION_LANGUAGE_OPTIONS.map((option) => (
<SelectItem key={option.value} value={option.value}>
{option.label}
@@ -1971,7 +1973,7 @@ export function SettingsPanel({
<Button
type="button"
disabled
- className="h-10 w-full rounded-xl bg-white/10 px-4 text-sm font-medium text-slate-200 hover:bg-white/10"
+ className="h-10 w-full rounded-xl bg-foreground/10 px-4 text-sm font-medium text-foreground hover:bg-foreground/10"
>
{tSettings("captions.downloading", "Downloading...")}{" "}
{Math.round(whisperModelDownloadProgress)}%
@@ -1981,7 +1983,7 @@ export function SettingsPanel({
type="button"
variant="outline"
onClick={onDeleteWhisperSmallModel}
- className="h-10 w-full rounded-xl border-white/10 bg-white/5 px-4 text-sm text-slate-200 hover:bg-white/10 hover:text-white"
+ className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 px-4 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground"
>
{tSettings("captions.deleteModel", "Delete Model")}
</Button>
@@ -1999,7 +2001,7 @@ export function SettingsPanel({
variant="outline"
onClick={onClearAutoCaptions}
disabled={captionCueCount === 0}
- className="h-10 w-full rounded-xl border-white/10 bg-white/5 px-4 text-sm text-slate-200 hover:bg-white/10 hover:text-white disabled:opacity-50"
+ className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 px-4 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground disabled:opacity-50"
>
{tSettings("captions.clearFull", "Clear Captions")}
</Button>
@@ -2020,18 +2022,18 @@ export function SettingsPanel({
</Button>
{isGeneratingCaptions ? (
<div className="space-y-1">
- <div className="text-xs text-slate-400">
+ <div className="text-xs text-muted-foreground">
{tSettings(
"captions.generatingStatus",
"Generating captions. This can take a moment.",
)}
</div>
- <div className="indeterminate-progress h-2 rounded-full bg-white/5" />
+ <div className="indeterminate-progress h-2 rounded-full bg-foreground/5" />
</div>
) : null}
</div>
{whisperModelDownloadStatus === "downloading" ? (
- <div className="h-2 overflow-hidden rounded-full bg-white/5">
+ <div className="h-2 overflow-hidden rounded-full bg-foreground/5">
<div
className="h-full rounded-full bg-[#2196f3] transition-all"
style={{ width: `${whisperModelDownloadProgress}%` }}
@@ -2041,8 +2043,8 @@ export function SettingsPanel({
</div>
<div className="flex flex-col gap-1.5">
- <div className="flex items-center justify-between gap-3 rounded-lg bg-white/[0.03] px-2.5 py-2">
- <div className="text-[10px] text-slate-400">
+ <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">
+ <div className="text-[10px] text-muted-foreground">
{tSettings("captions.animation", "Animation")}
</div>
<Select
@@ -2053,10 +2055,10 @@ export function SettingsPanel({
})
}
>
- <SelectTrigger className="h-9 w-[160px] rounded-xl border-white/10 bg-white/5 text-sm text-slate-200 hover:bg-white/10">
+ <SelectTrigger className="h-9 w-[160px] rounded-xl border-foreground/10 bg-foreground/5 text-sm text-foreground hover:bg-foreground/10">
<SelectValue />
</SelectTrigger>
- <SelectContent className="border-white/10 bg-[#1a1a1f] text-slate-200">
+ <SelectContent className="border-foreground/10 bg-editor-surface-alt text-foreground">
{CAPTION_ANIMATION_OPTIONS.map((option) => (
<SelectItem key={option.value} value={option.value}>
{option.label}
@@ -2065,8 +2067,8 @@ export function SettingsPanel({
</SelectContent>
</Select>
</div>
- <label className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-2">
- <span className="text-[10px] text-slate-400">
+ <label className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-2">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("captions.textColor", "Text color")}
</span>
<input
@@ -2075,10 +2077,10 @@ export function SettingsPanel({
onChange={(event) =>
updateAutoCaptionSettings({ textColor: event.target.value })
}
- className="h-7 w-10 rounded border border-white/10 bg-transparent"
+ className="h-7 w-10 rounded border border-foreground/10 bg-transparent"
/>
</label>
- <div className="mb-1 text-sm font-medium text-slate-200">
+ <div className="mb-1 text-sm font-medium text-foreground">
{tSettings("captions.fontSettings", "Font Settings")}
</div>
<SliderControl
@@ -2157,13 +2159,40 @@ export function SettingsPanel({
const effectSectionContent = (() => {
const settingsSectionContent = (
<div className="space-y-4">
+ <section className="flex flex-col gap-2">
+ <SectionLabel>{t("editor.theme.appearance", "Appearance")}</SectionLabel>
+ <div className="flex rounded-lg border border-foreground/10 bg-foreground/5 p-0.5">
+ {(
+ [
+ { value: "light", label: t("editor.theme.light", "Light") },
+ { value: "dark", label: t("editor.theme.dark", "Dark") },
+ { value: "system", label: t("editor.theme.system", "System") },
+ ] as const
+ ).map((option) => (
+ <button
+ key={option.value}
+ type="button"
+ onClick={() => setThemePreference(option.value)}
+ className={cn(
+ "flex-1 rounded-md px-3 py-1.5 text-xs font-medium transition-all",
+ themePreference === option.value
+ ? "bg-neutral-800 text-white shadow-sm dark:bg-white dark:text-black"
+ : "text-muted-foreground hover:text-foreground",
+ )}
+ >
+ {option.label}
+ </button>
+ ))}
+ </div>
+ </section>
+
<section className="flex flex-col gap-2">
<SectionLabel>{t("common.app.language", "Language")}</SectionLabel>
<Select value={locale} onValueChange={(value) => setLocale(value as AppLocale)}>
- <SelectTrigger className="h-10 w-full rounded-xl border-white/10 bg-white/5 text-sm text-slate-200 hover:bg-white/10">
+ <SelectTrigger className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 text-sm text-foreground hover:bg-foreground/10">
<SelectValue />
</SelectTrigger>
- <SelectContent className="border-white/10 bg-[#1a1a1f] text-slate-200">
+ <SelectContent className="border-foreground/10 bg-editor-surface-alt text-foreground">
{SUPPORTED_LOCALES.map((candidateLocale) => (
<SelectItem key={candidateLocale} value={candidateLocale}>
{APP_LANGUAGE_LABELS[candidateLocale]}
@@ -2174,15 +2203,15 @@ export function SettingsPanel({
</section>
<section className="flex flex-col gap-1.5">
- <div className="flex items-center justify-between gap-3 rounded-lg bg-white/[0.03] px-2.5 py-2">
+ <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">
<div>
- <div className="text-[11px] font-medium text-slate-200">
+ <div className="text-[11px] font-medium text-foreground">
{tSettings(
"effects.autoApplyFreshRecordingZooms",
"Auto-apply fresh recording zooms",
)}
</div>
- <div className="mt-0.5 text-[10px] text-slate-500">
+ <div className="mt-0.5 text-[10px] text-muted-foreground/70">
{tSettings(
"effects.autoApplyFreshRecordingZoomsDescription",
"Suggest cursor-follow zooms automatically when you open a new recording.",
@@ -2195,12 +2224,12 @@ export function SettingsPanel({
className="data-[state=checked]:bg-[#2563EB] scale-75"
/>
</div>
- <div className="flex items-center justify-between gap-3 rounded-lg bg-white/[0.03] px-2.5 py-2">
+ <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">
<div>
- <div className="text-[11px] font-medium text-slate-200">
+ <div className="text-[11px] font-medium text-foreground">
{tSettings("effects.connectZooms", "Connect neighboring zooms")}
</div>
- <div className="mt-0.5 text-[10px] text-slate-500">
+ <div className="mt-0.5 text-[10px] text-muted-foreground/70">
{tSettings(
"effects.connectZoomsDescription",
"Smooth consecutive zoom regions into a continuous camera move.",
@@ -2219,7 +2248,7 @@ export function SettingsPanel({
<SectionLabel>{t("editor.keyboardShortcuts.title")}</SectionLabel>
<KeyboardShortcutsDialog
triggerLabel={t("editor.keyboardShortcuts.customize")}
- triggerClassName="h-10 w-full justify-start rounded-xl border border-white/10 bg-white/5 px-3 text-sm text-slate-200 hover:bg-white/10 hover:text-white"
+ triggerClassName="h-10 w-full justify-start rounded-xl border border-foreground/10 bg-foreground/5 px-3 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground"
/>
</section>
</div>
@@ -2251,7 +2280,7 @@ export function SettingsPanel({
)}
</div>
<div className="mb-1">
- <div className="flex rounded-lg border border-white/10 bg-white/5 p-0.5">
+ <div className="flex rounded-lg border border-foreground/10 bg-foreground/5 p-0.5">
<button
type="button"
onClick={() => onZoomModeChange?.("auto")}
@@ -2259,7 +2288,7 @@ export function SettingsPanel({
"flex-1 rounded-md px-3 py-1.5 text-xs font-medium transition-all",
selectedZoomMode === "auto"
? "bg-[#2563EB] text-white shadow-sm"
- : "text-slate-400 hover:text-slate-200",
+ : "text-muted-foreground hover:text-foreground",
)}
>
{tSettings("zoom.modeAuto", "Auto")}
@@ -2271,13 +2300,13 @@ export function SettingsPanel({
"flex-1 rounded-md px-3 py-1.5 text-xs font-medium transition-all",
selectedZoomMode === "manual"
? "bg-[#2563EB] text-white shadow-sm"
- : "text-slate-400 hover:text-slate-200",
+ : "text-muted-foreground hover:text-foreground",
)}
>
{tSettings("zoom.modeManual", "Manual")}
</button>
</div>
- <p className="mt-1.5 text-[10px] text-slate-500">
+ <p className="mt-1.5 text-[10px] text-muted-foreground/70">
{selectedZoomMode === "manual"
? tSettings(
"zoom.modeManualDescription",
@@ -2301,7 +2330,7 @@ export function SettingsPanel({
"h-auto w-full rounded-lg border px-1 py-2 text-center shadow-sm transition-all duration-200 ease-out cursor-pointer",
isActive
? "border-[#2563EB] bg-[#2563EB] text-white"
- : "border-white/5 bg-white/5 text-slate-400 hover:bg-white/10 hover:border-white/10 hover:text-slate-200",
+ : "border-foreground/5 bg-foreground/5 text-muted-foreground hover:bg-foreground/10 hover:border-foreground/10 hover:text-foreground",
)}
>
<span className="text-xs font-semibold">
@@ -2311,7 +2340,7 @@ export function SettingsPanel({
);
})}
</div>
- <div className="h-px bg-white/[0.06] my-1" />
+ <div className="h-px bg-foreground/[0.06] my-1" />
</>
)}
<div className="flex items-center justify-between gap-3">
@@ -2324,8 +2353,8 @@ export function SettingsPanel({
{t("common.actions.reset", "Reset")}
</button>
</div>
- <div className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-1.5">
- <span className="text-[10px] text-slate-400">
+ <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("effects.classicZoom", "Classic Animation")}
</span>
<Switch
@@ -2385,8 +2414,8 @@ export function SettingsPanel({
</span>
)}
</div>
- <div className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-1.5">
- <span className="text-[10px] text-slate-400">
+ <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("clip.muteAudio", "Mute Audio")}
</span>
<Switch
@@ -2427,7 +2456,7 @@ export function SettingsPanel({
"h-auto w-full rounded-lg border px-0.5 py-2 text-center shadow-sm transition-all duration-200 ease-out cursor-pointer",
isActive
? "border-[#06b6d4] bg-[#06b6d4] text-white"
- : "border-white/5 bg-white/5 text-slate-400 hover:bg-white/10 hover:border-white/10 hover:text-slate-200",
+ : "border-foreground/5 bg-foreground/5 text-muted-foreground hover:bg-foreground/10 hover:border-foreground/10 hover:text-foreground",
)}
>
<span className="text-[10px] font-semibold">{option.label}</span>
@@ -2483,7 +2512,7 @@ export function SettingsPanel({
</button>
</div>
<div className="flex items-center gap-3">
- <label className="flex items-center gap-1.5 text-[10px] text-slate-400">
+ <label className="flex items-center gap-1.5 text-[10px] text-muted-foreground">
<span>{tSettings("effects.showCursor")}</span>
<Switch
checked={showCursor}
@@ -2491,7 +2520,7 @@ export function SettingsPanel({
className="data-[state=checked]:bg-[#2563EB] scale-75"
/>
</label>
- <label className="flex items-center gap-1.5 text-[10px] text-slate-400">
+ <label className="flex items-center gap-1.5 text-[10px] text-muted-foreground">
<span>{tSettings("effects.loopCursor")}</span>
<Switch
checked={loopCursor}
@@ -2521,8 +2550,8 @@ export function SettingsPanel({
title={option.label}
aria-label={option.label}
className={cn(
- "group aspect-square h-auto min-w-0 rounded-[10px] border border-white/10 bg-white/[0.03] p-3 text-left text-slate-200 shadow-none transition-all hover:border-white/20 hover:bg-white/[0.06]",
- "data-[state=on]:border-[#2563EB]/70 data-[state=on]:bg-[#2563EB]/12 data-[state=on]:text-white",
+ "group aspect-square h-auto min-w-0 rounded-[10px] border border-foreground/10 bg-foreground/[0.03] p-3 text-left text-foreground shadow-none transition-all hover:border-foreground/20 hover:bg-foreground/[0.06]",
+ "data-[state=on]:border-[#2563EB]/70 data-[state=on]:bg-[#2563EB]/12 data-[state=on]:text-foreground",
)}
>
<div className="flex h-full flex-col items-center justify-between gap-3">
@@ -2632,8 +2661,8 @@ export function SettingsPanel({
</button>
</div>
<div className="flex flex-col gap-1.5">
- <div className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-1.5">
- <span className="text-[10px] text-slate-400">
+ <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("effects.show", "Show")}
</span>
<Switch
@@ -2642,8 +2671,8 @@ export function SettingsPanel({
className="data-[state=checked]:bg-[#2563EB] scale-75"
/>
</div>
- <div className="flex items-center justify-between rounded-lg bg-white/[0.03] px-2.5 py-1.5">
- <span className="text-[10px] text-slate-400">
+ <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">
+ <span className="text-[10px] text-muted-foreground">
{tSettings("effects.webcamReactToZoom")}
</span>
<Switch
@@ -2663,8 +2692,8 @@ export function SettingsPanel({
formatValue={(v) => `${Math.round(v)}%`}
parseInput={(text) => parseFloat(text.replace(/%$/, ""))}
/>
- <div className="rounded-lg bg-white/[0.03] px-2.5 py-2">
- <div className="mb-2 text-[10px] text-slate-400">
+ <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2">
+ <div className="mb-2 text-[10px] text-muted-foreground">
{tSettings("effects.webcamPosition", "Position")}
</div>
<div className="grid grid-cols-3 gap-1.5">
@@ -2681,7 +2710,7 @@ export function SettingsPanel({
"h-8 rounded-lg border px-0 text-sm font-semibold transition-all",
isActive
? "border-[#2563EB] bg-[#2563EB] text-white"
- : "border-white/10 bg-white/5 text-slate-300 hover:border-white/20 hover:bg-white/10",
+ : "border-foreground/10 bg-foreground/5 text-muted-foreground hover:border-foreground/20 hover:bg-foreground/10",
)}
>
{option.label}
@@ -2690,7 +2719,7 @@ export function SettingsPanel({
})}
</div>
<div className="mt-2 flex items-center justify-between rounded-lg bg-black/10 px-2.5 py-1.5">
- <span className="text-[10px] text-slate-400">
+ <span className="text-[10px] text-muted-foreground">
{tSettings(
"effects.webcamCustomPosition",
"Custom position",
@@ -2776,13 +2805,13 @@ export function SettingsPanel({
formatValue={(v) => `${Math.round(v * 100)}%`}
parseInput={(text) => parseFloat(text.replace(/%$/, "")) / 100}
/>
- <div className="rounded-lg bg-white/[0.03] px-2.5 py-2">
+ <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2">
<div className="flex items-center justify-between gap-2">
<div>
- <div className="text-[10px] text-slate-300">
+ <div className="text-[10px] text-muted-foreground">
{tSettings("effects.webcamFootage")}
</div>
- <div className="mt-0.5 text-[10px] text-slate-500">
+ <div className="mt-0.5 text-[10px] text-muted-foreground/70">
{webcamFileName ??
tSettings("effects.webcamFootageDescription")}
</div>
@@ -2792,7 +2821,7 @@ export function SettingsPanel({
type="button"
variant="outline"
onClick={onUploadWebcam}
- className="h-7 gap-1.5 border-white/10 bg-white/5 px-2 text-[10px] text-slate-200 hover:bg-white/10 hover:text-white"
+ className="h-7 gap-1.5 border-foreground/10 bg-foreground/5 px-2 text-[10px] text-foreground hover:bg-foreground/10 hover:text-foreground"
>
<Upload className="h-3 w-3" />
{webcam?.sourcePath
@@ -2804,7 +2833,7 @@ export function SettingsPanel({
type="button"
variant="outline"
onClick={onClearWebcam}
- className="h-7 gap-1.5 border-white/10 bg-white/5 px-2 text-[10px] text-slate-200 hover:bg-white/10 hover:text-white"
+ className="h-7 gap-1.5 border-foreground/10 bg-foreground/5 px-2 text-[10px] text-foreground hover:bg-foreground/10 hover:text-foreground"
>
<Trash2 className="h-3 w-3" />
{tSettings("effects.removeWebcamFootage")}
@@ -2845,7 +2874,7 @@ export function SettingsPanel({
})();
return (
- <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-[#161619] rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">
+ <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-editor-panel rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">
<div
className="flex-1 min-h-0 overflow-y-auto custom-scrollbar p-4 pb-0"
style={{ scrollbarGutter: "stable" }}
@@ -2865,7 +2894,7 @@ export function SettingsPanel({
<div
className={cn(
- "flex-shrink-0 border-t border-white/10 bg-[#151518] p-4 pt-3",
+ "flex-shrink-0 border-t border-foreground/10 bg-editor-header p-4 pt-3",
!selectedTrimId && !selectedSpeedId && "hidden",
)}
>
@@ -2886,7 +2915,7 @@ export function SettingsPanel({
{selectedSpeedId && (
<div>
<div className="mb-3 flex items-center justify-between">
- <span className="text-sm font-medium text-slate-200">
+ <span className="text-sm font-medium text-foreground">
{tSettings("speed.playbackSpeed")}
</span>
{selectedSpeedValue && (
@@ -2908,7 +2937,7 @@ export function SettingsPanel({
"h-auto w-full rounded-lg border px-1 py-2 text-center shadow-sm transition-all duration-200 ease-out cursor-pointer",
isActive
? "border-[#d97706] bg-[#d97706] text-white"
- : "border-white/5 bg-white/5 text-slate-400 hover:bg-white/10 hover:border-white/10 hover:text-slate-200",
+ : "border-foreground/5 bg-foreground/5 text-muted-foreground hover:bg-foreground/10 hover:border-foreground/10 hover:text-foreground",
)}
>
<span className="text-xs font-semibold">
diff --git a/src/components/video-editor/ShortcutsConfigDialog.tsx b/src/components/video-editor/ShortcutsConfigDialog.tsx
index a1eee6d0..c359c1f1 100644
--- a/src/components/video-editor/ShortcutsConfigDialog.tsx
+++ b/src/components/video-editor/ShortcutsConfigDialog.tsx
@@ -126,7 +126,7 @@ export function ShortcutsConfigDialog() {
if (!open) handleClose();
}}
>
- <DialogContent className="bg-[#09090b] border-white/10 text-white max-w-[460px]">
+ <DialogContent className="bg-editor-dialog border-foreground/10 text-foreground max-w-[460px]">
<DialogHeader>
<DialogTitle className="flex items-center gap-2 text-sm">
<Keyboard className="w-4 h-4 text-[#2563EB]" />
@@ -135,7 +135,7 @@ export function ShortcutsConfigDialog() {
</DialogHeader>
<div className="space-y-0.5">
- <p className="text-[10px] text-slate-500 mb-2 uppercase tracking-wide font-semibold">
+ <p className="text-[10px] text-muted-foreground/70 mb-2 uppercase tracking-wide font-semibold">
{t("shortcutsConfig.configurable")}
</p>
{SHORTCUT_ACTIONS.map((action) => {
@@ -143,8 +143,8 @@ export function ShortcutsConfigDialog() {
const hasConflict = conflict?.forAction === action;
return (
<div key={action}>
- <div className="flex items-center justify-between py-1.5 px-1 border-b border-white/5">
- <span className="text-sm text-slate-300">
+ <div className="flex items-center justify-between py-1.5 px-1 border-b border-foreground/5">
+ <span className="text-sm text-muted-foreground">
{SHORTCUT_LABELS[action]}
</span>
<button
@@ -164,7 +164,7 @@ export function ShortcutsConfigDialog() {
? "bg-[#2563EB]/20 border-[#2563EB] text-[#2563EB] animate-pulse"
: hasConflict
? "bg-amber-500/10 border-amber-500/50 text-amber-400"
- : "bg-white/5 border-white/10 text-slate-200 hover:border-[#2563EB]/50 hover:text-[#2563EB] cursor-pointer",
+ : "bg-foreground/5 border-foreground/10 text-foreground hover:border-[#2563EB]/50 hover:text-[#2563EB] cursor-pointer",
].join(" ")}
>
{isCapturing
@@ -192,7 +192,7 @@ export function ShortcutsConfigDialog() {
<button
type="button"
onClick={handleCancelConflict}
- className="px-2 py-0.5 bg-white/5 hover:bg-white/10 border border-white/10 rounded text-slate-400 transition-colors"
+ className="px-2 py-0.5 bg-foreground/5 hover:bg-foreground/10 border border-foreground/10 rounded text-muted-foreground transition-colors"
>
{t("shortcutsConfig.cancel")}
</button>
@@ -205,23 +205,23 @@ export function ShortcutsConfigDialog() {
</div>
<div className="space-y-0.5 mt-2">
- <p className="text-[10px] text-slate-500 mb-2 uppercase tracking-wide font-semibold">
+ <p className="text-[10px] text-muted-foreground/70 mb-2 uppercase tracking-wide font-semibold">
{t("shortcutsConfig.fixed")}
</p>
{FIXED_SHORTCUTS.map(({ label, display }) => (
<div
key={label}
- className="flex items-center justify-between py-1.5 px-1 border-b border-white/5 last:border-0"
+ className="flex items-center justify-between py-1.5 px-1 border-b border-foreground/5 last:border-0"
>
- <span className="text-sm text-slate-400">{label}</span>
- <kbd className="px-2 py-1 bg-white/5 border border-white/10 rounded text-xs font-mono text-slate-400 min-w-[90px] text-center">
+ <span className="text-sm text-muted-foreground">{label}</span>
+ <kbd className="px-2 py-1 bg-foreground/5 border border-foreground/10 rounded text-xs font-mono text-muted-foreground min-w-[90px] text-center">
{display}
</kbd>
</div>
))}
</div>
- <p className="text-[10px] text-slate-500 mt-1">
+ <p className="text-[10px] text-muted-foreground/70 mt-1">
{t("shortcutsConfig.instructions")}
</p>
@@ -230,7 +230,7 @@ export function ShortcutsConfigDialog() {
title={t("shortcutsConfig.resetToDefaults")}
variant="ghost"
size="sm"
- className="text-slate-400 hover:text-white hover:bg-white/10 gap-1.5 max-w-[200px]"
+ className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 gap-1.5 max-w-[200px]"
onClick={handleReset}
>
<RotateCcw className="w-3 h-3" />
diff --git a/src/components/video-editor/SliderControl.tsx b/src/components/video-editor/SliderControl.tsx
index 6f0b84eb..2efafa2d 100644
--- a/src/components/video-editor/SliderControl.tsx
+++ b/src/components/video-editor/SliderControl.tsx
@@ -28,13 +28,13 @@ export function SliderControl({
const pct = Math.min(100, Math.max(0, ((value - min) / (max - min || 1)) * 100));
const dividerClass =
accentColor === "purple"
- ? "bg-white/95 shadow-[0_0_10px_rgba(139,92,246,0.28)]"
- : "bg-white/95 shadow-[0_0_10px_rgba(37,99,235,0.28)]";
+ ? "bg-foreground/95 shadow-[0_0_10px_rgba(139,92,246,0.28)]"
+ : "bg-foreground/95 shadow-[0_0_10px_rgba(37,99,235,0.28)]";
return (
- <div className="relative flex h-10 w-full select-none items-center overflow-hidden rounded-xl bg-black/60 px-1.5">
+ <div className="relative flex h-10 w-full select-none items-center overflow-hidden rounded-xl bg-editor-bg/80 px-1.5">
<div
- className="absolute inset-y-[3px] left-[3px] right-auto rounded-[10px] bg-white/[0.08] shadow-[0_4px_10px_0_rgba(0,0,0,0.18)] transition-none"
+ className="absolute inset-y-[3px] left-[3px] right-auto rounded-[10px] bg-foreground/[0.08] shadow-[0_4px_10px_0_rgba(0,0,0,0.18)] transition-none"
style={{
width: pct > 0 ? `max(calc(${pct}% - 6px), 2.1rem)` : 0,
}}
@@ -46,10 +46,10 @@ export function SliderControl({
)}
style={{ left: `calc(${pct}% - 8px)` }}
/>
- <span className="pointer-events-none relative z-10 flex-1 pl-3 text-[12px] font-medium text-slate-300">
+ <span className="pointer-events-none relative z-10 flex-1 pl-3 text-[12px] font-medium text-muted-foreground">
{label}
</span>
- <span className="pointer-events-none relative z-10 pr-3 text-[12px] font-medium tabular-nums text-slate-100">
+ <span className="pointer-events-none relative z-10 pr-3 text-[12px] font-medium tabular-nums text-foreground">
{formatValue(value)}
</span>
<input
diff --git a/src/components/video-editor/TutorialHelp.tsx b/src/components/video-editor/TutorialHelp.tsx
index c06b659e..a0bd12a3 100644
--- a/src/components/video-editor/TutorialHelp.tsx
+++ b/src/components/video-editor/TutorialHelp.tsx
@@ -19,8 +19,8 @@ export const RECORDLY_ISSUES_URL = "https://github.com/webadderall/Recordly/issu
const RECORDLY_DISCORD_URL = "https://discord.gg/FcfNN4S9m";
const RECORDLY_X_URL = "https://x.com/webadderall";
const CONTACT_EMAIL = "[email protected]";
-export const APP_HEADER_ACTION_BUTTON_CLASS = "h-7 px-2 text-xs text-slate-400 hover:bg-white/10 hover:text-slate-200 transition-all gap-1.5";
-export const APP_HEADER_ICON_BUTTON_CLASS = "h-7 w-7 p-0 text-slate-400 hover:bg-white/10 hover:text-slate-200 transition-all";
+export const APP_HEADER_ACTION_BUTTON_CLASS = "h-7 px-2 text-xs text-muted-foreground hover:bg-foreground/10 hover:text-foreground transition-all gap-1.5";
+export const APP_HEADER_ICON_BUTTON_CLASS = "h-7 w-7 p-0 text-muted-foreground hover:bg-foreground/10 hover:text-foreground transition-all";
interface KeyboardShortcutsDialogProps {
triggerLabel?: string;
@@ -80,45 +80,45 @@ export function FeedbackDialog() {
<MessageSquareMore className="h-3.5 w-3.5" />
</Button>
</DialogTrigger>
- <DialogContent className="max-w-lg bg-[#09090b] border-white/10 [&>button]:text-slate-400 [&>button:hover]:text-white">
+ <DialogContent className="max-w-lg bg-editor-dialog border-foreground/10 [&>button]:text-muted-foreground [[&>button:hover]:text-white>button:hover]:text-foreground">
<DialogHeader>
- <DialogTitle className="text-xl font-semibold text-slate-200 flex items-center gap-2">
+ <DialogTitle className="text-xl font-semibold text-foreground flex items-center gap-2">
<MessageSquareMore className="h-5 w-5 text-[#2563EB]" /> {t("feedback.title", "Feedback & contact")}
</DialogTitle>
- <DialogDescription className="text-slate-400">
+ <DialogDescription className="text-muted-foreground">
{t("feedback.description", "Reach out directly or open an issue if something is broken or missing.")}
</DialogDescription>
</DialogHeader>
<div className="mt-4 space-y-4">
- <div className="rounded-xl border border-white/10 bg-white/[0.03] p-4 space-y-3">
- <div className="flex items-center justify-between gap-3 rounded-lg border border-white/5 bg-white/5 px-3 py-3">
+ <div className="rounded-xl border border-foreground/10 bg-foreground/[0.03] p-4 space-y-3">
+ <div className="flex items-center justify-between gap-3 rounded-lg border border-foreground/5 bg-foreground/5 px-3 py-3">
<div>
- <p className="text-[11px] uppercase tracking-[0.18em] text-slate-500">
+ <p className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground/70">
{t("feedback.emailLabel", "Email")}
</p>
- <p className="mt-1 text-sm font-medium text-slate-100">{CONTACT_EMAIL}</p>
+ <p className="mt-1 text-sm font-medium text-foreground">{CONTACT_EMAIL}</p>
</div>
<Button
type="button"
variant="outline"
onClick={() => void openExternalLink(`mailto:${CONTACT_EMAIL}`, t("feedback.openFailed", "Failed to open link."))}
- className="border-white/10 bg-white/5 text-slate-200 hover:bg-white/10 hover:text-white"
+ className="border-foreground/10 bg-foreground/5 text-foreground hover:bg-foreground/10 hover:text-foreground"
>
<ExternalLink className="h-3.5 w-3.5" />
</Button>
</div>
- <div className="flex items-center justify-between gap-3 rounded-lg border border-white/5 bg-white/5 px-3 py-3">
+ <div className="flex items-center justify-between gap-3 rounded-lg border border-foreground/5 bg-foreground/5 px-3 py-3">
<div>
- <p className="text-[11px] uppercase tracking-[0.18em] text-slate-500">
+ <p className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground/70">
{t("feedback.xLabel", "X")}
</p>
- <p className="mt-1 text-sm font-medium text-slate-100">@webadderall</p>
+ <p className="mt-1 text-sm font-medium text-foreground">@webadderall</p>
</div>
<Button
type="button"
variant="outline"
onClick={() => void openExternalLink(RECORDLY_X_URL, t("feedback.openFailed", "Failed to open link."))}
- className="border-white/10 bg-white/5 text-slate-200 hover:bg-white/10 hover:text-white"
+ className="border-foreground/10 bg-foreground/5 text-foreground hover:bg-foreground/10 hover:text-foreground"
>
<Twitter className="h-3.5 w-3.5" />
</Button>
@@ -128,13 +128,13 @@ export function FeedbackDialog() {
type="button"
variant="outline"
onClick={() => void openExternalLink(RECORDLY_ISSUES_URL, t("feedback.openFailed", "Failed to open link."))}
- className="h-10 w-full justify-between border-white/10 bg-white/5 px-4 text-slate-200 hover:bg-white/10 hover:text-white"
+ className="h-10 w-full justify-between border-foreground/10 bg-foreground/5 px-4 text-foreground hover:bg-foreground/10 hover:text-foreground"
>
<span className="flex items-center gap-2 text-sm font-medium">
<MessageSquareMore className="h-4 w-4" />
{t("feedback.reportIssue", "Report issue / send feedback")}
</span>
- <ExternalLink className="h-3.5 w-3.5 text-slate-500" />
+ <ExternalLink className="h-3.5 w-3.5 text-muted-foreground/70" />
</Button>
</div>
</DialogContent>
@@ -174,41 +174,41 @@ export function KeyboardShortcutsDialog({
{triggerLabel ? <span className="font-medium">{triggerLabel}</span> : null}
</Button>
</DialogTrigger>
- <DialogContent className="max-w-lg bg-[#09090b] border-white/10 [&>button]:text-slate-400 [&>button:hover]:text-white">
+ <DialogContent className="max-w-lg bg-editor-dialog border-foreground/10 [&>button]:text-muted-foreground [[&>button:hover]:text-white>button:hover]:text-foreground">
<DialogHeader>
- <DialogTitle className="text-xl font-semibold text-slate-200 flex items-center gap-2">
+ <DialogTitle className="text-xl font-semibold text-foreground flex items-center gap-2">
<Keyboard className="h-5 w-5 text-[#2563EB]" /> {t("keyboardShortcuts.title")}
</DialogTitle>
- <DialogDescription className="text-slate-400">
+ <DialogDescription className="text-muted-foreground">
{t("keyboardShortcuts.description", "Quick reference for the timeline and editor controls.")}
</DialogDescription>
</DialogHeader>
<div className="mt-4 space-y-4">
- <div className="rounded-xl border border-white/10 bg-white/[0.03] p-4 space-y-2 text-xs">
+ <div className="rounded-xl border border-foreground/10 bg-foreground/[0.03] p-4 space-y-2 text-xs">
{SHORTCUT_ACTIONS.map((action) => (
- <div key={action} className="flex items-center justify-between gap-3 rounded-lg border border-white/5 bg-white/5 px-3 py-2.5">
- <span className="text-slate-300">{SHORTCUT_LABELS[action]}</span>
- <kbd className="rounded border border-white/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
+ <div key={action} className="flex items-center justify-between gap-3 rounded-lg border border-foreground/5 bg-foreground/5 px-3 py-2.5">
+ <span className="text-muted-foreground">{SHORTCUT_LABELS[action]}</span>
+ <kbd className="rounded border border-foreground/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
{formatBinding(shortcuts[action], isMac)}
</kbd>
</div>
))}
<div className="grid grid-cols-1 gap-2 pt-2 sm:grid-cols-3">
- <div className="rounded-lg border border-white/5 bg-white/5 px-3 py-2.5">
- <p className="text-[11px] uppercase tracking-[0.18em] text-slate-500">{t("keyboardShortcuts.panTimeline")}</p>
- <kbd className="mt-2 inline-flex rounded border border-white/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
+ <div className="rounded-lg border border-foreground/5 bg-foreground/5 px-3 py-2.5">
+ <p className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground/70">{t("keyboardShortcuts.panTimeline")}</p>
+ <kbd className="mt-2 inline-flex rounded border border-foreground/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
{scrollLabels.pan}
</kbd>
</div>
- <div className="rounded-lg border border-white/5 bg-white/5 px-3 py-2.5">
- <p className="text-[11px] uppercase tracking-[0.18em] text-slate-500">{t("keyboardShortcuts.zoomTimeline")}</p>
- <kbd className="mt-2 inline-flex rounded border border-white/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
+ <div className="rounded-lg border border-foreground/5 bg-foreground/5 px-3 py-2.5">
+ <p className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground/70">{t("keyboardShortcuts.zoomTimeline")}</p>
+ <kbd className="mt-2 inline-flex rounded border border-foreground/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
{scrollLabels.zoom}
</kbd>
</div>
- <div className="rounded-lg border border-white/5 bg-white/5 px-3 py-2.5">
- <p className="text-[11px] uppercase tracking-[0.18em] text-slate-500">{t("keyboardShortcuts.cycleAnnotations")}</p>
- <kbd className="mt-2 inline-flex rounded border border-white/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
+ <div className="rounded-lg border border-foreground/5 bg-foreground/5 px-3 py-2.5">
+ <p className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground/70">{t("keyboardShortcuts.cycleAnnotations")}</p>
+ <kbd className="mt-2 inline-flex rounded border border-foreground/10 bg-black/20 px-2 py-1 font-mono text-[#2563EB]">
{t("keyboardShortcuts.tab")}
</kbd>
</div>
@@ -219,7 +219,7 @@ export function KeyboardShortcutsDialog({
type="button"
variant="outline"
onClick={openConfig}
- className="border-white/10 bg-white/5 text-slate-200 hover:bg-white/10 hover:text-white"
+ className="border-foreground/10 bg-foreground/5 text-foreground hover:bg-foreground/10 hover:text-foreground"
>
<Settings2 className="h-4 w-4" />
{t("keyboardShortcuts.customize")}
@@ -246,19 +246,19 @@ export function TutorialHelp() {
<span className="font-medium">{t("tutorial.howTrimmingWorks")}</span>
</Button>
</DialogTrigger>
- <DialogContent className="max-w-2xl bg-[#09090b] border-white/10 [&>button]:text-slate-400 [&>button:hover]:text-white">
+ <DialogContent className="max-w-2xl bg-editor-dialog border-foreground/10 [&>button]:text-muted-foreground [[&>button:hover]:text-white>button:hover]:text-foreground">
<DialogHeader>
- <DialogTitle className="text-xl font-semibold text-slate-200 flex items-center gap-2">
+ <DialogTitle className="text-xl font-semibold text-foreground flex items-center gap-2">
<Scissors className="w-5 h-5 text-[#ef4444]" /> {t("tutorial.title")}
</DialogTitle>
- <DialogDescription className="text-slate-400">
+ <DialogDescription className="text-muted-foreground">
{t("tutorial.understanding")}
</DialogDescription>
</DialogHeader>
<div className="mt-4 space-y-8">
{/* Explanation */}
- <div className="bg-white/5 rounded-lg p-4 border border-white/5">
- <p className="text-slate-300 leading-relaxed">
+ <div className="bg-foreground/5 rounded-lg p-4 border border-foreground/5">
+ <p className="text-muted-foreground leading-relaxed">
{t("tutorial.descriptionP1")}
<span className="text-[#ef4444] font-bold"> {t("tutorial.descriptionRemove")}</span>.{" "}
{t("tutorial.descriptionP3")}
@@ -266,10 +266,10 @@ export function TutorialHelp() {
</div>
{/* Visual Illustration */}
<div className="space-y-2">
- <h3 className="text-sm font-medium text-slate-400 uppercase tracking-wider">
+ <h3 className="text-sm font-medium text-muted-foreground uppercase tracking-wider">
{t("tutorial.visualExample")}
</h3>
- <div className="relative h-24 bg-[#000] rounded-lg border border-white/10 flex items-center px-4 overflow-hidden select-none">
+ <div className="relative h-24 bg-[#000] rounded-lg border border-foreground/10 flex items-center px-4 overflow-hidden select-none">
{/* Background track (Kept parts) */}
<div className="absolute inset-x-4 h-2 bg-slate-600 rounded-full overflow-hidden">
{/* Solid line representing video */}
@@ -293,21 +293,21 @@ export function TutorialHelp() {
</span>
</div>
{/* Labels for kept parts */}
- <div className="absolute left-[5%] text-[10px] text-slate-400 font-medium">
+ <div className="absolute left-[5%] text-[10px] text-muted-foreground font-medium">
{t("tutorial.kept")}
</div>
- <div className="absolute left-[50%] text-[10px] text-slate-400 font-medium">
+ <div className="absolute left-[50%] text-[10px] text-muted-foreground font-medium">
{t("tutorial.kept")}
</div>
- <div className="absolute left-[90%] text-[10px] text-slate-400 font-medium">
+ <div className="absolute left-[90%] text-[10px] text-muted-foreground font-medium">
{t("tutorial.kept")}
</div>
</div>
<div className="flex justify-center mt-2">
- <ArrowRight className="w-4 h-4 text-slate-600 rotate-90" />
+ <ArrowRight className="w-4 h-4 text-muted-foreground rotate-90" />
</div>
{/* Result */}
- <div className="relative h-12 bg-[#000] rounded-lg border border-white/10 flex items-center justify-center gap-1 px-4 select-none">
+ <div className="relative h-12 bg-[#000] rounded-lg border border-foreground/10 flex items-center justify-center gap-1 px-4 select-none">
<div
className="h-8 bg-slate-700 rounded flex items-center justify-center opacity-80"
style={{ width: "30%" }}
@@ -332,20 +332,20 @@ export function TutorialHelp() {
{t("tutorial.part", undefined, { number: "3" })}
</span>
</div>
- <span className="absolute right-4 text-xs text-slate-400">
+ <span className="absolute right-4 text-xs text-muted-foreground">
{t("tutorial.finalVideo")}
</span>
</div>
</div>
{/* Steps */}
<div className="grid grid-cols-2 gap-4">
- <div className="p-3 rounded bg-white/5 border border-white/5">
+ <div className="p-3 rounded bg-foreground/5 border border-foreground/5">
<div className="text-[#ef4444] font-bold mb-1">{t("tutorial.addTrimStep")}</div>
- <p className="text-xs text-slate-400">{t("tutorial.addTrimDesc")}</p>
+ <p className="text-xs text-muted-foreground">{t("tutorial.addTrimDesc")}</p>
</div>
- <div className="p-3 rounded bg-white/5 border border-white/5">
+ <div className="p-3 rounded bg-foreground/5 border border-foreground/5">
<div className="text-[#ef4444] font-bold mb-1">{t("tutorial.adjustStep")}</div>
- <p className="text-xs text-slate-400">{t("tutorial.adjustDesc")}</p>
+ <p className="text-xs text-muted-foreground">{t("tutorial.adjustDesc")}</p>
</div>
</div>
</div>
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx
index c63d2339..7cc853be 100644
--- a/src/components/video-editor/VideoEditor.tsx
+++ b/src/components/video-editor/VideoEditor.tsx
@@ -743,7 +743,8 @@ export default function VideoEditor() {
}
context.imageSmoothingEnabled = true;
context.imageSmoothingQuality = "high";
- context.fillStyle = "#111113";
+ const editorBgHsl = getComputedStyle(document.documentElement).getPropertyValue("--editor-bg").trim();
+ context.fillStyle = editorBgHsl ? `hsl(${editorBgHsl})` : "#111113";
context.fillRect(0, 0, targetWidth, targetHeight);
const previewWidth = previewHandle?.containerRef.current?.clientWidth || 1920;
@@ -4241,7 +4242,7 @@ export default function VideoEditor() {
<div className="flex h-screen items-center justify-center bg-background">
<div className="text-foreground">Loading video...</div>
{projectBrowser}
- <Toaster theme="dark" className="pointer-events-auto" />
+ <Toaster className="pointer-events-auto" />
</div>
);
}
@@ -4254,21 +4255,21 @@ export default function VideoEditor() {
ref={projectBrowserFallbackTriggerRef}
type="button"
onClick={handleOpenProjectBrowser}
- className="rounded-[5px] bg-white px-3 py-1.5 text-sm font-semibold text-black shadow-[0_14px_32px_rgba(0,0,0,0.18)] transition-colors hover:bg-white/92"
+ className="rounded-[5px] bg-neutral-800 px-3 py-1.5 text-sm font-semibold text-white shadow-[0_14px_32px_rgba(0,0,0,0.18)] transition-colors hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"
>
Open Projects
</button>
</div>
{projectBrowser}
- <Toaster theme="dark" className="pointer-events-auto" />
+ <Toaster className="pointer-events-auto" />
</div>
);
}
return (
- <div className="flex flex-col h-screen bg-[#111113] text-slate-200 overflow-hidden selection:bg-[#2563EB]/30">
+ <div className="flex flex-col h-screen bg-editor-bg text-foreground overflow-hidden selection:bg-[#2563EB]/30">
<div
- className="relative flex h-11 flex-shrink-0 items-center justify-between bg-[#151518]/88 px-5 backdrop-blur-md border-b border-white/10 z-50"
+ className="relative flex h-11 flex-shrink-0 items-center justify-between bg-editor-header/88 px-5 backdrop-blur-md border-b border-foreground/10 z-50"
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
>
<div
@@ -4288,13 +4289,13 @@ export default function VideoEditor() {
</Button>
<DiscordLinkButton />
<FeedbackDialog />
- <div className="ml-1 h-5 w-px bg-white/10" />
+ <div className="ml-1 h-5 w-px bg-foreground/10" />
<Button
type="button"
variant="ghost"
onClick={handleUndo}
disabled={!canUndo}
- className="inline-flex h-8 w-8 items-center justify-center rounded-[5px] border border-white/10 bg-white/5 p-0 text-slate-200 transition-colors hover:bg-white/10 hover:text-white disabled:cursor-not-allowed disabled:opacity-40"
+ className="inline-flex h-8 w-8 items-center justify-center rounded-[5px] border border-foreground/10 bg-foreground/5 p-0 text-foreground transition-colors hover:bg-foreground/10 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"
title={t("common.actions.undo", "Undo")}
aria-label={t("common.actions.undo", "Undo")}
>
@@ -4305,7 +4306,7 @@ export default function VideoEditor() {
variant="ghost"
onClick={handleRedo}
disabled={!canRedo}
- className="inline-flex h-8 w-8 items-center justify-center rounded-[5px] border border-white/10 bg-white/5 p-0 text-slate-200 transition-colors hover:bg-white/10 hover:text-white disabled:cursor-not-allowed disabled:opacity-40"
+ className="inline-flex h-8 w-8 items-center justify-center rounded-[5px] border border-foreground/10 bg-foreground/5 p-0 text-foreground transition-colors hover:bg-foreground/10 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"
title={t("common.actions.redo", "Redo")}
aria-label={t("common.actions.redo", "Redo")}
>
@@ -4316,10 +4317,10 @@ export default function VideoEditor() {
className="pointer-events-none absolute left-1/2 flex min-w-0 -translate-x-1/2 items-baseline justify-center gap-0"
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
>
- <span className="text-sm font-semibold tracking-tight text-white/90">
+ <span className="text-sm font-semibold tracking-tight text-foreground/90">
{projectDisplayName}
</span>
- <span className="text-xs font-medium tracking-tight text-slate-500">
+ <span className="text-xs font-medium tracking-tight text-muted-foreground/70">
.recordly
</span>
</div>
@@ -4331,7 +4332,7 @@ export default function VideoEditor() {
ref={projectBrowserTriggerRef}
type="button"
onClick={handleOpenProjectBrowser}
- className="inline-flex h-8 min-w-[96px] items-center justify-center gap-1.5 rounded-[5px] bg-white px-4 text-black shadow-[0_14px_32px_rgba(0,0,0,0.18)] transition-colors hover:bg-white/92"
+ className="inline-flex h-8 min-w-[96px] items-center justify-center gap-1.5 rounded-[5px] bg-neutral-800 px-4 text-white shadow-[0_14px_32px_rgba(0,0,0,0.18)] transition-colors hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"
>
<FolderOpen className="h-4 w-4" />
<span className="text-sm font-semibold tracking-tight">
@@ -4341,7 +4342,7 @@ export default function VideoEditor() {
<Button
type="button"
onClick={handleSaveProject}
- className="inline-flex h-8 min-w-[96px] items-center justify-center gap-1.5 rounded-[5px] bg-white px-4 text-black transition-colors hover:bg-white/92"
+ className="inline-flex h-8 min-w-[96px] items-center justify-center gap-1.5 rounded-[5px] bg-neutral-800 px-4 text-white transition-colors hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"
>
<span
className={`${hasUnsavedChanges ? "flex" : "hidden"} size-2 relative`}
@@ -4354,7 +4355,7 @@ export default function VideoEditor() {
{t("common.actions.save")}
</span>
</Button>
- <div className="mx-1 h-5 w-px bg-white/10" />
+ <div className="mx-1 h-5 w-px bg-foreground/10" />
<DropdownMenu
open={showExportDropdown}
onOpenChange={setShowExportDropdown}
@@ -4378,25 +4379,25 @@ export default function VideoEditor() {
className="w-[360px] border-none bg-transparent p-0 shadow-none"
>
{isExporting ? (
- <div className="rounded-2xl border border-white/10 bg-[#17171a] p-4 text-slate-200 shadow-2xl">
+ <div className="rounded-2xl border border-foreground/10 bg-editor-surface p-4 text-foreground shadow-2xl">
<div className="mb-3 flex items-center justify-between gap-3">
<div>
- <p className="text-sm font-semibold text-white">
+ <p className="text-sm font-semibold text-foreground">
{t("editor.exportStatus.exporting", "Exporting")}
</p>
- <p className="text-xs text-slate-400">
+ <p className="text-xs text-muted-foreground">
{t(
"editor.exportStatus.renderingFile",
"Rendering your file.",
)}
</p>
{isLightningExportInProgress ? (
- <p className="mt-1 flex items-center gap-1 text-[11px] text-slate-500">
+ <p className="mt-1 flex items-center gap-1 text-[11px] text-muted-foreground/70">
PLEASE
<button
type="button"
onClick={() => void openLightningIssues()}
- className="underline decoration-slate-500/70 underline-offset-2 transition-colors hover:text-slate-200"
+ className="underline decoration-slate-500/70 underline-offset-2 transition-colors hover:text-foreground"
>
report bugs
</button>
@@ -4405,7 +4406,7 @@ export default function VideoEditor() {
</p>
) : null}
{isLegacyExportInProgress ? (
- <p className="mt-1 text-[11px] text-slate-500">
+ <p className="mt-1 text-[11px] text-muted-foreground/70">
Export too slow? Cancel and try Lightning
export!
</p>
@@ -4420,7 +4421,7 @@ export default function VideoEditor() {
{t("common.actions.cancel")}
</Button>
</div>
- <div className="h-2 overflow-hidden rounded-full border border-white/5 bg-white/5">
+ <div className="h-2 overflow-hidden rounded-full border border-foreground/5 bg-foreground/5">
{isExportSaving ? (
<div className="indeterminate-progress h-full rounded-full bg-transparent" />
) : (
@@ -4432,36 +4433,36 @@ export default function VideoEditor() {
/>
)}
</div>
- <p className="mt-2 text-xs text-slate-400">
+ <p className="mt-2 text-xs text-muted-foreground">
{exportPercentLabel}
</p>
{isRenderingAudio ? (
- <p className="mt-1 text-[11px] text-slate-500">
+ <p className="mt-1 text-[11px] text-muted-foreground/70">
Audio requires real-time playback for speed/overlay
edits
</p>
) : exportRenderSpeedLabel ? (
- <p className="mt-1 text-[11px] text-slate-500">
+ <p className="mt-1 text-[11px] text-muted-foreground/70">
{exportRenderSpeedLabel}
</p>
) : null}
{exportRuntimeLabel ? (
- <p className="mt-1 text-[11px] text-slate-500">
+ <p className="mt-1 text-[11px] text-muted-foreground/70">
Path: {exportRuntimeLabel}
</p>
) : null}
</div>
) : exportError ? (
- <div className="rounded-2xl border border-white/10 bg-[#17171a] p-4 text-slate-200 shadow-2xl">
- <p className="text-sm font-semibold text-white">
+ <div className="rounded-2xl border border-foreground/10 bg-editor-surface p-4 text-foreground shadow-2xl">
+ <p className="text-sm font-semibold text-foreground">
{t("editor.exportStatus.issue", "Export issue")}
</p>
{exportRuntimeLabel ? (
- <p className="mt-1 text-[11px] text-slate-500">
+ <p className="mt-1 text-[11px] text-muted-foreground/70">
Path: {exportRuntimeLabel}
</p>
) : null}
- <p className="mt-1 whitespace-pre-line text-xs leading-relaxed text-slate-400">
+ <p className="mt-1 whitespace-pre-line text-xs leading-relaxed text-muted-foreground">
{exportError}
</p>
<div className="mt-4 flex gap-2">
@@ -4478,29 +4479,29 @@ export default function VideoEditor() {
type="button"
variant="outline"
onClick={handleExportDropdownClose}
- className="h-8 flex-1 border-white/10 bg-white/5 text-xs text-slate-300 hover:bg-white/10"
+ className="h-8 flex-1 border-foreground/10 bg-foreground/5 text-xs text-muted-foreground hover:bg-foreground/10"
>
{t("common.actions.close", "Close")}
</Button>
</div>
</div>
) : exportedFilePath ? (
- <div className="rounded-2xl border border-white/10 bg-[#17171a] p-4 text-slate-200 shadow-2xl">
- <p className="text-sm font-semibold text-white">
+ <div className="rounded-2xl border border-foreground/10 bg-editor-surface p-4 text-foreground shadow-2xl">
+ <p className="text-sm font-semibold text-foreground">
{t("editor.exportStatus.complete", "Export complete")}
</p>
- <p className="mt-1 text-xs text-slate-400">
+ <p className="mt-1 text-xs text-muted-foreground">
{t(
"editor.exportStatus.savedSuccessfully",
"Your file was saved successfully.",
)}
</p>
{exportRuntimeLabel ? (
- <p className="mt-1 text-[11px] text-slate-500">
+ <p className="mt-1 text-[11px] text-muted-foreground/70">
Path: {exportRuntimeLabel}
</p>
) : null}
- <p className="mt-3 truncate text-xs text-slate-500">
+ <p className="mt-3 truncate text-xs text-muted-foreground/70">
{exportedFilePath.split("/").pop()}
</p>
<div className="mt-4 flex gap-2">
@@ -4515,7 +4516,7 @@ export default function VideoEditor() {
type="button"
variant="outline"
onClick={handleExportDropdownClose}
- className="h-8 flex-1 border-white/10 bg-white/5 text-xs text-slate-300 hover:bg-white/10"
+ className="h-8 flex-1 border-foreground/10 bg-foreground/5 text-xs text-muted-foreground hover:bg-foreground/10"
>
Done
</Button>
@@ -4551,7 +4552,7 @@ export default function VideoEditor() {
</div>
<div className="relative flex min-h-0 flex-1 flex-col gap-3 p-4">
- <div className="flex min-h-0 flex-1 gap-3">
+ <div className="flex min-h-0 flex-1 gap-3 relative z-10">
{/* Settings sidebar */}
<div className="flex flex-shrink-0 gap-1.5">
{/* Icon rail */}
@@ -4571,7 +4572,7 @@ export default function VideoEditor() {
{isActive && (
<motion.span
layoutId="rail-active-bg"
- className="absolute inset-0 rounded-lg bg-white/[0.08]"
+ className="absolute inset-0 rounded-lg bg-foreground/[0.08]"
transition={{
type: "spring",
stiffness: 450,
@@ -4584,7 +4585,7 @@ export default function VideoEditor() {
animate={{
color: isActive
? "#2563EB"
- : "rgba(255,255,255,1)",
+ : "hsl(var(--foreground))",
}}
transition={{ duration: 0.14 }}
>
@@ -4620,16 +4621,16 @@ export default function VideoEditor() {
</div>
);
})}
- <div className="mt-auto pt-3">
+ <div className="mt-auto flex flex-col items-center gap-0.5 pt-3">
<motion.button
type="button"
onClick={() => toast.info("Account coming soon")}
title="Account"
- className="group relative flex h-9 w-9 items-center justify-center rounded-lg text-white/55 outline-none transition hover:text-white focus:outline-none focus-visible:outline-none"
+ className="group relative flex h-9 w-9 items-center justify-center rounded-lg text-foreground/55 outline-none transition hover:text-foreground focus:outline-none focus-visible:outline-none"
whileHover={{ opacity: 1 }}
initial={{ opacity: 0.55 }}
>
- <motion.span className="absolute inset-0 rounded-lg bg-white/[0.04] opacity-0 transition group-hover:opacity-100" />
+ <motion.span className="absolute inset-0 rounded-lg bg-foreground/[0.04] opacity-0 transition group-hover:opacity-100" />
<User className="relative z-10 h-[22px] w-[22px]" />
</motion.button>
</div>
@@ -4797,7 +4798,7 @@ export default function VideoEditor() {
<Button
variant="ghost"
size="sm"
- className="h-7 px-2 text-xs text-white hover:text-white hover:bg-white/10 transition-all gap-1"
+ className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all gap-1"
>
<span className="font-medium">
{getAspectRatioLabel(aspectRatio)}
@@ -4807,13 +4808,13 @@ export default function VideoEditor() {
</DropdownMenuTrigger>
<DropdownMenuContent
align="center"
- className="bg-[#1a1a1c] border-white/10"
+ className="bg-editor-surface-alt border-foreground/10"
>
{ASPECT_RATIOS.map((ratio) => (
<DropdownMenuItem
key={ratio}
onClick={() => setAspectRatio(ratio)}
- className="text-slate-300 hover:text-white hover:bg-white/10 cursor-pointer flex items-center justify-between gap-3"
+ className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 cursor-pointer flex items-center justify-between gap-3"
>
<span>{getAspectRatioLabel(ratio)}</span>
{aspectRatio === ratio && (
@@ -4823,12 +4824,12 @@ export default function VideoEditor() {
))}
</DropdownMenuContent>
</DropdownMenu>
- <div className="w-[1px] h-4 bg-white/20" />
+ <div className="w-[1px] h-4 bg-foreground/20" />
<Button
variant="ghost"
size="sm"
onClick={handleOpenCropEditor}
- className="h-7 px-2 text-xs text-white hover:text-white hover:bg-white/10 transition-all gap-1.5"
+ className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all gap-1.5"
>
<Crop className="w-3.5 h-3.5" />
<span className="font-medium">
@@ -4952,7 +4953,7 @@ export default function VideoEditor() {
<Button
variant="ghost"
size="sm"
- className="h-7 gap-1 rounded-full border border-white/[0.08] bg-white/[0.04] px-2.5 text-[11px] text-white/65 shadow-[inset_0_1px_0_rgba(255,255,255,0.06)] transition-all hover:bg-white/[0.08] hover:text-white"
+ className="h-7 gap-1 rounded-full border border-foreground/[0.08] bg-foreground/[0.04] px-2.5 text-[11px] text-foreground/65 shadow-[inset_0_1px_0_hsl(var(--foreground)/0.06)] transition-all hover:bg-foreground/[0.08] hover:text-foreground"
>
<Plus className="w-3.5 h-3.5" />
<span className="font-medium">
@@ -4963,7 +4964,7 @@ export default function VideoEditor() {
</DropdownMenuTrigger>
<DropdownMenuContent
align="start"
- className="bg-[#1a1a1c] border-white/10"
+ className="bg-editor-surface-alt border-foreground/10"
>
<DropdownMenuItem
onClick={() => {
@@ -4977,24 +4978,24 @@ export default function VideoEditor() {
: 0;
timelineRef.current?.addAnnotation(nextTrackIndex);
}}
- className="text-slate-300 hover:text-white hover:bg-white/10 cursor-pointer"
+ className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 cursor-pointer"
>
{t("timeline.annotation.label")}
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => timelineRef.current?.addAudio()}
- className="text-slate-300 hover:text-white hover:bg-white/10 cursor-pointer"
+ className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 cursor-pointer"
>
{t("timeline.audio.label")}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
- <div className="w-[1px] h-4 bg-white/10 mx-1" />
+ <div className="w-[1px] h-4 bg-foreground/10 mx-1" />
<Button
onClick={() => timelineRef.current?.addZoom()}
variant="ghost"
size="icon"
- className="h-7 w-7 rounded-full text-slate-400 transition-all hover:bg-[#2563EB]/10 hover:text-[#2563EB]"
+ className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-[#2563EB]/10 hover:text-[#2563EB]"
title={t("timeline.zoom.addZoom")}
>
<ZoomIn className="w-4 h-4" />
@@ -5003,7 +5004,7 @@ export default function VideoEditor() {
onClick={() => timelineRef.current?.suggestZooms()}
variant="ghost"
size="icon"
- className="h-7 w-7 rounded-full text-slate-400 transition-all hover:bg-[#2563EB]/10 hover:text-[#2563EB]"
+ className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-[#2563EB]/10 hover:text-[#2563EB]"
title={t("timeline.zoom.suggestZooms")}
>
<WandSparkles className="w-4 h-4" />
@@ -5012,7 +5013,7 @@ export default function VideoEditor() {
onClick={() => timelineRef.current?.splitClip()}
variant="ghost"
size="icon"
- className="h-7 w-7 rounded-full text-slate-400 transition-all hover:bg-white/10 hover:text-white"
+ className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"
title={t("editor.toolbar.splitClip")}
>
<Scissors className="w-4 h-4" />
@@ -5021,13 +5022,13 @@ export default function VideoEditor() {
{/* Playback controls - centered */}
<div className="absolute inset-0 z-10 flex items-center justify-center pointer-events-none">
<div className="flex items-center gap-1.5 pointer-events-auto">
- <span className="mr-1 text-[10px] font-medium tabular-nums text-slate-400">
+ <span className="mr-1 text-[10px] font-medium tabular-nums text-muted-foreground">
{formatTime(timelinePlayheadTime)}
</span>
<Button
variant="ghost"
size="icon"
- className="h-7 w-7 rounded-full text-slate-400 transition-all hover:bg-white/10 hover:text-white"
+ className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"
title={t("editor.playback.skipBack")}
onClick={() => {
const currentMs = timelinePlayheadTime * 1000;
@@ -5047,7 +5048,7 @@ export default function VideoEditor() {
<Button
variant="ghost"
size="icon"
- className={`h-7 w-7 rounded-full border border-white/10 transition-all shadow-[0_8px_18px_rgba(0,0,0,0.18)] ${isPlaying ? "bg-white/10 text-white hover:bg-white/20" : "bg-white text-black hover:bg-white/90"}`}
+ className={`h-7 w-7 rounded-full border border-foreground/10 transition-all shadow-[0_8px_18px_rgba(0,0,0,0.18)] ${isPlaying ? "bg-foreground/10 text-foreground hover:bg-foreground/20" : "bg-neutral-800 text-white hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"}`}
onClick={togglePlayPause}
title={isPlaying ? "Pause" : "Play"}
>
@@ -5060,7 +5061,7 @@ export default function VideoEditor() {
<Button
variant="ghost"
size="icon"
- className="h-7 w-7 rounded-full text-slate-400 transition-all hover:bg-white/10 hover:text-white"
+ className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"
title={t("editor.playback.skipForward")}
onClick={() => {
const currentMs = timelinePlayheadTime * 1000;
@@ -5075,7 +5076,7 @@ export default function VideoEditor() {
>
<SkipForward className="w-3.5 h-3.5" weight="fill" />
</Button>
- <span className="text-[10px] font-medium text-slate-500 tabular-nums ml-1">
+ <span className="text-[10px] font-medium text-muted-foreground/70 tabular-nums ml-1">
{formatTime(duration)}
</span>
</div>
@@ -5090,7 +5091,7 @@ export default function VideoEditor() {
? t("editor.timeline.expand")
: t("editor.timeline.collapse")
}
- className="h-7 w-7 rounded-full text-slate-400 transition-all hover:bg-white/10 hover:text-white"
+ className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"
onClick={() => {
setTimelineCollapsed((p) => !p);
}}
@@ -5104,7 +5105,7 @@ export default function VideoEditor() {
<div className="flex items-center gap-1.5">
<button
type="button"
- className="text-slate-400 hover:text-white transition-colors"
+ className="text-muted-foreground hover:text-foreground transition-colors"
title={t("editor.playback.muteUnmute")}
onClick={() =>
setPreviewVolume(previewVolume <= 0.001 ? 1 : 0)
@@ -5118,9 +5119,9 @@ export default function VideoEditor() {
<Volume2 className="w-3.5 h-3.5" />
)}
</button>
- <div className="relative flex h-7 w-24 select-none items-center overflow-hidden rounded-full border border-white/[0.06] bg-black/55 shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]">
+ <div className="relative flex h-7 w-24 select-none items-center overflow-hidden rounded-full border border-foreground/[0.06] bg-editor-bg/80 shadow-[inset_0_1px_0_hsl(var(--foreground)/0.06)]">
<div
- className="absolute inset-y-[3px] left-[3px] right-auto rounded-[10px] bg-white/[0.08]"
+ className="absolute inset-y-[3px] left-[3px] right-auto rounded-[10px] bg-foreground/[0.08]"
style={{
width:
previewVolume > 0
@@ -5129,10 +5130,10 @@ export default function VideoEditor() {
}}
/>
<div
- className="pointer-events-none absolute bottom-[18%] top-[18%] z-10 w-[2px] rounded-full bg-white/95 shadow-[0_0_10px_rgba(37,99,235,0.28)]"
+ className="pointer-events-none absolute bottom-[18%] top-[18%] z-10 w-[2px] rounded-full bg-foreground/95 shadow-[0_0_10px_rgba(37,99,235,0.28)]"
style={{ left: `calc(${previewVolume * 100}% - 8px)` }}
/>
- <span className="pointer-events-none relative z-10 pl-2 text-[10px] font-medium text-slate-400">
+ <span className="pointer-events-none relative z-10 pl-2 text-[10px] font-medium text-muted-foreground">
{Math.round(previewVolume * 100)}%
</span>
<input
@@ -5217,13 +5218,13 @@ export default function VideoEditor() {
className="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm animate-in fade-in duration-200"
onClick={handleCancelCropEditor}
/>
- <div className="fixed left-1/2 top-1/2 z-[60] max-h-[90vh] w-[90vw] max-w-5xl -translate-x-1/2 -translate-y-1/2 overflow-auto rounded-2xl border border-white/10 bg-[#09090b] p-8 shadow-2xl animate-in zoom-in-95 duration-200">
+ <div className="fixed left-1/2 top-1/2 z-[60] max-h-[90vh] w-[90vw] max-w-5xl -translate-x-1/2 -translate-y-1/2 overflow-auto rounded-2xl border border-foreground/10 bg-editor-dialog p-8 shadow-2xl animate-in zoom-in-95 duration-200">
<div className="mb-6 flex items-center justify-between">
<div>
- <span className="text-xl font-bold text-slate-200">
+ <span className="text-xl font-bold text-foreground">
{t("settings.crop.title")}
</span>
- <p className="mt-2 text-sm text-slate-400">
+ <p className="mt-2 text-sm text-muted-foreground">
{t("settings.crop.instruction")}
</p>
</div>
@@ -5231,7 +5232,7 @@ export default function VideoEditor() {
variant="ghost"
size="icon"
onClick={handleCancelCropEditor}
- className="text-slate-400 hover:bg-white/10 hover:text-white"
+ className="text-muted-foreground hover:bg-foreground/10 hover:text-foreground"
>
<X className="h-5 w-5" />
</Button>
@@ -5257,7 +5258,7 @@ export default function VideoEditor() {
{projectBrowser}
- <Toaster theme="dark" className="pointer-events-auto" />
+ <Toaster className="pointer-events-auto" />
</div>
);
}
diff --git a/src/components/video-editor/timeline/Item.tsx b/src/components/video-editor/timeline/Item.tsx
index 82b85145..4af2d8d4 100644
--- a/src/components/video-editor/timeline/Item.tsx
+++ b/src/components/video-editor/timeline/Item.tsx
@@ -123,10 +123,7 @@ export default function Item({
style={{
height: "85%",
minHeight: 22,
- color: "#fff",
minWidth: MIN_ITEM_PX,
- backgroundImage:
- "linear-gradient(180deg, transparent 20%, rgba(255,255,255,0.08) 100%)",
}}
onClick={(event) => {
event.stopPropagation();
@@ -144,7 +141,7 @@ export default function Item({
title="Resize right"
/>
{/* Content */}
- <div className="relative z-10 flex flex-col items-center justify-center text-white/90 opacity-80 group-hover:opacity-100 transition-opacity select-none overflow-hidden">
+ <div className="relative z-10 flex flex-col items-center justify-center text-black/70 dark:text-white/90 opacity-80 group-hover:opacity-100 transition-opacity select-none overflow-hidden">
<div className="flex items-center gap-1.5">
{isZoom ? (
<>
diff --git a/src/components/video-editor/timeline/ItemGlass.module.css b/src/components/video-editor/timeline/ItemGlass.module.css
index 048c7602..64256bb4 100644
--- a/src/components/video-editor/timeline/ItemGlass.module.css
+++ b/src/components/video-editor/timeline/ItemGlass.module.css
@@ -1,20 +1,20 @@
.glassGreen {
position: relative;
border-radius: 8px;
- background: rgba(37, 99, 235, 0.38);
- border: 1px solid rgba(37, 99, 235, 0.5);
+ background: #183065;
+ border: 1px solid #1b3a7f;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassGreen:hover {
- background: rgba(37, 99, 235, 0.48);
- border-color: rgba(37, 99, 235, 0.65);
+ background: #1a387a;
+ border-color: #1e469f;
}
.glassGreen.selected {
- background: rgba(37, 99, 235, 0.55);
+ background: #1c3e89;
border-color: #2563eb;
box-shadow: inset 0 0 0 1.5px #2563eb;
z-index: 10;
@@ -23,20 +23,20 @@
.glassRed {
position: relative;
border-radius: 8px;
- background: rgba(239, 68, 68, 0.38);
- border: 1px solid rgba(239, 68, 68, 0.5);
+ background: #652425;
+ border: 1px solid #802a2b;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassRed:hover {
- background: rgba(239, 68, 68, 0.48);
- border-color: rgba(239, 68, 68, 0.65);
+ background: #7b292a;
+ border-color: #a13232;
}
.glassRed.selected {
- background: rgba(239, 68, 68, 0.55);
+ background: #8b2d2d;
border-color: #ef4444;
box-shadow: inset 0 0 0 1.5px #ef4444;
z-index: 10;
@@ -45,20 +45,20 @@
.glassYellow {
position: relative;
border-radius: 8px;
- background: rgba(180, 160, 70, 0.38);
- border: 1px solid rgba(180, 160, 70, 0.5);
+ background: #4e4726;
+ border: 1px solid #62582c;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassYellow:hover {
- background: rgba(180, 160, 70, 0.48);
- border-color: rgba(180, 160, 70, 0.65);
+ background: #5f552b;
+ border-color: #7a6d34;
}
.glassYellow.selected {
- background: rgba(180, 160, 70, 0.55);
+ background: #6a5f2f;
border-color: #b4a046;
box-shadow: inset 0 0 0 1.5px #b4a046;
z-index: 10;
@@ -67,20 +67,20 @@
.glassAmber {
position: relative;
border-radius: 8px;
- background: rgba(245, 158, 11, 0.38);
- border: 1px solid rgba(245, 158, 11, 0.5);
+ background: #67460f;
+ border: 1px solid #83570f;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassAmber:hover {
- background: rgba(245, 158, 11, 0.48);
- border-color: rgba(245, 158, 11, 0.65);
+ background: #7e540f;
+ border-color: #a56c0d;
}
.glassAmber.selected {
- background: rgba(245, 158, 11, 0.55);
+ background: #8e5e0e;
border-color: #f59e0b;
box-shadow: inset 0 0 0 1.5px #f59e0b;
z-index: 10;
@@ -89,20 +89,20 @@
.glassPurple {
position: relative;
border-radius: 8px;
- background: rgba(168, 85, 247, 0.38);
- border: 1px solid rgba(168, 85, 247, 0.5);
+ background: #4a2a69;
+ border: 1px solid #5c3385;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassPurple:hover {
- background: rgba(168, 85, 247, 0.48);
- border-color: rgba(168, 85, 247, 0.65);
+ background: #593180;
+ border-color: #733da7;
}
.glassPurple.selected {
- background: rgba(168, 85, 247, 0.55);
+ background: #643690;
border-color: #a855f7;
box-shadow: inset 0 0 0 1.5px #a855f7;
z-index: 10;
@@ -111,20 +111,20 @@
.glassCyan {
position: relative;
border-radius: 8px;
- background: rgba(37, 99, 235, 0.38);
- border: 1px solid rgba(37, 99, 235, 0.5);
+ background: #183065;
+ border: 1px solid #1b3a7f;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassCyan:hover {
- background: rgba(37, 99, 235, 0.48);
- border-color: rgba(37, 99, 235, 0.65);
+ background: #1a387a;
+ border-color: #1e469f;
}
.glassCyan.selected {
- background: rgba(37, 99, 235, 0.55);
+ background: #1c3e89;
border-color: #2563eb;
box-shadow: inset 0 0 0 1.5px #2563eb;
z-index: 10;
@@ -133,20 +133,20 @@
.glassDarkGreen {
position: relative;
border-radius: 8px;
- background: rgba(34, 197, 94, 0.35);
- border: 1px solid rgba(34, 197, 94, 0.5);
+ background: #164f2d;
+ border: 1px solid #196b38;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.glassDarkGreen:hover {
- background: rgba(34, 197, 94, 0.45);
- border-color: rgba(34, 197, 94, 0.65);
+ background: #186234;
+ border-color: #1c8643;
}
.glassDarkGreen.selected {
- background: rgba(34, 197, 94, 0.52);
+ background: #196e3a;
border-color: #22c55e;
box-shadow: inset 0 0 0 1.5px #22c55e;
z-index: 10;
@@ -173,6 +173,112 @@
background 0.15s ease;
}
+/* --- Light-mode overrides --- */
+:global(:root:not(.dark)) .glassGreen {
+ background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
+ border-color: #60a5fa;
+}
+:global(:root:not(.dark)) .glassGreen:hover {
+ background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 100%);
+ border-color: #3b82f6;
+}
+:global(:root:not(.dark)) .glassGreen.selected {
+ background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
+ border-color: #2563eb;
+ box-shadow: inset 0 0 0 1.5px #2563eb;
+}
+
+:global(:root:not(.dark)) .glassRed {
+ background: linear-gradient(180deg, #fee2e2 0%, #fca5a5 100%);
+ border-color: #f87171;
+}
+:global(:root:not(.dark)) .glassRed:hover {
+ background: linear-gradient(180deg, #fecaca 0%, #f87171 100%);
+ border-color: #ef4444;
+}
+:global(:root:not(.dark)) .glassRed.selected {
+ background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
+ border-color: #ef4444;
+ box-shadow: inset 0 0 0 1.5px #ef4444;
+}
+
+:global(:root:not(.dark)) .glassYellow {
+ background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
+ border-color: #facc15;
+}
+:global(:root:not(.dark)) .glassYellow:hover {
+ background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
+ border-color: #eab308;
+}
+:global(:root:not(.dark)) .glassYellow.selected {
+ background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
+ border-color: #b4a046;
+ box-shadow: inset 0 0 0 1.5px #b4a046;
+}
+
+:global(:root:not(.dark)) .glassAmber {
+ background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%);
+ border-color: #fbbf24;
+}
+:global(:root:not(.dark)) .glassAmber:hover {
+ background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
+ border-color: #f59e0b;
+}
+:global(:root:not(.dark)) .glassAmber.selected {
+ background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
+ border-color: #f59e0b;
+ box-shadow: inset 0 0 0 1.5px #f59e0b;
+}
+
+:global(:root:not(.dark)) .glassPurple {
+ background: linear-gradient(180deg, #f3e8ff 0%, #d8b4fe 100%);
+ border-color: #c084fc;
+}
+:global(:root:not(.dark)) .glassPurple:hover {
+ background: linear-gradient(180deg, #e9d5ff 0%, #c084fc 100%);
+ border-color: #a855f7;
+}
+:global(:root:not(.dark)) .glassPurple.selected {
+ background: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%);
+ border-color: #a855f7;
+ box-shadow: inset 0 0 0 1.5px #a855f7;
+}
+
+:global(:root:not(.dark)) .glassCyan {
+ background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
+ border-color: #60a5fa;
+}
+:global(:root:not(.dark)) .glassCyan:hover {
+ background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 100%);
+ border-color: #3b82f6;
+}
+:global(:root:not(.dark)) .glassCyan.selected {
+ background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
+ border-color: #2563eb;
+ box-shadow: inset 0 0 0 1.5px #2563eb;
+}
+
+:global(:root:not(.dark)) .glassDarkGreen {
+ background: linear-gradient(180deg, #dcfce7 0%, #86efac 100%);
+ border-color: #4ade80;
+}
+:global(:root:not(.dark)) .glassDarkGreen:hover {
+ background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 100%);
+ border-color: #22c55e;
+}
+:global(:root:not(.dark)) .glassDarkGreen.selected {
+ background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
+ border-color: #22c55e;
+ box-shadow: inset 0 0 0 1.5px #22c55e;
+}
+
+:global(:root:not(.dark)) .zoomEndCap {
+ background: rgba(0, 0, 0, 0.5);
+}
+:global(:root:not(.dark)) .zoomEndCap:hover {
+ background: rgba(0, 0, 0, 0.7);
+}
+
.zoomEndCap:hover {
background: rgba(255, 255, 255, 1);
}
diff --git a/src/components/video-editor/timeline/Row.tsx b/src/components/video-editor/timeline/Row.tsx
index 473c3f08..a59286e7 100644
--- a/src/components/video-editor/timeline/Row.tsx
+++ b/src/components/video-editor/timeline/Row.tsx
@@ -14,7 +14,7 @@ export default function Row({ id, children, label, hint, isEmpty, labelColor = "
return (
<div
- className="border-b border-[#18181b] bg-[#18181b] relative flex-1 min-h-[26px]"
+ className="bg-transparent relative flex-1 min-h-[26px]"
style={{ ...rowWrapperStyle, marginBottom: 2 }}
>
{label && (
@@ -27,7 +27,7 @@ export default function Row({ id, children, label, hint, isEmpty, labelColor = "
)}
{isEmpty && hint && (
<div className="absolute inset-0 flex items-center justify-center pointer-events-none select-none z-10">
- <span className="text-[11px] text-white/15 font-medium">{hint}</span>
+ <span className="text-[11px] text-foreground/15 font-medium">{hint}</span>
</div>
)}
<div ref={setNodeRef} className="relative h-full min-h-0" style={rowStyle}>
diff --git a/src/components/video-editor/timeline/Subrow.tsx b/src/components/video-editor/timeline/Subrow.tsx
index 803f5301..e16e578d 100644
--- a/src/components/video-editor/timeline/Subrow.tsx
+++ b/src/components/video-editor/timeline/Subrow.tsx
@@ -8,7 +8,7 @@ export default function Subrow({ children }: SubrowProps) {
return (
<div
className={cn(
- "flex items-center min-h-[24px] gap-1 px-1.5 py-0 bg-[#23232a] rounded-md text-slate-300",
+ "flex items-center min-h-[24px] gap-1 px-1.5 py-0 bg-transparent rounded-md text-foreground/60",
)}
>
{children}
diff --git a/src/components/video-editor/timeline/Timeline.module.css b/src/components/video-editor/timeline/Timeline.module.css
index b6d92783..88b1b49c 100644
--- a/src/components/video-editor/timeline/Timeline.module.css
+++ b/src/components/video-editor/timeline/Timeline.module.css
@@ -1,6 +1,6 @@
.scrollArea {
scrollbar-width: thin;
- scrollbar-color: rgba(107, 107, 107, 0.7) transparent;
+ scrollbar-color: hsl(var(--foreground) / 0.25) transparent;
}
.scrollArea::-webkit-scrollbar {
@@ -14,15 +14,15 @@
}
.scrollArea::-webkit-scrollbar-thumb {
- background-color: rgba(107, 107, 107, 0.7);
+ background-color: hsl(var(--foreground) / 0.25);
border-radius: 10px;
- border: 2px solid #1c1c1e;
+ border: 2px solid hsl(var(--editor-surface));
}
.scrollArea::-webkit-scrollbar-thumb:hover {
- background-color: rgba(140, 140, 140, 0.9);
+ background-color: hsl(var(--foreground) / 0.35);
}
.scrollArea::-webkit-scrollbar-thumb:active {
- background-color: rgba(160, 160, 160, 1);
+ background-color: hsl(var(--foreground) / 0.45);
}
diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx
index cc0efa36..202eb41a 100644
--- a/src/components/video-editor/timeline/TimelineEditor.tsx
+++ b/src/components/video-editor/timeline/TimelineEditor.tsx
@@ -398,10 +398,10 @@ function PlaybackCursor({
className="absolute -top-1 left-1/2 -translate-x-1/2 hover:scale-125 transition-transform"
style={{ width: "16px", height: "16px" }}
>
- <div className="w-3 h-3 mx-auto mt-[2px] bg-[#2563EB] rotate-45 rounded-sm shadow-lg border border-white/20" />
+ <div className="w-3 h-3 mx-auto mt-[2px] bg-[#2563EB] rotate-45 rounded-sm shadow-lg border border-foreground/20" />
</div>
{isDragging && (
- <div className="absolute -top-6 left-1/2 -translate-x-1/2 px-1.5 py-0.5 rounded bg-black/80 text-[10px] text-white/90 font-medium tabular-nums whitespace-nowrap border border-white/10 shadow-lg pointer-events-none">
+ <div className="absolute -top-6 left-1/2 -translate-x-1/2 px-1.5 py-0.5 rounded bg-black/80 text-[10px] text-foreground/90 font-medium tabular-nums whitespace-nowrap border border-foreground/10 shadow-lg pointer-events-none">
{formatPlayheadTime(clampedTime)}
</div>
)}
@@ -480,7 +480,7 @@ function TimelineAxis({
return (
<div
- className="h-8 bg-[#161619] border-b border-white/10 relative overflow-hidden select-none"
+ className="h-8 bg-editor-bg border-b border-foreground/10 relative overflow-hidden select-none"
style={{
[sideProperty === "right" ? "marginRight" : "marginLeft"]: `${sidebarWidth}px`,
}}
@@ -491,7 +491,7 @@ function TimelineAxis({
return (
<div
key={`minor-${time}`}
- className="absolute bottom-1 h-1 w-[1px] bg-white/5"
+ className="absolute bottom-1 h-1 w-[1px] bg-foreground/5"
style={{ [sideProperty]: `${offset}px` }}
/>
);
@@ -514,13 +514,13 @@ function TimelineAxis({
return (
<div key={marker.time} style={markerStyle}>
<div className="flex flex-col items-center pb-1">
- <div className="mb-1.5 h-[5px] w-[5px] rounded-full bg-white/30" />
+ <div className="mb-1.5 h-[5px] w-[5px] rounded-full bg-foreground/30" />
<span
className={cn(
"text-[10px] font-medium tabular-nums tracking-tight",
marker.time === currentTimeMs
? "text-[#2563EB]"
- : "text-white/40",
+ : "text-foreground/40",
)}
>
{marker.label}
@@ -703,10 +703,10 @@ function Timeline({
<div
ref={setRefs}
style={style}
- className="select-none bg-[#17171a] h-full min-h-0 relative cursor-pointer group flex flex-col"
+ className="select-none bg-editor-bg h-full min-h-0 relative cursor-pointer group flex flex-col"
onClick={handleTimelineClick}
>
- <div className="absolute inset-0 bg-[linear-gradient(to_right,#ffffff03_1px,transparent_1px)] bg-[length:20px_100%] pointer-events-none" />
+ <div className="absolute inset-0 bg-[linear-gradient(to_right,hsl(var(--foreground)/0.03)_1px,transparent_1px)] bg-[length:20px_100%] pointer-events-none" />
<TimelineAxis videoDurationMs={videoDurationMs} currentTimeMs={currentTimeMs} />
<PlaybackCursor
currentTimeMs={currentTimeMs}
@@ -1895,13 +1895,13 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
if (!videoDuration || videoDuration === 0) {
return (
- <div className="flex-1 flex flex-col items-center justify-center rounded-lg bg-[#17171a] gap-3">
- <div className="w-12 h-12 rounded-full bg-white/5 flex items-center justify-center">
- <Plus className="w-6 h-6 text-slate-600" />
+ <div className="flex-1 flex flex-col items-center justify-center rounded-lg bg-editor-surface gap-3">
+ <div className="w-12 h-12 rounded-full bg-foreground/5 flex items-center justify-center">
+ <Plus className="w-6 h-6 text-muted-foreground" />
</div>
<div className="text-center">
- <p className="text-sm font-medium text-slate-300">No Video Loaded</p>
- <p className="text-xs text-slate-500 mt-1">
+ <p className="text-sm font-medium text-muted-foreground">No Video Loaded</p>
+ <p className="text-xs text-muted-foreground/70 mt-1">
Drag and drop a video to start editing
</p>
</div>
@@ -1910,15 +1910,15 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
}
return (
- <div className="flex-1 min-h-0 flex flex-col bg-[#17171a] overflow-auto">
+ <div className="flex-1 min-h-0 flex flex-col bg-editor-bg overflow-auto">
{hideToolbar ? null : (
- <div className="flex items-center gap-2 px-4 py-2 border-b border-white/10 bg-[#161619]">
+ <div className="flex items-center gap-2 px-4 py-2 border-b border-foreground/10 bg-editor-panel">
<div className="flex items-center gap-1">
<Button
onClick={handleAddZoom}
variant="ghost"
size="icon"
- className="h-7 w-7 text-slate-400 hover:text-[#2563EB] hover:bg-[#2563EB]/10 transition-all"
+ className="h-7 w-7 text-muted-foreground hover:text-[#2563EB] hover:bg-[#2563EB]/10 transition-all"
title="Add Zoom (Z)"
>
<ZoomIn className="w-4 h-4" />
@@ -1927,7 +1927,7 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
onClick={handleSuggestZooms}
variant="ghost"
size="icon"
- className="h-7 w-7 text-slate-400 hover:text-[#2563EB] hover:bg-[#2563EB]/10 transition-all"
+ className="h-7 w-7 text-muted-foreground hover:text-[#2563EB] hover:bg-[#2563EB]/10 transition-all"
title="Suggest Zooms from Cursor"
>
<WandSparkles className="w-4 h-4" />
@@ -1936,7 +1936,7 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
onClick={() => handleAddAnnotation()}
variant="ghost"
size="icon"
- className="h-7 w-7 text-slate-400 hover:text-[#B4A046] hover:bg-[#B4A046]/10 transition-all"
+ className="h-7 w-7 text-muted-foreground hover:text-[#B4A046] hover:bg-[#B4A046]/10 transition-all"
title="Add Annotation (A)"
>
<MessageSquare className="w-4 h-4" />
@@ -1945,7 +1945,7 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
onClick={handleAddAudio}
variant="ghost"
size="icon"
- className="h-7 w-7 text-slate-400 hover:text-[#a855f7] hover:bg-[#a855f7]/10 transition-all"
+ className="h-7 w-7 text-muted-foreground hover:text-[#a855f7] hover:bg-[#a855f7]/10 transition-all"
title="Add Audio"
>
<Music className="w-4 h-4" />
@@ -1954,7 +1954,7 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
onClick={handleSplitClip}
variant="ghost"
size="icon"
- className="h-7 w-7 text-slate-400 hover:text-white hover:bg-white/10 transition-all"
+ className="h-7 w-7 text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all"
title="Split Clip (C)"
>
<Scissors className="w-4 h-4" />
@@ -1966,7 +1966,7 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
<Button
variant="ghost"
size="sm"
- className="h-7 px-2 text-xs text-slate-400 hover:text-slate-200 hover:bg-white/10 transition-all gap-1"
+ className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all gap-1"
>
<span className="font-medium">
{getAspectRatioLabel(aspectRatio)}
@@ -1976,13 +1976,13 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
</DropdownMenuTrigger>
<DropdownMenuContent
align="end"
- className="bg-[#1a1a1c] border-white/10"
+ className="bg-editor-surface-alt border-foreground/10"
>
{ASPECT_RATIOS.map((ratio) => (
<DropdownMenuItem
key={ratio}
onClick={() => onAspectRatioChange?.(ratio)}
- className="text-slate-300 hover:text-white hover:bg-white/10 cursor-pointer flex items-center justify-between gap-3"
+ className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 cursor-pointer flex items-center justify-between gap-3"
>
<span>{getAspectRatioLabel(ratio)}</span>
{aspectRatio === ratio && (
@@ -1990,8 +1990,8 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
)}
</DropdownMenuItem>
))}
- <div className="mx-1 my-1 h-px bg-white/10" />
- <div className="px-2 py-1.5 flex items-center gap-2 text-slate-300">
+ <div className="mx-1 my-1 h-px bg-foreground/10" />
+ <div className="px-2 py-1.5 flex items-center gap-2 text-muted-foreground">
<span className="text-sm">Custom</span>
<input
type="text"
@@ -2003,10 +2003,10 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
)
}
onKeyDown={handleCustomAspectRatioKeyDown}
- className="w-12 h-7 rounded border border-white/15 bg-black/20 px-1.5 text-sm text-slate-100 focus:outline-none focus:ring-1 focus:ring-[#2563EB]"
+ className="w-12 h-7 rounded border border-white/15 bg-black/20 px-1.5 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#2563EB]"
aria-label="Custom aspect width"
/>
- <span className="text-slate-500">:</span>
+ <span className="text-muted-foreground/70">:</span>
<input
type="text"
inputMode="numeric"
@@ -2017,14 +2017,14 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
)
}
onKeyDown={handleCustomAspectRatioKeyDown}
- className="w-12 h-7 rounded border border-white/15 bg-black/20 px-1.5 text-sm text-slate-100 focus:outline-none focus:ring-1 focus:ring-[#2563EB]"
+ className="w-12 h-7 rounded border border-white/15 bg-black/20 px-1.5 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#2563EB]"
aria-label="Custom aspect height"
/>
<Button
variant="ghost"
size="sm"
onClick={applyCustomAspectRatio}
- className="h-7 px-2 text-xs text-slate-300 hover:text-white hover:bg-white/10"
+ className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10"
>
Set
</Button>
@@ -2034,12 +2034,12 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
</div>
</DropdownMenuContent>
</DropdownMenu>
- <div className="w-[1px] h-4 bg-white/10" />
+ <div className="w-[1px] h-4 bg-foreground/10" />
<Button
variant="ghost"
size="sm"
onClick={() => onOpenCropEditor?.()}
- className="h-7 px-2 text-xs text-slate-400 hover:text-slate-200 hover:bg-white/10 transition-all gap-1.5"
+ className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all gap-1.5"
>
<Crop className="w-3.5 h-3.5" />
<span className="font-medium">{t("sections.crop", "Crop")}</span>
@@ -2049,21 +2049,21 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
</Button>
</div>
<div className="flex-1" />
- <div className="flex items-center gap-4 text-[10px] text-slate-500 font-medium">
+ <div className="flex items-center gap-4 text-[10px] text-muted-foreground/70 font-medium">
<span className="flex items-center gap-1.5">
- <kbd className="px-1.5 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-sans">
+ <kbd className="px-1.5 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-sans">
Side Scroll
</kbd>
<span>Pan</span>
</span>
<span className="flex items-center gap-1.5">
- <kbd className="px-1.5 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-sans">
+ <kbd className="px-1.5 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-sans">
{scrollLabels.pan}
</kbd>
<span>Pan</span>
</span>
<span className="flex items-center gap-1.5">
- <kbd className="px-1.5 py-0.5 bg-white/5 border border-white/10 rounded text-[#2563EB] font-sans">
+ <kbd className="px-1.5 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-sans">
{scrollLabels.zoom}
</kbd>
<span>Zoom</span>
@@ -2073,7 +2073,7 @@ const TimelineEditor = forwardRef<TimelineEditorHandle, TimelineEditorProps>(
)}
<div
ref={timelineContainerRef}
- className="flex-1 min-h-0 overflow-auto bg-[#17171a] relative"
+ className="flex-1 min-h-0 overflow-auto bg-editor-bg relative"
tabIndex={0}
onFocus={() => {
isTimelineFocusedRef.current = true;
diff --git a/src/components/video-editor/timeline/TimelineWrapper.tsx b/src/components/video-editor/timeline/TimelineWrapper.tsx
index ab2e975f..b23718a6 100644
--- a/src/components/video-editor/timeline/TimelineWrapper.tsx
+++ b/src/components/video-editor/timeline/TimelineWrapper.tsx
@@ -370,7 +370,7 @@ export default function TimelineWrapper({
{/* Floating tooltip shown during drag/resize */}
<div
ref={tooltipRef}
- className="absolute top-1 pointer-events-none z-[60] px-1.5 py-0.5 rounded bg-black/80 text-[10px] text-white/90 font-medium tabular-nums whitespace-nowrap border border-white/10 shadow-lg"
+ className="absolute top-1 pointer-events-none z-[60] px-1.5 py-0.5 rounded bg-editor-bg/90 text-[10px] text-foreground/90 font-medium tabular-nums whitespace-nowrap border border-foreground/10 shadow-lg"
style={{ opacity: 0, transition: "opacity 0.1s" }}
/>
</div>
diff --git a/src/components/video-editor/timeline/Track.tsx b/src/components/video-editor/timeline/Track.tsx
index b1a542ce..a732b484 100644
--- a/src/components/video-editor/timeline/Track.tsx
+++ b/src/components/video-editor/timeline/Track.tsx
@@ -27,7 +27,7 @@ export default function Track({ id, children, hint, isEmpty, trackStyle }: Track
>
{isEmpty && hint ? (
<div className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center select-none">
- <span className="rounded-full border border-white/[0.05] bg-white/[0.02] px-2 py-0.5 text-[9px] font-medium tracking-[0.04em] text-white/30 uppercase">
+ <span className="rounded-full border border-foreground/[0.05] bg-foreground/[0.02] px-2 py-0.5 text-[9px] font-medium tracking-[0.04em] text-foreground/30 uppercase">
{hint}
</span>
</div>
diff --git a/src/index.css b/src/index.css
index 61638d83..123167f2 100644
--- a/src/index.css
+++ b/src/index.css
@@ -50,6 +50,24 @@
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
--radius: 0.5rem;
+
+ /* Editor surface colors — light mode */
+ --editor-bg: 0 0% 100%;
+ --editor-header: 0 0% 97%;
+ --editor-panel: 0 0% 98%;
+ --editor-surface: 0 0% 97%;
+ --editor-surface-alt: 0 0% 95%;
+ --editor-dialog: 0 0% 100%;
+ --editor-dialog-alt: 0 0% 98%;
+ --editor-timeline: 240 6% 7%;
+ --editor-row: 240 4% 10%;
+ --editor-subrow: 240 7% 15%;
+
+ /* Slider track colors — light mode */
+ --slider-track: 0 0% 0% / 0.12;
+ --slider-thumb: 0 0% 10%;
+ --slider-thumb-shadow: 0 0% 0% / 0.22;
+ --slider-glow: 0 0% 0% / 0.35;
}
.dark {
--background: 20 14.3% 4.1%;
@@ -76,6 +94,24 @@
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
+
+ /* Editor surface colors — dark mode */
+ --editor-bg: 240 6% 7%;
+ --editor-header: 240 5% 8.5%;
+ --editor-panel: 240 5% 9%;
+ --editor-surface: 240 4% 10%;
+ --editor-surface-alt: 240 5% 11%;
+ --editor-dialog: 240 10% 3%;
+ --editor-dialog-alt: 237 9% 5%;
+ --editor-timeline: 240 6% 7%;
+ --editor-row: 240 4% 10%;
+ --editor-subrow: 240 7% 15%;
+
+ /* Slider track colors — dark mode */
+ --slider-track: 0 0% 100% / 0.12;
+ --slider-thumb: 0 0% 100%;
+ --slider-thumb-shadow: 0 0% 100% / 0.32;
+ --slider-glow: 0 0% 100% / 0.5;
}
}
@@ -160,13 +196,13 @@
input[type="range"]::-webkit-slider-runnable-track {
border-radius: 100px;
height: 4px;
- background: rgba(255, 255, 255, 0.12);
+ background: hsl(var(--slider-track));
}
input[type="range"]::-moz-range-track {
border-radius: 100px;
height: 4px;
- background: rgba(255, 255, 255, 0.12);
+ background: hsl(var(--slider-track));
}
input[type="range"]::-webkit-slider-thumb {
@@ -175,17 +211,17 @@
width: 16px;
height: 16px;
border-radius: 50%;
- background: #fff;
+ background: hsl(var(--slider-thumb));
cursor: pointer;
- box-shadow: 0 2px 8px rgba(255, 255, 255, 0.32);
- border: 2px solid #fff;
+ box-shadow: 0 2px 8px hsl(var(--slider-thumb-shadow));
+ border: 2px solid hsl(var(--slider-thumb));
transition: all 0.08s ease-out;
}
input[type="range"]::-webkit-slider-thumb:hover {
- background: #fff;
+ background: hsl(var(--slider-thumb));
transform: scale(1.15);
- box-shadow: 0 3px 10px rgba(255, 255, 255, 0.5);
+ box-shadow: 0 3px 10px hsl(var(--slider-glow));
border-color: var(--brand-accent);
}
@@ -197,17 +233,17 @@
width: 16px;
height: 16px;
border-radius: 50%;
- background: #fff;
+ background: hsl(var(--slider-thumb));
cursor: pointer;
- border: 2px solid #fff;
- box-shadow: 0 2px 8px rgba(255, 255, 255, 0.32);
+ border: 2px solid hsl(var(--slider-thumb));
+ box-shadow: 0 2px 8px hsl(var(--slider-thumb-shadow));
transition: all 0.08s ease-out;
}
input[type="range"]::-moz-range-thumb:hover {
- background: #fff;
+ background: hsl(var(--slider-thumb));
transform: scale(1.15);
- box-shadow: 0 3px 10px rgba(255, 255, 255, 0.5);
+ box-shadow: 0 3px 10px hsl(var(--slider-glow));
border-color: var(--brand-accent);
}
diff --git a/src/main.tsx b/src/main.tsx
index 5d6ff6b1..2e7b08a1 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -2,14 +2,17 @@ import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import { I18nProvider } from "./contexts/I18nContext.tsx";
+import { ThemeProvider } from "./contexts/ThemeContext.tsx";
import "./index.css";
document.documentElement.dataset.platform = /mac/i.test(navigator.platform) ? "macos" : "other";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
- <I18nProvider>
- <App />
- </I18nProvider>
+ <ThemeProvider>
+ <I18nProvider>
+ <App />
+ </I18nProvider>
+ </ThemeProvider>
</React.StrictMode>,
);
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 4a3cae0a..4b90a104 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -64,6 +64,16 @@ module.exports = {
4: "hsl(var(--chart-4))",
5: "hsl(var(--chart-5))",
},
+ "editor-bg": "hsl(var(--editor-bg))",
+ "editor-header": "hsl(var(--editor-header))",
+ "editor-panel": "hsl(var(--editor-panel))",
+ "editor-surface": "hsl(var(--editor-surface))",
+ "editor-surface-alt": "hsl(var(--editor-surface-alt))",
+ "editor-dialog": "hsl(var(--editor-dialog))",
+ "editor-dialog-alt": "hsl(var(--editor-dialog-alt))",
+ "editor-timeline": "hsl(var(--editor-timeline))",
+ "editor-row": "hsl(var(--editor-row))",
+ "editor-subrow": "hsl(var(--editor-subrow))",
},
},
},