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

@dynamic-mockups/design-system

v1.0.2

Published

A professional, scalable design system built with React 18, TypeScript, shadcn/ui, Tailwind CSS, and Storybook

Readme

🎨 Dynamic Mockups Design System

A scalable React design system built with shadcn/ui + Tailwind CSS v4.

📦 Tech Stack

  • React 18 — components are forwardRef/function components
  • TypeScript 5 — full type safety
  • shadcn/ui — components built on the unified radix-ui primitives + class-variance-authority
  • Tailwind CSS v4 — styling via utility classes; theme tokens in radix-luma / mist palette
  • Tabler & Iconify — icons (@tabler/icons-react for component glyphs, @iconify-icon/react for data-driven solar:* icons)
  • Vite 6 — library build (ESM + CJS) and Storybook dev/build
  • Storybook 10 — component documentation

The design tokens mirror the consuming app's shadcn theme (mockup-generator-react/src/v2/styles/v2.css) so components render consistently in both projects.


🚀 Usage

Installation

yarn add @dynamic-mockups/design-system react react-dom

Runtime peers react/react-dom are required. The package depends on radix-ui, class-variance-authority, clsx, tailwind-merge, @tabler/icons-react and @iconify-icon/react (installed automatically).

Setup

1. Import the stylesheet once (it ships the Tailwind utilities the components use plus the theme tokens — self-contained, no Tailwind config needed in the consumer):

// main.tsx / index.tsx
import '@dynamic-mockups/design-system/styles.css';

2. Use the components:

import { Button, Badge, FlagBadMockups } from '@dynamic-mockups/design-system';

function Example() {
  return (
    <div>
      <Button variant="default" size="lg">Save</Button>
      <Badge variant="secondary">New</Badge>
      <FlagBadMockups onSubmit={(reason, feedback) => report(reason, feedback)} />
    </div>
  );
}

Dark mode

Tokens are declared on :root (light) and .dark. Add the dark class to an ancestor (e.g. <html class="dark">) to switch themes. Modal/Dialog content portals into the host app's .v2-root element when present (falling back to document.body), so it inherits the active theme either way.


🧩 Components

AtomsButton, IconButton, Badge, Checkbox, Switch, Skeleton, Spinner, RadioGroup (+ RadioGroup.Item), TextArea, Stepper, Link, Strong.

MoleculesModal (+ Modal.Header / Modal.Content / Modal.Footer), RadioSelector, CheckboxChip, CheckboxChipGroup.

OrganismsFlagBadMockups, OnboardingInfoBox, CTABox, OnboardingArtwork.

TemplatesOnboardingTemplate + OnboardingFlowManager (+ fullOnboardingFlowConfig), CancellationFlowTemplate + useCancellationFlowManager (+ defaultCancellationFlowData).

The cn class-merge helper is also exported.


📚 Scripts

yarn storybook          # Storybook dev server on :6006
yarn dev                # Vite dev server
yarn build              # Build the library (Vite + tsc declarations)
yarn build-storybook    # Build static Storybook
yarn typecheck          # TypeScript type checking
yarn test               # Unit tests (Vitest)

📦 Build output

dist/
├── index.mjs            # ESM bundle
├── index.js             # CommonJS bundle
├── index.d.ts           # TypeScript declarations (entry)
├── design-system.css    # Self-contained Tailwind + theme styles
└── components/ lib/      # Per-module declarations

Package exports:

{
  "main": "dist/index.js",
  "module": "dist/index.mjs",
  "types": "dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.mjs",
      "require": "./dist/index.js"
    },
    "./styles.css": "./dist/design-system.css"
  }
}

Runtime dependencies (react, radix-ui, class-variance-authority, clsx, tailwind-merge, @tabler/icons-react, @iconify-icon/react) are externalized from the bundle so the consumer dedupes a single copy.


Developed by https://dynamicmockups.com