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

@vetaui/foundations

v0.1.2

Published

Veta foundation layer — design tokens (OKLCH colors, spacing, typography, motion), 7 brand presets, plus the shared runtime utilities (cn, hooks, common types) every Veta package consumes.

Readme

@vetaui/foundations

The foundation of Veta. Every other Veta package consumes this.

Token catalog: colors (OKLCH, full 50→950 scales), spacing, typography, radius, shadow, motion, breakpoints + a complete light/dark theming system you can extend or replace. Also ships the cn() utility and shared React hooks.

Install

pnpm add @vetaui/foundations

Use the CSS variables (recommended, Tailwind v4)

In your app's global stylesheet (e.g. app/globals.css for Next.js):

@import "tailwindcss";
@import "@vetaui/foundations/css";
@import "@vetaui/foundations/reset";  /* optional but recommended */

You instantly get:

  • OKLCH color scales — --color-brand-500, --color-success-700, ...
  • Semantic surface tokens — --veta-bg, --veta-fg, --veta-primary, ...
  • Typography, radius, shadow, motion variables
  • Light/dark theming via [data-theme] on any element
  • prefers-color-scheme fallback when [data-theme] isn't set

Themes

Switch dark/light

<html data-theme="dark">    <!-- force dark -->
<html data-theme="light">   <!-- force light -->
<html>                       <!-- follow system preference -->

Apply a brand preset

<html data-preset="linear">   <!-- Linear theme -->
<html data-preset="vercel">   <!-- Vercel theme -->
<html data-preset="stripe">   <!-- Stripe theme -->

Available presets: linear, vercel, stripe, notion, apple, brutal.

Density and radius packs (optional)

Import after the core CSS:

@import "@vetaui/foundations/theme-packs";

Then on <html> or a layout root:

<html data-density="compact" data-radius-pack="soft">

See Veta product system for the full token layer model.

Override specific tokens (per-region)

.brand-section {
  --veta-primary: oklch(0.7 0.18 30);
  --veta-primary-hover: oklch(0.6 0.18 30);
}

Build a custom theme in JS

import { createTheme, lightTheme, applyTheme } from "@vetaui/foundations/theme";

const minty = createTheme(lightTheme, {
  primary: "oklch(0.65 0.15 160)",
  primaryHover: "oklch(0.55 0.15 160)",
  ring: "oklch(0.65 0.15 160)",
});

applyTheme(minty);                          // applies to <html>
applyTheme(minty, document.body);           // or any element

Use as JS objects

import { colors, spacing, easing, semantic } from "@vetaui/foundations";

const primary = colors.brand[600];
const transition = `transform 200ms ${easing.swift}`;
const cardBg = semantic.bg;  // "var(--veta-bg)"

cn() utility

import { cn } from "@vetaui/foundations";

// Merges Tailwind classes safely via tailwind-merge + clsx
const cls = cn("p-4 text-sm", isActive && "font-semibold", className);

Tailwind v3 (compat)

Still on Tailwind v3? We ship a preset:

// tailwind.config.ts
import { vetaTailwindV3Preset } from "@vetaui/foundations/tailwind-v3";

export default {
  presets: [vetaTailwindV3Preset],
  content: ["./src/**/*.{ts,tsx}"],
};

Package exports

| Import | Provides | | --- | --- | | @vetaui/foundations | All TS objects + types + cn() + hooks | | @vetaui/foundations/theme | Theming helpers (createTheme, applyTheme, ...) | | @vetaui/foundations/tailwind-v3 | Tailwind v3 preset | | @vetaui/foundations/css | The @theme CSS variable definitions | | @vetaui/foundations/reset | Minimal modern CSS reset | | @vetaui/foundations/presets | 7 brand preset objects | | @vetaui/foundations/runtime | Service locator (configureVeta, getStrategy) |

License

MIT — Dambert Munoz