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

@mingcute/font

v3.0.2

Published

Mingcute WOFF2 icon fonts, CSS mappings, and codepoint metadata.

Readme


Overview

@mingcute/font provides Mingcute icons as WOFF2 fonts with generated CSS classes and stable codepoint metadata.

It is designed for stylesheet-based applications, server-rendered templates, legacy interfaces, and environments where framework components are not practical.

Highlights

  • 3,326 styled glyphs: 1,663 icons in Core Regular and Core Filled.
  • WOFF2 output: optimized for modern browsers.
  • Generated CSS classes: predictable names with explicit style suffixes.
  • Stable codepoints: one append-only ledger shared across styles.
  • Metadata exports: codepoint and style information for tooling.
  • Bundler-safe CSS: stylesheet imports are preserved as side effects.

Installation

# npm
npm install @mingcute/font

# pnpm
pnpm add @mingcute/font

# Yarn
yarn add @mingcute/font

# Bun
bun add @mingcute/font

Quick Start

Import one style:

import '@mingcute/font/core-regular.min.css';

Use a generated class:

<i class="mgc mgc-home-1-regular" aria-hidden="true"></i>

Stylesheets

| Import | Contents | |---|---| | @mingcute/font/core-regular.min.css | Core Regular classes and font face | | @mingcute/font/core-filled.min.css | Core Filled classes and font face | | @mingcute/font/bundle.min.css | Both public styles |

Import one style when the application uses one style. bundle.min.css includes both and increases the initial font payload.

Public Assets

| Import path | Contents | |---|---| | @mingcute/font/fonts/* | Generated WOFF2 files | | @mingcute/font/metadata/* | Codepoint and style metadata | | @mingcute/font/metadata/styles.json | Public style catalogue |

Stable Codepoints

The same canonical icon name uses the same codepoint across styles.

The checked-in codepoint ledger is append-only:

  • existing codepoints do not change;
  • removed values are retired rather than reused;
  • ordinary builds do not allocate new codepoints; and
  • adding an icon requires an intentional ledger update.

This protects CSS classes, stored metadata, templates, and generated integrations from silent glyph remapping.

Accessibility

Icon fonts are decorative by default.

Labelled controls

Keep the icon hidden when visible text labels the action:

<button type="button">
  <i class="mgc mgc-home-1-regular" aria-hidden="true"></i>
  <span>Home</span>
</button>

Icon-only controls

Put the accessible name on the control:

<button type="button" aria-label="Open navigation">
  <i class="mgc mgc-menu-regular" aria-hidden="true"></i>
</button>

Do not rely on the private-use glyph as accessible text. Screen readers cannot infer the icon’s meaning from its codepoint.

Available Styles

| Import subpath | Style | Icons | |---|---|---:| | core-regular | Core Regular | 1,663 | | core-filled | Core Filled | 1,663 | | Total | All public styles | 3,326 |

Production Guidance

  • Import only the styles used by the application.
  • Serve WOFF2 files with the font/woff2 MIME type.
  • Use long-lived cache headers when font URLs are content-versioned.
  • Preload only fonts required in the first viewport.
  • Ensure the deployed CSS can resolve its relative ../fonts/*.woff2 URLs.
  • Allow the deployed font origin in font-src.
  • Configure CORS when fonts are served from another origin.
  • Use SVG or framework components when exact gradients, masks, patterns, or original colors matter.

Rendering Limitations

Icon fonts are monochrome glyphs. They cannot preserve every SVG feature.

Prefer SVG or framework packages for:

  • gradients;
  • masks;
  • clipping paths;
  • multicolor artwork;
  • original-color brands; and
  • per-layer opacity or color control.

Troubleshooting

Icons display as empty squares

Confirm that the generated CSS can resolve the emitted WOFF2 files and that the server returns the correct MIME type.

A class renders the wrong glyph

Use the complete generated class name, including the icon name and style suffix.

Fonts are blocked in production

Check the application’s font-src policy, asset origin, MIME type, and cross-origin response headers.

Text or icons flash during loading

Load only required styles, avoid injecting the stylesheet after the interface renders, and preload only critical fonts.

The bundle contains both styles unexpectedly

Import a style-specific stylesheet instead of bundle.min.css.

Development

This package is generated from canonical SVG sources and the checked-in codepoint ledger. Do not edit generated output by hand.

pnpm --filter @mingcute/font check

License

Licensed under the Apache License 2.0.

Links