Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: remove bg from remocnui
dev_wandry9d6e95014d5e
diff --git a/components/docs/examples/alert-dialog-example.tsx b/components/docs/examples/alert-dialog-example.tsxindex 736d61da..e49174d8 100644--- a/components/docs/examples/alert-dialog-example.tsx+++ b/components/docs/examples/alert-dialog-example.tsx@@ -6,7 +6,7 @@ import { Button } from "@/registry/remocn-ui/button";import { useButtonTransition } from "@/registry/remocn-ui/button/use-button-transition";export const alertDialogExampleControls = [- "title", "description", "actionLabel", "cancelLabel", "mode",+ "title", "description", "actionLabel", "cancelLabel",] as const;export interface AlertDialogExampleProps {@@ -14,7 +14,6 @@ export interface AlertDialogExampleProps {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: "light" | "dark";}export const AlertDialogExampleScene = (p: AlertDialogExampleProps = {}) => {@@ -25,25 +24,21 @@ export const AlertDialogExampleScene = (p: AlertDialogExampleProps = {}) => {{ at: 14, state: "hover" },{ at: 26, state: "press" },],- { variant: "destructive", mode: p.mode },+ { variant: "destructive" },);// The dialog opens right after the press, then closes near the end.- const dialog = useAlertDialogTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const dialog = useAlertDialogTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Delete account" variant="destructive" mode={p.mode ?? "light"} style={trigger} />+ <Button label="Delete account" variant="destructive" style={trigger} /><AlertDialogtitle={p.title ?? "Delete account?"}description={p.description ?? "This action cannot be undone. This will permanently remove your data from our servers."}actionLabel={p.actionLabel ?? "Delete"}cancelLabel={p.cancelLabel ?? "Cancel"}- mode={p.mode ?? "light"}style={dialog}/></>@@ -57,19 +52,13 @@ export const alertDialogExampleCode = (const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const alertDialogProps: string[] = [];if (title !== undefined && title !== "Delete account?") alertDialogProps.push(`title="${title}"`);if (description !== undefined && description !== "This action cannot be undone. This will permanently remove your data from our servers.") alertDialogProps.push(`description="${description}"`);if (actionLabel !== undefined && actionLabel !== "Delete") alertDialogProps.push(`actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel") alertDialogProps.push(`cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light") alertDialogProps.push(`mode="${mode}"`);- const modeOptStr = mode !== undefined && mode !== "light" ? `, mode: "${mode}"` : "";- const dialogOptsStr = mode !== undefined && mode !== "light" ? `, { mode: "${mode}" }` : "";-- const buttonModeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";const alertDialogPropsStr = alertDialogProps.length ? ` ${alertDialogProps.join(" ")}` : "";return `import { AlertDialog } from "@/components/remocn/alert-dialog";@@ -83,18 +72,16 @@ export const Scene = () => {{ at: 14, state: "hover" },{ at: 26, state: "press" },],- { variant: "destructive"${modeOptStr} },- );- const dialog = useAlertDialogTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ]${dialogOptsStr},+ { variant: "destructive" },);+ const dialog = useAlertDialogTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Delete account" variant="destructive"${buttonModeStr} style={trigger} />+ <Button label="Delete account" variant="destructive" style={trigger} /><AlertDialog${alertDialogPropsStr} style={dialog} /></>);diff --git a/components/docs/examples/button-example.tsx b/components/docs/examples/button-example.tsxindex b47eee9c..ebbb934b 100644--- a/components/docs/examples/button-example.tsx+++ b/components/docs/examples/button-example.tsx@@ -5,7 +5,7 @@ import { useButtonTransition } from "@/registry/remocn-ui/button/use-button-tran/*** Honored display props the scene threads straight into `<Button>`. The button's- * full flat-prop surface is label/variant/size/state/mode/primary; `state` is+ * full flat-prop surface is label/variant/size/state/primary; `state` is* owned by the timeline (`useButtonTransition` → `style`, which takes precedence* over `state`) so it is EXCLUDED, and the shared `speed` knob is excluded too.* This list IS the per-component honored allowlist consumed by UiComponentPreview.@@ -15,7 +15,6 @@ export const buttonExampleControls = ["variant","size","primary",- "mode",] as const;export interface ButtonExampleProps {@@ -23,15 +22,14 @@ export interface ButtonExampleProps {variant?: "default" | "secondary" | "destructive" | "outline" | "ghost";size?: "sm" | "default" | "lg";primary?: string;- mode?: "light" | "dark";}export const ButtonExampleScene = (p: ButtonExampleProps = {}) => {// Timeline owns `state` via the interpolated style — never a flat prop.// Forward the honored color props into the hook so the interpolated background- // tracks the current variant/mode/primary. Without this the style bakes the- // default-variant light background and `style` (which wins over the component's- // own variant/mode) makes those toggles no-ops on the button surface.+ // tracks the current variant/primary. Without this the style bakes the+ // default-variant background and `style` (which wins over the component's+ // own variant) makes those toggles no-ops on the button surface.const style = useButtonTransition([{ at: 12, state: "hover" },@@ -39,7 +37,7 @@ export const ButtonExampleScene = (p: ButtonExampleProps = {}) => {{ at: 48, state: "loading", duration: 6 },{ at: 96, state: "success", duration: 16 },],- { variant: p.variant, mode: p.mode, primary: p.primary },+ { variant: p.variant, primary: p.primary },);return (<Button@@ -47,7 +45,6 @@ export const ButtonExampleScene = (p: ButtonExampleProps = {}) => {variant={p.variant ?? "default"}size={p.size ?? "default"}primary={p.primary}- mode={p.mode ?? "light"}style={style}/>);@@ -64,7 +61,6 @@ export const buttonExampleCode = (const label = values.label as string | undefined;const variant = values.variant as string | undefined;const size = values.size as string | undefined;- const mode = values.mode as string | undefined;const primary = values.primary as string | undefined;const props: string[] = [];@@ -73,7 +69,6 @@ export const buttonExampleCode = (if (variant !== undefined && variant !== "default")props.push(`variant="${variant}"`);if (size !== undefined && size !== "default") props.push(`size="${size}"`);- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);if (primary !== undefined && primary !== "#171717")props.push(`primary="${primary}"`);@@ -86,7 +81,6 @@ export const buttonExampleCode = (const hookOpts: string[] = [];if (variant !== undefined && variant !== "default")hookOpts.push(`variant: "${variant}"`);- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);if (primary !== undefined && primary !== "#171717")hookOpts.push(`primary: "${primary}"`);const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";diff --git a/components/docs/examples/combobox-example.tsx b/components/docs/examples/combobox-example.tsxindex 03dd08f6..fdd8c828 100644--- a/components/docs/examples/combobox-example.tsx+++ b/components/docs/examples/combobox-example.tsx@@ -12,24 +12,20 @@ const TYPE_START = 32;const FPS = 30;const CPS = 4;-export const comboboxExampleControls = ["placeholder", "mode"] as const;+export const comboboxExampleControls = ["placeholder"] as const;export interface ComboboxExampleProps {placeholder?: string;- mode?: "light" | "dark";}export const ComboboxExampleScene = (p: ComboboxExampleProps = {}) => {const frame = useCurrentFrame();// Panel: opens at frame 16, closes at frame 100.- const panelStyle = useComboboxTransition(- [- { at: 16, state: "opened", duration: 12 },- { at: 100, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const panelStyle = useComboboxTransition([+ { at: 16, state: "opened", duration: 12 },+ { at: 100, state: "closed", duration: 12 },+ ]);// Reveal "ba" character by character starting at frame 32.const revealed = revealCount(@@ -41,14 +37,11 @@ export const ComboboxExampleScene = (p: ComboboxExampleProps = {}) => {// Animate the first row of the filtered list: idle → hover → press → selected.// Once "ba" is fully revealed, only Banana remains; row 0 of the filtered list.- const itemStyle = useSelectItemTransition(- [- { at: 60, state: "hover", duration: 8 },- { at: 72, state: "press", duration: 6 },- { at: 80, state: "selected", duration: 8 },- ],- { mode: p.mode },- );+ const itemStyle = useSelectItemTransition([+ { at: 60, state: "hover", duration: 8 },+ { at: 72, state: "press", duration: 6 },+ { at: 80, state: "selected", duration: 8 },+ ]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>@@ -58,7 +51,6 @@ export const ComboboxExampleScene = (p: ComboboxExampleProps = {}) => {revealCount={revealed}itemStyles={[itemStyle]}placeholder={p.placeholder ?? "Select a fruit…"}- mode={p.mode ?? "light"}/></div>);@@ -68,17 +60,13 @@ export const comboboxExampleCode = (values: Record<string, unknown> = {},): string => {const placeholder = values.placeholder as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [];if (placeholder !== undefined && placeholder !== "Select a fruit…")props.push(`placeholder="${placeholder}"`);- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);const extraProps = props.length ? `\n ${props.join("\n ")}` : "";- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";+ const optsStr = "";return `import { useCurrentFrame } from "remotion";import { revealCount } from "@/lib/remocn-ui";diff --git a/components/docs/examples/command-menu-example.tsx b/components/docs/examples/command-menu-example.tsxindex b7bbadbd..080419eb 100644--- a/components/docs/examples/command-menu-example.tsx+++ b/components/docs/examples/command-menu-example.tsx@@ -13,23 +13,18 @@ const TYPE_START = 20;const FPS = 30;const CPS = 4;-export const commandMenuExampleControls = ["mode"] as const;+export const commandMenuExampleControls = [] as const;-export interface CommandMenuExampleProps {- mode?: "light" | "dark";-}+export interface CommandMenuExampleProps {}-export const CommandMenuExampleScene = (p: CommandMenuExampleProps = {}) => {+export const CommandMenuExampleScene = (_p: CommandMenuExampleProps = {}) => {const frame = useCurrentFrame();// Panel: closed → opened at frame 16, then closed again at frame 108.- const panelStyle = useCommandMenuTransition(- [- { at: 16, state: "opened", duration: 16 },- { at: 108, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const panelStyle = useCommandMenuTransition([+ { at: 16, state: "opened", duration: 16 },+ { at: 108, state: "closed", duration: 12 },+ ]);// Reveal query characters from TYPE_START onward.const revealed = revealCount(@@ -41,14 +36,11 @@ export const CommandMenuExampleScene = (p: CommandMenuExampleProps = {}) => {// The filtered list shrinks as more characters are revealed. We animate the// first row of the filtered list (which becomes "Settings" once "set" is typed).- const itemStyle = useCommandMenuItemTransition(- [- { at: 84, state: "hover", duration: 8 },- { at: 92, state: "press", duration: 6 },- { at: 100, state: "selected", duration: 8 },- ],- { mode: p.mode },- );+ const itemStyle = useCommandMenuItemTransition([+ { at: 84, state: "hover", duration: 8 },+ { at: 92, state: "press", duration: 6 },+ { at: 100, state: "selected", duration: 8 },+ ]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>@@ -57,7 +49,6 @@ export const CommandMenuExampleScene = (p: CommandMenuExampleProps = {}) => {query={QUERY}revealCount={revealed}itemStyles={[itemStyle]}- mode={p.mode ?? "light"}/></div>);@@ -66,15 +57,8 @@ export const CommandMenuExampleScene = (p: CommandMenuExampleProps = {}) => {export const commandMenuExampleCode = (values: Record<string, unknown> = {},): string => {- const mode = values.mode as string | undefined;-- const props: string[] = [];- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);- const extraProps = props.length ? `\n ${props.join("\n ")}` : "";-- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";+ const extraProps = "";+ const optsStr = "";return `import { useCurrentFrame } from "remotion";import { revealCount } from "@/lib/remocn-ui";diff --git a/components/docs/examples/context-menu-example.tsx b/components/docs/examples/context-menu-example.tsxindex 49b5d4d5..517496ef 100644--- a/components/docs/examples/context-menu-example.tsx+++ b/components/docs/examples/context-menu-example.tsx@@ -18,10 +18,9 @@ const ROW1_Y = CLICK_Y + 60;export interface ContextMenuExampleProps {items?: string[];- mode?: "light" | "dark";}-export const contextMenuExampleControls = ["items", "mode"] as const;+export const contextMenuExampleControls = ["items"] as const;export const ContextMenuExampleScene = (p: ContextMenuExampleProps = {}) => {// Cursor: park → ease to card → right-click → move DOWN onto row 1 → click it → leave.@@ -35,13 +34,10 @@ export const ContextMenuExampleScene = (p: ContextMenuExampleProps = {}) => {]);// Menu: opens just after the right-click, closes after the row interaction.- const menuStyle = useContextMenuTransition(- [- { at: 44, state: "opened", duration: 10 },- { at: 92, state: "closed", duration: 10 },- ],- { mode: p.mode },- );+ const menuStyle = useContextMenuTransition([+ { at: 44, state: "opened", duration: 10 },+ { at: 92, state: "closed", duration: 10 },+ ]);// Row 1 ("Reload"): idle → hover → press → idle.const rowState = useCurrentState(@@ -52,7 +48,7 @@ export const ContextMenuExampleScene = (p: ContextMenuExampleProps = {}) => {],"idle",);- const rowStyle = useDropdownMenuItemTransition([{ at: 0, state: rowState }], { mode: p.mode });+ const rowStyle = useDropdownMenuItemTransition([{ at: 0, state: rowState }]);const items = p.items ?? ["Back", "Reload", "Save As…", "Inspect"];@@ -103,7 +99,6 @@ export const ContextMenuExampleScene = (p: ContextMenuExampleProps = {}) => {style={menuStyle}items={items}itemStyles={[undefined, rowStyle, undefined, undefined]}- mode={p.mode ?? "light"}/></div>@@ -116,17 +111,10 @@ export const contextMenuExampleCode = (values: Record<string, unknown> = {},): string => {const items = values.items as string[] | undefined;- const mode = values.mode as string | undefined;const props: string[] = [];if (items !== undefined) props.push(`items={${JSON.stringify(items)}}`);- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);const extraProps = props.length ? `\n ${props.join("\n ")}` : "";- const modeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";-- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";return `import { Cursor } from "@/components/remocn/cursor";import { useCursorPath } from "@/components/remocn/use-cursor-path";@@ -154,12 +142,10 @@ export const Scene = () => {]);// Menu opens at the click point, closes after the row interaction.- const menuStyle = useContextMenuTransition(- [- { at: 44, state: "opened", duration: 10 },- { at: 92, state: "closed", duration: 10 },- ]${optsStr},- );+ const menuStyle = useContextMenuTransition([+ { at: 44, state: "opened", duration: 10 },+ { at: 92, state: "closed", duration: 10 },+ ]);// Animate row 1 ("Reload"): idle → hover → press → idle.const rowState = useCurrentState(@@ -170,7 +156,7 @@ export const Scene = () => {],"idle",);- const rowStyle = useDropdownMenuItemTransition([{ at: 0, state: rowState }]${optsStr});+ const rowStyle = useDropdownMenuItemTransition([{ at: 0, state: rowState }]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>@@ -199,7 +185,7 @@ export const Scene = () => {/></div>- <Cursor style={cursorStyle} variant="pointer"${modeStr} />+ <Cursor style={cursorStyle} variant="pointer" /></div>);};`;diff --git a/components/docs/examples/dialog-example.tsx b/components/docs/examples/dialog-example.tsxindex 84d48217..1b082a71 100644--- a/components/docs/examples/dialog-example.tsx+++ b/components/docs/examples/dialog-example.tsx@@ -6,7 +6,7 @@ import { Dialog } from "@/registry/remocn-ui/dialog";import { useDialogTransition } from "@/registry/remocn-ui/dialog/use-dialog-transition";export const dialogExampleControls = [- "title", "description", "actionLabel", "cancelLabel", "mode",+ "title", "description", "actionLabel", "cancelLabel",] as const;export interface DialogExampleProps {@@ -14,36 +14,28 @@ export interface DialogExampleProps {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: "light" | "dark";}export const DialogExampleScene = (p: DialogExampleProps = {}) => {// The trigger Button: idle → hover → press, the press lands just before the// dialog opens (the "click" that triggers it).- const trigger = useButtonTransition(- [- { at: 14, state: "hover" },- { at: 26, state: "press" },- ],- { mode: p.mode },- );+ const trigger = useButtonTransition([+ { at: 14, state: "hover" },+ { at: 26, state: "press" },+ ]);// The dialog opens right after the press, then closes near the end.- const dialog = useDialogTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const dialog = useDialogTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Edit profile" mode={p.mode ?? "light"} style={trigger} />+ <Button label="Edit profile" style={trigger} /><Dialogtitle={p.title ?? "Edit profile"}description={p.description ?? "Make changes to your profile here. Click save when you're done."}actionLabel={p.actionLabel ?? "Save changes"}cancelLabel={p.cancelLabel ?? "Cancel"}- mode={p.mode ?? "light"}style={dialog}/></>@@ -57,20 +49,13 @@ export const dialogExampleCode = (const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const dialogProps: string[] = [];if (title !== undefined && title !== "Edit profile") dialogProps.push(`title="${title}"`);if (description !== undefined && description !== "Make changes to your profile here. Click save when you're done.") dialogProps.push(`description="${description}"`);if (actionLabel !== undefined && actionLabel !== "Save changes") dialogProps.push(`actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel") dialogProps.push(`cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light") dialogProps.push(`mode="${mode}"`);-- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";- const buttonModeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";const dialogPropsStr = dialogProps.length ? ` ${dialogProps.join(" ")}` : "";return `import { Dialog } from "@/components/remocn/dialog";@@ -79,22 +64,18 @@ import { Button } from "@/components/remocn/button";import { useButtonTransition } from "@/components/remocn/use-button-transition";export const Scene = () => {- const trigger = useButtonTransition(- [- { at: 14, state: "hover" },- { at: 26, state: "press" },- ]${optsStr},- );- const dialog = useDialogTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ]${optsStr},- );+ const trigger = useButtonTransition([+ { at: 14, state: "hover" },+ { at: 26, state: "press" },+ ]);+ const dialog = useDialogTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Edit profile"${buttonModeStr} style={trigger} />+ <Button label="Edit profile" style={trigger} /><Dialog${dialogPropsStr} style={dialog} /></>);diff --git a/components/docs/examples/drawer-example.tsx b/components/docs/examples/drawer-example.tsxindex c71bdcdb..8ff63d12 100644--- a/components/docs/examples/drawer-example.tsx+++ b/components/docs/examples/drawer-example.tsx@@ -6,7 +6,7 @@ import { Drawer } from "@/registry/remocn-ui/drawer";import { useDrawerTransition } from "@/registry/remocn-ui/drawer/use-drawer-transition";export const drawerExampleControls = [- "title", "description", "actionLabel", "cancelLabel", "mode",+ "title", "description", "actionLabel", "cancelLabel",] as const;export interface DrawerExampleProps {@@ -14,36 +14,28 @@ export interface DrawerExampleProps {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: "light" | "dark";}export const DrawerExampleScene = (p: DrawerExampleProps = {}) => {// The trigger Button: idle → hover → press, the press lands just before the// drawer opens (the "click" that triggers it).- const trigger = useButtonTransition(- [- { at: 14, state: "hover" },- { at: 26, state: "press" },- ],- { mode: p.mode },- );+ const trigger = useButtonTransition([+ { at: 14, state: "hover" },+ { at: 26, state: "press" },+ ]);// The drawer slides up right after the press, then closes near the end.- const drawer = useDrawerTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const drawer = useDrawerTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Edit profile" mode={p.mode ?? "light"} style={trigger} />+ <Button label="Edit profile" style={trigger} /><Drawertitle={p.title ?? "Edit profile"}description={p.description ?? "Make changes to your profile here. Click save when you're done."}actionLabel={p.actionLabel ?? "Save changes"}cancelLabel={p.cancelLabel ?? "Cancel"}- mode={p.mode ?? "light"}style={drawer}/></>@@ -57,20 +49,13 @@ export const drawerExampleCode = (const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const drawerProps: string[] = [];if (title !== undefined && title !== "Edit profile") drawerProps.push(`title="${title}"`);if (description !== undefined && description !== "Make changes to your profile here. Click save when you're done.") drawerProps.push(`description="${description}"`);if (actionLabel !== undefined && actionLabel !== "Save changes") drawerProps.push(`actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel") drawerProps.push(`cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light") drawerProps.push(`mode="${mode}"`);-- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";- const buttonModeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";const drawerPropsStr = drawerProps.length ? ` ${drawerProps.join(" ")}` : "";return `import { Drawer } from "@/components/remocn/drawer";@@ -79,22 +64,18 @@ import { Button } from "@/components/remocn/button";import { useButtonTransition } from "@/components/remocn/use-button-transition";export const Scene = () => {- const trigger = useButtonTransition(- [- { at: 14, state: "hover" },- { at: 26, state: "press" },- ]${optsStr},- );- const drawer = useDrawerTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ]${optsStr},- );+ const trigger = useButtonTransition([+ { at: 14, state: "hover" },+ { at: 26, state: "press" },+ ]);+ const drawer = useDrawerTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Edit profile"${buttonModeStr} style={trigger} />+ <Button label="Edit profile" style={trigger} /><Drawer${drawerPropsStr} style={drawer} /></>);diff --git a/components/docs/examples/dropdown-menu-example.tsx b/components/docs/examples/dropdown-menu-example.tsxindex 2cfb8e2b..5e7b42a7 100644--- a/components/docs/examples/dropdown-menu-example.tsx+++ b/components/docs/examples/dropdown-menu-example.tsx@@ -6,11 +6,10 @@ import { useDropdownMenuItemTransition } from "@/registry/remocn-ui/dropdown-menimport { useButtonTransition } from "@/registry/remocn-ui/button/use-button-transition";import { useCurrentState } from "@/lib/remocn-ui";-export const dropdownMenuExampleControls = ["label", "mode"] as const;+export const dropdownMenuExampleControls = ["label"] as const;export interface DropdownMenuExampleProps {label?: string;- mode?: "light" | "dark";}export const DropdownMenuExampleScene = (p: DropdownMenuExampleProps = {}) => {@@ -21,16 +20,13 @@ export const DropdownMenuExampleScene = (p: DropdownMenuExampleProps = {}) => {{ at: 14, state: "hover" },{ at: 26, state: "press" },],- { variant: "outline", mode: p.mode },+ { variant: "outline" },);// The menu opens just after the "click", then closes near the end.- const menu = useDropdownMenuTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 96, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const menu = useDropdownMenuTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 96, state: "closed", duration: 12 },+ ]);// One row walks hover → press while the panel is open (no persistent// selection — a menu commits the action and dismisses).const rowState = useCurrentState(@@ -41,14 +37,13 @@ export const DropdownMenuExampleScene = (p: DropdownMenuExampleProps = {}) => {],"idle",);- const row = useDropdownMenuItemTransition([{ at: 0, state: rowState }], { mode: p.mode });+ const row = useDropdownMenuItemTransition([{ at: 0, state: rowState }]);return (<DropdownMenustyle={menu}label={p.label ?? "Options"}triggerStyle={triggerStyle}itemStyles={[undefined, row, undefined, undefined]}- mode={p.mode ?? "light"}/>);};@@ -57,20 +52,11 @@ export const dropdownMenuExampleCode = (values: Record<string, unknown> = {},): string => {const label = values.label as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [];if (label !== undefined && label !== "Options") props.push(`label="${label}"`);- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);const extraProps = props.length ? `\n ${props.join("\n ")}` : "";- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";- const triggerOptsStr = hookOpts.length- ? `, { variant: "outline", ${hookOpts.join(", ")} }`- : `, { variant: "outline" }`;-return `import { DropdownMenu } from "@/components/remocn/dropdown-menu";import { useDropdownMenuTransition } from "@/components/remocn/use-dropdown-menu-transition";import { useDropdownMenuItemTransition } from "@/components/remocn/use-dropdown-menu-item-transition";@@ -82,14 +68,13 @@ export const Scene = () => {[{ at: 14, state: "hover" },{ at: 26, state: "press" },- ]${triggerOptsStr},- );- const menu = useDropdownMenuTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 96, state: "closed", duration: 12 },- ]${optsStr},+ ],+ { variant: "outline" },);+ const menu = useDropdownMenuTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 96, state: "closed", duration: 12 },+ ]);const rowState = useCurrentState([{ at: 52, state: "hover" },@@ -98,7 +83,7 @@ export const Scene = () => {],"idle",);- const row = useDropdownMenuItemTransition([{ at: 0, state: rowState }]${optsStr});+ const row = useDropdownMenuItemTransition([{ at: 0, state: rowState }]);return (<DropdownMenu${extraProps}diff --git a/components/docs/examples/index.tsx b/components/docs/examples/index.tsxindex 6e19aaac..25a54ac2 100644--- a/components/docs/examples/index.tsx+++ b/components/docs/examples/index.tsx@@ -96,6 +96,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"accordion-example": {Component: AccordionExampleScene,@@ -115,6 +116,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"dialog-example": {Component: DialogExampleScene,@@ -124,6 +126,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"sheet-example": {Component: SheetExampleScene,@@ -133,6 +136,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"drawer-example": {Component: DrawerExampleScene,@@ -142,6 +146,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"checkbox-example": {Component: CheckboxExampleScene,@@ -187,6 +192,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"dropdown-menu-example": {Component: DropdownMenuExampleScene,@@ -196,6 +202,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"tabs-example": {Component: TabsExampleScene,@@ -235,6 +242,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"tooltip-example": {Component: TooltipExampleScene,@@ -285,6 +293,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"popover-example": {Component: PopoverExampleScene,@@ -294,6 +303,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"context-menu-example": {Component: ContextMenuExampleScene,@@ -304,6 +314,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"toggle-group-example": {Component: ToggleGroupExampleScene,@@ -313,6 +324,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"stepper-example": {Component: StepperExampleScene,@@ -332,6 +344,7 @@ export const examples: Record<string, ExampleEntry> = {fps: FPS,width: W,height: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },},"blur-in-example": {Component: BlurInExampleScene,diff --git a/components/docs/examples/popover-example.tsx b/components/docs/examples/popover-example.tsxindex 8b06cebf..83bf3174 100644--- a/components/docs/examples/popover-example.tsx+++ b/components/docs/examples/popover-example.tsx@@ -9,15 +9,11 @@ import { usePopoverTransition } from "@/registry/remocn-ui/popover/use-popover-tconst CHIP_X = 640;const CHIP_Y = 360;-export const popoverExampleControls = [- "mode",-] as const;+export const popoverExampleControls = [] as const;-export interface PopoverExampleProps {- mode?: "light" | "dark";-}+export interface PopoverExampleProps {}-export const PopoverExampleScene = (p: PopoverExampleProps = {}) => {+export const PopoverExampleScene = (_p: PopoverExampleProps = {}) => {// Cursor: park top-left → ease onto the chip → hover → leave.const cursorStyle = useCursorPath([{ at: 0, x: 80, y: 60 },@@ -26,13 +22,10 @@ export const PopoverExampleScene = (p: PopoverExampleProps = {}) => {]);// Hover-card popover: opens shortly after the cursor arrives, closes as it leaves.- const popoverStyle = usePopoverTransition(- [- { at: 36, state: "opened", duration: 10 },- { at: 100, state: "closed", duration: 10 },- ],- { mode: p.mode },- );+ const popoverStyle = usePopoverTransition([+ { at: 36, state: "opened", duration: 10 },+ { at: 100, state: "closed", duration: 10 },+ ]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>@@ -79,7 +72,6 @@ export const PopoverExampleScene = (p: PopoverExampleProps = {}) => {style={popoverStyle}side="top"width={240}- mode={p.mode ?? "light"}>{/* Hover-card content: avatar + name + bio */}<div style={{ display: "flex", gap: 12, alignItems: "flex-start" }}>@@ -136,17 +128,8 @@ export const PopoverExampleScene = (p: PopoverExampleProps = {}) => {};export const popoverExampleCode = (- values: Record<string, unknown> = {},+ _values: Record<string, unknown> = {},): string => {- const mode = values.mode as string | undefined;-- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";-- const modeStr =- mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";-return `import { Cursor } from "@/components/remocn/cursor";import { useCursorPath } from "@/components/remocn/use-cursor-path";import { Popover } from "@/components/remocn/popover";@@ -164,12 +147,10 @@ export const Scene = () => {]);// Hover-card opens shortly after the cursor arrives, closes as it leaves.- const popoverStyle = usePopoverTransition(- [- { at: 36, state: "opened", duration: 10 },- { at: 100, state: "closed", duration: 10 },- ]${optsStr},- );+ const popoverStyle = usePopoverTransition([+ { at: 36, state: "opened", duration: 10 },+ { at: 100, state: "closed", duration: 10 },+ ]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>@@ -207,7 +188,7 @@ export const Scene = () => {transform: "translateX(-50%)",}}>- <Popover style={popoverStyle} side="top" width={240}${modeStr}>+ <Popover style={popoverStyle} side="top" width={240}><div style={{ display: "flex", gap: 12, alignItems: "flex-start" }}><divstyle={{diff --git a/components/docs/examples/resizable-example.tsx b/components/docs/examples/resizable-example.tsxindex b46b1093..78d55421 100644--- a/components/docs/examples/resizable-example.tsx+++ b/components/docs/examples/resizable-example.tsx@@ -13,10 +13,9 @@ const HANDLE_Y = 360;export interface ResizableExampleProps {direction?: ResizableDirection;- mode?: "light" | "dark";}-export const resizableExampleControls = ["direction", "mode"] as const;+export const resizableExampleControls = ["direction"] as const;export const ResizableExampleScene = (p: ResizableExampleProps = {}) => {const cursorStyle = useCursorPath([@@ -45,7 +44,6 @@ export const ResizableExampleScene = (p: ResizableExampleProps = {}) => {<Resizablestyle={resizableStyle}direction={p.direction ?? "horizontal"}- mode={p.mode ?? "light"}/><Cursor style={cursorStyle} variant="pointer" /></div>@@ -56,13 +54,10 @@ export const resizableExampleCode = (values: Record<string, unknown> = {},): string => {const direction = values.direction as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [];if (direction !== undefined && direction !== "horizontal") props.push(`direction="${direction}"`);- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);const resizableExtraProps = props.length ? `\n ${props.join("\n ")}\n ` : "";- const modeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";return `import { Cursor } from "@/components/remocn/cursor";import { useCursorPath } from "@/components/remocn/use-cursor-path";@@ -100,7 +95,7 @@ export const Scene = () => {return (<div style={{ position: "relative", width: "100%", height: "100%" }}><Resizable${resizableExtraProps}style={resizableStyle} />- <Cursor style={cursorStyle} variant="pointer"${modeStr} />+ <Cursor style={cursorStyle} variant="pointer" /></div>);};`;diff --git a/components/docs/examples/select-example.tsx b/components/docs/examples/select-example.tsxindex 9d020a9e..89056c28 100644--- a/components/docs/examples/select-example.tsx+++ b/components/docs/examples/select-example.tsx@@ -5,11 +5,10 @@ import { Select } from "@/registry/remocn-ui/select";import { useSelectTransition } from "@/registry/remocn-ui/select/use-select-transition";import { useSelectItemTransition } from "@/registry/remocn-ui/select-item/use-select-item-transition";-export const selectExampleControls = ["label", "mode"] as const;+export const selectExampleControls = ["label"] as const;export interface SelectExampleProps {label?: string;- mode?: "light" | "dark";}export const SelectExampleScene = (p: SelectExampleProps = {}) => {@@ -20,32 +19,25 @@ export const SelectExampleScene = (p: SelectExampleProps = {}) => {{ at: 14, state: "hover" },{ at: 26, state: "press" },],- { variant: "outline", mode: p.mode },+ { variant: "outline" },);// The panel reveals right after the press, then collapses near the end.- const panel = useSelectTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 96, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const panel = useSelectTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 96, state: "closed", duration: 12 },+ ]);// One row (index 1) is highlighted, pressed, then committed as selected.- const row = useSelectItemTransition(- [- { at: 52, state: "hover" },- { at: 64, state: "press" },- { at: 72, state: "selected", duration: 10 },- ],- { mode: p.mode },- );+ const row = useSelectItemTransition([+ { at: 52, state: "hover" },+ { at: 64, state: "press" },+ { at: 72, state: "selected", duration: 10 },+ ]);return (<Selectstyle={panel}label={p.label ?? "Select a fruit"}triggerStyle={triggerStyle}itemStyles={[undefined, row, undefined, undefined]}- mode={p.mode ?? "light"}/>);};@@ -54,20 +46,14 @@ export const selectExampleCode = (values: Record<string, unknown> = {},): string => {const label = values.label as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [];if (label !== undefined && label !== "Select a fruit")props.push(`label="${label}"`);- if (mode !== undefined && mode !== "light") props.push(`mode="${mode}"`);const extraProps = props.length ? `\n ${props.join("\n ")}` : "";- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";- const triggerOptsStr = hookOpts.length- ? `, { variant: "outline", ${hookOpts.join(", ")} }`- : `, { variant: "outline" }`;+ const optsStr = "";+ const triggerOptsStr = `, { variant: "outline" }`;return `import { useButtonTransition } from "@/components/remocn/use-button-transition";import { Select } from "@/components/remocn/select";diff --git a/components/docs/examples/sheet-example.tsx b/components/docs/examples/sheet-example.tsxindex 193a3640..5f9a48df 100644--- a/components/docs/examples/sheet-example.tsx+++ b/components/docs/examples/sheet-example.tsx@@ -6,7 +6,7 @@ import { Sheet } from "@/registry/remocn-ui/sheet";import { useSheetTransition } from "@/registry/remocn-ui/sheet/use-sheet-transition";export const sheetExampleControls = [- "title", "description", "actionLabel", "cancelLabel", "mode",+ "title", "description", "actionLabel", "cancelLabel",] as const;export interface SheetExampleProps {@@ -14,36 +14,28 @@ export interface SheetExampleProps {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: "light" | "dark";}export const SheetExampleScene = (p: SheetExampleProps = {}) => {// The trigger Button: idle → hover → press, the press lands just before the// sheet opens (the "click" that triggers it).- const trigger = useButtonTransition(- [- { at: 14, state: "hover" },- { at: 26, state: "press" },- ],- { mode: p.mode },- );+ const trigger = useButtonTransition([+ { at: 14, state: "hover" },+ { at: 26, state: "press" },+ ]);// The sheet slides in right after the press, then closes near the end.- const sheet = useSheetTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ],- { mode: p.mode },- );+ const sheet = useSheetTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Edit profile" mode={p.mode ?? "light"} style={trigger} />+ <Button label="Edit profile" style={trigger} /><Sheettitle={p.title ?? "Edit profile"}description={p.description ?? "Make changes to your profile here. Click save when you're done."}actionLabel={p.actionLabel ?? "Save changes"}cancelLabel={p.cancelLabel ?? "Cancel"}- mode={p.mode ?? "light"}style={sheet}/></>@@ -57,20 +49,13 @@ export const sheetExampleCode = (const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const sheetProps: string[] = [];if (title !== undefined && title !== "Edit profile") sheetProps.push(`title="${title}"`);if (description !== undefined && description !== "Make changes to your profile here. Click save when you're done.") sheetProps.push(`description="${description}"`);if (actionLabel !== undefined && actionLabel !== "Save changes") sheetProps.push(`actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel") sheetProps.push(`cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light") sheetProps.push(`mode="${mode}"`);-- const hookOpts: string[] = [];- if (mode !== undefined && mode !== "light") hookOpts.push(`mode: "${mode}"`);- const optsStr = hookOpts.length ? `, { ${hookOpts.join(", ")} }` : "";- const buttonModeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";const sheetPropsStr = sheetProps.length ? ` ${sheetProps.join(" ")}` : "";return `import { Sheet } from "@/components/remocn/sheet";@@ -79,22 +64,18 @@ import { Button } from "@/components/remocn/button";import { useButtonTransition } from "@/components/remocn/use-button-transition";export const Scene = () => {- const trigger = useButtonTransition(- [- { at: 14, state: "hover" },- { at: 26, state: "press" },- ]${optsStr},- );- const sheet = useSheetTransition(- [- { at: 32, state: "opened", duration: 16 },- { at: 92, state: "closed", duration: 12 },- ]${optsStr},- );+ const trigger = useButtonTransition([+ { at: 14, state: "hover" },+ { at: 26, state: "press" },+ ]);+ const sheet = useSheetTransition([+ { at: 32, state: "opened", duration: 16 },+ { at: 92, state: "closed", duration: 12 },+ ]);return (<>- <Button label="Edit profile"${buttonModeStr} style={trigger} />+ <Button label="Edit profile" style={trigger} /><Sheet${sheetPropsStr} style={sheet} /></>);diff --git a/components/docs/examples/toast-example.tsx b/components/docs/examples/toast-example.tsxindex aef0cb85..d22c520c 100644--- a/components/docs/examples/toast-example.tsx+++ b/components/docs/examples/toast-example.tsx@@ -56,7 +56,7 @@ export const ToastExampleScene = (p: ToastExampleProps = {}) => {transform: "translate(-50%, -50%)",}}>- <Button label="Show toast" style={buttonStyle} mode="light" />+ <Button label="Show toast" style={buttonStyle} /></div>{/* Toast anchored bottom-right, 24px from edges */}diff --git a/components/docs/examples/toggle-group-example.tsx b/components/docs/examples/toggle-group-example.tsxindex 44e7388d..e4d602c7 100644--- a/components/docs/examples/toggle-group-example.tsx+++ b/components/docs/examples/toggle-group-example.tsx@@ -13,13 +13,11 @@ const MONTHLY_X = 596;const YEARLY_X = 684;const TOGGLE_Y = 360;-export interface ToggleGroupExampleProps {- mode?: "light" | "dark";-}+export interface ToggleGroupExampleProps {}-export const toggleGroupExampleControls = ["mode"] as const;+export const toggleGroupExampleControls = [] as const;-export const ToggleGroupExampleScene = (p: ToggleGroupExampleProps = {}) => {+export const ToggleGroupExampleScene = (_p: ToggleGroupExampleProps = {}) => {// Cursor: park → ease to "Yearly" → click → ease to "Monthly" → click.const cursorStyle = useCursorPath([{ at: 0, x: 80, y: 60 },@@ -30,33 +28,23 @@ export const ToggleGroupExampleScene = (p: ToggleGroupExampleProps = {}) => {]);// Toggle: starts on "Monthly", slides to "Yearly" on first click, back on second.- // Forward mode so the animated track/segment colors track the theme.- const toggleStyle = useToggleGroupTransition(- [- { at: 46, state: "Yearly", duration: 14 },- { at: 92, state: "Monthly", duration: 14 },- ],- { mode: p.mode },- );+ const toggleStyle = useToggleGroupTransition([+ { at: 46, state: "Yearly", duration: 14 },+ { at: 92, state: "Monthly", duration: 14 },+ ]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>{/* ToggleGroup renders position:absolute;inset:0 — it centers itself. */}- <ToggleGroup style={toggleStyle} mode={p.mode ?? "light"} />+ <ToggleGroup style={toggleStyle} /><Cursor style={cursorStyle} variant="pointer" /></div>);};export const toggleGroupExampleCode = (- values: Record<string, unknown> = {},+ _values: Record<string, unknown> = {},): string => {- const mode = values.mode as string | undefined;-- const modeStr = mode !== undefined && mode !== "light" ? ` mode="${mode}"` : "";- const hookOptsStr =- mode !== undefined && mode !== "light" ? `, { mode: "${mode}" }` : "";-return `import { Cursor } from "@/components/remocn/cursor";import { useCursorPath } from "@/components/remocn/use-cursor-path";import { ToggleGroup } from "@/components/remocn/toggle-group";@@ -82,12 +70,12 @@ export const Scene = () => {const toggleStyle = useToggleGroupTransition([{ at: 46, state: "Yearly", duration: 14 },{ at: 92, state: "Monthly", duration: 14 },- ]${hookOptsStr});+ ]);return (<div style={{ position: "relative", width: "100%", height: "100%" }}>- <ToggleGroup style={toggleStyle}${modeStr} />- <Cursor style={cursorStyle} variant="pointer"${modeStr} />+ <ToggleGroup style={toggleStyle} />+ <Cursor style={cursorStyle} variant="pointer" /></div>);};`;diff --git a/components/docs/examples/tooltip-example.tsx b/components/docs/examples/tooltip-example.tsxindex 359c41b6..c95feddd 100644--- a/components/docs/examples/tooltip-example.tsx+++ b/components/docs/examples/tooltip-example.tsx@@ -54,7 +54,7 @@ export const TooltipExampleScene = (p: TooltipExampleProps = {}) => {transform: "translate(-50%, -50%)",}}>- <Button label="Hover me" style={buttonStyle} mode="light" />+ <Button label="Hover me" style={buttonStyle} />{/* Tooltip is anchored relative to the button: centered above it. */}<divdiff --git a/registry/remocn-ui/ai-prompt-flow/index.tsx b/registry/remocn-ui/ai-prompt-flow/index.tsxindex 368dc13b..5b2e3696 100644--- a/registry/remocn-ui/ai-prompt-flow/index.tsx+++ b/registry/remocn-ui/ai-prompt-flow/index.tsx@@ -110,7 +110,6 @@ export function AiPromptFlow({placeholder="Ask anything…"value={prompt}style={inputStyle}- mode={mode}theme={theme}/></div>@@ -128,7 +127,6 @@ export function AiPromptFlow({<Buttonlabel={buttonLabel}style={buttonStyle}- mode={mode}theme={theme}/></div>diff --git a/registry/remocn-ui/alert-dialog/__tests__/alert-dialog.test.ts b/registry/remocn-ui/alert-dialog/__tests__/alert-dialog.test.tsindex 508b754d..333196a4 100644--- a/registry/remocn-ui/alert-dialog/__tests__/alert-dialog.test.ts+++ b/registry/remocn-ui/alert-dialog/__tests__/alert-dialog.test.ts@@ -17,7 +17,6 @@ type SnippetValues = {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -109,7 +108,6 @@ describe("alertDialogConfig.snippet: default props are omitted", () => {description: "This action cannot be undone. This will permanently remove your data from our servers.",actionLabel: "Delete",cancelLabel: "Cancel",- mode: "light",});it("omits title when it equals the default 'Delete account?'", () => {@@ -127,10 +125,6 @@ describe("alertDialogConfig.snippet: default props are omitted", () => {it("omits cancelLabel when it equals the default 'Cancel'", () => {expect(allDefaults).not.toContain("cancelLabel=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("alertDialogConfig.snippet: non-default props are emitted", () => {@@ -153,11 +147,6 @@ describe("alertDialogConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", cancelLabel: "Go back" })).toContain('cancelLabel="Go back"');});-- it("emits a non-default mode", () => {- expect(snippet({ state: "opened", mode: "dark" }))- .toContain('mode="dark"');- });});describe("alertDialogConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/alert-dialog/config.ts b/registry/remocn-ui/alert-dialog/config.tsindex 91c0b8ea..339915ea 100644--- a/registry/remocn-ui/alert-dialog/config.ts+++ b/registry/remocn-ui/alert-dialog/config.ts@@ -22,24 +22,18 @@ export const alertDialogConfig: ComponentConfig = {options: ["opened", "closed"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as AlertDialogState) ?? "opened";const title = values.title as string | undefined;const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (title !== undefined && title !== "Delete account?")@@ -50,8 +44,6 @@ export const alertDialogConfig: ComponentConfig = {props.push(` actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel")props.push(` cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { AlertDialog } from "@/components/remocn/alert-dialog";diff --git a/registry/remocn-ui/alert-dialog/index.tsx b/registry/remocn-ui/alert-dialog/index.tsxindex b060094f..e9af48d5 100644--- a/registry/remocn-ui/alert-dialog/index.tsx+++ b/registry/remocn-ui/alert-dialog/index.tsx@@ -12,7 +12,6 @@ export interface AlertDialogProps {actionLabel?: string;cancelLabel?: string;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -82,10 +81,9 @@ export function AlertDialog({actionLabel = "Delete",cancelLabel = "Cancel",theme: themeOverride,- mode,className,}: AlertDialogProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = alertDialogStyleContext(theme);const v = style ?? alertDialogStyle(state, ctx);diff --git a/registry/remocn-ui/button/__tests__/button.test.ts b/registry/remocn-ui/button/__tests__/button.test.tsindex d9b270b5..b7594dd1 100644--- a/registry/remocn-ui/button/__tests__/button.test.ts+++ b/registry/remocn-ui/button/__tests__/button.test.ts@@ -18,7 +18,6 @@ type SnippetValues = {label?: string;variant?: string;size?: string;- mode?: string;primary?: string;};@@ -138,7 +137,6 @@ describe("buttonConfig.snippet: default props are omitted", () => {label: "Continue",variant: "default",size: "default",- mode: "light",primary: "#171717",});@@ -154,10 +152,6 @@ describe("buttonConfig.snippet: default props are omitted", () => {expect(allDefaults).not.toContain("size=");});- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });-it("omits primary when it equals the default '#171717'", () => {expect(allDefaults).not.toContain("primary=");});@@ -176,10 +170,6 @@ describe("buttonConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "success", size: "lg" })).toContain('size="lg"');});- it("emits a non-default mode", () => {- expect(snippet({ state: "success", mode: "dark" })).toContain('mode="dark"');- });-it("emits a non-default primary color", () => {expect(snippet({ state: "success", primary: "#6366f1" })).toContain('primary="#6366f1"');});diff --git a/registry/remocn-ui/button/config.ts b/registry/remocn-ui/button/config.tsindex 0721e6ee..fa5571ef 100644--- a/registry/remocn-ui/button/config.ts+++ b/registry/remocn-ui/button/config.ts@@ -24,24 +24,18 @@ export const buttonConfig: ComponentConfig = {options: ["idle", "hover", "press", "loading", "success"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },primary: { type: "color", default: "#171717", label: "Primary" },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as ButtonState) ?? "loading";const label = values.label as string | undefined;const variant = values.variant as string | undefined;const size = values.size as string | undefined;- const mode = values.mode as string | undefined;const primary = values.primary as string | undefined;const props: string[] = [` state="${state}"`];@@ -51,8 +45,6 @@ export const buttonConfig: ComponentConfig = {props.push(` variant="${variant}"`);if (size !== undefined && size !== "default")props.push(` size="${size}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);if (primary !== undefined && primary !== "#171717")props.push(` primary="${primary}"`);diff --git a/registry/remocn-ui/button/index.tsx b/registry/remocn-ui/button/index.tsxindex 8d0e10b5..380c6fc3 100644--- a/registry/remocn-ui/button/index.tsx+++ b/registry/remocn-ui/button/index.tsx@@ -22,7 +22,6 @@ export interface ButtonProps {size?: ButtonSize;theme?: Partial<RemocnTheme>;primary?: string;- mode?: "light" | "dark";speed?: number;align?: "start" | "center" | "end";className?: string;@@ -188,14 +187,13 @@ export function Button({size = "default",theme: themeOverride,primary,- mode,speed = 1,align = "center",className,}: ButtonProps) {const theme = useRemocnTheme({ ...themeOverride, ...(primary ? { primary } : {}) },- mode,+ "light",);const sizeStyle = SIZE_STYLES[size];@@ -213,7 +211,7 @@ export function Button({display: "flex",alignItems: "center",justifyContent: justify(align),- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}diff --git a/registry/remocn-ui/checkout-flow/index.tsx b/registry/remocn-ui/checkout-flow/index.tsxindex 1e87aa74..34af13c2 100644--- a/registry/remocn-ui/checkout-flow/index.tsx+++ b/registry/remocn-ui/checkout-flow/index.tsx@@ -204,7 +204,6 @@ export function CheckoutFlow({style={toggleStyle}items={plans}align="start"- mode={mode}theme={theme}/></FieldControl>@@ -213,7 +212,7 @@ export function CheckoutFlow({<FieldGroup gap={24}><BlurIn display="block" style={enterCard}><Field>- <FieldLabel mode={mode} theme={theme}>+ <FieldLabel theme={theme}>{cardLabel}</FieldLabel><FieldControl>@@ -222,7 +221,6 @@ export function CheckoutFlow({value={cardPlaceholder}style={cardStyle}fullWidth- mode={mode}theme={theme}/></FieldControl>@@ -248,7 +246,6 @@ export function CheckoutFlow({label={payLabel}style={payStyle}align="end"- mode={mode}theme={theme}/></FieldControl>diff --git a/registry/remocn-ui/combobox/__tests__/combobox.test.ts b/registry/remocn-ui/combobox/__tests__/combobox.test.tsindex 99c985b1..b581cb28 100644--- a/registry/remocn-ui/combobox/__tests__/combobox.test.ts+++ b/registry/remocn-ui/combobox/__tests__/combobox.test.ts@@ -28,7 +28,6 @@ type SnippetValues = {placeholder?: string;selectedIndex?: number;highlightedIndex?: number;- mode?: string;};const snippet = (values: SnippetValues): string =>comboboxConfig.snippet(values as Record<string, unknown>);@@ -505,16 +504,6 @@ describe("comboboxConfig.controls: selectedIndex and highlightedIndex", () => {});});-describe("comboboxConfig.controls: mode", () => {- it("mode is a select control", () => {- expect(comboboxConfig.controls.mode.type).toBe("select");- });-- it("mode default is 'light'", () => {- expect(comboboxConfig.controls.mode.default).toBe("light");- });-});-describe("comboboxConfig.snippet: import line", () => {it("includes 'import { Combobox }' from the correct path", () => {const out = snippet({ state: "opened" });@@ -562,9 +551,6 @@ describe("comboboxConfig.snippet: default props are omitted", () => {expect(snippet({ state: "opened", highlightedIndex: -1 })).not.toContain("highlightedIndex=");});- it("omits mode when it equals 'light'", () => {- expect(snippet({ state: "opened", mode: "light" })).not.toContain("mode=");- });});describe("comboboxConfig.snippet: non-default props are emitted", () => {@@ -588,9 +574,6 @@ describe("comboboxConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", highlightedIndex: 0 })).toContain("highlightedIndex={0}");});- it("emits mode='dark' when non-default", () => {- expect(snippet({ state: "opened", mode: "dark" })).toContain('mode="dark"');- });});describe("comboboxConfig.snippet: state options round-trip", () => {diff --git a/registry/remocn-ui/combobox/config.ts b/registry/remocn-ui/combobox/config.tsindex 158454bc..3c17111a 100644--- a/registry/remocn-ui/combobox/config.ts+++ b/registry/remocn-ui/combobox/config.ts@@ -44,17 +44,12 @@ export const comboboxConfig: ComponentConfig = {step: 1,label: "Highlighted Index",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as ComboboxState) ?? "opened";const query = values.query as string | undefined;@@ -62,7 +57,6 @@ export const comboboxConfig: ComponentConfig = {const placeholder = values.placeholder as string | undefined;const selectedIndex = values.selectedIndex as number | undefined;const highlightedIndex = values.highlightedIndex as number | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (query !== undefined && query !== DEFAULT_QUERY)@@ -75,8 +69,6 @@ export const comboboxConfig: ComponentConfig = {props.push(` selectedIndex={${selectedIndex}}`);if (highlightedIndex !== undefined && highlightedIndex !== -1)props.push(` highlightedIndex={${highlightedIndex}}`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { Combobox } from "@/components/remocn/combobox";diff --git a/registry/remocn-ui/combobox/index.tsx b/registry/remocn-ui/combobox/index.tsxindex d35f9cf7..f4ec654f 100644--- a/registry/remocn-ui/combobox/index.tsx+++ b/registry/remocn-ui/combobox/index.tsx@@ -31,7 +31,6 @@ export interface ComboboxProps {itemStyles?: (SelectItemStyle | undefined)[];inputStyle?: InputStyle;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -114,10 +113,9 @@ export function Combobox({itemStyles,inputStyle: inputStyleOverride,theme: themeOverride,- mode,className,}: ComboboxProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = comboboxStyleContext(theme);const v = style ?? comboboxStyle(state, ctx);@@ -140,7 +138,7 @@ export function Combobox({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}diff --git a/registry/remocn-ui/command-menu-item/__tests__/command-menu-item.test.ts b/registry/remocn-ui/command-menu-item/__tests__/command-menu-item.test.tsindex 263f1237..311ba8f1 100644--- a/registry/remocn-ui/command-menu-item/__tests__/command-menu-item.test.ts+++ b/registry/remocn-ui/command-menu-item/__tests__/command-menu-item.test.ts@@ -26,7 +26,6 @@ type SnippetValues = {label?: string;icon?: string;shortcut?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>commandMenuItemConfig.snippet(values as Record<string, unknown>);@@ -399,22 +398,6 @@ describe("commandMenuItemConfig.controls: label and shortcut", () => {});});-describe("commandMenuItemConfig.controls: mode", () => {- it("mode is a select control", () => {- expect(commandMenuItemConfig.controls.mode.type).toBe("select");- });-- it("mode options are ['light','dark']", () => {- const ctrl = commandMenuItemConfig.controls.mode;- if (ctrl.type !== "select") throw new Error("expected select");- expect(ctrl.options).toEqual(["light", "dark"]);- });-- it("mode default is 'light'", () => {- expect(commandMenuItemConfig.controls.mode.default).toBe("light");- });-});-describe("commandMenuItemConfig.snippet: import line", () => {it("includes 'import { CommandMenuItem }' from the correct path", () => {const out = snippet({ state: "selected" });@@ -448,10 +431,6 @@ describe("commandMenuItemConfig.snippet: default props are omitted", () => {expect(snippet({ state: "selected", icon: "settings" })).not.toContain("icon=");});- it("omits mode when it equals the default 'light'", () => {- expect(snippet({ state: "selected", mode: "light" })).not.toContain("mode=");- });-it("omits shortcut when it is an empty string", () => {expect(snippet({ state: "selected", shortcut: "" })).not.toContain("shortcut=");});@@ -474,10 +453,6 @@ describe("commandMenuItemConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "selected", icon: "file" })).toContain('icon="file"');});- it("emits mode='dark' when non-default", () => {- expect(snippet({ state: "selected", mode: "dark" })).toContain('mode="dark"');- });-it("emits shortcut when non-empty", () => {expect(snippet({ state: "selected", shortcut: "⌘ S" })).toContain('shortcut="⌘ S"');});diff --git a/registry/remocn-ui/command-menu-item/config.ts b/registry/remocn-ui/command-menu-item/config.tsindex 00017de3..4bfc44c6 100644--- a/registry/remocn-ui/command-menu-item/config.ts+++ b/registry/remocn-ui/command-menu-item/config.ts@@ -19,23 +19,17 @@ export const commandMenuItemConfig: ComponentConfig = {options: ["idle", "hover", "press", "selected"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as CommandMenuItemState) ?? "selected";const label = values.label as string | undefined;const icon = values.icon as string | undefined;const shortcut = values.shortcut as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (label !== undefined && label !== "Settings")@@ -44,8 +38,6 @@ export const commandMenuItemConfig: ComponentConfig = {props.push(` icon="${icon}"`);if (shortcut !== undefined && shortcut !== "")props.push(` shortcut="${shortcut}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { CommandMenuItem } from "@/components/remocn/command-menu-item";diff --git a/registry/remocn-ui/command-menu-item/index.tsx b/registry/remocn-ui/command-menu-item/index.tsxindex d5785ea8..dfd36c88 100644--- a/registry/remocn-ui/command-menu-item/index.tsx+++ b/registry/remocn-ui/command-menu-item/index.tsx@@ -12,7 +12,6 @@ export interface CommandMenuItemProps {shortcut?: string;width?: number;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -219,10 +218,9 @@ export function CommandMenuItem({shortcut,width = ROW_WIDTH,theme: themeOverride,- mode,className,}: CommandMenuItemProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = commandMenuItemStyleContext(theme);return (@@ -234,7 +232,7 @@ export function CommandMenuItem({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}diff --git a/registry/remocn-ui/command-menu/__tests__/command-menu.test.ts b/registry/remocn-ui/command-menu/__tests__/command-menu.test.tsindex 79a74cb4..42e874b7 100644--- a/registry/remocn-ui/command-menu/__tests__/command-menu.test.ts+++ b/registry/remocn-ui/command-menu/__tests__/command-menu.test.ts@@ -32,7 +32,6 @@ type SnippetValues = {revealCount?: number;selectedIndex?: number;highlightedIndex?: number;- mode?: string;};const snippet = (values: SnippetValues): string =>commandMenuConfig.snippet(values as Record<string, unknown>);@@ -594,16 +593,6 @@ describe("commandMenuConfig.controls: selectedIndex and highlightedIndex", () =>});});-describe("commandMenuConfig.controls: mode", () => {- it("mode is a select control", () => {- expect(commandMenuConfig.controls.mode.type).toBe("select");- });-- it("mode default is 'light'", () => {- expect(commandMenuConfig.controls.mode.default).toBe("light");- });-});-describe("commandMenuConfig.snippet: import line", () => {it("includes 'import { CommandMenu }' from the correct path", () => {const out = snippet({ state: "opened" });@@ -645,9 +634,6 @@ describe("commandMenuConfig.snippet: default props are omitted", () => {expect(snippet({ state: "opened", highlightedIndex: -1 })).not.toContain("highlightedIndex=");});- it("omits mode when it equals 'light'", () => {- expect(snippet({ state: "opened", mode: "light" })).not.toContain("mode=");- });});describe("commandMenuConfig.snippet: non-default props are emitted", () => {@@ -667,9 +653,6 @@ describe("commandMenuConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", highlightedIndex: 0 })).toContain("highlightedIndex={0}");});- it("emits mode='dark' when non-default", () => {- expect(snippet({ state: "opened", mode: "dark" })).toContain('mode="dark"');- });});describe("commandMenuConfig.snippet: state options round-trip", () => {diff --git a/registry/remocn-ui/command-menu/config.ts b/registry/remocn-ui/command-menu/config.tsindex 15f7dc89..1b954769 100644--- a/registry/remocn-ui/command-menu/config.ts+++ b/registry/remocn-ui/command-menu/config.ts@@ -38,24 +38,18 @@ export const commandMenuConfig: ComponentConfig = {step: 1,label: "Highlighted Index",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as CommandMenuState) ?? "opened";const query = values.query as string | undefined;const revealCount = values.revealCount as number | undefined;const selectedIndex = values.selectedIndex as number | undefined;const highlightedIndex = values.highlightedIndex as number | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (query !== undefined && query !== DEFAULT_QUERY)@@ -66,8 +60,6 @@ export const commandMenuConfig: ComponentConfig = {props.push(` selectedIndex={${selectedIndex}}`);if (highlightedIndex !== undefined && highlightedIndex !== -1)props.push(` highlightedIndex={${highlightedIndex}}`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { CommandMenu } from "@/components/remocn/command-menu";diff --git a/registry/remocn-ui/command-menu/index.tsx b/registry/remocn-ui/command-menu/index.tsxindex 9eecefef..eef28487 100644--- a/registry/remocn-ui/command-menu/index.tsx+++ b/registry/remocn-ui/command-menu/index.tsx@@ -30,7 +30,6 @@ export interface CommandMenuProps {pressedIndex?: number;itemStyles?: (CommandMenuItemStyle | undefined)[];theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -137,10 +136,9 @@ export function CommandMenu({pressedIndex = -1,itemStyles,theme: themeOverride,- mode,className,}: CommandMenuProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = commandMenuStyleContext(theme);const v = style ?? commandMenuStyle(state, ctx);diff --git a/registry/remocn-ui/context-menu/__tests__/context-menu.test.ts b/registry/remocn-ui/context-menu/__tests__/context-menu.test.tsindex e7fa9064..479862ee 100644--- a/registry/remocn-ui/context-menu/__tests__/context-menu.test.ts+++ b/registry/remocn-ui/context-menu/__tests__/context-menu.test.ts@@ -21,7 +21,6 @@ const ctx = contextMenuStyleContext(defaultLightTheme);type SnippetValues = {state?: string;highlightedIndex?: number;- mode?: string;};const snippet = (values: SnippetValues): string =>contextMenuConfig.snippet(values as Record<string, unknown>);@@ -405,16 +404,6 @@ describe("contextMenuConfig.controls: highlightedIndex", () => {});});-describe("contextMenuConfig.controls: mode", () => {- it("mode is a select control", () => {- expect(contextMenuConfig.controls.mode.type).toBe("select");- });-- it("mode default is 'light'", () => {- expect(contextMenuConfig.controls.mode.default).toBe("light");- });-});-describe("contextMenuConfig.snippet: import line", () => {it("includes 'import { ContextMenu }' from the correct path", () => {const out = snippet({ state: "opened" });@@ -450,10 +439,6 @@ describe("contextMenuConfig.snippet: default props are omitted", () => {it("omits highlightedIndex when it equals -1 (no highlight)", () => {expect(snippet({ state: "opened", highlightedIndex: -1 })).not.toContain("highlightedIndex=");});-- it("omits mode when it equals 'light'", () => {- expect(snippet({ state: "opened", mode: "light" })).not.toContain("mode=");- });});describe("contextMenuConfig.snippet: non-default props are emitted", () => {@@ -464,10 +449,6 @@ describe("contextMenuConfig.snippet: non-default props are emitted", () => {it("emits highlightedIndex=0 when first row is highlighted", () => {expect(snippet({ state: "opened", highlightedIndex: 0 })).toContain("highlightedIndex={0}");});-- it("emits mode='dark' when non-default", () => {- expect(snippet({ state: "opened", mode: "dark" })).toContain('mode="dark"');- });});describe("contextMenuConfig.snippet: state options round-trip", () => {diff --git a/registry/remocn-ui/context-menu/config.ts b/registry/remocn-ui/context-menu/config.tsindex 29d09141..12fd23a3 100644--- a/registry/remocn-ui/context-menu/config.ts+++ b/registry/remocn-ui/context-menu/config.ts@@ -21,27 +21,19 @@ export const contextMenuConfig: ComponentConfig = {step: 1,label: "Highlighted Index",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as ContextMenuState) ?? "opened";const highlightedIndex = values.highlightedIndex as number | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (highlightedIndex !== undefined && highlightedIndex !== -1)props.push(` highlightedIndex={${highlightedIndex}}`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);const itemsLiteral = JSON.stringify(DEFAULT_ITEMS);return `import { ContextMenu } from "@/components/remocn/context-menu";diff --git a/registry/remocn-ui/context-menu/index.tsx b/registry/remocn-ui/context-menu/index.tsxindex 991252d4..b8f777c8 100644--- a/registry/remocn-ui/context-menu/index.tsx+++ b/registry/remocn-ui/context-menu/index.tsx@@ -20,7 +20,6 @@ export interface ContextMenuProps {pressedIndex?: number;itemStyles?: (DropdownMenuItemStyle | undefined)[];theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -80,10 +79,9 @@ export function ContextMenu({pressedIndex = -1,itemStyles,theme: themeOverride,- mode,className,}: ContextMenuProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = contextMenuStyleContext(theme);const v = style ?? contextMenuStyle(state, ctx);@@ -123,7 +121,6 @@ export function ContextMenu({label={item}width={WIDTH - 8}theme={themeOverride}- mode={mode}/>);})}diff --git a/registry/remocn-ui/context-menu/preview.tsx b/registry/remocn-ui/context-menu/preview.tsxindex 3ac2c120..96e5ae3e 100644--- a/registry/remocn-ui/context-menu/preview.tsx+++ b/registry/remocn-ui/context-menu/preview.tsx@@ -1,21 +1,16 @@"use client";-import { useRemocnTheme } from "@/lib/remocn-ui";import { ContextMenu, type ContextMenuState } from "@/registry/remocn-ui/context-menu";export interface ContextMenuPreviewProps {state?: ContextMenuState;highlightedIndex?: number;- mode?: "light" | "dark";}export function ContextMenuPreview({state = "opened",highlightedIndex = 1,- mode,}: ContextMenuPreviewProps) {- const theme = useRemocnTheme(undefined, mode);-return (<divstyle={{@@ -24,10 +19,10 @@ export function ContextMenuPreview({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",}}>- <ContextMenu state={state} highlightedIndex={highlightedIndex} mode={mode} />+ <ContextMenu state={state} highlightedIndex={highlightedIndex} /></div>);}diff --git a/registry/remocn-ui/dialog/__tests__/dialog.test.ts b/registry/remocn-ui/dialog/__tests__/dialog.test.tsindex 04efc9d2..f129925e 100644--- a/registry/remocn-ui/dialog/__tests__/dialog.test.ts+++ b/registry/remocn-ui/dialog/__tests__/dialog.test.ts@@ -17,7 +17,6 @@ type SnippetValues = {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -109,7 +108,6 @@ describe("dialogConfig.snippet: default props are omitted", () => {description: "Make changes to your profile here. Click save when you're done.",actionLabel: "Save changes",cancelLabel: "Cancel",- mode: "light",});it("omits title when it equals the default 'Edit profile'", () => {@@ -127,10 +125,6 @@ describe("dialogConfig.snippet: default props are omitted", () => {it("omits cancelLabel when it equals the default 'Cancel'", () => {expect(allDefaults).not.toContain("cancelLabel=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("dialogConfig.snippet: non-default props are emitted", () => {@@ -153,11 +147,6 @@ describe("dialogConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", cancelLabel: "Go back" })).toContain('cancelLabel="Go back"');});-- it("emits a non-default mode", () => {- expect(snippet({ state: "opened", mode: "dark" }))- .toContain('mode="dark"');- });});describe("dialogConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/dialog/config.ts b/registry/remocn-ui/dialog/config.tsindex 7b634110..281e0172 100644--- a/registry/remocn-ui/dialog/config.ts+++ b/registry/remocn-ui/dialog/config.ts@@ -26,24 +26,18 @@ export const dialogConfig: ComponentConfig = {options: ["opened", "closed"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as DialogState) ?? "opened";const title = values.title as string | undefined;const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (title !== undefined && title !== "Edit profile")@@ -54,8 +48,6 @@ export const dialogConfig: ComponentConfig = {props.push(` actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel")props.push(` cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { Dialog } from "@/components/remocn/dialog";diff --git a/registry/remocn-ui/dialog/index.tsx b/registry/remocn-ui/dialog/index.tsxindex f24816c5..71952d55 100644--- a/registry/remocn-ui/dialog/index.tsx+++ b/registry/remocn-ui/dialog/index.tsx@@ -12,7 +12,6 @@ export interface DialogProps {actionLabel?: string;cancelLabel?: string;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -80,10 +79,9 @@ export function Dialog({actionLabel = "Save changes",cancelLabel = "Cancel",theme: themeOverride,- mode,className,}: DialogProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = dialogStyleContext(theme);const v = style ?? dialogStyle(state, ctx);diff --git a/registry/remocn-ui/drawer/__tests__/drawer.test.ts b/registry/remocn-ui/drawer/__tests__/drawer.test.tsindex 39d22414..f27ee650 100644--- a/registry/remocn-ui/drawer/__tests__/drawer.test.ts+++ b/registry/remocn-ui/drawer/__tests__/drawer.test.ts@@ -17,7 +17,6 @@ type SnippetValues = {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -109,7 +108,6 @@ describe("drawerConfig.snippet: default props are omitted", () => {description: "Make changes to your profile here. Click save when you're done.",actionLabel: "Save changes",cancelLabel: "Cancel",- mode: "light",});it("omits title when it equals the default 'Edit profile'", () => {@@ -127,10 +125,6 @@ describe("drawerConfig.snippet: default props are omitted", () => {it("omits cancelLabel when it equals the default 'Cancel'", () => {expect(allDefaults).not.toContain("cancelLabel=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("drawerConfig.snippet: non-default props are emitted", () => {@@ -153,11 +147,6 @@ describe("drawerConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", cancelLabel: "Go back" })).toContain('cancelLabel="Go back"');});-- it("emits a non-default mode", () => {- expect(snippet({ state: "opened", mode: "dark" }))- .toContain('mode="dark"');- });});describe("drawerConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/drawer/config.ts b/registry/remocn-ui/drawer/config.tsindex d9229e0c..2e24099f 100644--- a/registry/remocn-ui/drawer/config.ts+++ b/registry/remocn-ui/drawer/config.ts@@ -26,24 +26,18 @@ export const drawerConfig: ComponentConfig = {options: ["opened", "closed"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as DrawerState) ?? "opened";const title = values.title as string | undefined;const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (title !== undefined && title !== "Edit profile")@@ -54,8 +48,6 @@ export const drawerConfig: ComponentConfig = {props.push(` actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel")props.push(` cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { Drawer } from "@/components/remocn/drawer";diff --git a/registry/remocn-ui/drawer/index.tsx b/registry/remocn-ui/drawer/index.tsxindex 7b0d71ac..f2be86f3 100644--- a/registry/remocn-ui/drawer/index.tsx+++ b/registry/remocn-ui/drawer/index.tsx@@ -12,7 +12,6 @@ export interface DrawerProps {actionLabel?: string;cancelLabel?: string;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -77,10 +76,9 @@ export function Drawer({actionLabel = "Save changes",cancelLabel = "Cancel",theme: themeOverride,- mode,className,}: DrawerProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = drawerStyleContext(theme);const v = style ?? drawerStyle(state, ctx);diff --git a/registry/remocn-ui/dropdown-menu-item/__tests__/dropdown-menu-item.test.ts b/registry/remocn-ui/dropdown-menu-item/__tests__/dropdown-menu-item.test.tsindex e2a14492..82a6730a 100644--- a/registry/remocn-ui/dropdown-menu-item/__tests__/dropdown-menu-item.test.ts+++ b/registry/remocn-ui/dropdown-menu-item/__tests__/dropdown-menu-item.test.ts@@ -14,7 +14,6 @@ const VALID_STATES: readonly DropdownMenuItemState[] = ["idle", "hover", "press"type SnippetValues = {state?: string;label?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -99,16 +98,11 @@ describe("dropdownMenuItemConfig.snippet: default props are omitted", () => {const allDefaults = snippet({state: "hover",label: "Profile",- mode: "light",});it("omits label when it equals the default 'Profile'", () => {expect(allDefaults).not.toContain("label=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("dropdownMenuItemConfig.snippet: non-default props are emitted", () => {@@ -116,11 +110,6 @@ describe("dropdownMenuItemConfig.snippet: non-default props are emitted", () =>expect(snippet({ state: "hover", label: "Settings" })).toContain('label="Settings"');});-- it("emits a non-default mode", () => {- expect(snippet({ state: "hover", mode: "dark" }))- .toContain('mode="dark"');- });});describe("dropdownMenuItemConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/dropdown-menu-item/config.ts b/registry/remocn-ui/dropdown-menu-item/config.tsindex ba550c9d..5b69a217 100644--- a/registry/remocn-ui/dropdown-menu-item/config.ts+++ b/registry/remocn-ui/dropdown-menu-item/config.ts@@ -12,27 +12,19 @@ export const dropdownMenuItemConfig: ComponentConfig = {options: ["idle", "hover", "press"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as DropdownMenuItemState) ?? "hover";const label = values.label as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (label !== undefined && label !== "Profile")props.push(` label="${label}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { DropdownMenuItem } from "@/components/remocn/dropdown-menu-item";diff --git a/registry/remocn-ui/dropdown-menu-item/index.tsx b/registry/remocn-ui/dropdown-menu-item/index.tsxindex 5fd553a5..0017e00d 100644--- a/registry/remocn-ui/dropdown-menu-item/index.tsx+++ b/registry/remocn-ui/dropdown-menu-item/index.tsx@@ -50,7 +50,6 @@ export interface DropdownMenuItemRowProps {label?: string;width?: number;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";}export function DropdownMenuItemRow({@@ -59,9 +58,8 @@ export function DropdownMenuItemRow({label = "Profile",width = ROW_WIDTH,theme: themeOverride,- mode,}: DropdownMenuItemRowProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = dropdownMenuItemStyleContext(theme);const v = style ?? dropdownMenuItemStyle(state, ctx);@@ -96,11 +94,8 @@ export function DropdownMenuItem({label = "Profile",width = ROW_WIDTH,theme: themeOverride,- mode,className,}: DropdownMenuItemProps) {- const theme = useRemocnTheme(themeOverride, mode);-return (<divclassName={className}@@ -110,7 +105,7 @@ export function DropdownMenuItem({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}@@ -121,7 +116,6 @@ export function DropdownMenuItem({label={label}width={width}theme={themeOverride}- mode={mode}/></div>);diff --git a/registry/remocn-ui/dropdown-menu/__tests__/dropdown-menu.test.ts b/registry/remocn-ui/dropdown-menu/__tests__/dropdown-menu.test.tsindex 5028c6ba..7e832e22 100644--- a/registry/remocn-ui/dropdown-menu/__tests__/dropdown-menu.test.ts+++ b/registry/remocn-ui/dropdown-menu/__tests__/dropdown-menu.test.ts@@ -15,7 +15,6 @@ type SnippetValues = {state?: string;label?: string;highlightedIndex?: number;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -97,7 +96,6 @@ describe("dropdownMenuConfig.snippet: default props are omitted", () => {state: "opened",label: "Options",highlightedIndex: -1,- mode: "light",});it("omits label when it equals the default 'Options'", () => {@@ -107,10 +105,6 @@ describe("dropdownMenuConfig.snippet: default props are omitted", () => {it("omits highlightedIndex when it equals -1", () => {expect(allDefaults).not.toContain("highlightedIndex=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("dropdownMenuConfig.snippet: non-default props are emitted", () => {@@ -123,11 +117,6 @@ describe("dropdownMenuConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", highlightedIndex: 0 })).toContain("highlightedIndex={0}");});-- it("emits a non-default mode", () => {- expect(snippet({ state: "opened", mode: "dark" }))- .toContain('mode="dark"');- });});describe("dropdownMenuConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/dropdown-menu/config.ts b/registry/remocn-ui/dropdown-menu/config.tsindex 55ff4e76..8cafbbfe 100644--- a/registry/remocn-ui/dropdown-menu/config.ts+++ b/registry/remocn-ui/dropdown-menu/config.ts@@ -17,30 +17,22 @@ export const dropdownMenuConfig: ComponentConfig = {default: 0,label: "Highlighted Index",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as DropdownMenuState) ?? "opened";const label = values.label as string | undefined;const highlightedIndex = values.highlightedIndex as number | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (label !== undefined && label !== "Options")props.push(` label="${label}"`);if (highlightedIndex !== undefined && highlightedIndex !== -1)props.push(` highlightedIndex={${highlightedIndex}}`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { DropdownMenu } from "@/components/remocn/dropdown-menu";diff --git a/registry/remocn-ui/dropdown-menu/index.tsx b/registry/remocn-ui/dropdown-menu/index.tsxindex 44754381..c3c5adc8 100644--- a/registry/remocn-ui/dropdown-menu/index.tsx+++ b/registry/remocn-ui/dropdown-menu/index.tsx@@ -82,7 +82,6 @@ export interface DropdownMenuProps {itemStyles?: (DropdownMenuItemStyle | undefined)[];triggerStyle?: ButtonStyle;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -96,10 +95,9 @@ export function DropdownMenu({itemStyles,triggerStyle,theme: themeOverride,- mode,className,}: DropdownMenuProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = dropdownMenuStyleContext(theme);const v = style ?? dropdownMenuStyle(state, ctx);@@ -116,7 +114,7 @@ export function DropdownMenu({alignItems: "flex-start",justifyContent: "center",paddingTop: 220,- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}@@ -201,7 +199,6 @@ export function DropdownMenu({label={item}width={WIDTH - 8}theme={themeOverride}- mode={mode}/>);})}diff --git a/registry/remocn-ui/field/index.tsx b/registry/remocn-ui/field/index.tsxindex 50e2b01f..20e5b48e 100644--- a/registry/remocn-ui/field/index.tsx+++ b/registry/remocn-ui/field/index.tsx@@ -33,13 +33,12 @@ export function Field({ children, gap = 6, style }: FieldProps) {export interface FieldLabelProps {children: ReactNode;- mode?: "light" | "dark";theme?: Partial<RemocnTheme>;style?: CSSProperties;}-export function FieldLabel({ children, mode, theme, style }: FieldLabelProps) {- const t = useRemocnTheme(theme, mode);+export function FieldLabel({ children, theme, style }: FieldLabelProps) {+ const t = useRemocnTheme(theme, "light");return (<divstyle={{@@ -59,7 +58,6 @@ export function FieldLabel({ children, mode, theme, style }: FieldLabelProps) {export interface FieldDescriptionProps {children: ReactNode;align?: "start" | "center";- mode?: "light" | "dark";theme?: Partial<RemocnTheme>;style?: CSSProperties;}@@ -67,11 +65,10 @@ export interface FieldDescriptionProps {export function FieldDescription({children,align = "start",- mode,theme,style,}: FieldDescriptionProps) {- const t = useRemocnTheme(theme, mode);+ const t = useRemocnTheme(theme, "light");return (<divstyle={{diff --git a/registry/remocn-ui/onboarding-stepper-flow/index.tsx b/registry/remocn-ui/onboarding-stepper-flow/index.tsxindex 3f05eae1..52f9b302 100644--- a/registry/remocn-ui/onboarding-stepper-flow/index.tsx+++ b/registry/remocn-ui/onboarding-stepper-flow/index.tsx@@ -106,7 +106,6 @@ export function OnboardingStepperFlow({style={nameStyle}placeholder={name}value={name}- mode={mode}theme={theme}/></div>@@ -134,7 +133,7 @@ export function OnboardingStepperFlow({<divstyle={{ position: "absolute", left: 0, right: 0, top: NAV_TOP, height: 64 }}>- <Button label={navLabel} style={navStyle} mode={mode} theme={theme} />+ <Button label={navLabel} style={navStyle} theme={theme} /></div></div>);diff --git a/registry/remocn-ui/popover/__tests__/popover.test.ts b/registry/remocn-ui/popover/__tests__/popover.test.tsindex 81fdae09..909f9f16 100644--- a/registry/remocn-ui/popover/__tests__/popover.test.ts+++ b/registry/remocn-ui/popover/__tests__/popover.test.ts@@ -22,7 +22,6 @@ type SnippetValues = {description?: string;side?: string;width?: number;- mode?: string;};const snippet = (values: SnippetValues): string =>popoverConfig.snippet(values as Record<string, unknown>);@@ -423,16 +422,6 @@ describe("popoverConfig.controls: width", () => {});});-describe("popoverConfig.controls: mode", () => {- it("mode is a select control", () => {- expect(popoverConfig.controls.mode.type).toBe("select");- });-- it("mode default is 'light'", () => {- expect(popoverConfig.controls.mode.default).toBe("light");- });-});-describe("popoverConfig.snippet: import line", () => {it("includes 'import { Popover }' from the correct path", () => {const out = snippet({ state: "opened" });@@ -473,10 +462,6 @@ describe("popoverConfig.snippet: default props are omitted", () => {it("omits width when it equals the default 288", () => {expect(snippet({ state: "opened", width: 288 })).not.toContain("width=");});-- it("omits mode when it equals the default 'light'", () => {- expect(snippet({ state: "opened", mode: "light" })).not.toContain("mode=");- });});describe("popoverConfig.snippet: non-default props are emitted", () => {@@ -505,10 +490,6 @@ describe("popoverConfig.snippet: non-default props are emitted", () => {it("emits width when non-default", () => {expect(snippet({ state: "opened", width: 320 })).toContain("width={320}");});-- it("emits mode='dark' when non-default", () => {- expect(snippet({ state: "opened", mode: "dark" })).toContain('mode="dark"');- });});describe("popoverConfig.snippet: state options round-trip", () => {diff --git a/registry/remocn-ui/popover/config.ts b/registry/remocn-ui/popover/config.tsindex 6d59e2b2..cab0a4d9 100644--- a/registry/remocn-ui/popover/config.ts+++ b/registry/remocn-ui/popover/config.ts@@ -34,24 +34,18 @@ export const popoverConfig: ComponentConfig = {options: ["opened", "closed"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as PopoverState) ?? "opened";const title = values.title as string | undefined;const description = values.description as string | undefined;const side = values.side as string | undefined;const width = values.width as number | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (title !== undefined && title !== "")@@ -62,8 +56,6 @@ export const popoverConfig: ComponentConfig = {props.push(` side="${side}"`);if (width !== undefined && width !== 288)props.push(` width={${width}}`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { Popover } from "@/components/remocn/popover";diff --git a/registry/remocn-ui/popover/index.tsx b/registry/remocn-ui/popover/index.tsxindex e3439e18..f5b630a6 100644--- a/registry/remocn-ui/popover/index.tsx+++ b/registry/remocn-ui/popover/index.tsx@@ -16,7 +16,6 @@ export interface PopoverProps {side?: PopoverSide;width?: number;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -57,10 +56,9 @@ export function Popover({side = "bottom",width = 288,theme: themeOverride,- mode,className,}: PopoverProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const v = style ?? popoverStyle(state);const { x, y } = offsetFor(side, v.translate);diff --git a/registry/remocn-ui/popover/preview.tsx b/registry/remocn-ui/popover/preview.tsxindex 38dc37d5..ff5372e1 100644--- a/registry/remocn-ui/popover/preview.tsx+++ b/registry/remocn-ui/popover/preview.tsx@@ -1,6 +1,5 @@"use client";-import { useRemocnTheme } from "@/lib/remocn-ui";import {Popover,type PopoverSide,@@ -13,7 +12,6 @@ export interface PopoverPreviewProps {side?: PopoverSide;width?: number;state?: PopoverState;- mode?: "light" | "dark";}export function PopoverPreview({@@ -22,10 +20,7 @@ export function PopoverPreview({side = "bottom",width = 288,state = "opened",- mode,}: PopoverPreviewProps) {- const theme = useRemocnTheme(undefined, mode);-return (<divstyle={{@@ -34,7 +29,7 @@ export function PopoverPreview({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",}}><Popover@@ -43,7 +38,6 @@ export function PopoverPreview({side={side}width={width}state={state}- mode={mode}/></div>);diff --git a/registry/remocn-ui/resizable/__tests__/resizable.test.ts b/registry/remocn-ui/resizable/__tests__/resizable.test.tsindex 35518ab3..9c8d22c3 100644--- a/registry/remocn-ui/resizable/__tests__/resizable.test.ts+++ b/registry/remocn-ui/resizable/__tests__/resizable.test.ts@@ -25,7 +25,6 @@ type SnippetValues = {ratio?: number;handleState?: string;direction?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>resizableConfig.snippet(values as Record<string, unknown>);@@ -607,15 +606,6 @@ describe("resizableConfig.controls: direction", () => {});});-describe("resizableConfig.controls: mode", () => {- it("mode is a select with options ['light','dark'] and default 'light'", () => {- const ctrl = resizableConfig.controls.mode;- if (ctrl.type !== "select") throw new Error("expected select");- expect(ctrl.options).toEqual(["light", "dark"]);- expect(ctrl.default).toBe("light");- });-});-describe("resizableConfig.snippet: import line", () => {it("includes 'import { Resizable }' from the correct path", () => {const out = snippet({ ratio: 0.5 });@@ -649,10 +639,6 @@ describe("resizableConfig.snippet: default props are omitted", () => {const out = snippet({ ratio: 0.5, direction: "horizontal" });expect(out).not.toContain("direction=");});- it("omits mode when it equals the default 'light'", () => {- const out = snippet({ ratio: 0.5, mode: "light" });- expect(out).not.toContain("mode=");- });});describe("resizableConfig.snippet: non-default props are emitted", () => {@@ -671,9 +657,6 @@ describe("resizableConfig.snippet: non-default props are emitted", () => {'direction="vertical"',);});- it("emits mode='dark' when non-default", () => {- expect(snippet({ ratio: 0.5, mode: "dark" })).toContain('mode="dark"');- });});describe("resizableConfig.snippet: handleState options round-trip", () => {diff --git a/registry/remocn-ui/resizable/config.ts b/registry/remocn-ui/resizable/config.tsindex dfcceb45..0ba804a5 100644--- a/registry/remocn-ui/resizable/config.ts+++ b/registry/remocn-ui/resizable/config.ts@@ -28,29 +28,22 @@ export const resizableConfig: ComponentConfig = {options: ["horizontal", "vertical"],label: "Direction",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const ratio = values.ratio as number | undefined;const handleState = values.handleState as ResizableHandleState | undefined;const direction = values.direction as ResizableDirection | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` ratio={${ratio ?? 0.5}}`];if (handleState !== undefined && handleState !== "idle")props.push(` handleState="${handleState}"`);if (direction !== undefined && direction !== "horizontal")props.push(` direction="${direction}"`);- if (mode !== undefined && mode !== "light") props.push(` mode="${mode}"`);return `import { Resizable } from "@/components/remocn/resizable";diff --git a/registry/remocn-ui/resizable/index.tsx b/registry/remocn-ui/resizable/index.tsxindex adce30c4..d36e106d 100644--- a/registry/remocn-ui/resizable/index.tsx+++ b/registry/remocn-ui/resizable/index.tsx@@ -25,7 +25,6 @@ export interface ResizableProps {width?: number;height?: number;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -118,10 +117,9 @@ export function Resizable({width = 440,height = 240,theme: themeOverride,- mode,className,}: ResizableProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = resizableStyleContext(theme);const v = style ?? resizableStyle(ratio, handleState);@@ -140,7 +138,7 @@ export function Resizable({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}diff --git a/registry/remocn-ui/select-item/__tests__/select-item.test.ts b/registry/remocn-ui/select-item/__tests__/select-item.test.tsindex 2a4a0b52..fc9ed852 100644--- a/registry/remocn-ui/select-item/__tests__/select-item.test.ts+++ b/registry/remocn-ui/select-item/__tests__/select-item.test.ts@@ -14,7 +14,6 @@ const VALID_STATES: readonly SelectItemState[] = ["idle", "hover", "press", "seltype SnippetValues = {state?: string;label?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -103,16 +102,11 @@ describe("selectItemConfig.snippet: default props are omitted", () => {const allDefaults = snippet({state: "selected",label: "Banana",- mode: "light",});it("omits label when it equals the default 'Banana'", () => {expect(allDefaults).not.toContain("label=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("selectItemConfig.snippet: non-default props are emitted", () => {@@ -120,11 +114,6 @@ describe("selectItemConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "selected", label: "Mango" })).toContain('label="Mango"');});-- it("emits a non-default mode", () => {- expect(snippet({ state: "selected", mode: "dark" }))- .toContain('mode="dark"');- });});describe("selectItemConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/select-item/config.ts b/registry/remocn-ui/select-item/config.tsindex 3418e6fa..4c6a3759 100644--- a/registry/remocn-ui/select-item/config.ts+++ b/registry/remocn-ui/select-item/config.ts@@ -12,27 +12,19 @@ export const selectItemConfig: ComponentConfig = {options: ["idle", "hover", "press", "selected"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as SelectItemState) ?? "selected";const label = values.label as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (label !== undefined && label !== "Banana")props.push(` label="${label}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { SelectItem } from "@/components/remocn/select-item";diff --git a/registry/remocn-ui/select-item/index.tsx b/registry/remocn-ui/select-item/index.tsxindex e880c901..2af08292 100644--- a/registry/remocn-ui/select-item/index.tsx+++ b/registry/remocn-ui/select-item/index.tsx@@ -10,7 +10,6 @@ export interface SelectItemProps {label?: string;width?: number;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -148,10 +147,9 @@ export function SelectItem({label = "Banana",width = ROW_WIDTH,theme: themeOverride,- mode,className,}: SelectItemProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = selectItemStyleContext(theme);return (@@ -163,7 +161,7 @@ export function SelectItem({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}diff --git a/registry/remocn-ui/select/__tests__/select.test.ts b/registry/remocn-ui/select/__tests__/select.test.tsindex f25f0dbd..2d587a40 100644--- a/registry/remocn-ui/select/__tests__/select.test.ts+++ b/registry/remocn-ui/select/__tests__/select.test.ts@@ -16,7 +16,6 @@ type SnippetValues = {label?: string;selectedIndex?: number;highlightedIndex?: number;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -99,7 +98,6 @@ describe("selectConfig.snippet: default props are omitted", () => {label: "Select a fruit",selectedIndex: -1,highlightedIndex: -1,- mode: "light",});it("omits label when it equals the default 'Select a fruit'", () => {@@ -114,9 +112,6 @@ describe("selectConfig.snippet: default props are omitted", () => {expect(allDefaults).not.toContain("highlightedIndex=");});- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("selectConfig.snippet: non-default props are emitted", () => {@@ -134,11 +129,6 @@ describe("selectConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", highlightedIndex: 1 })).toContain("highlightedIndex={1}");});-- it("emits a non-default mode", () => {- expect(snippet({ state: "opened", mode: "dark" }))- .toContain('mode="dark"');- });});describe("selectConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/select/config.ts b/registry/remocn-ui/select/config.tsindex f6966a4a..ee7da8c9 100644--- a/registry/remocn-ui/select/config.ts+++ b/registry/remocn-ui/select/config.ts@@ -28,23 +28,17 @@ export const selectConfig: ComponentConfig = {step: 1,label: "Highlighted Index",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as SelectState) ?? "opened";const label = values.label as string | undefined;const selectedIndex = values.selectedIndex as number | undefined;const highlightedIndex = values.highlightedIndex as number | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (label !== undefined && label !== "Select a fruit")@@ -53,8 +47,6 @@ export const selectConfig: ComponentConfig = {props.push(` selectedIndex={${selectedIndex}}`);if (highlightedIndex !== undefined && highlightedIndex !== -1)props.push(` highlightedIndex={${highlightedIndex}}`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { Select } from "@/components/remocn/select";diff --git a/registry/remocn-ui/select/index.tsx b/registry/remocn-ui/select/index.tsxindex d44773a0..976b0c04 100644--- a/registry/remocn-ui/select/index.tsx+++ b/registry/remocn-ui/select/index.tsx@@ -29,7 +29,6 @@ export interface SelectProps {pressedIndex?: number;itemStyles?: (SelectItemStyle | undefined)[];theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -109,10 +108,9 @@ export function Select({pressedIndex = -1,itemStyles,theme: themeOverride,- mode,className,}: SelectProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = selectStyleContext(theme);const v = style ?? selectStyle(state, ctx);@@ -128,7 +126,7 @@ export function Select({display: "flex",alignItems: "center",justifyContent: "center",- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}diff --git a/registry/remocn-ui/settings-toggle-flow/index.tsx b/registry/remocn-ui/settings-toggle-flow/index.tsxindex a7d4e256..14e04150 100644--- a/registry/remocn-ui/settings-toggle-flow/index.tsx+++ b/registry/remocn-ui/settings-toggle-flow/index.tsx@@ -345,7 +345,6 @@ export function SettingsToggleFlow({itemStyles={selectItems.map((_, i) =>i === selectItems.length - 1 ? itemStyle : undefined,)}- mode={mode}theme={theme}/></div>@@ -361,7 +360,7 @@ export function SettingsToggleFlow({...reveal(enterSave),}}>- <Button label={saveLabel} style={saveStyle} mode={mode} theme={theme} />+ <Button label={saveLabel} style={saveStyle} theme={theme} /></div>{}diff --git a/registry/remocn-ui/sheet/__tests__/sheet.test.ts b/registry/remocn-ui/sheet/__tests__/sheet.test.tsindex 4b0b4c75..f850412a 100644--- a/registry/remocn-ui/sheet/__tests__/sheet.test.ts+++ b/registry/remocn-ui/sheet/__tests__/sheet.test.ts@@ -17,7 +17,6 @@ type SnippetValues = {description?: string;actionLabel?: string;cancelLabel?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -109,7 +108,6 @@ describe("sheetConfig.snippet: default props are omitted", () => {description: "Make changes to your profile here. Click save when you're done.",actionLabel: "Save changes",cancelLabel: "Cancel",- mode: "light",});it("omits title when it equals the default 'Edit profile'", () => {@@ -127,10 +125,6 @@ describe("sheetConfig.snippet: default props are omitted", () => {it("omits cancelLabel when it equals the default 'Cancel'", () => {expect(allDefaults).not.toContain("cancelLabel=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("sheetConfig.snippet: non-default props are emitted", () => {@@ -153,11 +147,6 @@ describe("sheetConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "opened", cancelLabel: "Go back" })).toContain('cancelLabel="Go back"');});-- it("emits a non-default mode", () => {- expect(snippet({ state: "opened", mode: "dark" }))- .toContain('mode="dark"');- });});describe("sheetConfig.snippet: structural round-trip", () => {diff --git a/registry/remocn-ui/sheet/config.ts b/registry/remocn-ui/sheet/config.tsindex 5bc5a68e..2e3947aa 100644--- a/registry/remocn-ui/sheet/config.ts+++ b/registry/remocn-ui/sheet/config.ts@@ -26,24 +26,18 @@ export const sheetConfig: ComponentConfig = {options: ["opened", "closed"],label: "State",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as SheetState) ?? "opened";const title = values.title as string | undefined;const description = values.description as string | undefined;const actionLabel = values.actionLabel as string | undefined;const cancelLabel = values.cancelLabel as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (title !== undefined && title !== "Edit profile")@@ -54,8 +48,6 @@ export const sheetConfig: ComponentConfig = {props.push(` actionLabel="${actionLabel}"`);if (cancelLabel !== undefined && cancelLabel !== "Cancel")props.push(` cancelLabel="${cancelLabel}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { Sheet } from "@/components/remocn/sheet";diff --git a/registry/remocn-ui/sheet/index.tsx b/registry/remocn-ui/sheet/index.tsxindex c363c00d..7bdfa4e8 100644--- a/registry/remocn-ui/sheet/index.tsx+++ b/registry/remocn-ui/sheet/index.tsx@@ -12,7 +12,6 @@ export interface SheetProps {actionLabel?: string;cancelLabel?: string;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";className?: string;}@@ -77,10 +76,9 @@ export function Sheet({actionLabel = "Save changes",cancelLabel = "Cancel",theme: themeOverride,- mode,className,}: SheetProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = sheetStyleContext(theme);const v = style ?? sheetStyle(state, ctx);diff --git a/registry/remocn-ui/signup-flow/index.tsx b/registry/remocn-ui/signup-flow/index.tsxindex 7bd3fa6f..50bd66d0 100644--- a/registry/remocn-ui/signup-flow/index.tsx+++ b/registry/remocn-ui/signup-flow/index.tsx@@ -204,7 +204,7 @@ export function SignupFlow({<FieldGroup gap={16}><BlurIn display="block" style={enterName}><Field>- <FieldLabel mode={mode} theme={theme}>+ <FieldLabel theme={theme}>Full Name</FieldLabel><FieldControl>@@ -212,7 +212,6 @@ export function SignupFlow({placeholder={fullName}value={fullName}style={nameStyle}- mode={mode}theme={theme}/></FieldControl>@@ -221,7 +220,7 @@ export function SignupFlow({<BlurIn display="block" style={enterEmail}><Field>- <FieldLabel mode={mode} theme={theme}>+ <FieldLabel theme={theme}></FieldLabel><FieldControl>@@ -229,11 +228,10 @@ export function SignupFlow({placeholder={email}value={email}style={emailStyle}- mode={mode}theme={theme}/></FieldControl>- <FieldDescription mode={mode} theme={theme}>+ <FieldDescription theme={theme}>We'll use this to contact you.</FieldDescription></Field>@@ -241,7 +239,7 @@ export function SignupFlow({<BlurIn display="block" style={enterPass}><Field>- <FieldLabel mode={mode} theme={theme}>+ <FieldLabel theme={theme}>Password</FieldLabel><FieldControl>@@ -249,11 +247,10 @@ export function SignupFlow({placeholder={password}value={password}style={passStyle}- mode={mode}theme={theme}/></FieldControl>- <FieldDescription mode={mode} theme={theme}>+ <FieldDescription theme={theme}>Must be at least 8 characters long.</FieldDescription></Field>@@ -261,7 +258,7 @@ export function SignupFlow({<BlurIn display="block" style={enterConfirm}><Field>- <FieldLabel mode={mode} theme={theme}>+ <FieldLabel theme={theme}>Confirm Password</FieldLabel><FieldControl>@@ -269,7 +266,6 @@ export function SignupFlow({placeholder={password}value={password}style={confirmStyle}- mode={mode}theme={theme}/></FieldControl>@@ -283,7 +279,6 @@ export function SignupFlow({<Buttonlabel={createLabel}style={buttonStyle}- mode={mode}theme={theme}/></FieldControl>diff --git a/registry/remocn-ui/toggle-group/__tests__/toggle-group.test.ts b/registry/remocn-ui/toggle-group/__tests__/toggle-group.test.tsindex 0cb690b6..cda04a7a 100644--- a/registry/remocn-ui/toggle-group/__tests__/toggle-group.test.ts+++ b/registry/remocn-ui/toggle-group/__tests__/toggle-group.test.ts@@ -21,7 +21,6 @@ const DEFAULT_ITEMS: ToggleGroupItem[] = [type SnippetValues = {state?: string;size?: string;- mode?: string;};const snippet = (values: SnippetValues): string =>@@ -348,22 +347,6 @@ describe("toggleGroupConfig.controls.size", () => {});});-describe("toggleGroupConfig.controls.mode", () => {- it("is a select control", () => {- expect(toggleGroupConfig.controls.mode.type).toBe("select");- });-- it("defaults to 'light'", () => {- expect(toggleGroupConfig.controls.mode.default).toBe("light");- });-- it("has exactly the two mode options in order", () => {- const control = toggleGroupConfig.controls.mode;- if (control.type !== "select") throw new Error("mode control must be a select");- expect(control.options).toEqual(["light", "dark"]);- });-});-describe("toggleGroupConfig.snippet: import line", () => {it("includes `import { ToggleGroup }` from the correct path", () => {const out = snippet({ state: "Monthly" });@@ -401,21 +384,17 @@ describe("toggleGroupConfig.snippet: items inline literal always emitted", () =>});it("emits items even when all defaults are set", () => {- const out = snippet({ state: "Monthly", size: "default", mode: "light" });+ const out = snippet({ state: "Monthly", size: "default" });expect(out).toContain("items={[");});});describe("toggleGroupConfig.snippet: default props are omitted", () => {- const allDefaults = snippet({ state: "Monthly", size: "default", mode: "light" });+ const allDefaults = snippet({ state: "Monthly", size: "default" });it("omits size when it equals the default 'default'", () => {expect(allDefaults).not.toContain("size=");});-- it("omits mode when it equals the default 'light'", () => {- expect(allDefaults).not.toContain("mode=");- });});describe("toggleGroupConfig.snippet: non-default props are emitted", () => {@@ -423,14 +402,9 @@ describe("toggleGroupConfig.snippet: non-default props are emitted", () => {expect(snippet({ state: "Monthly", size: "sm" })).toContain('size="sm"');});- it("emits mode=\"dark\" when mode is non-default", () => {- expect(snippet({ state: "Monthly", mode: "dark" })).toContain('mode="dark"');- });-- it("emits both size and mode when both are non-default", () => {- const out = snippet({ state: "Yearly", size: "sm", mode: "dark" });+ it("emits size when non-default alongside a non-default state", () => {+ const out = snippet({ state: "Yearly", size: "sm" });expect(out).toContain('size="sm"');- expect(out).toContain('mode="dark"');});});diff --git a/registry/remocn-ui/toggle-group/config.ts b/registry/remocn-ui/toggle-group/config.tsindex eee1c87e..d111470c 100644--- a/registry/remocn-ui/toggle-group/config.ts+++ b/registry/remocn-ui/toggle-group/config.ts@@ -17,27 +17,19 @@ export const toggleGroupConfig: ComponentConfig = {options: ["default", "sm"],label: "Size",},- mode: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Mode",- },},durationInFrames: 120,fps: FPS,compositionWidth: W,compositionHeight: H,+ previewBackdrop: { type: "color", value: "oklch(1 0 0)" },snippet: (values) => {const state = (values.state as ToggleGroupState) ?? "Monthly";const size = values.size as string | undefined;- const mode = values.mode as string | undefined;const props: string[] = [` state="${state}"`];if (size !== undefined && size !== "default")props.push(` size="${size}"`);- if (mode !== undefined && mode !== "light")- props.push(` mode="${mode}"`);return `import { ToggleGroup } from "@/components/remocn/toggle-group";diff --git a/registry/remocn-ui/toggle-group/index.tsx b/registry/remocn-ui/toggle-group/index.tsxindex 3c2d3807..84d5e883 100644--- a/registry/remocn-ui/toggle-group/index.tsx+++ b/registry/remocn-ui/toggle-group/index.tsx@@ -19,7 +19,6 @@ export interface ToggleGroupProps {items?: ToggleGroupItem[];size?: ToggleGroupSize;theme?: Partial<RemocnTheme>;- mode?: "light" | "dark";align?: "start" | "center" | "end";className?: string;}@@ -86,11 +85,10 @@ export function ToggleGroup({items = DEFAULT_ITEMS,size = "default",theme: themeOverride,- mode,align = "center",className,}: ToggleGroupProps) {- const theme = useRemocnTheme(themeOverride, mode);+ const theme = useRemocnTheme(themeOverride, "light");const ctx = toggleGroupStyleContext(items, theme);const v = style ?? toggleGroupStyle(state, ctx);@@ -108,7 +106,7 @@ export function ToggleGroup({display: "flex",alignItems: "center",justifyContent: justify(align),- background: theme.background,+ background: "transparent",fontFamily:"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",}}