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

dangf-ui

v0.4.0

Published

Themeable React components for calm, accessible product interfaces.

Downloads

120

Readme

danGF UI

Themeable, framework-agnostic React components extracted from the interaction patterns behind decision maker. dangf-ui ships precompiled CSS, has no Tailwind requirement for consumers, and supports React 18.2 and React 19.

Install

pnpm add dangf-ui

React and React DOM are peer dependencies:

pnpm add react react-dom

Import the neutral base theme once near the root of your application:

import 'dangf-ui/styles.css';
import { Button, Dialog } from 'dangf-ui';

For the opt-in warm preset, also import its token overrides and add the theme class to an ancestor:

import 'dangf-ui/styles.css';
import 'dangf-ui/themes/warm.css';

export function App({ children }: { children: React.ReactNode }) {
  return <main className="dgf-theme-warm">{children}</main>;
}

The warm preset can also be activated with data-dgf-theme="warm".

Entry points

| Import | Components | | --- | --- | | dangf-ui | Button, KeycapButton, Card, Badge, Tag, Input, Textarea, Checkbox, Switch, Slider, Progress, Skeleton, Spinner, Tooltip, FieldTip, Dialog, ConfirmDialog, Drawer, ActionMenu, ResponsivePopover | | dangf-ui/patterns | LoadingOverlay, EmptyState, Breadcrumb, SearchInput, Pagination, Coachmark, PropertyRow, SplitLayout, SplitDialog | | dangf-ui/media | ImageWithFallback, ImagePreviewDialog, ImageDropzone, VideoWithPoster | | dangf-ui/patterns/marketing | Section, SectionHeading, GlowCard, StepCard, CornerBadge | | dangf-ui/styles.css | Neutral theme, component utilities, animation styles | | dangf-ui/themes/warm.css | Optional warm token preset |

All public components expose precise prop types, accept className, and render stable data-slot attributes. Icons default to Lucide and icon-bearing APIs accept replacement React nodes.

Keycap button

KeycapButton renders a layered, pressable control without requiring consumer-side Tailwind configuration. Use the rounded shape for text actions or the circle shape with the icon size for compact controls.

import { Star } from 'lucide-react';
import { KeycapButton } from 'dangf-ui';

<KeycapButton>Run</KeycapButton>

<KeycapButton aria-label="Save" shape="circle" size="icon">
  <Star />
</KeycapButton>

<KeycapButton aria-label="Saved" aria-pressed shape="circle" size="icon" tone="accent">
  <Star />
</KeycapButton>

Responsive size props

Button and KeycapButton accept either a scalar size or a mobile-first responsive value. Unspecified breakpoints inherit the closest smaller value. The public breakpoints are sm (40rem), md (48rem), lg (64rem), xl (80rem), and 2xl (96rem).

<Button size={{ base: 'sm', md: 'lg' }}>Save</Button>

<KeycapButton
  aria-label="Save"
  shape="circle"
  size={{ base: 'icon-compact', sm: 'icon' }}
>
  <Star />
</KeycapButton>

Responsive values are resolved to precompiled CSS classes. They do not use viewport JavaScript and do not require Tailwind CSS in the consuming app.

Next.js and Vite

Interactive build entries retain the "use client" directive. DOM access is deferred to effects and event handlers, so importing the package during server rendering is safe. CSS is precompiled: consumer projects do not need Tailwind or a Tailwind content configuration.

The repository verifies packed tarballs in two isolated fixtures:

  • React 18.2 with Vite
  • React 19.2.8 with Next.js App Router

Accessibility

Overlay primitives use Radix for focus trapping, Escape behavior, focus restoration, collision handling, and keyboard navigation. Storybook runs interaction tests and axe checks with accessibility violations treated as errors.

Development

pnpm install
pnpm dev
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm build-storybook
pnpm test:pack

pnpm dev starts Storybook for local component development. pnpm storybook remains available as an equivalent alias.

pnpm test:pack builds a real npm tarball, installs it into both smoke fixtures, and builds those applications. See CONTRIBUTING.md for the release workflow.

License and origin

MIT © jbgf1. See LICENSE for the license text.