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

@generative-semantic-ui/shadcn

v0.1.0

Published

shadcn/ui-style adapter for @generative-semantic-ui/core. Self-contained primitives built on Radix + class-variance-authority.

Downloads

78

Readme

@generative-semantic-ui/shadcn

Self-contained shadcn/ui-style adapter for @generative-semantic-ui/core. Ships Button and Input primitives built on Radix + class-variance-authority; styled with Tailwind.

Install

npm install @generative-semantic-ui/core @generative-semantic-ui/shadcn

Requires Tailwind v3+ in your app.

Setup

1. Import the design tokens in your app root (main.tsx / index.tsx):

import "@generative-semantic-ui/shadcn/styles.css";

2. Register the package in your Tailwind content glob so its utility classes get emitted:

// tailwind.config.js
export default {
  content: [
    "./src/**/*.{ts,tsx}",
    "./node_modules/@generative-semantic-ui/shadcn/dist/**/*.{js,cjs}",
  ],
  theme: {
    extend: {
      colors: {
        border: "hsl(var(--border))",
        input: "hsl(var(--input))",
        ring: "hsl(var(--ring))",
        background: "hsl(var(--background))",
        foreground: "hsl(var(--foreground))",
        primary: {
          DEFAULT: "hsl(var(--primary))",
          foreground: "hsl(var(--primary-foreground))",
        },
        secondary: {
          DEFAULT: "hsl(var(--secondary))",
          foreground: "hsl(var(--secondary-foreground))",
        },
        destructive: {
          DEFAULT: "hsl(var(--destructive))",
          foreground: "hsl(var(--destructive-foreground))",
        },
        muted: {
          DEFAULT: "hsl(var(--muted))",
          foreground: "hsl(var(--muted-foreground))",
        },
        accent: {
          DEFAULT: "hsl(var(--accent))",
          foreground: "hsl(var(--accent-foreground))",
        },
      },
      borderRadius: {
        lg: "var(--radius)",
        md: "calc(var(--radius) - 2px)",
        sm: "calc(var(--radius) - 4px)",
      },
    },
  },
  safelist: [{ pattern: /^gap-\d+$/ }, { pattern: /^p-\d+$/ }],
};

3. Use the registry:

import { compile } from "@generative-semantic-ui/core";
import { registry } from "@generative-semantic-ui/shadcn";

const element = compile(jsxFromAgent, registry);

What's in the registry

Stack, Row, Box, Text, Heading, Button, Input, Image, Divider.

Also exports ButtonPrimitive and InputPrimitive if you want to compose your own adapters.

Differences from canonical shadcn/ui

This package bundles Button and Input rather than asking you to npx shadcn add button input. If you already have shadcn installed locally, writing your own thin registry adapter that imports from your @/components/ui/* is also 50 LOC — see src/index.tsx as a template.

License

MIT