From adeed26289ae8d1bc37860414e8d3982540ad5b5 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 31 Mar 2026 00:07:17 -0700 Subject: [PATCH] Simplify appearance settings layout - Tighten theme cards, controls, and section spacing - Remove the import format section and reduce copy in the theme editor --- .../settings/AppearanceSettingsPanel.tsx | 275 ++++++------------ 1 file changed, 83 insertions(+), 192 deletions(-) diff --git a/apps/web/src/components/settings/AppearanceSettingsPanel.tsx b/apps/web/src/components/settings/AppearanceSettingsPanel.tsx index 25c7569973..ad05ad12cc 100644 --- a/apps/web/src/components/settings/AppearanceSettingsPanel.tsx +++ b/apps/web/src/components/settings/AppearanceSettingsPanel.tsx @@ -28,7 +28,6 @@ import { cn } from "../../lib/utils"; import { useAppearance } from "../../hooks/useAppearance"; import { useUpdateSettings } from "../../hooks/useSettings"; import { toastManager } from "../ui/toast"; -import { Badge } from "../ui/badge"; import { Button } from "../ui/button"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible"; import { Input } from "../ui/input"; @@ -115,12 +114,10 @@ const OVERRIDE_FIELDS: ReadonlyArray<{ function ThemeCard({ theme, - description, isSelected, onSelect, }: { theme: ThemeDocument; - description: string; isSelected: boolean; onSelect: () => void; }) { @@ -129,40 +126,25 @@ function ThemeCard({ type="button" onClick={onSelect} className={cn( - "group relative overflow-hidden rounded-2xl border p-4 text-left transition-all", + "group relative flex items-center gap-3 overflow-hidden rounded-xl border p-2.5 text-left transition-all", isSelected - ? "border-primary bg-primary/6 shadow-sm shadow-primary/10" + ? "border-primary bg-primary/6" : "border-border bg-card hover:border-primary/40 hover:bg-accent/40", )} >
-
-
-
-

{theme.name}

-

{description}

-
-
- - {theme.mode} - - - {theme.origin === "builtin" ? "Builtin" : "Custom"} - -
-
-
- {theme.contrast} - {theme.radius} - {theme.fontSize} - {isSelected ? Active : null} -
+
+

{theme.name}

+

+ {theme.origin === "custom" ? "Custom" : "Builtin"} +

+ {isSelected ? : null} ); } @@ -177,18 +159,16 @@ function ColorField({ onChange: (value: string) => void; }) { return ( -