fix: input and toast font style use user custom font (#1322)
* fix: toast font style follow settings * feat: input font style follow settings --------- Co-authored-by: Innei <i@innei.in>
This commit is contained in:
parent
7b9e9ad6c6
commit
c40becff78
|
|
@ -23,7 +23,7 @@ export const Input = forwardRef<
|
|||
"border border-border",
|
||||
"placeholder:text-theme-placeholder-text dark:bg-zinc-700/[0.15] dark:text-zinc-200",
|
||||
"hover:border-accent/60",
|
||||
props.type === "password" ? "font-mono placeholder:font-sans" : "font-sans",
|
||||
props.type === "password" && "font-mono placeholder:font-sans",
|
||||
"w-full",
|
||||
className,
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export const Toaster = ({ ...props }: ToasterProps) => (
|
|||
<Sonner
|
||||
theme={useIsDark() ? "dark" : "light"}
|
||||
toastOptions={{
|
||||
className: tw`pointer-events-auto group`,
|
||||
className: tw`pointer-events-auto group font-theme`,
|
||||
classNames: {
|
||||
content: "min-w-0",
|
||||
icon: tw`self-start translate-y-[2px]`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue