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 #9

Open
OmegaHawkeye opened this issue Apr 30, 2024 · 0 comments
Open

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

OmegaHawkeye opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@OmegaHawkeye
Copy link
Owner

From kirimase created by moggiex: nicoalbanese#178

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 :)

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
Development

No branches or pull requests

1 participant