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

paysky-react-ui

v0.0.8

Published

PaySky UI React component library

Downloads

7

Readme

PaySky UI React Library

A modern React component library built with TypeScript and Tailwind CSS.

Installation

npm install paysky-react-ui

Usage

import React from 'react';
import { Button, Card, Input, Badge } from 'paysky-react-ui';

function App() {
  return (
    <div>
      <Card>
        <h2>Welcome to PaySky UI</h2>
        <Input placeholder="Enter your name" />
        <Button variant="primary">Submit</Button>
        <Badge variant="success">New</Badge>
      </Card>
    </div>
  );
}

export default App;

Setup for Tailwind CSS Projects

Important: If your project uses Tailwind CSS, you need to add our preset to prevent class purging and ensure proper styling.

1. Import the CSS tokens

Try one of these import methods (use whichever works in your setup):

// Method 1: Named export (recommended)
import 'paysky-react-ui/styles';

// Method 2: Direct CSS file
import 'paysky-react-ui/style.css';

// Method 3: Full path
import 'paysky-react-ui/index.css';

2. Add the preset to your tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    // Add this line to include PaySky UI components
    './node_modules/paysky-react-ui/**/*.{js,ts,jsx,tsx}',
  ],
  presets: [
    // Add the PaySky UI preset
    require('paysky-react-ui/tailwind-preset'),
  ],
  theme: {
    extend: {
      // Your custom theme extensions
    },
  },
  plugins: [],
};

3. That's it!

Your PaySky UI components will now have proper styling with your design tokens.

Setup for Non-Tailwind Projects

If your project doesn't use Tailwind CSS, just import the styles:

import 'paysky-react-ui/styles';

The components will work with the built-in CSS.

Design Tokens

The library includes these design tokens:

  • Colors: --color-primary (#1d4ed8), --color-secondary (#64748b)
  • Spacing: --spacing-sm (0.5rem), --spacing-md (1rem), --spacing-lg (2rem)
  • Border Radius: --radius-base (8px)
  • Font: --font-base ('Inter', sans-serif)

These are available as Tailwind classes when using the preset:

  • bg-primary, text-primary, border-primary
  • bg-secondary, text-secondary, border-secondary
  • p-sm, px-md, py-lg, etc.
  • rounded-base

Components

Button

  • Variants: primary, secondary
  • Uses: bg-primary, bg-secondary with hover effects

Input

  • States: default, invalid
  • Uses: border-secondary, focus:border-primary
  • Support for labels and error messages

Card

  • Configurable padding: sm, md, lg
  • Uses: p-sm, p-md, p-lg, rounded-base
  • Optional shadow

Badge

  • Variants: default, success, warning, error
  • Sizes: sm, md
  • Uses: bg-secondary, px-sm, px-md

Development

This library is built with:

  • React 19
  • TypeScript
  • Tailwind CSS
  • Vite
  • Storybook

Peer Dependencies

  • React >= 18.0.0
  • React DOM >= 18.0.0

License

MIT