ui icon indicating copy to clipboard operation
ui copied to clipboard

Add Font instructions when adding to an existing project

Open niclas-j opened this issue 2 years ago • 3 comments

See #68

niclas-j avatar Feb 08 '23 17:02 niclas-j

@niclas-j is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 08 '23 17:02 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
next-template ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 8, 2023 at 5:25PM (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 8, 2023 at 5:25PM (UTC)

vercel[bot] avatar Feb 08 '23 17:02 vercel[bot]

As of Next.js 13.2, @next/font has been integrated into the core next package (see here), so no need to install an extra package.

Also, it would be nice to also provide instructions for non-Next usage! You can do it purely in globals.scss as so:

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --font-sans: "Inter";
}

mozzius avatar Mar 07 '23 11:03 mozzius

@niclas-j Thanks for looking into this. I created an updated PR with docs for adding fonts. https://github.com/shadcn-ui/ui/pull/1752

Marking this one as done. Feel free to reopen if not.

Thank you.

shadcn avatar Oct 15 '23 11:10 shadcn