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

velocity-ds

v0.1.2

Published

Velocity Design System by Runswap

Downloads

415

Readme

@runswap/velocity

Velocity is the Runswap design system — a collection of accessible, themeable UI components built on Base UI and styled with Tailwind CSS v4.

Requirements

| Peer dependency | Version | |---|---| | react | ^19.0.0 | | react-dom | ^19.0.0 | | @base-ui-components/react | ^1.0.0-alpha.8 | | react-icons | ^5 (Remix Icon set: react-icons/ri) | | Tailwind CSS | v4 |

Tailwind v4 is required. The design tokens are shipped as a CSS file that uses Tailwind v4 @theme variables. It will not work with Tailwind v3.

Installation

npm install @runswap/velocity

Install peer dependencies if not already present:

npm install react react-dom @base-ui-components/react react-icons

Setup

1. Import the design tokens

In your global CSS entry point (e.g. src/index.css), import the Velocity token stylesheet after your Tailwind import:

@import "tailwindcss";
@import "@runswap/velocity/styles";

2. Use components

import { Button } from '@runswap/velocity';

export function App() {
  return <Button variant="solid" colorScheme="primary">Click me</Button>;
}

Components

| Component | Description | |---|---| | Button | Accessible button with solid, outline, ghost, and link variants + color schemes | | NumberField | Numeric input with steppers (optional scrub area) on Base UI Number Field | | Chip | Tags / filters — optional remove control; selectable mode uses Base UI Toggle | | Avatar | User photo / initials / fallback on Base UI Avatar | | Table | Semantic HTML table (Table, TableHeader, TableBody, TableRow, TableHead, TableCell) — Velocity tokens | | Rating | Star rating (buttons + Remix icons); not a Base UI primitive | | Card | Generic container (CardHeader, CardTitle, CardDescription, CardContent, CardFooter) — not a Base UI primitive | | SelectBox / SelectBoxGroup | Card-style option (icon, title, description); group mode="radio" or mode="checkbox" | | RadioGroup / RadioItem | Accessible radio group built on Base UI |

Tokens

Design tokens are available as a separate sub-path import for tooling that needs raw token values:

import { coreColors, coreTypography, semanticTypography } from '@runswap/velocity/tokens';

The full set of CSS custom properties (semantic tokens) is exposed via @runswap/velocity/styles.

Semantic text styles (Tailwind)

After importing Velocity styles, use composite typography utilities (font family + size + line-height + weight + tracking). Headings (text-heading-14) use Sora; body styles use Inter — load Sora in your app (e.g. Google Fonts) like the Storybook preview.css does.

| Class | Role | |-------|------| | text-heading-1text-heading-4 | Headings | | text-body-lg, text-body, text-body-sm | Body copy | | text-caption | Captions, metadata | | text-overline | Eyebrows / labels (often with uppercase) |

Primitives are also in @theme: font-size-*, leading-*, font-weight-*, tracking-*, and --typography-{role}-* if you compose manually.

Development

# Install dependencies
npm install

# Build the library
npm run build

# Run Storybook
npm run storybook

# Type-check
npm run type-check

Popover / Tooltip hover (Base UI patch)

This repo applies a patch-package fix to @base-ui-components/react: upstream Popover.Trigger (openOnHover) and Tooltip.Trigger wired hover delays so mouseenter exited early until the pointer moved (move: false without delay.open). Tooltips/popovers then felt “broken” on a normal hover.

The patch sets restMs: 0 and puts the open delay on delay.open (and close on delay.close), matching what useHoverReferenceInteraction expects.

  • Applied automatically via npm install (postinstall: patch-package), from patches/@base-ui-components+react+*.patch.
  • Storybook: Vite is configured to exclude @base-ui-components/react from optimizeDeps so a cached pre-bundle does not ignore your patched files. If hover still looks wrong, delete node_modules/.vite and restart Storybook.
  • Apps using Velocity should either use the same patch (copy patches/ + patch-package + postinstall + similar Vite optimizeDeps.exclude) or upgrade Base UI once the issue is fixed upstream.

Storybook MCP (AI agents)

With @storybook/addon-mcp, start Storybook (npm run storybook) and point your MCP client at the local server:

  • MCP URL: http://localhost:6006/mcp

See Storybook MCP overview for setup in Cursor, Claude, etc.

License

MIT