Getting Started
Quick setup guide to get your design system up and running in minutes.
Requirements
Node.js
18.0 or higher
npm/yarn/pnpm
Latest version
Next.js
13.0 or higher
TypeScript
5.0 or higher
Installation
Create a new Next.js project
Start with a fresh Next.js application or use an existing one.
npx create-next-app@latest my-design-system
cd my-design-system
Install Tailwind CSS
Set up Tailwind CSS for styling your components.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Update your tailwind.config.js
:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {},
},
plugins: [],
}
Initialize shadcn/ui
Set up the shadcn/ui component library.
npx shadcn-ui@latest init
Configuration
You'll be prompted to configure your project. Choose your preferred settings for TypeScript, styling, and components location.
Install CraftJS
Add CraftJS for the interactive page builder functionality.
npm install @craftjs/core @craftjs/layers @craftjs/utils
Add base components
Install essential shadcn/ui components for your design system.
npx shadcn-ui@latest add button
npx shadcn-ui@latest add input
npx shadcn-ui@latest add card
npx shadcn-ui@latest add badge
npx shadcn-ui@latest add dialog
Create your first page
Set up the basic structure and start building.
// pages/index.js
import { Button } from '@/components/ui/button'
import { Card } from '@/components/ui/card'
export default function Home() {
return (
<div className="p-8">
<h1 className="text-4xl font-bold mb-4">
Welcome to your Design System
</h1>
<Card className="p-6">
<Button>Get Started</Button>
</Card>
</div>
)
}
You're all set!
Your design system is ready. Run npm run dev
to start development.
Next Steps
Explore Components
Browse our collection of atoms, molecules, and organisms in the Blocks section.
View ComponentsTry the Playground
Test and build layouts using our interactive CraftJS-powered editor.
Open Playground