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

@gusvega/ui

v0.4.8

Published

React UI component library built on Tailwind CSS

Readme

@gusvega/ui

React UI component library built on Tailwind CSS. Pre-compiled styles with built-in theme tokens. No separate tokens package required.

Component Status

Actions

  • [x] Button — primary | secondary | ghost | inverted, sm | md | lg, disabled

Form

  • [x] Input — forwardRef, error state, disabled
  • [x] Label — required marker
  • [x] Textarea — forwardRef, resizable
  • [x] Checkbox — controlled, disabled
  • [x] Radio — controlled, disabled
  • [x] Switch — controlled, disabled
  • [x] Select — native styled, controlled
  • [x] FormField — Label + Input + error message compound
  • [ ] Slider — range input (planned)
  • [ ] DatePicker — (planned)
  • [ ] FileUpload — (planned)

Data Display

  • [x] Badge — default | secondary | outline
  • [x] Avatar — 3 sizes, 3 colors, image support, stackable
  • [x] Tag — with optional remove button
  • [x] Stat — metric with optional trend
  • [x] Table — Table, TableHeader, TableBody, TableRow, TableHead, TableCell
  • [x] Code — inline + block variants
  • [x] Kbd — keyboard shortcut key
  • [ ] Tooltip — (planned, requires positioning)
  • [ ] Timeline — (planned)

Feedback

  • [x] Spinner — 3 sizes
  • [x] Progress — animated fill bar
  • [x] Alert — default | outline | filled with optional title
  • [x] Skeleton — shimmer loading placeholder
  • [ ] Toast — (planned, requires context/portal)
  • [ ] Banner — (planned)

Navigation

  • [x] Link — default | muted | underline
  • [x] Breadcrumb — with separator
  • [x] Tabs — Tabs | TabsList | TabsTrigger | TabsContent
  • [ ] Pagination — (planned)
  • [ ] Navbar — (planned as a compound)

Layout

  • [x] Card — Card | CardHeader | CardContent | CardFooter
  • [x] Separator — horizontal / vertical
  • [x] Stack — row / col with gap and alignment
  • [ ] Grid — (planned)
  • [ ] Container — (planned)

Overlay

  • [ ] Dialog / Modal — (planned, requires portal)
  • [ ] Dropdown — (planned, requires positioning)
  • [ ] Popover — (planned, requires positioning)
  • [ ] Sheet — (planned, requires portal)

Installation

React UI component library built on top of Tailwind CSS. Styles are pre-compiled and the default theme ships inside the library. Published to npm.

Installation

npm install @gusvega/ui

Usage

  1. Import the styles once at your app entry point:
import '@gusvega/ui/style.css';
  1. Import and use components:
import { Button, Input, Card, CardHeader, CardContent } from '@gusvega/ui';

export default function App() {
  return (
    <Card>
      <CardHeader>Welcome</CardHeader>
      <CardContent>
        <Input placeholder="Enter name..." />
        <Button variant="primary">Submit</Button>
      </CardContent>
    </Card>
  );
}

Theme Overrides

The library ships with built-in theme values for colors, spacing, and typography. The simplest way to customize them is to override the CSS variables after importing @gusvega/ui/style.css.

Option 1: Override in CSS

:root {
  --gus-color-neutral-900: 15 23 42;
  --gus-color-neutral-100: 241 245 249;
  --gus-font-family-sans: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --gus-space-4: 1.125rem;
}

Option 2: Override in React with a helper

import { createThemeVariables } from '@gusvega/ui';

const themeVars = createThemeVariables({
  colors: {
    neutral: {
      900: '#0f172a',
      100: '#f1f5f9',
    },
  },
  typography: {
    fontFamily: {
      sans: ['Satoshi', 'ui-sans-serif', 'system-ui', 'sans-serif'],
    },
  },
});

export function App() {
  return <div style={themeVars}>{/* your UI */}</div>;
}

createThemeVariables returns CSS custom properties, so the theme can be applied globally or scoped to a single subtree.

Component API

Actions

  • Buttonvariant: "primary" | "secondary" | "ghost" | "inverted", size: "sm" | "md" | "lg"
  • Linkvariant: "default" | "muted" | "underline"

Forms

  • Inputtype, placeholder, error, disabled, forwardRef
  • Label — with optional required marker
  • Textarearows, resizable, disabled, forwardRef
  • Checkboxchecked, onChange, disabled
  • Radiochecked, onChange, disabled
  • Switchchecked, onChange, disabled
  • Selectoptions, value, onChange
  • FormField — compound component (Label + Input + error)

Data Display

  • Badgevariant: "default" | "secondary" | "outline"
  • Avatarsize: "sm" | "md" | "lg", color, image
  • Tag — with optional remove button
  • Stat — metric with optional trend indicator
  • TableTable, TableHeader, TableBody, TableRow, TableHead, TableCell
  • Code — inline and block variants with syntax highlighting support
  • Kbd — keyboard shortcut display
  • Progress — animated progress bar with percentage

Feedback

  • Alertvariant: "default" | "outline" | "filled", optional title
  • Spinnersize: "sm" | "md" | "lg"
  • Skeleton — shimmer loading placeholder

Navigation

  • Breadcrumb — with custom separator
  • TabsTabs, TabsList, TabsTrigger, TabsContent

Layout

  • CardCard, CardHeader, CardContent, CardFooter
  • Separator — horizontal or vertical
  • Stackdirection: "row" | "col", gap, alignment utilities

Development

# Install and build library
cd ../gus-ui-library && npm install && npm run build