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

@salesforce-ux/design-system-2

v2.0.0

Published

Salesforce Lightning Design System 2 (SLDS 2), is a complete design framework that helps you create consistent, accessible, and scalable user interfaces across its applications and platform.

Readme

Design System 2

A library of low-level components to build design systems at Salesforce. This package contains Design System 2 (SLDS 2), the next-generation design system for Salesforce products.

Consumer documentation: See README.consumer.md for the published package guide (dist structure, CSS/UIF consumption patterns, and usage examples). That file is swapped in as the package README during npm publish.

Getting Started

Prerequisites

  • Node.js >= 20 (see Volta or NVM for version management)

Install and run

From the monorepo root:

yarn install
yarn workspace @salesforce-ux/design-system-2 dev

Or from this package directory:

yarn dev

Storybook runs at http://localhost:6006.

Scripts

| Command | Description | | ----------------------------- | --------------------------------------------------- | | yarn dev | Build once, then watch JS/CSS/UIF and run Storybook | | yarn storybook | Start Storybook only (run yarn build first) | | yarn build | Full build: dev + production outputs | | yarn build:production | Production dist outputs only | | yarn build:css:dev | Build dev CSS (standard + theme-layer) | | yarn build:css:production | Build all dist/css/ outputs | | yarn build:uif | Build UIF artifacts | | yarn build:storybook-tokens | Re-process design-tokens CSS for Storybook | | yarn test | Run Vitest unit tests with coverage | | yarn test:scripts | Run build script tests only |

Build Outputs

| Directory | Purpose | Published to npm | | --------- | ------------------------------------ | ---------------- | | build/ | Internal dev artifacts for Storybook | No | | dist/ | Consumer-facing package output | Yes |

Both directories are produced from the same source files and share the same PostCSS plugin infrastructure. Storybook needs composable building blocks for runtime theme switching. Consumers need final assembled outputs ready for direct use.

Dist structure

dist/
  css/
    bundled/            Structure + theme tokens baked together (one file per theme)
    modular/            Separate base + theme files (for runtime theme-swapping)
  uif/
    foundation/         Abstract component definitions
    slds/               SLDS system component definitions

For full details on dist contents and consumption patterns, see README.consumer.md.

Publishing

The prepack hook swaps README.consumer.md into README.md so that the published tarball and npmjs.com show consumer-focused documentation. The postpack hook restores the dev README automatically.

License

See LICENSE.txt in this package.