---
title: Next.js
description: RetroUI ❤️ Next.js
lastUpdated: 6 Mar, 2024
---
### 1. Create Project
Run the init command to create a new Next.js project or to setup an existing one:
### 2. Install utilities
If the `libs/utils.ts` file is not present in your project, you can install it using the following command:
### 3. That's it 🚀
Now you can start using RetroUI components in your project. You can install them through CLI or manually.
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
#### 2. Copy the code 👇 into your project:
After installing the component in your project, you can then simply import it like this:
```tsx
import { Button } from "@/components/retroui/Button";
export default function ButtonExample() {
return ;
}
```
### Optional
You are free to pick your own fonts and theme, but if you'd like to use RetroUI theme then use the following guide.
#### 1. Add Fonts
We are using `Archivo Black` for headings and `Space Grotesk` for everything else. You can install them from Nextjs fonts or manually from Google fonts.
```tsx
import { Archivo_Black, Space_Grotesk } from "next/font/google";
const archivoBlack = Archivo_Black({
subsets: ["latin"],
weight: "400",
variable: "--font-head",
display: "swap",
});
const space = Space_Grotesk({
subsets: ["latin"],
weight: "400",
variable: "--font-sans",
display: "swap",
});
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (