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

@pfizer-cx/cx-ds

v0.1.6

Published

CX Design System — Pfizer's design system built on shadcn/ui, Tailwind CSS v4, and Radix UI

Readme

@pfizer-cx/cx-ds

CX Design System — Pfizer's design system built on shadcn/ui, Tailwind CSS v4, and Radix UI. It provides 50+ accessible, themeable components designed for AI-assisted development.

Installation

npm install @pfizer-cx/cx-ds

Peer dependencies

Tailwind CSS v4 is required. Install peer dependencies if not already present:

npm install react react-dom tailwindcss@^4

Setup

1. Import the styles

Add the stylesheet to your app entry (e.g. main.tsx or layout.tsx):

import "@pfizer-cx/cx-ds/styles"

Or in CSS:

@import "@pfizer-cx/cx-ds/styles";

2. Use components

import { Button, Card, CardContent, CardHeader, CardTitle, Input, Label } from "@pfizer-cx/cx-ds"

export function LoginForm() {
  return (
    <Card className="w-full max-w-md mx-auto">
      <CardHeader>
        <CardTitle>Sign in</CardTitle>
      </CardHeader>
      <CardContent className="space-y-section">
        <div className="space-y-field">
          <Label>Email</Label>
          <Input type="email" placeholder="[email protected]" />
        </div>
        <div className="space-y-field">
          <Label>Password</Label>
          <Input type="password" />
        </div>
        <Button className="w-full">Sign in</Button>
      </CardContent>
    </Card>
  )
}

3. Brand assets

The Pfizer logo is available as a separate sub-path export:

import { Logo } from "@pfizer-cx/cx-ds/brand"

<Logo variant="color" className="h-8 w-auto" />

Variants: "color" | "black" | "white"

Tailwind CSS v4

This package requires Tailwind CSS v4. The stylesheet (@pfizer-cx/cx-ds/styles) uses @theme and CSS custom properties — these are v4-only features and are not compatible with Tailwind v3.

AI-Assisted Development

cx-ds is designed to be AI-compliant — every component, token, and pattern is documented in machine-readable guidelines that AI tools consume at generation time.

Guidelines structure

node_modules/@pfizer-cx/cx-ds/
├── GUIDELINES.md              ← Core rules (universal, theme-agnostic)
└── themes/
    └── default/
        └── GUIDELINES.md      ← Default theme values (colors, radii, fonts)

GUIDELINES.md (core) contains:

  • Complete component inventory and per-component API rules
  • Icon system rules and approved Lucide icon list
  • Spacing tokens (space-y-field, space-y-group, space-y-section, etc.)
  • Typography scale and font weight classes
  • What AI must never do (hardcode hex values, invent components, skip semantic tokens)

themes/default/GUIDELINES.md contains:

  • Resolved color values for all semantic tokens
  • Border radius rules per component type
  • Font family (Pfizer Diatype) and available weights
  • Dark mode token values

Using with an AI generator

Fetch both files and prepend them to your system prompt:

const [core, theme] = await Promise.all([
  fetch("/node_modules/@pfizer-cx/cx-ds/GUIDELINES.md").then(r => r.text()),
  fetch("/node_modules/@pfizer-cx/cx-ds/themes/default/GUIDELINES.md").then(r => r.text()),
])

const systemPrompt = `${core}\n\n${theme}\n\n${YOUR_INSTRUCTIONS}`

This gives the model full context on available components, valid tokens, and theme-specific styling — producing output that is consistent with the design system without manual correction.

Available components

Accordion, Alert, AlertDialog, AspectRatio, Avatar, Badge, Breadcrumb, Button, ButtonGroup, Calendar, Card, Carousel, Chart, Checkbox, Collapsible, Command, ContextMenu, Dialog, Drawer, DropdownMenu, Empty, Field, Form, HoverCard, HorizontalNav, Input, InputGroup, InputOTP, Item, Kbd, Label, Menubar, NavigationMenu, Pagination, Popover, Progress, RadioGroup, Resizable, ScrollArea, Select, Separator, Sheet, Sidebar, Skeleton, Slider, Sonner (Toaster), Spinner, Switch, Table, Tabs, Textarea, Toggle, ToggleGroup, Tooltip

Changelog

See CHANGELOG.md for the full release history.

License

UNLICENSED — Pfizer internal use only.