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.13

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 |

The package also depends on tailwindcss (v4 or higher recommended) — consumers are expected to wire the Tailwind setup themselves.

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).

| 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

Every emitted module starts with a "use client"; directive, so this package is only consumable from client components. If you import these into a Next.js Server Component (e.g. an app/ route file), the bundler will force it onto the client. Import and render from a component marked "use client" to keep the boundary explicit.

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';

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

  return (
    <SimpleLayout>
      <Button variant="primary" size="default" onClick={() => copy('hello')}>
        Copy
      </Button>
      <FormTextInput name="title" label="Title" rules={{ required: true }} />
    </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 export) | | Sidebar layout | @egose/shadcn-theme/layouts/sidebar1 | SidebarLayout (default), setLayoutHeader, headerStore, ISidebarData, INavUser | | Dialog manager | @egose/shadcn-theme/components/widgets/dialog-manager | DialogManagerProvider, useDialog, createTypedDialog, DialogContext |

The full list of public modules lives under dist/components/, dist/hooks/, dist/utils/, and dist/layouts/; the exports map in package.json enumerates the supported subpaths.

License

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