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

@valuebridge/design-system

v1.0.0

Published

Design system for ValueBridge learning platform

Downloads

4

Readme

ValueBridge Design System

This package contains the design system for ValueBridge learning platform. It includes UI components, color schemes, typography, and utility functions that can be used to build consistent user interfaces across multiple applications.

Features

  • 🎨 Comprehensive color palette with light and dark mode support
  • 📏 Consistent spacing and typography
  • 🧩 Reusable UI components
  • 🔧 Utility functions for common operations
  • 🌙 Built-in dark mode support

Installation

From NPM Registry

The ValueBridge Design System is available on npm as a scoped package:

# Using npm
npm install @valuebridge/design-system

# Using yarn
yarn add @valuebridge/design-system

# Using pnpm
pnpm add @valuebridge/design-system

From Source

You can also install directly from source:

# Clone the repository
git clone <repository-url>

# Navigate to the design system directory
cd design-system-export

# Install dependencies using the installation script
./install-deps.sh

# Build the package
npm run build

# Link it locally for development
npm link

Then in your project:

npm link @valuebridge/design-system

Common Issues and Troubleshooting

Build Errors

If you encounter "command not found" errors when running build scripts, use the included dependency installation script:

./install-deps.sh

This script ensures all dependencies are properly installed and configured, especially the build tools like tsup.

Setup

1. Update your tailwind.config.js

const { tailwindConfig } = require('@valuebridge/design-system/tailwind.config.js');

/** @type {import('tailwindcss').Config} */
module.exports = {
  // Spread the design system's tailwind config
  ...tailwindConfig,
  // You can extend or override the configuration
  content: [
    ...tailwindConfig.content,
    './pages/**/*.{js,ts,jsx,tsx}',
    './components/**/*.{js,ts,jsx,tsx}',
    './app/**/*.{js,ts,jsx,tsx}',
    // Include the design system components
    './node_modules/@valuebridge/design-system/dist/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    ...tailwindConfig.theme,
    extend: {
      ...tailwindConfig.theme.extend,
      // Add any custom theme extensions here
    },
  },
};

2. Import the CSS

In your global CSS file (e.g., globals.css):

@import '@valuebridge/design-system/src/globals.css';

/* Your additional global styles */

3. Initialize the Design System (optional)

If you want to use the design system's utilities, initialize it in your app:

// In your _app.tsx or layout.tsx
import { initializeDesignSystem } from '@valuebridge/design-system';

export default function App({ Component, pageProps }) {
  // Initialize with options
  const designSystem = initializeDesignSystem({
    darkMode: true, // Enable dark mode by default
  });

  return <Component {...pageProps} />;
}

Usage

Components

import { Button, Card, CardContent, CardHeader, CardTitle } from '@valuebridge/design-system';

export default function MyComponent() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>My Card</CardTitle>
      </CardHeader>
      <CardContent>
        <p>Card content goes here</p>
        <Button>Click Me</Button>
      </CardContent>
    </Card>
  );
}

Utility Functions

import { cn, createSlug } from '@valuebridge/design-system';

// Conditionally apply classes
const className = cn('base-class', {
  'conditional-class': isConditionTrue,
});

// Create a URL-friendly slug
const slug = createSlug('My Article Title');
// Output: "my-article-title"

CSS Classes

The design system provides a set of pre-defined CSS classes for common UI patterns:

<div className="content-container">
  <h1 className="concept-title">Introduction to Design Systems</h1>
  <div className="definition-block">
    <h4>Definition</h4>
    <p>A design system is a collection of reusable components...</p>
  </div>
  <div className="key-point">
    <div className="key-point-icon">✓</div>
    <div className="key-point-text">Ensures consistency across products</div>
  </div>
</div>

Customization

You can customize the design system by:

  1. Overriding the Tailwind configuration
  2. Creating your own component wrappers
  3. Extending the existing components with your own variants

Dark Mode

The design system supports dark mode out of the box. Use the dark: prefix for Tailwind classes to specify dark mode variants:

<div className="bg-white dark:bg-slate-900 text-gray-800 dark:text-gray-100">
  Dark mode compatible content
</div>

To toggle dark mode programmatically:

import { initializeDesignSystem } from '@valuebridge/design-system';

const { toggleDarkMode } = initializeDesignSystem();

// In a click handler
function handleToggleDarkMode() {
  const isDarkMode = toggleDarkMode();
  console.log('Dark mode is now:', isDarkMode ? 'on' : 'off');
}

Publishing to NPM

If you want to publish this design system to the npm registry, refer to the Publishing Guide for detailed instructions.

License

This design system is intended for use within ValueBridge projects only.