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

@egose/shadcn-theme

v0.1.14

Published

shadcn UI theme for React

Readme

@egose/shadcn-theme

A themeable shadcn/ui-style component library for React (React 18 / 19), built with Tailwind CSS, radix-ui, class-variance-authority, and react-hook-form.

Install

npm install @egose/shadcn-theme
# Peer dependencies (required):
npm install react react-dom react-hook-form sonner

pnpm / yarn equivalents work too. Make sure your project's versions satisfy the peer ranges below.

Peer dependencies

| Package | Supported version | | ----------------- | ---------------------- | | react | ^18.3.1 \|\| ^19.0.0 | | react-dom | ^18.3.1 \|\| ^19.0.0 | | react-hook-form | ^7.54.2 | | sonner | ^2.0.7 |

Tailwind CSS is consumer-side setup rather than a package peer. Tailwind CSS v4 or higher is recommended.

Tailwind / global setup

The components ship precompiled Tailwind class strings (no tw: prefix). Configure your app's Tailwind to scan @egose/shadcn-theme for class names, and set up the standard CSS variables (light + dark) the shadcn theme tokens rely on. See the @examples/nextjs workspace in the repo for a working setup.

Import forms

The package is deep-import only — every component/hook/util/layout is its own entry. Import by subpath; do NOT import from the package root (@egose/shadcn-theme alone resolves to nothing).

Each public subpath is condition-aware: ESM import resolves its .mjs runtime and .d.mts declarations, while CommonJS require resolves its .js runtime and .d.ts declarations. Always use the package subpaths below rather than importing physical files from the installed package.

| Surface | Import path | | ------------ | ----------------------------------------------- | | UI primitive | @egose/shadcn-theme/components/ui/<name> | | Form field | @egose/shadcn-theme/components/form/<name> | | Widget | @egose/shadcn-theme/components/widgets/<name> | | Hook | @egose/shadcn-theme/hooks/<name> | | Utility | @egose/shadcn-theme/utils/<name> | | Layout | @egose/shadcn-theme/layouts/<name> |

React Server Components

Pure utility entries such as utils/ui, utils/date, and utils/time are server-safe and can be imported directly by React Server Components. Hook, context, interactive, and browser-dependent entries carry a "use client"; boundary in both ESM and CommonJS builds. The components/widgets/dialog-manager barrel is one of these client entries: a Server Component may render DialogManagerProvider, but useDialog, event callbacks, and imperative dialog calls belong in your own component marked "use client".

Quick start

'use client';

import { Button } from '@egose/shadcn-theme/components/ui/button';
import { FormTextInput } from '@egose/shadcn-theme/components/form/text-input';
import { useClipboard } from '@egose/shadcn-theme/hooks/use-clipboard';
import { cn } from '@egose/shadcn-theme/utils/ui';
import SimpleLayout from '@egose/shadcn-theme/layouts/simple';
import Link from 'next/link';

export function Demo() {
  const { copy } = useClipboard();

  return (
    <SimpleLayout aslink={Link}>
      <Button variant="primary" size="default" onClick={() => copy('hello')}>
        Copy
      </Button>
      <FormTextInput name="title" label="Title" required />
    </SimpleLayout>
  );
}

Selected exports

| Surface | Example import | Exported names | | --------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | Button | @egose/shadcn-theme/components/ui/button | Button, buttonVariants, ButtonProps, VariantType, SizeType | | cn helper | @egose/shadcn-theme/utils/ui | cn | | useClipboard | @egose/shadcn-theme/hooks/use-clipboard | useClipboard | | Form text input | @egose/shadcn-theme/components/form/text-input | FormTextInput, FormTextInputProps | | Page header | @egose/shadcn-theme/components/widgets/page-header | PageHeader, PageHeaderProps | | Action menu | @egose/shadcn-theme/components/widgets/action-menu | ActionMenu, ActionMenuProps, ActionMenuItem | | Confirm dialog | @egose/shadcn-theme/components/widgets/confirmation-dialog | ConfirmationDialog, ConfirmationDialogArgs, ConfirmationDialogResult | | Simple layout | @egose/shadcn-theme/layouts/simple | SimpleLayout (default), SimpleLayoutProps, MenuItem, UserMenuSection (types) | | Sidebar layout | @egose/shadcn-theme/layouts/sidebar1 | SidebarLayout (default), useLayoutHeader, ISidebarData, INavUser | | Dialog manager | @egose/shadcn-theme/components/widgets/dialog-manager | DialogManagerProvider, useDialog, createTypedDialog, DialogCancellationError |

The installed package exposes public modules through the components/, hooks/, utils/, and layouts/ subpaths. Its exports map is authoritative; physical package files are not public import paths.

License

Apache-2.0 — see the LICENSE file shipped with the package (sourced from the repo root).