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

ui-arreya-components

v0.1.15

Published

Shared UI components for Arreya applications

Downloads

107

Readme

ui-arreya-components

Shared UI components and design system for Arreya applications.

Installation

npm install ui-arreya-components

Peer Dependencies

Make sure you have these installed in your project:

npm install react react-dom next-themes

Usage

1. Import Styles

The package includes a pre-compiled CSS file with all design tokens (CSS variables) and Tailwind utilities needed for the components.

In your global CSS file:

@import 'ui-arreya-components/styles.css';

Or in your root layout/app entry:

import 'ui-arreya-components/styles.css';

2. Import Components

import { Button, Card, Dialog, Input } from 'ui-arreya-components';

export function MyComponent() {
  return (
    <Card>
      <Input placeholder="Enter text..." />
      <Button>Submit</Button>
    </Card>
  );
}

Available Components

  • AlertDialog
  • Alert
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Calendar
  • Card
  • Checkbox
  • Command
  • Dialog
  • Drawer
  • DropdownMenu
  • Form
  • Input
  • Label
  • Popover
  • Progress
  • RadioGroup
  • ScrollArea
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner (toast notifications)
  • Switch
  • Table
  • Tabs
  • Tooltip

Utilities & Hooks

import { cn, useMobile } from 'ui-arreya-components';

// cn - className utility for merging Tailwind classes
<div className={cn('base-class', condition && 'conditional-class')} />

// useMobile - hook to detect mobile viewport
const isMobile = useMobile();

Tailwind Configuration (Optional)

If you want to extend or customize the design system, you can import the Tailwind config:

// tailwind.config.js
import sharedConfig from 'ui-arreya-components/tailwind.config';

export default {
  ...sharedConfig,
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/ui-arreya-components/dist/**/*.{js,mjs}',
  ],
  // Add your customizations here
};

Theming

The components support light and dark modes via CSS variables. Toggle between themes using the next-themes package:

import { useTheme } from 'next-themes';

const { theme, setTheme } = useTheme();
setTheme('dark'); // or 'light'

CSS Variables

The design system uses these CSS variables that you can override:

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --primary: #5c166a;
  --primary-foreground: #ffffff;
  --secondary: 0 0% 96.1%;
  --muted: 0 0% 96.1%;
  --accent: 0 0% 96.1%;
  --destructive: 0 84.2% 60.2%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;
  --button-primary: #ffaa00;
  --button-secondary: #00a599;
  /* ... and more */
}

Development

Building

Build the package (compiles TypeScript and generates CSS):

cd packages/ui-components
npm run build

This generates:

  • dist/index.js and dist/index.mjs — compiled components
  • dist/index.d.ts — TypeScript declarations
  • dist/styles.css — compiled CSS with design tokens and Tailwind utilities

Publishing a New Version

  1. Make your changes to components, styles, or config

  2. Build the package

    npm run build
  3. Bump version and publish

    npm run publish:patch   # bug fixes (0.1.10 → 0.1.11)
    npm run publish:minor   # new features (0.1.10 → 0.2.0)
    npm run publish:major   # breaking changes (0.1.10 → 1.0.0)
  4. Commit and push the version change

    git add packages/ui-components/package.json
    git commit -m "chore: bump ui-arreya-components to vX.X.X"
    git push
  5. Update consuming projects

    npm update ui-arreya-components

Available Scripts

| Script | Description | |--------|-------------| | npm run build | Build components and CSS | | npm run build:css | Build CSS only | | npm run dev | Watch mode for components | | npm run dev:css | Watch mode for CSS | | npm run typecheck | Type check without emitting | | npm run publish:patch | Bump patch version and publish | | npm run publish:minor | Bump minor version and publish | | npm run publish:major | Bump major version and publish |

License

MIT