Skip to content

Commit

Permalink
Refactor "require" to "import"
Browse files Browse the repository at this point in the history
Changed the Import Method for TailwindCSS Config, (fontFamily)
  • Loading branch information
slxca committed Apr 25, 2024
1 parent 816b654 commit 56b4bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/content/docs/installation/next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
**2. Configure `theme.extend.fontFamily` in `tailwind.config.js`**

```js showLineNumbers title=tailwind.config.js {9-11}
const { fontFamily } = require("tailwindcss/defaultTheme")
import { fontFamily } from "tailwindcss/defaultTheme"

/** @type {import('tailwindcss').Config} */
module.exports = {
Expand Down

0 comments on commit 56b4bfd

Please sign in to comment.