Create a Next.js project. Choose any configuration.
pnpm create next-app@latest
2
Install natmfat
pnpm add natmfat
3
Add fonts
Fonts are not included in the natmfat package. We recommend using Google Fonts. Note that applying a data-theme attribute somewhere (preferably the body) or using a ThemeProvider is required for styles to appear.
I highly recommend using TailwindCSS to create layouts and apply basic styles to components. After installing TailwindCSS, you must overwrite the globals.css file with our own custom styles. natmfat already ships with a version of preflight, so re-including it is unnecessary and may create visual inconsistencies. Our recommended TailwindCSS config gives you access to natmfat colors and applies TailwindCSS classes with maximum precedence.
@import "tailwindcss";
@import "natmfat/styles/reset.css"; /* Do not include if using Tailwind */
@import "natmfat/styles/core.css";
@config "natmfat/integrations/tailwind.config";