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

plainframe-ui

v0.1.97

Published

A modern React component library with theming, accessibility, and motion-ready primitives.

Readme

Plainframe UI

Token-driven React UI components with built-in theming, color modes, and accessible primitives.

Plainframe UI is a practical component library for apps that need consistent styling without fighting the system. You get a theme with spacing/radius/typography + neutral/primary scales, plus components that are keyboard-safe by default.

Install

npm:

npm install plainframe-ui @emotion/react

pnpm:

pnpm add plainframe-ui @emotion/react

yarn:

yarn add plainframe-ui @emotion/react

Requirements

  • React 18 / 19
  • @emotion/react 11+

Quick start

import { ThemeProvider, CssBaseline, Button } from "plainframe-ui";

export default function App() {
  return (
    <ThemeProvider>
      <CssBaseline />
      <Button variant="filled">Hello</Button>
    </ThemeProvider>
  );
}

What you get

  • Theme tokens: spacing, radius, typography, neutral scale, primary palettes
  • Color modes: light/dark + system-friendly patterns
  • Accessible defaults: focus states, keyboard behavior, sensible ARIA patterns
  • TypeScript-first: predictable prop typing, good autocomplete
  • Composable primitives: easy to build custom UI on top without rewriting everything

Theming

Default mode

<ThemeProvider defaultMode="dark">
  {/* ... */}
</ThemeProvider>

Read the theme inside components

/** @jsxImportSource @emotion/react */
import { css } from "@emotion/react";
import { Button, usePlainframeUITheme } from "plainframe-ui";

export function Example() {
  const theme = usePlainframeUITheme();

  return (
    <Button
      css={css({
        borderRadius: theme.radius.lg,
        paddingInline: theme.spacing.md,
      })}
    >
      Styled by tokens
    </Button>
  );
}

Change primary palette

<ThemeProvider theme={{ primaryKey: "indigo" }}>
  {/* components use theme.palette[primaryKey] */}
</ThemeProvider>

Override tokens (spacing / radius)

<ThemeProvider
  theme={{
    spacing: {
      xxs: "0.25rem",
      xs: "0.4rem",
      sm: "0.6rem",
      md: "0.85rem",
      lg: "1.2rem",
      xl: "1.8rem",
    },
    radius: {
      xxs: "0.2rem",
      xs: "0.35rem",
      sm: "0.55rem",
      md: "0.75rem",
      lg: "1rem",
      xl: "1.5rem",
      full: "9999px",
    },
  }}
>
  {/* ... */}
</ThemeProvider>

Components

Grouped so it’s easier to scan.

Foundation & layout

  • Container
  • Flex
  • Divider
  • Typography
  • Kbd
  • Image
  • Quote
  • Card
  • CardGroup
  • ContextZone
  • ActionBar

Inputs

  • Button
  • ButtonGroup
  • Checkbox
  • Switch
  • Slider
  • RadioGroup
  • TextField
  • TextArea
  • Select
  • Autocomplete
  • CodeField
  • Chip

Navigation

  • Menu
  • DropdownMenu
  • Tabs
  • Pagination
  • Breadcrumbs
  • Stepper

Overlay

  • Modal
  • Drawer
  • Popover
  • Tooltip
  • Backdrop

Feedback

  • Alert
  • Toast
  • Progress
  • Skeleton
  • Badge

Transitions

  • Fade
  • Grow
  • Slide
  • Rotate
  • Swap

License

MIT