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

react-mcu

v1.1.0

Published

A React component library

Readme

npm version

Material Design colors for React.

It injects --mcu-* CSS variables into the page.

https://github.com/user-attachments/assets/5b67c961-d7a4-4b64-9356-4ada26bc9be4

m3 references:

| builder | roles | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | |

Usage

import { Mcu } from "react-mcu";

<Mcu
  source="#0e1216"
  scheme="vibrant"
  contrast={0.5}
  customColors={[
    { name: "myCustomColor1", hex: "#6C8A0C", blend: true },
    { name: "myCustomColor2", hex: "#E126C6", blend: true },
    { name: "myCustomColor3", hex: "#E126C6", blend: false },
  ]}
>
  <p style={{
    backgroundColor: "var(--mcu-surface)",
    color: "var(--mcu-on-surface)",
  }}>
    Hello, MCU <span style={{
      backgroundColor: "var(--mcu-my-custom-color-1)",
      color: "var(--mcu-on-my-custom-color-1)",
    }}>colors<span>!
  </p>
</Mcu>

[!TIP]

Typically wrapping {children} in a layout.

[!NOTE]

CSS varnames are always kebab-cased, myCustomColor1--mcu-my-custom-color-1

useMcu

A hook is also provided:

import { useMcu } from "react-mcu";

const { initials, setMcuConfig, getMcuColor } = useMcu();

return (
  <button onClick={() => setMcuConfig({ ...initials, source: "#FF5722" })}>
    Change to {getMcuColor("primary", "light")}
  </button>
);

Tailwind

Compatible through theme variables:

https://github.com/abernier/react-mcu/blob/688c789e322ed3858b51389b33eb7ea342bba81e/src/tailwind.css#L3-L186

Or simply:

@import "react-mcu/tailwind.css";

[!IMPORTANT]

Do not forget to manually add your custom colors, as in: https://github.com/abernier/react-mcu/blob/688c789e322ed3858b51389b33eb7ea342bba81e/src/tailwind.css#L126-L185

shadcn

Pre-requisites:

Simply override/remap shadcn's CSS variables:

:root {
  /* ... */
}
.dark {
  /* ... */
}

:root,
.dark {
  --background: var(--mcu-surface);
  --foreground: var(--mcu-on-surface);
  --card: var(--mcu-surface-container-low);
  --card-foreground: var(--mcu-on-surface);
  --popover: var(--mcu-surface-container-high);
  --popover-foreground: var(--mcu-on-surface);
  --primary: var(--mcu-primary);
  --primary-foreground: var(--mcu-on-primary);
  --secondary: var(--mcu-secondary-container);
  --secondary-foreground: var(--mcu-on-secondary-container);
  --muted: var(--mcu-surface-container-highest);
  --muted-foreground: var(--mcu-on-surface-variant);
  --accent: var(--mcu-secondary-container);
  --accent-foreground: var(--mcu-on-secondary-container);
  --destructive: var(--mcu-error);
  --border: var(--mcu-outline-variant);
  --input: var(--mcu-outline);
  --ring: var(--mcu-primary);
  --chart-1: var(--mcu-primary-fixed);
  --chart-2: var(--mcu-secondary-fixed);
  --chart-3: var(--mcu-tertiary-fixed);
  --chart-4: var(--mcu-primary-fixed-dim);
  --chart-5: var(--mcu-secondary-fixed-dim);
  --sidebar: var(--mcu-surface-container-low);
  --sidebar-foreground: var(--mcu-on-surface);
  --sidebar-primary: var(--mcu-primary);
  --sidebar-primary-foreground: var(--mcu-on-primary);
  --sidebar-accent: var(--mcu-secondary-container);
  --sidebar-accent-foreground: var(--mcu-on-secondary-container);
  --sidebar-border: var(--mcu-outline-variant);
  --sidebar-ring: var(--mcu-primary);
}
- https://chatgpt.com/share/6899f20a-422c-8011-a072-62fb649589a0
- https://gemini.google.com/share/51e072b6f1d2

[!IMPORTANT]

Make sure :root, .dark { ... } comes AFTER .root { ... } .dark { ... } to take precedence.

Dev

INSTALL

Pre-requisites:

  • Install nvm, then:
    $ nvm install
    $ nvm use
    $ node -v # make sure your version satisfies package.json#engines.node
    nb: if you want this node version to be your default nvm's one: nvm alias default node
  • Install pnpm, with:
    $ corepack enable
    $ corepack prepare --activate # it reads "packageManager"
    $ pnpm -v # make sure your version satisfies package.json#engines.pnpm
$ pnpm i

CONTRIBUTING

When submitting a pull request, please include a changeset to document your changes:

pnpm exec changeset

This helps us maintain the changelog and version the package appropriately.