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

@hopline/ux4g-tokens

v0.3.3

Published

UX4G design tokens: CSS variables, fonts, interaction layer, and a typed theme object. Unofficial community packaging of UX4G (© NeGD · MeitY · ux4g.gov.in).

Readme

@hopline/ux4g-tokens

npm license: MIT

Design tokens for UX4G, India's government design system: one CSS import for the variables, fonts, and interaction layer, plus a typed theme object for JavaScript. This is the universal layer the React (and future native) packages build on.

Unofficial community packaging. UX4G is © NeGD · MeitY, Government of India (ux4g.gov.in). This package is not an official UX4G release.

Docs and live token reference: https://ux4g.pages.dev/foundations

Install

pnpm add @hopline/ux4g-tokens

Usage

// CSS variables + fonts + hover/focus interaction layer. Import once at the app root.
import "@hopline/ux4g-tokens/styles.css";

// Optional: the same values as typed JS, for inline styles, charts, canvas, etc.
import { theme, tokens } from "@hopline/ux4g-tokens/theme";

theme.color.primary; // "#613AF5"
theme.space[5];      // "24px"
theme.radius.lg;     // "12px"
tokens["color-primary"]; // flat map, keyed without the leading "--"

What it provides

  • Colour: the violet brand ramp, semantic colours (success, danger, warning, info), neutrals, and semantic aliases (--color-primary, --color-text, and friends).
  • Type: the Noto Sans scale (broad Indic-script coverage), Roboto for button labels, Red Hat Mono.
  • Spacing, radius, shadow, motion: an 8-point grid plus radii, elevation, and easing tokens.
  • Interaction layer: the :hover / :active / :focus-visible rules, including the 4px focus halo, that components rely on.
  • Typed theme: theme (grouped) and tokens (flat map), generated from the CSS so the JS values never drift from the stylesheet.

Theming

Every component resolves from these variables, so re-theming is a CSS override. Components read the raw brand ramp (for example var(--violet-600)) and the --color-* aliases are defined from it, so overriding the ramp re-themes both at once:

[data-theme="sage"] {
  --violet-600: #4F8131; /* the brand "600" anchor; aliases follow */
  /* plus the rest of the --violet-* and --secondary-* ramp */
}

The docs site ships six ready-made, WCAG-AA palettes you can switch live.

Import order

styles.css must load before any component styles or your own overrides that reference these variables. Importing it once at the app root is enough.

Self-hosting fonts

Fonts load from the Google Fonts CDN by default. For government or offline use, bundle the .woff2 files and replace the @import in tokens/fonts.css with local @font-face rules.

License

MIT © Hopline. Maintained by hopline.co.