Installation
Create project
Section titled “Create project”If you don’t have a project yet, create one using the following command:
npx create-astro@latest astro-fulldev-ui --template with-tailwindcss --install --gitEdit tsconfig.json file
Section titled “Edit tsconfig.json file”Add the following code to the tsconfig.json file to resolve paths:
{ "compilerOptions": { // ... "baseUrl": ".", "paths": { "@/*": [ "./src/*" ] } // ... }}Run the CLI
Section titled “Run the CLI”As this project is distrubuted as a shadcn registry, run the shadcn init command to setup your project:
npx shadcn@latest initAdd fulldev/ui registry
Section titled “Add fulldev/ui registry”Add fulldev/ui as a namespaced registry to your components.json file:
{ "registries": { "@fulldev-ui": "https://ui.full.dev/r/{name}.json" }}Add Components
Section titled “Add Components”You can now start adding components to your project.
pnpm dlx shadcn@latest add @fulldev-ui/buttonor multiple resources at once:
pnpm dlx shadcn@latest add @fulldev-ui/button @fulldev-ui/item @fulldev-ui/listThe commands above will add components to your project. You can then import them like this:
---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>