
BracketUI v4
Start in seconds
Use the CLI to scaffold a new project instantly, or drop BracketUI into an existing React or Next.js project with a single install.
✓ Creating project structure...
✓ Installing dependencies...
✓ Configuring TailwindCSS...
✓ Setting up dark mode...
Quick Start
Two ways to get started — scaffold a new project in one command, or add BracketUI to your existing project.
New Project
Fastest way to start
npx @thirdbracket/create-bracketui-app my-appScaffolds a new Next.js project with BracketUI, TailwindCSS, and dark mode pre-configured.
Existing Project
Add to any React / Next.js app
npm install @thirdbracket/bracketuiThen update your Tailwind config to include the plugin and content paths.
Tailwind Config
After installing, register the BracketUI plugin and add its content path so TailwindCSS can scan and include the component styles.
ES6 Modules (Recommended)
// tailwind.config.mjs
import { bracketuiPlugin } from "@thirdbracket/bracketui";
export default {
darkMode: "class",
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@thirdbracket/bracketui/**/*.{js,ts,jsx,tsx}",
],
plugins: [bracketuiPlugin],
};CommonJS (Legacy)
// tailwind.config.js
const { bracketuiPlugin } = require("@thirdbracket/bracketui");
module.exports = {
darkMode: "class",
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@thirdbracket/bracketui/**/*.{js,ts,jsx,tsx}",
],
plugins: [bracketuiPlugin],
};Why BracketUI
Everything you need to build modern, accessible, and themeable React interfaces — without locking you in.
Ready-to-Use Components
Production-ready components for modern web development — Button, Navbar, Megamenu, Card, Tab, ThemeToggle and more.
TailwindCSS v3 Native
Built from the ground up for TailwindCSS v3. Drop it into any Tailwind project and override styles with utility classes.
Dark Mode & ThemeToggle
Syncs with system preferences out of the box. The ThemeToggle component lets users switch themes manually with zero configuration.
Highly Customisable
Every component accepts component-specific theme props for root-level customisation without fighting the library.
React & Next.js Ready
All components are optimised for React and Next.js, including App Router and Server Components workflows.
Security First
Keeps up with latest Next.js security patches. CVE-2025-66478 addressed. You ship with confidence.
Available Components
A focused set of high-quality components that cover the building blocks of every modern web project.
Button
Flexible button with size, outline, and full theme prop customisation.
Navbar
Sticky responsive navigation bar with mobile menu built in.
Megamenu
Nested dropdown megamenu that works on desktop and mobile.
Card
Content card with icon, header, cover, and full theme control.
ThemeToggle
System-aware theme toggle that pairs with ThemeScript.
Tab
Accessible tab component for switching between content panels.
Example Usage
Import any component directly from the package and use it anywhere in your app. All components accept a theme prop for full visual customisation.
Button Component
import { Button } from "@thirdbracket/bracketui";
export default function App() {
return (
<Button href="/path" outline size="md">
Click Me
</Button>
);
}Dark Mode — ThemeScript in layout.tsx
import { ThemeScript } from "@thirdbracket/bracketui";
export default function RootLayout({ children }) {
return (
<html lang="en">
<head>
<ThemeScript />
</head>
<body>{children}</body>
</html>
);
}Open Source & MIT Licensed
BracketUI is free and open source under the MIT licence. Contributions, bug reports, and feature requests are always welcome.
Build your next project with BracketUI
Free, open source, and built by the same team behind thirdbracket. Start a new project or add it to an existing one today.