Moey Icons

2,100+ line icons, filled icons and brand logos in one variable web font. Pick the stroke in pixels and it stays exactly that thick at every size.

Moey Icons is its own package. It works on any website: no Moey framework, no JavaScript and no build step needed. Just one stylesheet and one font file.

<i class="mi mi-house"></i>

Installation

Nothing to download. Add one line to the <head> of your page and every icon is ready to use:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/moey-icons.min.css">

Then use an icon anywhere:

<i class="mi mi-house"></i>

Find names on the icons page. Click any icon to copy its code.

Served from a CDN

The files come from jsDelivr, a free CDN for open-source packages with servers all over the world, so they load fast for every visitor. The font only loads once and is then cached.

Other ways

Prefer unpkg? It carries the same files:

<link rel="stylesheet" href="https://unpkg.com/moey-icons@1.0.0/dist/moey-icons.min.css">

Using a bundler (Vite, webpack…)? Install it and import it once:

npm install moey-icons
import 'moey-icons';

Versions

Every version stays on the CDN at its own address, forever. The snippets on this page follow the version picked in the menu at the top (1.0.0). See the changelog for what each one added.

AddressUse it for
moey-icons@1.0.0Live sites. A numbered version never changes, so browsers keep it cached for a year
moey-icons (no version)While you build: always the newest icons. jsDelivr can take a few hours to pick up a new release

All files

Everything is at https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/ followed by the file name.

FileWhat it isNeeded?
moey-icons.min.cssIcon classes, sizes, stroke and helpers (moey-icons.css is the same file, readable)Yes
moey-icons-1.woff2 … -15The variable font in parts. The stylesheet loads only the parts that hold icons your page shows, so a page with a few icons downloads a few small files.Yes
moey-icons.woff2The same font with every icon in one file, for your own @font-faceNo
moey-icons.svgSVG sprite: the same icons as real SVG strokesOnly for SVG icons
moey-icons.sprite.jsThe sprite as a script, for pages opened from diskOnly for file://
icons.jsEvery name, its search tags and categoriesOnly to build a picker

Basic use

Every icon is an empty <i> with the mi class plus mi- and the icon's name. Icons sit on the text line and take its size and color, so they line up with words without any extra CSS.

Lisbon, PortugalRead more
<button><i class="mi mi-download"></i>Download</button>
<span><i class="mi mi-map-pin"></i> Lisbon, Portugal</span>

Always include mi. It's what turns the element into an icon, so a stroke class on a parent never turns the parent's own text into icons.

Other names

Many icons have a second, older name that also works: mi-alarm-check and mi-alarm-clock-check are the same icon. Search on the icons page finds both.

Size

An icon is as big as the text around it. Set font-size for any size, or use a size class (sizes are relative to the text):

mi-xs mi-sm default mi-lg mi-xl mi-2x mi-3x
<i class="mi mi-star mi-lg"></i>                 <!-- mi-xs · mi-sm · mi-lg · mi-xl · mi-2x · mi-3x -->
<i class="mi mi-star" style="font-size: 40px"></i>

Color

Icons take the current text color, so anything that colors text colors them.

With Moey: one class

Moey's text color classes work on icons, and every color stays readable in light and dark mode:

<i class="mi mi-circle-check text-green"></i>
<i class="mi mi-circle-x text-red"></i>
<i class="mi mi-heart text-pink"></i>          <!-- text-green · -red · -amber · -cyan · -blue · -pink · -muted … -->

Without Moey: any CSS color

On a site without Moey, use your own classes or a color, or your framework's text color classes, which work the same way.

<i class="mi mi-circle-check" style="color: #16a34a"></i>

.status-ok .mi { color: green; }

Stroke width

Set the line thickness in pixels on screen. Unlike other icon fonts, the line does not get thicker as the icon gets bigger: a 1.5px line is 1.5px at 16px and at 96px. The default is 1.5px.

1 1.25 1.5 1.75 2 2.5 3
<i class="mi mi-house mi-stroke-1"></i>                <!-- 1px -->
<i class="mi mi-house mi-stroke-2"></i>                <!-- 2px -->
<i class="mi mi-house" style="--mi-stroke: 1.2"></i>   <!-- any value -->
ClassStroke
mi-stroke-1 · -1.25 · -1.5 · -1.75 · -2 · -2.5 · -3That many px
mi-stroke-thin · -light · -medium · -bold1 · 1.25 · 2 · 2.5px
mi-stroke-scaleClassic behavior: the line grows with the icon (the value is the px at a 24px icon)

Same line at every size

With mi-stroke-scale the line grows instead:

For a whole area

Stroke classes work on any parent, so one class sets every icon inside (a sidebar, a toolbar, or the whole site):

<nav class="mi-stroke-thin">…</nav>

:root { --mi-stroke: 1.25; }   /* change the default everywhere */

How it works

The font's weight axis is the stroke width. CSS works out each icon's size in pixels and picks the weight that draws your stroke exactly. The axis has limits, so very thick lines on very small icons are capped. 2px stays exact down to 14px icons, 1.5px down to 10px.

Filled icons

900+ icons also come filled. Add -filled to the name. A filled icon is the same size as its line version, so you can swap one for the other, e.g. for an active or selected state:

<i class="mi mi-bell-filled"></i>

Filled icons are solid shapes, so the stroke classes don't change them.

Brand logos

About 400 logos of popular brands and apps. Find them under Brands on the icons page. Same classes as every other icon.

<i class="mi mi-github"></i>

Line logos and solid logos

Most logos are line logos: they follow the stroke width like every line icon. Logos that only work as a filled shape (the Amazon smile, the CSS and JavaScript squares…) are solid: the stroke classes leave them alone.

Brand colors

A logo takes the text color like any icon:

<i class="mi mi-discord" style="color: #5865f2"></i>

Names

A logo is named after the brand. Where a line icon already has that name, the logo ends in -logo: mi-apple is the fruit, mi-apple-logo the company; the same goes for mi-signal-logo. mi-chrome also works for mi-browser-chrome.

The logos are trademarks of their owners. Use them to link to or name the brand.

Helpers

<i class="mi mi-loader-circle mi-spin"></i>   <!-- spins (slower for people who reduce motion) -->

mi-fw gives icons a fixed width, so text after them lines up in lists and menus:

Profile Security Billing
<a href="/profile"><i class="mi mi-user mi-fw"></i> Profile</a>

Accessibility

Most icons sit next to a word and are just decoration, so hide them from screen readers with aria-hidden="true". When an icon is the only content of a button or link, give that button a name with aria-label.

<button><i class="mi mi-trash-2" aria-hidden="true"></i>Delete</button>

<button aria-label="Delete"><i class="mi mi-trash-2" aria-hidden="true"></i></button>

An icon that stands on its own and means something (a status, for example) can use role="img" with an aria-label.

SVG version

Prefer inline SVG? The sprite has every icon under the same names, drawn with real SVG strokes. The same classes work: mi, sizes and stroke widths.

<script src="https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/moey-icons.sprite.js"></script>

<svg class="mi"><use href="#mi-house"/></svg>
<svg class="mi mi-stroke-1 mi-2x"><use href="#mi-bell"/></svg>

The script adds the sprite to your page once, so href="#mi-house" works. (Browsers don't allow <use> to point at a sprite on another website, which is why the script is needed.) The sprite still needs moey-icons.css for the classes.

Frameworks

Icons are plain HTML, so they work the same in any framework. Add the stylesheet link once, in your main layout (index.html, app.blade.php…).

// React
import 'moey-icons';   // or the  in index.html
const Save = () => <button><i className="mi mi-save" aria-hidden="true" />Save</button>;

<!-- Vue / Svelte / Laravel Blade / plain HTML -->
<i class="mi mi-save" aria-hidden="true"></i>

A tiny component keeps the markup tidy:

const Icon = ({ name, stroke, ...rest }) =>
  <i className={`mi mi-${name}`} style={stroke ? { '--mi-stroke': stroke } : undefined} aria-hidden="true" {...rest} />;

<Icon name="bell" stroke={2} />

Icon list in JavaScript

icons.js lists every icon with its search tags and categories. Useful for building your own icon picker, like the one on the icons page.

<script src="https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/icons.js"></script>
<script>
  const { categories, icons } = window.MOEY_ICONS;
  // categories: { arrows: { title: 'Arrows', icon: 'arrow-left-right' }, … }
  // icons:      [ ['house', 'home living building …', ['buildings', 'navigation']], … ]
  const matches = icons.filter(([name, tags]) => (name + ' ' + tags).includes('cart'));
</script>

With Moey

Inside the Moey framework icons size and space themselves in buttons, menus, inputs, alerts and the app sidebar. Nothing extra to set up, just load both stylesheets:

<link rel="stylesheet" href="latest/moey.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/moey-icons.min.css">

<button class="btn btn-default"><i class="mi mi-plus"></i>New order</button>

Add your own icons

  1. Draw a 24 × 24 line icon

    Lucide style: fill="none", stroke="currentColor", round caps and joins.

  2. Drop the SVG into icons/svg/

    The file name becomes the class: truck-fast.svg → mi-truck-fast.

  3. Build

    node icons/build.mjs          # or: npm run build:icons

    The icon gets a code point automatically (kept in src/codepoints.json, so existing icons never move) and is added to the font, the sprite and the icons page. Add search words in src/tags.json and a category in src/categories.json.

A file can't be named like a helper class (xs, spin, stroke-1…). The build stops and tells you.

Add a brand logo

Any one-color logo SVG works, at any size or viewBox, groups and transforms included:

node icons/add-logo.mjs figma.svg figma --title "Figma" --tags "design"
node icons/build.mjs

It fits the logo into the same area as the line icons (--trim fits the drawing instead of its viewBox), makes it solid, files it under Brands and adds the search words. Use the one-color version of a logo: white parts should be holes, not white shapes.

Browser support

Current Chrome, Edge, Safari and Firefox, on desktop and mobile. The exact-pixel stroke uses CSS math (tan() / atan2()). Older browsers that lack it still show every icon at the default weight.

License

Moey Icons is MIT licensed. The line icons come from Lucide (ISC) and Tabler Icons (MIT), the filled icons from Tabler Icons, and the brand logos from Tabler Icons and Bootstrap Icons (MIT), and a few from Font Awesome, Devicon and the Rust Foundation (see LICENSE-OTHER-LOGOS). Keep the LICENSE-* files with the icons when you share them. The logos are trademarks of their owners.

Sources

Line icons

Lucide (ISC) and Tabler Icons (MIT). They follow the stroke width.

Filled icons

Tabler Icons (MIT), plus Moey's own filled star and heart. Solid at every stroke width.

Brand logos

Tabler Icons and Bootstrap Icons (MIT), with a few from Font Awesome (CC BY 4.0, OFL), Devicon (MIT) and the Rust Foundation (CC BY 4.0). The logos are trademarks of their owners.

Moey Icons is free. If it saves you time, you can support the work with a tip.

Moey Icons itself (the font compiler, the build and this site) is MIT licensed. Every download includes the license files.