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

@supriyadies-work/supr-design-system

v1.6.0

Published

Design System package for your needs

Downloads

540

Readme

@supriyadies-work/supr-design-system

Design system package — design tokens, React components, and theme scales (nisaaulia / supriyadies / weddio / wedwise). Scalable per-brand theming with optional runtime assets (fonts, IcoMoon icons, tokens).

Documentation & visual reference: nisaaulia.com/design-pattern

We’re open to feedback and improvements. Suggestions, issues, and pull requests are welcome.


Installation

npm install @supriyadies-work/supr-design-system
# or
yarn add @supriyadies-work/supr-design-system

Peer dependencies

Ensure these are installed in your project:

  • react ^18.0.0
  • react-dom ^18.0.0
  • next ^14.0.0 (if using Next.js)
  • next-themes ^0.4.0 (for theming)
  • lottie-react ^2.4.0 (for Lottie animations)

Setelah install (optional, for scalable theming)

To use per-brand theming with your own tokens, fonts, and icons:

  1. Generate example files in your project:

    npx @supriyadies-work/supr-design-system init

    This creates theme.json, fonts.json, and icons/selection.json (e.g. under src/assets).

  2. Add your assets: Edit the generated files, add font files under fonts/, and optionally export your icon set from IcoMoon and replace icons/selection.json.

  3. Configure ScaleProvider with the URLs your app serves these from:

    • assetBaseUrl — base URL for assets
    • tokensUrl — URL to your theme/tokens JSON
    • fontsManifestUrl — URL to fonts.json
    • iconSelectionUrl — URL to IcoMoon selection.json
  4. See the full guide in this README (Scales, runtime assets) and the repository for more details.


Usage

Components

import { Button, Card, ScaleProvider } from "@supriyadies-work/supr-design-system";

// Default scale: nisaaulia
<ScaleProvider>
  <Button>Primary</Button>
  <Card>...</Card>
</ScaleProvider>

// Scale: supriyadies
<ScaleProvider defaultScale="supriyadies">
  <App />
</ScaleProvider>

Per-component imports (better tree-shaking):

import { Button } from "@supriyadies-work/supr-design-system/components/Button";

Toast notifications (non-blocking)

Use ToastProvider once near the root of your app, then call pushToast anywhere via useToast.

"use client";

import { ToastProvider, useToast } from "@supriyadies-work/supr-design-system/components/molecules";

function SaveButton() {
  const { pushToast } = useToast();
  return (
    <button
      onClick={() => pushToast({ message: "Draft tersimpan", variant: "success" })}
    >
      Save
    </button>
  );
}

export default function AppRoot({ children }: { children: React.ReactNode }) {
  return <ToastProvider>{children}</ToastProvider>;
}
  • Default behavior: top-right, auto-hide in 5 seconds, dismiss via close button or swipe.

Tokens (JS)

import { tokens, getToken, getCSSVar, theme } from "@supriyadies-work/supr-design-system";
// or
import { tokens } from "@supriyadies-work/supr-design-system/js/tokens";

Tokens (CSS)

In your global CSS or layout:

@import "@supriyadies-work/supr-design-system/css";

For scale-specific variables (per brand):

@import "@supriyadies-work/supr-design-system/css/scale";

Utilities

import { cn, useScale, getScaleConfig } from "@supriyadies-work/supr-design-system";

Package exports

| Export | Description | |--------|-------------| | . | All components, tokens, utils, and scale | | ./components | Component index | | ./components/* | Single component (e.g. Button, Card) | | ./tokens | Token object (JS) | | ./js/tokens | Same, alternate path | | ./css | CSS variables (tokens.css) | | ./css/scale | Scale CSS (nisaaulia / supriyadies) | | ./utils | cn, validation, etc. | | ./docs | Documentation metadata (JSON) |


Scales (brands)

Theme scales supported:

  • nisaaulia — default
  • supriyadies — larger spacing/typography
  • weddio — per-scale color palette (and optional font/icon set) for Weddio (uses Wedwise token prefix for backward compatibility)
  • wedwise — legacy alias for Weddio scale (kept for backward compatibility)

Use ScaleProvider and defaultScale to choose a scale. For scalable theming (different fonts, colors, or icon set per brand), pass fontsManifestUrl, iconSelectionUrl, and/or tokensUrl so the design system loads your assets at runtime.


Development scripts

npm run build          # Full build (tokens + compile + assets + docs)
npm run build:watch    # Watch tokens
npm run build:tokens   # Style Dictionary only
npm run build:docs     # Generate docs metadata

References