Getting Started
Template
mantine-theme-template is a template repository that you can use to quickly setup a Next.js project with Mantine and RSS3 Theme.
Automatic Setup
TODO.
Manual Setup
Here is a step-by-step guide to setup the theme with Next.js.
0. Setup Next.js
Please follow Next.js to setup your project. (App Directory is recommended.)
1. Install Mantine packages
Install mantine packages and @rss3/mantine-theme
:
There are some additional packages that you might want to install, check mantine's installation page for the full list:
2. Setup PostCSS
Install the postcss package(s):
Create a postcss.config.js
file:
3. Setup MantineProvider
Assume you are using the App Directory in Next.js.
Create a globals.css
file:
Import the CSS file and MantineProvider
in the root layout file:
4. Setup Font
We use Poppins as the default font.
If you are using Next.js, you can use next/font to load the font:
If you are using other frameworks, please refer to their documentation to load the font.
Now you are all set! You can start using Mantine components in your app:
Please refer to mantine's docuementation for more information about integrating mantine with Next.js.
5. Setup Tailwind (Optional)
You can style mantine components with tailwind.
If you want, you can follow the steps below.
Install the tailwind package(s):
Create a tailwind.config.js
file:
Change your styles/globals.css
file to this:
Finally, Change your postcss.config.js
file to this:
Now, you can use tailwind classes in your app: