Turborepo Shadcn UI Tailwindcss
A Next.js Turborepo starter with pre-configured Shadcn/UI and Tailwind CSS for streamlined development of applications using shared UI components.
Next.js Turborepo Starter with Shadcn/UI & Tailwind CSS
Kickstart your Next.js monorepo project with this Turborepo starter, featuring pre-configured Shadcn/UI and Tailwind CSS. It's designed for building applications with easily shareable UI components, utilizing PNPM for efficient package management. This setup includes essential configurations for TypeScript, ESLint, and Prettier, promoting a consistent and productive development environment for teams working on complex, multi-package applications. Get up and running quickly with a solid foundation.
Features:
- Monorepo Architecture: Utilizes Turborepo for managing multiple packages and applications efficiently within a single repository.
- Next.js Application (
docs): Includes a pre-configured Next.js app, suitable for documentation or as a web application starting point. - Shared UI Package (
@repo/ui): A dedicated React component library powered by Shadcn/UI and Tailwind CSS, designed for creating reusable UI elements. - Shadcn/UI Integration: Comes with Shadcn/UI pre-configured, allowing quick adoption of its accessible and customizable components.
- Tailwind CSS Setup: Tailwind CSS is integrated and configured for utility-first styling across the entire monorepo.
- PNPM Package Manager: Employs PNPM for fast and disk-space-efficient dependency management.
- TypeScript Throughout: Fully typed codebase using TypeScript, with shared configurations (
@repo/typescript-config) for consistency. - ESLint Configuration (
@repo/eslint-config): Centralized ESLint setup, includingeslint-config-nextandeslint-config-prettier, for maintaining code quality. - Prettier for Code Formatting: Integrated Prettier to ensure consistent code style across all packages.
- Optimized Build System: Leverages Turborepo's build system for fast, incremental builds and caching.
- Development Scripts: Provides
pnpm devfor concurrent development across apps and packages, andpnpm buildfor building all artifacts. - Remote Caching Ready: Configured to support Turborepo's Remote Caching with Vercel for faster CI/CD and team collaboration.
Summary:
This Turborepo starter offers a comprehensive solution for developers looking to build Next.js applications with a shared UI component strategy. It bundles Turborepo, Next.js, Shadcn/UI, and Tailwind CSS, along with essential development tools like TypeScript, ESLint, and Prettier. By providing a pre-configured monorepo structure, it accelerates setup time and promotes best practices for building scalable and maintainable web applications with consistent user interfaces across multiple projects.