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

@bekaert-dev/ui

v0.1.0

Published

React component library built on @bekaert-dev/design-tokens

Readme

@bekaert-dev/ui

React component library built on @bekaert-dev/design-tokens. All styling uses CSS custom properties for full theme support with light and dark modes.

Installation

pnpm add @bekaert-dev/ui @bekaert-dev/design-tokens

Peer dependencies

  • react ^19
  • react-dom ^19

Setup

Wrap your app with ThemeProvider to inject design token CSS variables:

import { ThemeProvider } from '@bekaert-dev/ui'

const App = () => (
  <ThemeProvider defaultMode="light">
    <YourApp />
  </ThemeProvider>
)

Set root to apply tokens to :root instead of a wrapper <div>:

<ThemeProvider defaultMode="light" root>
  <YourApp />
</ThemeProvider>

Toggle between light and dark mode with useTheme:

import { useTheme } from '@bekaert-dev/ui'

const ThemeToggle = () => {
  const { mode, setMode } = useTheme()
  return <button onClick={() => setMode(mode === 'light' ? 'dark' : 'light')}>Toggle</button>
}

Components

Typography

| Component | Description | Variants | |-----------|-------------|----------| | Text | Body text | sm, md, lg | | Heading | Section headings | h1h6 | | Display | Large display text | sm, md, lg |

All typography components accept color (default, muted, inverse) and align (left, center, right) props, and are polymorphic via the as prop.

Actions

| Component | Description | Variants | Intents | Sizes | |-----------|-------------|----------|---------|-------| | Button | Interactive button | solid, outline, ghost | primary, secondary, critical | sm, md, lg | | ButtonLink | Anchor styled as button | Same as Button | Same as Button | Same as Button |

Navigation

| Component | Description | Variants | |-----------|-------------|----------| | Link | Anchor element | default, subtle |

Layout

| Component | Description | Key props | |-----------|-------------|-----------| | Stack | Flexbox stack | direction, gap, align, justify | | Grid | CSS grid | columns (1–12), gap | | Container | Centered max-width container | size (sm2xl) |

Data Display

| Component | Description | Key props | |-----------|-------------|-----------| | Badge | Status indicator | intent, size | | Alert | Notification banner | intent, title, onDismiss | | Card | Content card | variant (elevated, outlined), padding |

Card has sub-components: CardHeader, CardBody, CardFooter.

Interactive

| Component | Description | Key props | |-----------|-------------|-----------| | Tabs | Tabbed navigation | variant (underlined, solid), size |

Tabs has sub-components: TabList, TabTrigger, TabContent. Built on Radix UI for full keyboard and accessibility support.

Utility

| Component | Description | |-----------|-------------| | Divider | Horizontal or vertical separator | | VisuallyHidden | Screen-reader-only content |

Design tokens

All spacing, colors, typography, radii, shadows, and motion values come from @bekaert-dev/design-tokens via CSS custom properties (--bk-*). No hardcoded values — components adapt automatically when tokens change.

Development

# Run tests
pnpm --filter @bekaert-dev/ui test

# Type check
pnpm --filter @bekaert-dev/ui typecheck

# Build
pnpm --filter @bekaert-dev/ui build

# Storybook (from repo root)
pnpm storybook:dev

License

MIT