Skip to content
X GitHub

Installation

If you don’t have a project yet, create one using the following command:

Terminal window
npx create-astro@latest astro-fulldev-ui --template with-tailwindcss --install --git

Add the following code to the tsconfig.json file to resolve paths:

tsconfig.json
{
"compilerOptions": {
// ...
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}
// ...
}
}

As this project is distrubuted as a shadcn registry, run the shadcn init command to setup your project:

Terminal window
npx shadcn@latest init

Add fulldev/ui as a namespaced registry to your components.json file:

components.json
{
"registries": {
"@fulldev-ui": "https://ui.full.dev/r/{name}.json"
}
}

You can now start adding components to your project.

Terminal window
pnpm dlx shadcn@latest add @fulldev-ui/button

or multiple resources at once:

Terminal window
pnpm dlx shadcn@latest add @fulldev-ui/button @fulldev-ui/item @fulldev-ui/list

The commands above will add components to your project. You can then import them like this:

src/pages/index.astro
---
import { Button } from "@/components/ui/button"
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>Astro + fulldev/ui</title>
</head>
<body>
<div class="grid h-screen place-items-center content-center">
<Button>Button</Button>
</div>
</body>
</html>