更新样式匹配新设计方案

This commit is contained in:
2025-04-26 17:56:32 +08:00
parent f46660fafd
commit b20ec85db9
10 changed files with 66 additions and 112 deletions

View File

@@ -8,11 +8,11 @@ function Input({className, type, ...props}: React.ComponentProps<'input'>) {
type={type}
data-slot="input"
className={merge(
`transition-[color,box-shadow] duration-200 ease-in-out`,
`transition-[color] duration-200 ease-in-out`,
`h-10 min-w-0 w-full`,
'placeholder:text-muted-foreground',
'selection:bg-primary selection:text-primary-foreground',
'flex rounded-md border bg-transparent px-3 py-1 text-base shadow-xs',
'flex rounded-md border bg-card px-3 py-1 text-base',
'outline-none focus-visible:ring-4 ring-ring/50',
'disabled:cursor-not-allowed disabled:opacity-50',
'aria-invalid:ring-fail/20 aria-invalid:border-fail dark:aria-invalid:ring-fail/40 dark:bg-input/30',