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

m7kit

v0.45.0

Published

React component library featuring less common UI components

Readme

m7kit - React Component Library

Description

m7kit is a React component library designed to facilitate the integration of less common UI components into your React applications. It is built with React and TailwindCSS, providing a seamless development experience. This library focuses on offering unique image components, such as Masonry, GalleryStack, DiamondGrid, and ImageShowcase.

Installation

npm install m7kit

Usage

After installing m7kit, you can import components into your React application:

import { Masonry, GalleryStack, DiamondGrid, ImageShowcase } from "m7kit";

Additionally, you need to import the CSS file to ensure proper styling:

import "m7kit/css";
import "m7kit/theme"

It is recommended to import the CSS in your Tailwind CSS file if you want to override the default styles and CSS variables.

Theming

Colors are defined using theme variables in Tailwind v4. These variables are automatically available as CSS variables and utility classes. You can override these variables in your own global CSS file to match your application's theme.

There are several ways to use the theme:

1. Importing the theme css file directly in your Tailwind CSS file

@import "tailwindcss";
@import "m7kit/css"
@import "m7kit/theme" /* Use this if you do not want to copy the @theme block */

2. Manually Copying all the variables

@import "tailwindcss";
@import "m7kit/css"

@variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); /* for dark-mode with data-theme="dark" */

@theme {
    --color-accent: oklch(59.2% 0.249 0.584);
    /* pink-600 */
    --color-button-accent: oklch(59.2% 0.249 0.584);
    /* pink-600 */
    --color-surface: oklch(1 0 0);
    /* white */
    --color-surface-subtle: oklch(98.4% 0.003 247.858);
    /* slate-50 */
    --color-surface-muted: oklch(96.8% 0.007 247.896);
    /* slate-100 */
    --color-neutral: oklch(70.4% 0.04 256.788);
    /* slate-400 */
    --color-foreground: oklch(20.8% 0.042 265.755);
    /* slate-900 */
    --color-foreground-inverse: oklch(1 0 0);
    /* white */
    --color-background: oklch(1 0 0);
    /* white */
}

@layer theme {
    [data-theme="dark"] {
        --color-accent: oklch(79.2% 0.249 0.584);
        /* pink-600 */
        --color-button-accent: oklch(59.2% 0.249 0.584);
        /* pink-600 */
        --color-surface: oklch(20.8% 0.042 265.755);
        /* slate-900 */
        --color-surface-subtle: oklch(27.9% 0.041 260.031);
        /* slate-800 */
        --color-surface-muted: oklch(37.2% 0.044 257.287);
        /* slate-700 */
        --color-neutral: oklch(55.4% 0.046 257.417);
        /* slate-500 */
        --color-foreground: oklch(92.9% 0.013 255.508);
        /* slate-200 */
        --color-foreground-inverse: oklch(12.9% 0.042 264.695);
        /* slate-950 */
        --color-background: oklch(13% 0.028 261.692);
        /* gray-950 */
    }
}

In both cases, the default colors can be changed by overriding the variables on root:

:root {
    --color-accent: red;
    --color-button-accent: red;
}


[data-theme="dark"] {
    --color-accent: yellow;
    --color-button-accent: yellow;
}

accent-color and button-accent color are the same color, but accent-color is 20% lighter in dark mode to ensure proper contrast. When using custom color, keep this distinction in mind.

Instead of changing the colors, individual components can also be overridden using the className prop.

Dark mode

To enable dark mode, use a Theme Provider or JavaScript to add the data-theme="dark" attribute to the html element in your application.

Notable Components

Masonry

Responsive masonry layout for images. Supports up to 6 columns and images can be ordered both horizontally and vertically.

GalleryStack

GalleryStack enables you to stack images as a deck of cards with a suitable animation. It is ideal for showcasing multiple images in a compact space.

DiamondGrid

The DiamondGrid component arranges images in a diamond grid layout, offering a visually striking alternative to traditional grid arrangements.

ImageShowcase

ImageShowcase is designed to highlight a single image in a row of images when hovering.

Demo

For a live demonstration of m7kit components, you can visit the Storybook Demo.

Repository

The source code for m7kit is available on Github. Feel free to contribute, report issues, or provide feedback.

License

m7kit is licensed under the MIT License. Feel free to use, modify, and distribute it as needed.