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

@msalehi79/panta-design-system

v1.3.7

Published

Design system with Tailwind and dark/light theme

Downloads

3,013

Readme

Panta Design System

npm version license

A modern, production-ready React component library built with Tailwind CSS — fully typed, with built-in dark/light mode, RTL support, and excellent Next.js compatibility.


✨ Features

  • 20+ ready-to-use components
  • Dark / Light Theme via CSS variables & ThemeProvider
  • Full RTL Support for Persian/Arabic UIs
  • Next.js App Router & Server Components compatible
  • Tailwind CSS styling
  • Advanced charts powered by Recharts (Bar, Line, Pie/Donut, Treemap, etc.)
  • Zero heavy dependencies (only recharts & clsx)
  • Fully Responsive & Mobile-First
  • Strong TypeScript support

📦 Installation

npm install @msalehi79/panta-design-system

Peer Dependencies

npm install react react-dom recharts clsx

Add Global Styles

In your main CSS file:

CSS@import "@msalehi79/panta-design-system/styles.css";

Tailwind Config

// tailwind.config.js
module.exports = {
  darkMode: "class",
  content: [
    "./app/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@msalehi79/panta-design-system/**/*.{js,ts,jsx,tsx}",
  ],
};

🚀 Quick Start

// app/layout.tsx
import "@msalehi79/panta-design-system/styles.css";
import { ThemeProvider } from "@msalehi79/panta-design-system";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="fa" dir="rtl">
      <body>
        <ThemeProvider>{children}</ThemeProvider>
      </body>
    </html>
  );
}
// app/page.tsx
import { Button, Header } from "@msalehi79/panta-design-system";

export default function Page() {
  return (
    <>
      <Header title="داشبورد" />
      <Button variant="primary">کلیک کنید</Button>
    </>
  );
}

🧩 Components

| کامپوننت | مستندات فارسی | English Doc | |----------|----------------|------------------| | دکمه (Button) | README.fa.md | README.en.md | | بدنه اصلی (AppShell) | README.fa.md | README.en.md | | انتخاب‌گر با جست‌وجو (SearchableSelect) | README.fa.md | README.en.md | | مودال (Modal) | README.fa.md | README.en.md | | تقویم (DatePicker) | README.fa.md | README.en.md | | جعبه (Box) | README.fa.md | README.en.md | | سلکت (ButtonSelect) | README.fa.md | README.en.md | | متن کوتاه‌شده (HashText) | README.fa.md | README.en.md | | نمودار میله‌ای دوعددی (DoubleBarChart) | README.fa.md | README.en.md | | نمودار خطی دوعددی (DoubleLineChart) | README.fa.md | README.en.md | | نمودار میله‌ای تکی (SingleBarChart) | README.fa.md | README.en.md | | نمودار خطی تکی (SingleLineChart) | README.fa.md | README.en.md | | نمودار دایره‌ای (CircleChart) | README.fa.md | README.en.md | | نمودار درختی (TreeChart) | README.fa.md | README.en.md | | تب (Tabs) | README.fa.md | README.en.md | | جدول (Table) | README.fa.md | README.en.md | | نشان (Badge) | README.fa.md | README.en.md | | بارگزاری کامپوننت (Loader) | README.fa.md | README.en.md | | بارگزاری صفحه (PageLoader) | README.fa.md | README.en.md | | اینپوت (Input) | README.fa.md | README.en.md | | صفحه‌بندی (Pagination) | README.fa.md | README.en.md | | پیام (Toast) | README.fa.md | README.en.md | | راهنما (Tooltip) | README.fa.md | README.en.md | | مراحل (Stepper) | README.fa.md | README.en.md |

🎨 Theming

Theme is controlled via the dark class on and CSS variables:

:root {
  --color-primary: #6366f1;
  --bg-boxColor: #ffffff;
  --text-titleText: #111827;
}

.dark {
  --color-primary: #818cf8;
  --bg-boxColor: #1f2937;
  --text-titleText: #f9fafb;
}

🌐 RTL Support

<html lang="fa" dir="rtl">

⚙️ Next.js Notes

Interactive components are marked with "use client" internally. Import the CSS only once in the root layout. Fully compatible with Turbopack.

📄 License

MIT © Mohammad Salehi