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

@asevenid/ui

v0.2.0

Published

Aseven UI — a themeable React component library (shadcn/Radix/Base UI + Tailwind v4 token system) with runtime brand/gray/radius/font/density/feedback/decorative/style/elevation modes.

Readme

@asevenid/ui

A themeable React component library built on shadcn/ui, Radix UI, Base UI and Tailwind CSS v4. Ships compiled components, TypeScript types, and a single self-contained stylesheet — no Tailwind setup required in your app.

Theming is runtime: a token system driven by data-* attributes on <html> lets you switch brand, gray, radius, font, density, feedback colors (error/warning/info/success), decorative palettes, surface style, and elevation independently, plus standard .dark mode.

Installation

npm install @asevenid/ui

react and react-dom (>=18, works with 19) are peer dependencies — install them if you haven't already.

Setup

1. Import the stylesheet once (e.g. in your root/entry file)

import "@asevenid/ui/styles.css"

This bundles every mode palette, the .dark overrides, and all utilities the components use.

2. (Optional) Load the web fonts

Non-system fonts are not bundled. To use the inter, jakarta, space-grotesk, lora, dynapuff, or arima font modes, add the Google Fonts link to your HTML <head> (or self-host). The default stack degrades to system fonts without it.

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
  rel="stylesheet"
  href="https://fonts.googleapis.com/css2?family=Arima:[email protected]&family=DynaPuff:[email protected]&family=Inter:opsz,[email protected],100..900&family=Lora:[email protected]&family=Plus+Jakarta+Sans:[email protected]&family=Space+Grotesk:[email protected]&display=swap"
/>

3. (Optional) Initialize modes from storage

initModes() reads persisted mode choices from localStorage and applies the matching data-* attributes to <html> before paint. Call it once at startup.

import { initModes } from "@asevenid/ui"

initModes()

Usage

import { Button } from "@asevenid/ui"

export function Example() {
  return <Button variant="default">Click me</Button>
}

Switching themes at runtime

Modes are plain attributes on the document element, so you can set them directly or via the helpers:

import { setMode } from "@asevenid/ui"

setMode("brand", "violet")   // data-brand="violet" + persisted to localStorage
setMode("radius", "lg")
setMode("font", "jakarta")

// Dark mode is the standard `.dark` class:
document.documentElement.classList.toggle("dark")

The available values per dimension live in MODE_OPTIONS:

import { MODE_OPTIONS, getMode } from "@asevenid/ui"

MODE_OPTIONS.brand   // ["blue","red",…,"custom"]
getMode("brand")     // current value

You can also generate a fully custom palette from a single hex with setCustomColor("brand", "#3b82f6").

What's included

Components (canonical, retuned wrappers): Accordion, AlertDialog, Alert, Avatar, Badge, Button, Calendar, Card, Checkbox, ColorPicker, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Field, InputGroup, Input, Kbd, Label, Pagination, RadioGroup, Select, Sheet, Skeleton, Slider, Sonner (toaster), Switch, Table, Tabs, Tag, Textarea, ToggleGroup, Toggle — plus Breadcrumb, ButtonGroup, DropdownMenu, Popover, Separator, Sidebar, Spinner, Tooltip.

Utilities: cn, cva, shade generation (generateShadesWith, …), the useIsMobile hook, and the full mode runtime (getMode, setMode, initModes, setCustomColor, MODE_OPTIONS, types).

Deep imports

The published package preserves the source module tree, so you can import a single component directly for maximum tree-shaking:

import { Button } from "@asevenid/ui/components/primitives/button"
import { buttonVariants } from "@asevenid/ui/components/ui/button"

Next.js

Every module ships with a "use client" banner, so the components work in the App Router (React Server Components) out of the box — import them from client or server components alike.

License

MIT © Falah Filano