Closed RahulBirCodes closed 7 months ago
Vaul doesn't set any font related styles, this is likely a bug in your setup.
I have the same issue... it's not a bug in my setup.
I'm using shadcn's Drawer, they wrapped it in custom blocks, so I just added a line with my font into a className:
const DrawerContent = React.forwardRef(...) => (
<DrawerPortal>
<DrawerOverlay />
<DrawerPrimitive.Content
ref={ref}
className={cn(
'font-e-ukraine <-- HERE ...',
className
)}
{...props}
>
...
</DrawerPrimitive.Content>
</DrawerPortal>
))
The drawer is not able to recognize the local fonts I set up. Within my nextjs project, I setup local fonts using this article from the nextjs documentation. However, the vaul drawer isn't able to recognize the --font-sans and --font-mono css vars and all the text within the drawer is being rendered in Times. Any help is appreciated!