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

@profitflex/web

v0.2.3

Published

Web UI component library for ProfitFlex Design System

Readme

@profitflex/web

Web component library for the ProfitFlex Design System. Built with RadixUI, Tailwind CSS, and TypeScript following the shadcn/ui pattern.

Installation

npm install @profitflex/web @profitflex/tokens

Peer Dependencies

This package requires React 18+:

npm install react react-dom

Setup

The UI package includes all necessary styles and design tokens. Simply import the styles in your app:

// In your main App.tsx or index.tsx
import '@profitflex/web/styles.css';

That's it! The styles.css includes:

  • All design tokens from @profitflex/tokens as CSS variables
  • Tailwind CSS base, components, and utilities
  • Component styles

No Tailwind configuration needed in your project unless you want to customize it.

Usage

Basic Example

import { Button } from '@profitflex/web';

function App() {
  return (
    <Button variant="default" size="lg">
      Click me
    </Button>
  );
}

Button Variants

import { Button } from '@profitflex/web';

export function ButtonDemo() {
  return (
    <div className="flex gap-4">
      <Button variant="default">Default</Button>
      <Button variant="secondary">Secondary</Button>
      <Button variant="destructive">Destructive</Button>
      <Button variant="outline">Outline</Button>
      <Button variant="ghost">Ghost</Button>
      <Button variant="link">Link</Button>
    </div>
  );
}

Button Sizes

import { Button } from '@profitflex/web';

export function ButtonSizes() {
  return (
    <div className="flex gap-4 items-center">
      <Button size="sm">Small</Button>
      <Button size="default">Default</Button>
      <Button size="lg">Large</Button>
      <Button size="icon">
        <svg>...</svg>
      </Button>
    </div>
  );
}

Using with Icons

import { Button } from '@profitflex/web';
import { ChevronRight } from 'lucide-react';

export function ButtonWithIcon() {
  return (
    <Button>
      Continue
      <ChevronRight />
    </Button>
  );
}

Components

Available Components

  • Accordion - Collapsible content panels with smooth animations
  • Button - Versatile button component with multiple variants and sizes
  • Card - Container component for content grouping
  • Input - Text input field component

More components coming soon!

Accordion Example

import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@profitflex/web';

export function AccordionDemo() {
  return (
    <Accordion type="single" collapsible>
      <AccordionItem value="item-1">
        <AccordionTrigger>Is it accessible?</AccordionTrigger>
        <AccordionContent>
          Yes. It adheres to the WAI-ARIA design pattern.
        </AccordionContent>
      </AccordionItem>
      <AccordionItem value="item-2">
        <AccordionTrigger>Is it styled?</AccordionTrigger>
        <AccordionContent>
          Yes. It comes with default styles that you can customize.
        </AccordionContent>
      </AccordionItem>
    </Accordion>
  );
}

Adding New Components

This library follows the shadcn/ui pattern. You can add new components using the shadcn CLI:

cd packages/web
npx shadcn@latest add [component-name]

Development

Build the Package

npm run build

Watch Mode

npm run dev

Linting

npm run lint

Type Checking

npm run typecheck

Design Tokens Integration

This library automatically integrates with @profitflex/tokens for consistent styling across all ProfitFlex products. The tokens are applied through Tailwind CSS configuration.

Documentation

For more information about the design system:

License

Proprietary - ProfitFlex Internal Use Only