A modern, production-ready authentication boilerplate built with Next.js 14, Clerk, and Tailwind CSS.
Create a .env.local
file in the root directory with your Clerk credentials:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_xxxxxxx
CLERK_SECRET_KEY=sk_test_xxxxxxx
You can get these keys from your Clerk Dashboard.
git clone https://github.com/DanielDallas/clerk-auth-system.git
cd clerk-auth-system
npm install
npm run dev
clerk-auth-system/
āāā app/ # Next.js 14 App Router
ā āāā dashboard/ # Protected dashboard routes
ā ā āāā layout.tsx # Dashboard layout with sidebar
ā ā āāā page.tsx # Main dashboard page
ā ā āāā users/ # User management
ā ā āāā settings/ # Settings page
ā ā āāā help/ # Help & documentation
ā āāā sign-in/ # Sign in page
ā āāā sign-up/ # Sign up page
ā āāā layout.tsx # Root layout
ā āāā page.tsx # Home page
āāā components/ # React components
āāā lib/ # Utility functions
āāā public/ # Static files
āāā styles/ # Global styles
āāā middleware.ts # Clerk authentication middleware
āāā tailwind.config.js # Tailwind configuration
The project uses Tailwind CSS for styling. You can customize the theme in tailwind.config.js
:
theme: {
extend: {
colors: {
primary: {
DEFAULT: "#232363",
// Add more color variations
},
},
// Add more theme customizations
},
}
You can customize Clerk's UI components using the appearance
prop:
<SignIn
appearance={{
elements: {
rootBox: "mx-auto",
card: "shadow-lg",
// Add more custom styles
},
}}
/>
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
Daniel Dallas - LinkedIn - @thedanieldallas
Project Link: https://github.com/danieldallas/clerk-auth-system