From eb57250409b8916c14648299a278b91756800835 Mon Sep 17 00:00:00 2001 From: Steven RYDELL Date: Wed, 29 Jul 2026 06:15:49 +0200 Subject: [PATCH] Distinguish form field backgrounds from card surfaces Introduce a --field design token (page background tone) used by inputs, textareas and select triggers, and raise the dark-mode card lightness so cards read as elevated surfaces with inset fields, following the shadcn convention. --- src/components/forms/FieldWidget.tsx | 2 +- src/components/ui/input.tsx | 2 +- src/components/ui/select.tsx | 2 +- src/components/ui/textarea.tsx | 2 +- src/index.css | 9 ++++++++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/forms/FieldWidget.tsx b/src/components/forms/FieldWidget.tsx index 877df58..445d1fb 100644 --- a/src/components/forms/FieldWidget.tsx +++ b/src/components/forms/FieldWidget.tsx @@ -398,7 +398,7 @@ function StringField({ value={strValue || '#000000'} onChange={(e) => handleCommit(e.target.value)} disabled={readOnly} - className="h-9 w-14 cursor-pointer rounded-md border border-input bg-transparent p-1" + className="h-9 w-14 cursor-pointer rounded-md border border-input bg-field p-1" /> span]:line-clamp-1', + 'flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-field px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className, )} {...props} diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index eaf9ffd..61e67cd 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -13,7 +13,7 @@ const Textarea = React.forwardRef