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 🙏

© 2025 – Pkg Stats / Ryan Hefner

randmarcomps

v1.491.0

Published

The UI library enabling speed and consistency in Randmar frontends.

Readme

randmarcomps

A simple TypeScript React component library with Tailwind CSS v4 styling.

Installation

npm install randmarcomps

Requirements

This component library requires the following dependencies:

Tailwind CSS v4

npm install tailwindcss@^4.0.0

For Tailwind CSS v4, you need to add the following directives to your CSS file to include the styles from randmarcomps:

/* In your main CSS file (e.g., src/index.css) */
@import "tailwindcss";
@plugin "tailwindcss-animate";
@custom-variant dark (&:is(.dark *));
@import "../node_modules/randmarcomps/dist/style.css";
@source "../node_modules/randmarcomps/dist";

/* Rest of your CSS */

This directive tells Tailwind to process the components from randmarcomps when generating your CSS.

If you're using a different path structure, adjust the path accordingly. The path should be relative to your CSS file.

React Router

Several components require React Router:

npm install react-router-dom@^7.3.0

Usage

1. Import the CSS

First, import the component library's CSS in your application:

import 'randmarcomps/styles.css';

This will include all the necessary styles, including custom Randmar colors like randmar-red, randmar-blue, etc.

2. Import Components

Then import the components you need:

import {
  InputOTP,
  InputOTPGroup,
  InputOTPSeparator,
  InputOTPSlot,
  Button
} from 'randmarcomps';

function App() {
  return (
    <div>
      <Button variant="blue">Blue Button</Button>
      <Button variant="red">Red Button</Button>
      
      <InputOTP maxLength={6}>
        <InputOTPGroup>
          <InputOTPSlot index={0} />
          <InputOTPSlot index={1} />
          <InputOTPSlot index={2} />
        </InputOTPGroup>
        <InputOTPSeparator />
        <InputOTPGroup>
          <InputOTPSlot index={3} />
          <InputOTPSlot index={4} />
          <InputOTPSlot index={5} />
        </InputOTPGroup>
      </InputOTP>
    </div>
  );
}

Alternative: Using with Tailwind Source Directive

If you prefer to use Tailwind's source directive to process the components:

/* In your main CSS file (e.g., src/index.css) */
@import 'tailwindcss';
@source "../node_modules/randmarcomps/dist";

/* Rest of your CSS */

This directive tells Tailwind to process the components from randmarcomps when generating your CSS. If you're using a different path structure, adjust the path accordingly.

Custom Colors

The library includes these custom Randmar colors:

  • randmar-red
  • randmar-blue
  • randmar-purple
  • randmar-green
  • randmar-black
  • randmar-yellow

These are available when you import the CSS file.

Compatibility

This library is designed to work with:

  • React 19
  • React Router 7
  • Tailwind CSS v4

If you're using earlier versions, you may encounter compatibility issues:

  • Tailwind v3: You may encounter styling issues due to differences in the CSS layer system
  • React Router <7: The API may have changed between versions

Development

  • npm run dev - Start development server
  • npm run build - Build the library
  • npm run lint - Lint the code