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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mgplus

v1.4.5

Published

mgplus a micro CSS library

Readme

MgPlus (Mg+)

A micro css library based on milligram to build elegant web pages efficiently

mgplus-micro-css-library

Build pretty websites with just a few drops of css

doc and demo

Latest release on NPM

CDN direct link

Striking the perfect balance between features and simplicity

The project began in early 2021 with the goal of providing a more robust and feature-rich alternative while maintaining the minimalistic approach of Milligram

MgPlus is specially designed to quickly create a website or a small page with minimal dependencies for better performance and higher productivity

Only one css file, around 70 KB minified

Why mgplus ?

  • Easy to use: components are just html markups, no css skills required
  • Easy to integrate: just add only one css file in your page
  • Easy to extend through css variables
  • Lightweight with only essentials features
  • Responsive and mobile first design
  • Pure css, js only required to handle user interactivity

Features

  • Theming with css variables
  • Dark mode
  • Navs
  • Tabs
  • Pretty forms inputs
  • Badges
  • Modals
  • Responsive flex grid system
  • Responsive display helpers
  • Icon helper including embedded css icons
  • Styling helpers like tailwindcss for positioning and sizing
  • And more ...

Getting started

Quick start

1- Include the Mg+ CSS file in the section of your HTML file to apply the default styles:

 <link rel="stylesheet" href="https://cdn.mgpluscss.com/$PACKAGE_VERSION/mgplus.css">

2- (Optional) Include Mg+ plugins at the end of your page to allow dynamic ui interactions (dynamic class toggling)

<script src="https://cdn.mgpluscss.com/$PACKAGE_VERSION/mgplus-vanilla.js?register=all"></script>

3- Start using the predefined classes in your HTML elements. For example, to create a button, you can use:

<button class="mg-button">Click me</button>

Customize

Css variables

:root {
  --mg-color-dark: hsl(255deg 0% 5%);
  --mg-color-light: hsl(255deg 0% 95%);
  --mg-color-primary: #475dca;
  --mg-control-radius: 1rem;
  --mg-input-radius: 1rem;
  --mg-color-red: #dc3545;
  --mg-color-orange: #fd7e14;
  --mg-color-blue: #007bff;
  --mg-color-green: #28a745;
  --mg-control-shadow: 0 0 2px rgb(0 0 0 / 20%), 0 3px 4px rgb(0 0 0 / 15%);
  --mg-control-active-shadow: inset 0 0 100px 100px rgb(0 0 0 / 10%);
  --mg-base-font-size: 1.6rem;

  //default secondary colors 
  --mg-color-initial: var(--mg-color-light);
  --mg-color-secondary: hsl(255deg 0% 20%);
  --mg-color-tertiary: hsl(255deg 0% 40%);
  --mg-color-quaternary: hsl(255deg 0% 60%);
  --mg-color-quinary: hsl(255deg 0% 90%);

  //dark-colors 
  --mg-dark-color-initial: var(--mg-color-dark);
  --mg-dark-color-secondary: hsl(255deg 0% 80%);
  --mg-dark-color-tertiary: hsl(255deg 0% 70%);
  --mg-dark-color-quaternary: hsl(255deg 0% 50%);
  --mg-dark-color-quinary: hsl(255deg 0% 25%);
}

Developing

Debug source and demo page locally without any custom configuration

Main repository project is now based on Vite to provide best developer experience

Clone the repository

git clone https://github.com/Evodim/mgplus.git

Install packages (with yarn, npm, on pnpm)

npm install

Build demo page

npm run build

Run debug demo page with hot reload

npm run dev

Build only the library

Output library will be copied in dist folder

npm run build:lib

Production ready examples

Corporate website integration

  • Simple contact forms
  • Responsive layouts
  • Navigation

Advanced website integration

  • Advanced forms wizard (funnels) with validation
  • Navigation, navbars
  • Responsive layouts
  • Modals
  • Conditionnal elements for mobile or desktop

License

Licensed under the MIT License.

This library is in active development, some breaking may occurs until next major release including a new documentation portal.

A complete documentation page will be available soon