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

@workokay/atom

v0.2.32

Published

A modern React component library built with TypeScript, Tailwind CSS, and Radix UI primitives.

Readme

@workokay/atom

A modern React component library built with TypeScript, Tailwind CSS, and Radix UI primitives.

Installation

npm install @workokay/atom

Setup

1. Import CSS Styles

Import the Atom UI CSS bundle in your app's entry point (e.g., main.tsx, App.tsx, or index.tsx):

// main.tsx or App.tsx
import '@workokay/atom/dist/atom.css'

2. Wrap Your App with Theme Provider

Wrap your application (or the part using Atom components) with the atom-theme class and set the theme:

// App.tsx
import { Button } from '@workokay/atom'
import '@workokay/atom/dist/atom.css'

function App() {
  return (
    <div className="atom-theme" data-theme="light">
      {/* Your app content */}
      <Button variant="primary" size="md">Click me</Button>
    </div>
  )
}

Available themes:

  • data-theme="light" - Light theme with teal green primary color
  • data-theme="dark" - Dark theme variant
  • data-theme="cyan-light" - Cyan color scheme (light)
  • data-theme="cyan-dark" - Cyan color scheme (dark)

3. Configure Tailwind CSS (Required)

Atom components use Tailwind CSS utility classes. Make sure you have Tailwind CSS configured in your project:

Install Tailwind CSS:

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

Configure tailwind.config.js:

export default {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@workokay/atom/dist/**/*.{js,jsx}", // Include Atom components
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

Add Tailwind directives to your CSS:

/* src/index.css or src/styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

Usage

import { Button, Input } from '@workokay/atom'
import '@workokay/atom/dist/atom.css'

function MyComponent() {
  return (
    <div className="atom-theme" data-theme="light">
      <Button variant="primary" size="md">
        Primary Button
      </Button>
      
      <Button variant="secondary" size="sm">
        Secondary Button
      </Button>
      
      <Input placeholder="Enter text..." />
    </div>
  )
}

Components

Button

<Button 
  variant="primary" | "secondary" | "ghost" | "success" | "danger" | "warning" | "info" | "icon" | "iconGhost" | "iconSquare" | "iconSquareGhost"
  size="sm" | "md" | "lg"
  fullWidth={boolean}
  ripple={boolean} // Enable/disable ripple effect (default: true)
  asChild={boolean} // Render as child element via Radix Slot
>
  Button Text
</Button>

Input

<Input
  size="sm" | "md" | "lg"
  tone="default" | "invalid" | "success"
  leftIcon={ReactNode}
  rightIcon={ReactNode}
  hint={string}
  errorText={string}
  loading={boolean}
/>

Features

  • Teal Green Theme - Beautiful teal green primary color (#00796B) by default
  • Ripple Effects - Material Design-inspired ripple animations on buttons
  • Dark Mode - Built-in dark theme support
  • TypeScript - Fully typed components
  • Accessible - Built on Radix UI primitives
  • Customizable - CSS variables for easy theming

CSS Variables

All colors and styles are controlled via CSS variables. You can customize them:

.atom-theme {
  --atom-primary: #00796B; /* Teal green */
  --atom-button-bg: var(--atom-primary);
  /* ... more variables */
}

See dist/atom.css for the complete list of CSS variables.

Requirements

  • React 18+ or React 19+
  • Tailwind CSS configured in your project
  • Modern browser with CSS custom properties support

License

MIT