We recommend starting a new Next.js project using create-next-app, which sets everything up automatically. To create a project, run:
npx create-next-app@latest
During installation, you will see the following prompts:
What is your project named? my-appWould you like to use TypeScript? No / YesWould you like to use ESLint? No / YesWould you like to use Tailwind CSS? No / YesWould you like your code inside a `src/` directory? No / YesWould you like to use App Router? (recommended) No / YesWould you like to use Turbopack for `next dev`? No / YesWould you like to customize the import alias (`@/*` by default)? No / YesWhat import alias would you like configured? @/*
After answering the prompts, create-next-app will create a folder with your project name and install the required dependencies.
You will be guided through a few questions to configure the components.json file:
Which style would you like to use? › New YorkWhich color would you like to use as base color? › ZincDo you want to use CSS variables for colors? › no / yes
This file will be created in the root directory of your project and will define the style and theme preferences for Star Forge components.
Star Forge relies on the following libraries, which are installed automatically by the npx shadcn@latest init command:
Tailwind CSS: For fast and flexible component styling.
Radix UI: To ensure accessibility and robust component behavior.
Class Variance Authority (CVA): To efficiently manage style variants.
If you started the project with create-next-app and selected Tailwind CSS, it will already be configured. Otherwise, follow the Tailwind CSS installation instructions to set it up manually.