सेक्शन
कंपोनेंट
1. अपना प्रोजेक्ट बनाएँ#
नया Next.js ऐप बनाएँ, या मौजूदा ऐप उपयोग करने के लिए इस चरण को छोड़ दें:
pnpm create next-app@latest my-app --typescript --tailwind --appnpx create-next-app@latest my-app --typescript --tailwind --appyarn create next-app@latest my-app --typescript --tailwind --appbunx --bun create-next-app@latest my-app --typescript --tailwind --app
2. init चलाएँ#
अपने प्रोजेक्ट में shadcn इनिशियलाइज़ करें। इससे एक components.json बनता है और आपके
पाथ व Tailwind कॉन्फ़िगर हो जाते हैं:
pnpm dlx shadcn@latest initnpx shadcn@latest inityarn dlx shadcn@latest initbunx --bun shadcn@latest init
3. Neobrutalism रजिस्ट्री जोड़ें#
अपने components.json में Neobrutalism रजिस्ट्री जोड़ें:
{
"registries": {
"@neobrutalism": "https://neobrutalism.com/r/radix/{name}.json",
"@neobrutalism-base": "https://neobrutalism.com/r/base/{name}.json"
}
}4. फ़ॉन्ट और थीम जोड़ें#
Neobrutalism का सिग्नेचर लुक पाने के लिए फ़ॉन्ट और थीम के चरण फ़ॉलो करें —
Archivo Black हेडिंग, Space Grotesk बॉडी टेक्स्ट, और नियोब्रूटलिस्ट रंग व शैडो टोकन।
5. कंपोनेंट जोड़ें#
pnpm dlx shadcn@latest add @neobrutalism/buttonnpx shadcn@latest add @neobrutalism/buttonyarn dlx shadcn@latest add @neobrutalism/buttonbunx --bun shadcn@latest add @neobrutalism/button
फिर उसे import करके उपयोग करें:
import { Button } from "@/components/ui/button"
export default function Page() {
return <Button>Click me</Button>
}बस इतना ही 🚀 — किसी भी कंपोनेंट का Radix या Base UI वैरिएंट उसी तरह जोड़ें।