How to install dependencies and structure your app.
Create project
Start by creating a new Next.js project using create-next-app:
Install dependencies
Add icon library
Configure path aliases
I use the @ alias. This is how I configure it in tsconfig.json:
The @ alias is a preference. You can use other aliases if you want.
If you use a different alias such as ~, you'll need to update import statements when adding components.
Update globals.css
This is basic theem setup for Gesturs UI.
You can customize it as per your need, this is same as shadcn ui theme,
so you can copy it from there ( if you have any favorites ).
update tailwind.config.ts
Add a cn helper
I use a cn helper to make it easier to conditionally add Tailwind CSS classes. Here's how I define it in lib/utils.ts: