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

@swift-rust/ui

v0.6.0

Published

swift-rust ui — a shadcn-style component registry with a third style dimension (variant × size × design) built for Tailwind v4.

Downloads

230

Readme

@swift-rust/ui

A shadcn-style component registry for swift-rust — components are copied into your project, you own the code. Built for Tailwind CSS v4 (it uses v4-native utilities like outline-hidden, shadow-xs, bg-linear-to-br, size-*, and p-(--var); Tailwind v3 is not supported).

What's different from shadcn

Every surfaced component has three independent style dimensions instead of two:

| Dimension | Prop | Values | | --------- | --------- | ------ | | Variant | variant | default, outline, secondary, ghost, destructive, link | | Size | size | default, xs, sm, md, lg, icon, icon-xs, icon-sm, icon-md, icon-lg | | Design | design | flat, soft, 3d, glass, neo, brutal, gradient |

The design dimension is exposed as the design prop (not style) because React reserves style for inline styles.

import { Button } from "@/components/ui/button";

<Button>Default</Button>
<Button design="3d">Raised</Button>
<Button design="glass" variant="outline">Frosted</Button>
<Button design="brutal" variant="destructive" size="lg">Delete</Button>
<Button design="gradient" size="icon"><SparklesIcon /></Button>

Design styles

  • flat — the default; the clean shadcn look.
  • soft — pastel, larger radius, borderless.
  • 3d — raised with a hard bottom edge; presses down on click.
  • glass — translucent, frosted backdrop blur.
  • neo — neumorphic soft-extruded surfaces; presses inset.
  • brutal — neo-brutalism: thick borders, hard offset shadows, square corners.
  • gradient — vivid violet→fuchsia→orange fills (buttons) or gradient borders (cards, inputs).

Variants apply where they make sense per component (an Alert adds success, warning, info; an Avatar has only size + design; Label has only variant + size).

Usage

# initialize lib/utils.ts (cn helper) + dependencies
bunx @swift-rust/ui init

# add components
bunx @swift-rust/ui add button card input

# list everything
bunx @swift-rust/ui list

Components land in components/ui/ and import cn from @/lib/utils.

Theming

Components use the standard shadcn token names through Tailwind v4 theme utilities (bg-primary, text-muted-foreground, border-border, …). Projects scaffolded with create-swift-rust define these in globals.css via @theme inline mapped onto --ui-* custom properties — override the --ui-* values (light + .dark) to retheme everything.