style: update button and switch components for improved UI consistency

This commit is contained in:
Ardeman
2025-03-06 08:45:24 +08:00
parent 95565b5313
commit a7c5da8d9c
3 changed files with 5 additions and 36 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export const Switch = <TFormValues extends Record<string, unknown>>(
field.onChange(checked)
}}
className={twMerge(
'group relative flex h-7 w-14 cursor-pointer rounded-full bg-black/10 p-1 shadow transition-colors duration-200 ease-in-out focus:outline-none data-[checked]:bg-black/10 data-[focus]:outline-1 data-[focus]:outline-white',
'group relative flex h-7 w-14 cursor-pointer rounded-full bg-[#2E2F7C]/10 p-1 shadow transition-colors duration-200 ease-in-out focus:outline-none data-[checked]:bg-[#2E2F7C]/90 data-[focus]:outline-1 data-[focus]:outline-white',
className,
)}
>