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

@onesmall/ui

v0.5.0

Published

OneSmallUI (1SmUI): a futuristic, WCAG AAA accessible React + TypeScript + SCSS component library with light/dark themes, utilities, drag and drop, and upload drop zones.

Readme

@onesmall/ui

ui.onesmall.company · Docs and live examples · GitHub

OneSmallUI (1SmUI): a futuristic, accessible component library for React, written in TypeScript and styled with SCSS.

  • Light and dark themes driven by CSS variables, following the OS or the user
  • AAA contrast on every token pair, enforced by a build check
  • Accessible by default: WCAG 2.2 keyboard support, visible focus, 44px targets, reduced motion and forced-colors (High Contrast) support
  • SCSS variables you can override with @use ... with (), or the compiled CSS
  • Classes and data attributes: .os-btn[data-variant="outline"] works in plain HTML too
  • Tailwind-style utilities with responsive prefixes: md:os-grid-cols-3
  • No runtime dependencies beyond React; tree-shakeable ESM and CommonJS, bundled types, marked 'use client' for Next.js

Install

npm install @onesmall/ui

Peer dependencies: react and react-dom 18 or 19.

Use

Import the CSS once in your app entry, then use the components:

import '@onesmall/ui/styles.css';
import { ThemeProvider, ToastProvider, Button, Field, Input, ThemeToggle } from '@onesmall/ui';

export function App() {
  return (
    <ThemeProvider>
      <ToastProvider>
        <ThemeToggle />
        <Field label="Call sign" hint="Shown to your crew.">
          <Input />
        </Field>
        <Button>Launch</Button>
      </ToastProvider>
    </ThemeProvider>
  );
}

Entry points

| Import | What | | --- | --- | | @onesmall/ui | React components, hooks and helpers (ESM import and CommonJS require, with types) | | @onesmall/ui/styles.css | Compiled CSS (also styles.min.css) | | @onesmall/ui/dom | Vanilla data-attribute controls for plain HTML, no React | | @onesmall/ui/scss | Sass entry, for overriding variables | | @onesmall/ui/tokens.json | Color tokens for both themes |

Components

Actions: Button, ButtonGroup, ButtonToolbar, ToggleButton, ToggleButtonGroup, CloseButton, Toggler

Forms: Field, FieldGroup, FloatingLabel, Form, Input, InputGroup, NumberInput, Textarea, Select, Combobox, Checkbox, Radio / RadioGroup, Switch, Range, DatePicker, TimePicker, Calendar, OtpInput, PasswordStrength, TagInput, ChipInput (deprecated: use TagInput), DropZone

Navigation: Nav, NavMenu, Navbar, Breadcrumb, Pagination, Tabs, Stepper, ScrollSpy, SkipLink

Overlays: Dialog, Drawer, Menu, Popover, Tooltip, Toast (ToastProvider / useToast), Modal (deprecated: use Dialog or Drawer)

Content and feedback: Accordion, Alert, Avatar, Badge, Blockquote, Card, Carousel, Chip, CodeBlock, Collapse, ListGroup, Progress, Skeleton / Placeholder, SortableList, Spinner, Table, DataTable, VisuallyHidden

Layout and media: Container, Stack, Grid, AspectRatio, Image, Video

Theming: ThemeProvider, ThemeToggle, useTheme, themeInitScript

Hooks: useControllableState, useDisclosure, useMediaQuery, useBreakpoint, usePrefersReducedMotion, useCopyToClipboard, useDropZone, useFloating, useToggler, usePasswordStrength

See the docs for every prop and a live example of each.

Theming

Themes are CSS variables switched by a data-os-theme="light|dark" attribute on <html> or any element. ThemeProvider follows the OS by default, remembers the user's choice in localStorage, and ThemeToggle switches it:

<ThemeProvider defaultMode="system" storageKey="my-app-theme">
  <ThemeToggle />
</ThemeProvider>

To avoid a flash of the wrong theme on first paint, inline themeInitScript() in your HTML <head>. Scope a theme to part of the page with <section data-os-theme="dark">.

Override design tokens with plain CSS:

:root {
  --os-primary: #0a5cff;
}

Or compile the Sass with your own variables:

@use '@onesmall/ui/scss' with (
  $radius-base: 6px,
  $prefix: 'os'
);

Color tokens live in tokens/themes.json (published as @onesmall/ui/tokens.json); the build checks every text and UI pair against WCAG AAA (7:1 text, 3:1 boundaries).

Accessibility

Components follow the WAI-ARIA Authoring Practices patterns, work with keyboard alone, show a visible focus ring, keep pointer targets at least 44×44px, respect prefers-reduced-motion (or data-os-motion="off"), and stay usable in Windows forced-colors mode. Every component has an automated axe test, and the docs site is audited with axe (WCAG A, AA and AAA rules) in both themes.

You still own the content: give icon-only buttons a label, images real alt text, and videos caption tracks.

License

MIT © Joshua Small