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

dibk-design

v11.2.2

Published

Shared React component library for DIBK applications — 43 components, design tokens, and themes, published as the [`dibk-design`](https://www.npmjs.com/package/dibk-design) npm package.

Readme

DIBK design

Shared React component library for DIBK applications — 43 components, design tokens, and themes, published as the dibk-design npm package.

Component documentation (Storybook): https://arkitektum.github.io/dibk-design/

Using the package

  1. Install

    npm install dibk-design

    Peer dependencies (must be installed in your app): react (18 or 19), react-dom, react-router-dom (6.4+ or 7).

  2. Import the component styles

    All compiled component styles ship in a single CSS file that your app must import once (e.g. in your global CSS or app entry):

    @import "dibk-design/dibk-design.css";
  3. Use the components

    import { Button } from "dibk-design";
    
    const Example = () => (
      <Button onClick={() => {}} size="small" color="primary">
        I'm a button
      </Button>
    );

Styles & tokens

In addition to dibk-design/dibk-design.css (component styles), the package ships two design-token entrypoints:

  • dibk-design/theme.css — Tailwind-friendly theme tokens (via @theme)
  • dibk-design/tokens.css — plain CSS variables for non-Tailwind apps

Use with Tailwind (recommended)

Import the theme tokens in your global CSS:

@import "tailwindcss";
@import "dibk-design/theme.css";
@import "dibk-design/dibk-design.css";

Use without Tailwind

Import the plain tokens instead:

@import "dibk-design/tokens.css";
@import "dibk-design/dibk-design.css";

Use with Next.js

  1. Import the CSS entrypoints in your globals.css
@import "tailwindcss";
@import "dibk-design/theme.css";
@import "dibk-design/dibk-design.css";
  1. Import components from the library
"use client";
import React from "react";
import { Button } from "dibk-design";

const Home = () => {
  return (
    <main>
      <Button onClick={() => {}} size="small" color="primary">
        I'm a button
      </Button>
    </main>
  );
};

export default Home;

Developing the library

This project uses pnpm as the package manager.

  1. Install dependencies

    pnpm install
  2. Run Storybook for development

    To view and work on components in isolation, run the Storybook development server:

    pnpm run storybook

    This will open Storybook in your browser, usually at http://localhost:6006.

Building for production

Build library

Type-checks, bundles the library (ES/CJS + a bundled index.d.ts), and copies the token files. The output is saved to the /dist folder.

pnpm run build:lib

Build Storybook

Builds the Storybook as a static web application. The output is saved to the /storybook-static folder.

pnpm run build:storybook

Build everything

Builds both the library and the Storybook site:

pnpm run build

Testing local changes in a consuming app

Use yalc to test the built package in another app without publishing:

# In dibk-design — after making changes:
pnpm run build:lib && npx yalc push

# In the consuming app — first time only:
npx yalc add dibk-design