npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@thirdbracket/bracketui

v3.1.12

Published

[![npm version](https://badge.fury.io/js/@thirdbracket%2Fbracketui.svg)](https://badge.fury.io/js/@thirdbracket%2Fbracketui) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Readme

BracketUI

npm version License: MIT

A modern, accessible React component library built with TailwindCSS. Perfect for Next.js applications with built-in dark mode support and theme management.

✨ Features

  • 🎨 TailwindCSS Integration - Built-in styling with full customization
  • 🌙 Dark Mode Support - Automatic system preference detection + manual toggle
  • Next.js Optimized - Perfect for App Router and Pages Router (Next.js 15.3.7+)
  • 🔒 Security First - Latest security patches and vulnerability fixes
  • 📦 ES6 Module Support - Modern import/export syntax with full compatibility
  • 🎯 TypeScript First - Full type safety out of the box
  • 📱 Responsive Design - Mobile-first approach
  • Accessibility - WCAG compliant components
  • 🎛️ Highly Customizable - Theme props for easy customization

🚀 Quick Start

Installation

npm install @thirdbracket/bracketui

Setup TailwindCSS

ES6 Modules (Recommended):

// tailwind.config.mjs
import { bracketuiPlugin } from "@thirdbracket/bracketui";

export default {
  darkMode: "class", // Required for dark mode
  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],
};

Basic Usage

import { Button, ThemeToggle, ThemeScript } from "@thirdbracket/bracketui";

// Add ThemeScript to your layout (Next.js App Router)
export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <head>
        <ThemeScript />
      </head>
      <body>
        {children}
      </body>
    </html>
  );
}

// Use components anywhere
export default function App() {
  return (
    <div>
      <Button href="/dashboard" size="lg">
        Get Started
      </Button>
      <ThemeToggle />
    </div>
  );
}

📦 Available Components

| Component | Description | |-----------|-------------| | Button | Versatile button with multiple variants and sizes | | Card | Flexible container for content | | Navbar | Navigation bar with responsive design | | Megamenu | Advanced dropdown navigation | | Tab | Tabbed interface component | | ThemeToggle | Dark/light mode toggle button | | ThemeScript | Theme initialization script |

🎨 Customization

BracketUI components accept theme props for easy customization:

<Button 
  theme={{
    background: "bg-purple-600 hover:bg-purple-700",
    text: "text-white",
    border: "border-purple-600"
  }}
>
  Custom Button
</Button>

🌙 Dark Mode

BracketUI includes a complete dark mode solution:

  1. Add ThemeScript to your layout
  2. Use ThemeToggle component anywhere
  3. Automatic system detection with manual override
import { ThemeScript, ThemeToggle } from "@thirdbracket/bracketui";

// In your layout
<head>
  <ThemeScript />
</head>

// Anywhere in your app
<ThemeToggle />

🛠️ CLI Tool

Quickly scaffold new projects with BracketUI:

npx @thirdbracket/create-bracketui-app my-app
cd my-app
npm run dev

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide.

📄 License

MIT © Third Bracket

🔗 Links