Created
January 14, 2025 00:51
-
-
Save farlandliu/b261257b3181787d3ab13910c2c8a006 to your computer and use it in GitHub Desktop.
nextjs custom tailwind css font
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import '@fontsource/fira-mono/400.css'; | |
@import '@fontsource-variable/inter'; | |
@import "@fontsource-variable/inter/wght.css"; | |
@import "@fontsource-variable/inter/wght-italic.css"; | |
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"@fontsource-variable/inter": "^5.1.1", | |
"@fontsource/fira-mono": "^5.1.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { Config } from "tailwindcss"; | |
import daisyui from 'daisyui' | |
import theme from 'tailwindcss/defaultTheme' | |
export default { | |
content: [ | |
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}", | |
"./src/components/**/*.{js,ts,jsx,tsx,mdx}", | |
"./src/app/**/*.{js,ts,jsx,tsx,mdx}", | |
"./src/lib/**/*.{js,ts,jsx,tsx,mdx}", | |
], | |
theme: { | |
extend: { | |
fontFamily: { | |
sans: ['Inter Variable', ...theme.fontFamily.sans], | |
mono: ['Fira Mono', ...theme.fontFamily.mono], | |
}, | |
}, | |
}, | |
plugins: [daisyui], | |
} satisfies Config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment