Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Set Inter as the base font for Shadcn #178

Open
moggiex opened this issue Mar 27, 2024 · 1 comment
Open

[Feature Request] Set Inter as the base font for Shadcn #178

moggiex opened this issue Mar 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@moggiex
Copy link

moggiex commented Mar 27, 2024

Is your feature request related to a problem? Please describe.
We're missing a few lines to set Inter as the base font for Shadcn out of the box, and we already half the work done as fontFamily is set in tailwind.config.ts, cn() already exists the import is preset too.

Describe the solution you'd like
layout.tsx add:

const inter = Inter({ subsets: ['latin'], variable: '--font-sans' });
import { cn } from '@/lib/utils';

and tweak the body line to
<body className={cn('font-sans antialiased', inter.variable)}>
Additional context
See here for the guide to nextJS https://ui.shadcn.com/docs/installation/next Had a look at the source, got lost around the adaptation of the ThemeProvider, so hence the feature request :)

@pilladipesh33
Copy link

Hey, if no one is currently working on this issue I would love to contribute to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants