Navigation: [/sitemap.md](/sitemap.md)

---
type: doc
title: Init
description: Install the shared Fulldev UI setup.
---

`@fulldev/init` installs the shared setup that Fulldev UI components and blocks
expect in an Astro project.

## Installation

Make sure `components.json` includes the Fulldev registry before using the
`@fulldev` namespace. For a fresh Astro project, follow the full
[installation guide](/docs/installation/) first.

Install init before adding components:

```bash
npx shadcn@latest add @fulldev/init -y --overwrite
```

`--overwrite` lets `@fulldev/init` replace Astro's generated
`src/styles/global.css` with the Fulldev token layer. For an existing project,
review that file before running the command if it already has custom styles.

## What it installs

- `src/lib/utils.ts`
- `src/styles/global.css`
- `class-variance-authority`
- `clsx`
- `tailwind-merge`

## When to use it

Use `@fulldev/init` when setting up Fulldev UI in a project for the first time.
Add components after init has installed the shared helper, dependencies, and
Tailwind token layer.
