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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@brkz-inc/foundations

v2.0.0

Published

BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities

Readme

@brkz-inc/foundations

Foundational layer of the BRKZ design system. Provides the Tailwind preset, ThemeProvider, global styles, and utilities.

Contents

  • brkzPreset — Tailwind CSS preset that maps @brkz-inc/tokens CSS variables to Tailwind utility classes
  • ThemeProvider — React context provider for light/dark/system theme switching
  • useTheme — Hook to read and set the current theme
  • cn() — Utility for merging Tailwind classes without conflicts (clsx + tailwind-merge)
  • global.css — Base CSS: imports tokens, Tailwind layers, resets, and :lang(ar) font selection (auto-switches to Noto Sans Arabic for Arabic content when fonts.css is imported)
  • fonts.css — Optional self-hosted variable fonts (Inter + Noto Sans Arabic). Import alongside global.css when you are NOT using next/font or a similar bundler-managed font loader

Notable utilities surfaced by the preset

The preset extends Tailwind with semantic utilities derived from @brkz-inc/tokens. Highlights:

  • Surfaces: bg-background, bg-card, bg-popover, bg-muted, bg-secondary, bg-primary
  • Feedback: bg-success, bg-warning, bg-error, bg-info (light tints, for alerts/banners)
  • Feedback (strong fill): bg-success-strong + text-success-strong-foreground — strong-fill success surface for action buttons (e.g., WhatsApp-style CTAs). Use this pair instead of inlining var(--brkz-color-success-600).
  • Sidebar: bg-sidebar, text-sidebar-foreground, bg-sidebar-accent, text-sidebar-accent-foreground, bg-sidebar-primary, text-sidebar-primary-foreground, border-sidebar-border, ring-sidebar-ring. Intentionally always-dark (matches Vercel/Linear/shadcn pattern); does not invert with the theme.
  • Borders & rings: border-border, ring-ring
  • Radii: rounded-{sm,md,lg,xl,2xl,3xl,full} mapped to --brkz-radius-*
  • Motion: duration-{instant,fast,base,moderate,slow}, ease-{standard,decelerate,accelerate,spring}

Setup in consuming apps

1. Configure Tailwind

// tailwind.config.ts
import { brkzPreset } from '@brkz-inc/foundations/tailwind'

export default {
  presets: [brkzPreset],
  content: [
    './src/**/*.{ts,tsx}',
    './node_modules/@brkz-inc/ui/dist/**/*.js',
  ],
}

2. Import global styles

// app/layout.tsx or _app.tsx
import '@brkz-inc/foundations/global.css'

3. Wrap with ThemeProvider

import { ThemeProvider } from '@brkz-inc/foundations'

export default function Layout({ children }) {
  return (
    <ThemeProvider defaultTheme="light">
      {children}
    </ThemeProvider>
  )
}

4. Use the cn utility in components

import { cn } from '@brkz-inc/foundations'

// Merges Tailwind classes without conflicts
cn('px-4 py-2 bg-primary', isActive && 'ring-2', className)