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

@exhibition-time/ds

v0.1.12

Published

React design system with Tailwind CSS v4, ready for Next.js apps

Readme

@exhibition-time/ds

مكتبة Design System مبنية على React 19 و TypeScript و Tailwind CSS v4. المشروع مستقل عن Next.js حتى يبقى قابلاً للاستهلاك من التطبيق الأساسي لاحقاً.

التثبيت

pnpm add @exhibition-time/ds

أو للتطوير المحلي من مجلد مجاور:

pnpm add file:../ds

الاستخدام في Next.js

في ملف CSS الخاص بالتطبيق (مثلاً app/globals.css):

@import "tailwindcss";
@import "@exhibition-time/ds/styles.css";
/* Required: scan DS class names inside the published package (both apps use Tailwind,
   but utilities are generated only from files listed in @source / content). */
@source "../node_modules/@exhibition-time/ds/dist";

استيراد styles.css يفعّل توكينز التصميم (ألوان، مسافات، زوايا، تايبوغرافي) كمتغيرات CSS وكمرافق Tailwind. الوضع الداكن عبر class .dark على html أو عنصر أب.

ثم في المكونات:

import { Button, FormField, Heading, Text } from "@exhibition-time/ds";

export function Example() {
  return (
    <div className="bg-bg-default-primary text-text-default-primary p-md rounded-lg">
      <Heading as="h2">Welcome</Heading>
      <FormField label="Email" />
      <Button>Continue</Button>
    </div>
  );
}

Button و Form يحملان "use client" لأنهما تفاعليان. Typography آمن في Server Components.

التوكينز

استخدم التوكينز من الـ DS مباشرة بدل تعريف قيم محلية:

Tailwind utilities (بعد استيراد styles.css):

<div className="bg-bg-brand-primary text-text-on-brand p-lg rounded-md text-h3" />

CSS variables:

.panel {
  background: var(--color-bg-default-secondary);
  color: var(--color-text-default-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
}

TypeScript API:

import { tokens, color, spacing } from "@exhibition-time/ds";
// أو: import { tokens } from "@exhibition-time/ds/tokens";

const brand = color.primary[500]; // "#776788"
const gap = spacing.md; // "16px"
const panelBg = tokens.semanticColor.bg.defaultPrimary; // "var(--color-bg-default-primary)"

ملفات Figma JSON (للأدوات والتكامل):

import valueTokens from "@exhibition-time/ds/tokens/Value.tokens.json";

للتخصيص، أعد تعريف المتغيرات الحقيقية للـ DS:

:root {
  --color-primary-500: #5b4a6a;
  --color-bg-brand-primary: var(--color-primary-500);
  --radius-md: 0.75rem;
}

التطوير

pnpm install
pnpm storybook

Storybook يعمل على http://localhost:6006. من شريط الأدوات يمكن التبديل بين Light/Dark و LTR/RTL.

pnpm check-types
pnpm build