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

@profiq/ui

v1.0.1

Published

A React UI component library built on ShadCN specially for internal use by profiq

Readme

@profiq/ui

A React UI component library built on ShadCN and Radix UI, designed for internal use by Profiq.

Documentation

View the complete component library and documentation in storybook

Features

  • Themes - Components built around Profiq and ShadCN themes in light/dark variants
  • TypeScript - Full TypeScript support with comprehensive type definitions
  • Customizable - Tailwind CSS-based styling with CSS variables

Requirements

  • React 18.0.0+ or React 19.0.0+
  • Tailwind CSS 4.0.0+
  • Node.js 18+

Installation

Install the package via npm:

npm install @profiq/ui

Setup

1. Import Styles

Import the library styles in your application's entry point:

// eg. src/main.tsx, src/index.tsx
import "@profiq/ui/index.css";
import "./index.css"; // Your app's index.css

Important: Import @profiq/ui/index.css before your application's CSS to allow proper style overrides.

2. Configure Themes

Import and apply themes to your application. Themes are applied via CSS classes on a parent element (typically <html> or a wrapper <div>):

// src/App.tsx
import { themes, type Theme } from "@profiq/ui";
import { useState } from "react";

function App() {
  const [currentTheme, setCurrentTheme] = useState<Theme>("profiq");

  return (
    <div className={currentTheme}>
      {/* Your app content */}
      <YourComponents />
    </div>
  );
}

Available themes:

  • profiq / profiq-dark - Profiq brand theme
  • shadcn / shadcn-dark - ShadCN default theme
  • green / green-dark - ShadCN green theme
  • red / red-dark - ShadCN red theme

3. Configure Tailwind CSS

Configure Tailwind to scan the library's components for class names.

Place this line into your index.css (where you import tailwind)

@source "../node_modules/@profiq/ui/dist";

Usage

Import and use components in your application:

import { Button } from "@profiq/ui";

function MyComponent() {
  return (
    <Button
      variant="default"
      size="default"
      onClick={() => console.log("Clicked!")}
    >
      Click me
    </Button>
  );
}

Controlled Components

Creating a controlled component is as simple as providing a value and an onChange handler:

import { Pagination } from "@profiq/ui";

function MyPaginatedList() {
  const [page, setPage] = useState(1);

  return (
    <Pagination totalPages={10} currentPage={page} onPageChange={setPage} />
  );
}

See the documentation on storybook

Applying Themes to Components

The theme is applied by adding a CSS class to a parent element. However individual components can override their parent theme by providing a theme prop like this:

import { Button } from "@profiq/ui";

function ThemedButtons() {
  return (
    <div>
      <Button theme="profiq">Profiq Theme</Button>
      <Button theme="shadcn">ShadCN Theme</Button>
    </div>
  );
}

Available Components

The library currently includes these components:

General

  • Button | ButtonGroup - Versatile button with multiple variants and sizes
  • Toggle | ToggleGroup - Toggle button component
  • Avatar - User avatar component
  • Text - Typography component with variants

Form Components

  • Input - Text input with validation states
  • Select - Dropdown select component
  • Switch - Toggle switch component
  • Checkbox - Checkbox input
  • Textarea - Multi-line text input
  • Date Picker - Date selection component
  • Slider - Range slider component

Layout Components

  • Accordion - Collapsible content group
  • Table - Data table with sorting and pagination

Navigation Components

  • Pagination - Page navigation controls
  • Breadcrumb - Breadcrumb navigation
  • Dropdown Menu - Contextual menu component

Overlay

  • Badge - Status and label badges
  • Tooltip - Hover tooltips

Display Components

Visit our Storybook for complete documentation and live examples of all components.

TypeScript Support

The library is written in TypeScript and provides full type definitions. All components export their prop types:

import { Button, type ButtonProps } from "@profiq/ui";
import type { Theme } from "@profiq/ui";

const MyButton: React.FC<ButtonProps> = (props) => {
  return <Button {...props} />;
};

Customizing Themes

Themes are defined using CSS variables. You can customize them by overriding the CSS variables in your own stylesheet:

/* src/index.css */
.profiq {
  --primary: #8ec549;
  --primary-foreground: #002c62;
  --background: #ffffff;
  --foreground: #002c62;
  /* ... other variables */
}

Contributing

This library is maintained by Profiq for internal use. For bug reports or feature requests, please open an issue on GitLab.

🔗 Links