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

@gnoud-ui/react

v0.4.0

Published

Accessible React components with a paper-and-ink design language. Hard shadows, ruled borders, light and dark themes, plain CSS.

Readme

@gnoud-ui/react

Accessible React components with a paper-and-ink design language: warm paper, ruled borders and hard offset shadows, in light and dark. Plain CSS, no runtime styling, themeable with CSS variables. Native elements where they are enough, Base UI where behaviour is hard.

  • 25 components: Accordion, Alert, Alert dialog, Avatar, Badge, Button, Card, Checkbox, Dialog, Input, Menu, Meter, Popover, Progress, Radio, Select, Separator, Skeleton, Slider, Switch, Tabs, Textarea, Toast, Toggle, Tooltip
  • Accessible by default: keyboard support, focus management, ARIA, and every colour pair checked against WCAG AA in both themes
  • Light and dark: follows the OS, or force it with data-theme
  • Server Components ready: interactive components are marked "use client"
  • No Tailwind required, but it works well with it
  • Vietnamese-friendly type tokens: the default fonts cover Vietnamese

Documentation, live examples and a token reference: gnoud-ui.vercel.app

Requires React 19.

Install

npm install @gnoud-ui/react

Set up

Import the stylesheet once, at the root of your app. It holds the design tokens and every component's styles.

// app/layout.tsx (Next.js) or your entry file
import "@gnoud-ui/react/styles.css";

Then use components:

import { Button, Card, CardHeader, CardTitle, Input } from "@gnoud-ui/react";

export default function Page() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Sign in</CardTitle>
      </CardHeader>
      <label>
        Email
        <Input type="email" />
      </label>
      <Button variant="primary">Continue</Button>
    </Card>
  );
}

Tailwind CSS v4

All styles live in one cascade layer, gnoud-ui. That is what lets your utilities override a component (<Button className="w-full" />) without !important. Tell Tailwind where the layer sits: above its base reset, below utilities. Declare the order before the imports:

@layer theme, base, gnoud-ui, components, utilities;

@import "tailwindcss";
@import "@gnoud-ui/react/styles.css";

Without this, Tailwind's reset can flatten the components, or the components can win over your utilities. Plain CSS of your own (outside any layer) always overrides the library.

Fonts

The library does not load fonts. The tokens name three families and fall back to system fonts: Familjen Grotesk (headings), Hanken Grotesk (text) and Geist Mono (labels). All three cover Vietnamese. With next/font:

import { Familjen_Grotesk, Hanken_Grotesk, Geist_Mono } from "next/font/google";

const display = Familjen_Grotesk({ variable: "--font-display", subsets: ["latin", "vietnamese"] });
const body = Hanken_Grotesk({ variable: "--font-body", subsets: ["latin", "vietnamese"] });
const mono = Geist_Mono({ variable: "--font-mono", subsets: ["latin", "vietnamese"] });
:root {
  --gu-font-display: var(--font-display), ui-sans-serif, system-ui, sans-serif;
  --gu-font-body: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  --gu-font-mono: var(--font-mono), ui-monospace, monospace;
}

Theming

Everything visual is a CSS custom property prefixed --gu-.

:root {
  --gu-accent: #7a2e8f;     /* brand colour */
  --gu-accent-ink: #ffffff; /* text on top of it: keep it at 4.5:1 or better */
  --gu-radius-sm: 0;        /* square corners */
}

Dark mode follows prefers-color-scheme. To control it yourself, set data-theme on any ancestor: <html data-theme="dark"> or data-theme="light". It also works on a subtree.

Components expose their state as data attributes (data-variant, data-size, data-loading, data-disabled, …) and stable gu- class names to hook into from your own CSS.

Notes

  • Dialogs and popups render in a portal. If your app root creates its own stacking context, add isolation: isolate to it. Layers use --gu-z-overlay and --gu-z-popup.
  • Tooltips are visual only. They are not announced to screen readers and do not exist on touch. Give icon-only triggers an aria-label.
  • Browsers: current evergreen browsers (needs cascade layers and :has()).

License

MIT © gnoud