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

@rishabh-loylty/redemption-portal-ui

v0.0.7

Published

A shared React UI component library for Redemption Portal applications, built with **TypeScript** and **Tailwind CSS**, following **shadcn/ui** patterns (CVA variants, `cn()` utility, design tokens via CSS variables). Optionally integrates cleanly with **

Readme

Redemption Portal Central UI Library

A shared React UI component library for Redemption Portal applications, built with TypeScript and Tailwind CSS, following shadcn/ui patterns (CVA variants, cn() utility, design tokens via CSS variables). Optionally integrates cleanly with HeroUI in consuming apps.

Package: @rishabh-loylty/redemption-portal-ui


Installation

npm i @rishabh-loylty/redemption-portal-ui

Setup (Tailwind v4 — Recommended)

Tailwind v4 is “CSS-first”. The key thing you must do is ensure Tailwind scans this package inside node_modules.

  1. Ensure your app has Tailwind v4 enabled

If you’re starting fresh:

npx create-next-app@latest my-app --ts --eslint --tailwind --app --src-dir
  1. Ensure shadcn tokens exist in your app (recommended)

This library uses token classes like bg-primary, text-primary-foreground, rounded-md, etc. The easiest way is to initialize shadcn/ui in the consuming app so the CSS variables are created:

npx shadcn@latest init

If you already have your own design tokens, you can skip shadcn init — just make sure you define equivalent CSS variables (see Design Tokens below).

  1. Add Tailwind v4 @source to your global CSS

Open your app’s global CSS (usually src/app/globals.css) and ensure it contains:

@import "tailwindcss";
@source "../node_modules/@rishabh-loylty/redemption-portal-ui";

Import the CSS (ONCE in their root layout/app file): code

// In App.tsx or layout.tsx
import "@rishabh-loylty/redemption-portal-ui/styles.css";

Optional: Setup HeroUI in the consuming app (Tailwind v4)

If your app also uses HeroUI components, you need HeroUI’s Tailwind v4 plugin + provider.

  1. Install HeroUI
npm i @heroui/react framer-motion
  1. Create src/hero.ts
import { heroui } from "@heroui/react";

export default heroui();
  1. Wire HeroUI into globals.css

In src/app/globals.css:

@import "tailwindcss";

/* Your central UI lib */
@source "../node_modules/@rishabh-loylty/redemption-portal-ui";

/* HeroUI */
@plugin "../hero.ts";
@source "../node_modules/@heroui/theme/dist";
  1. Add HeroUIProvider (Next.js App Router)

Create src/app/providers.tsx:

"use client";

import { HeroUIProvider } from "@heroui/react";

export function Providers({ children }: { children: React.ReactNode }) {
  return <HeroUIProvider>{children}</HeroUIProvider>;
}

Wrap your app in src/app/layout.tsx:

import "./globals.css";
import { Providers } from "./providers";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <Providers>{children}</Providers>
      </body>
    </html>
  );
}

Usage

import { Button } from "@rishabh-loylty/redemption-portal-ui";

export default function Page() {
  return (
    <div style={{ padding: 24 }}>
      <Button>Default</Button>
      <Button variant="outline" style={{ marginLeft: 12 }}>
        Outline
      </Button>
    </div>
  );
}

For Library Maintainers

Publishing 1. Bump version:

npm version patch
2.	Publish:
npm publish --access public

Tip: Verify what will be published:

npm pack --dry-run