Moey Icons
2,100+ line icons 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. The icons are based on Lucide.
<i class="mi mi-house"></i>
Installation
Copy the files
Copy the
icons/dist/folder into your project. You needmoey-icons.cssandmoey-icons.woff2, kept side by side.Add the stylesheet
<link rel="stylesheet" href="/assets/moey-icons/moey-icons.css">Use an icon
<i class="mi mi-house"></i>Find names on the icons page — click any icon to copy its code.
Or link the hosted copy
No files to copy — link the stylesheet straight from icons.nakedtuxedo.com. It's served from Cloudflare's network, close to your visitors.
<link rel="stylesheet" href="https://icons.nakedtuxedo.com/0.1.0/moey-icons.css">
A version number in the address never changes, so browsers can keep it cached for a year. /latest/ always has the newest icons — handy while you build, but pin a version for live sites. The sprite and the other files are there too, e.g. https://icons.nakedtuxedo.com/0.1.0/moey-icons.svg.
From the Moey package
The moey package includes the icons, so if you already use Moey you have them:
<link rel="stylesheet" href="node_modules/moey/icons/dist/moey-icons.css">
Self-hosted, no CDN
Everything is served from your own site. Nothing is loaded from Google Fonts or any other outside server, and there is no tracking.
What's in the box
| File | What it is | Needed? |
|---|---|---|
moey-icons.css | Icon classes, sizes, stroke and helpers (.min.css is the minified copy) | Yes |
moey-icons.woff2 | The variable font with every icon | Yes |
moey-icons.svg | SVG sprite — the same icons as real SVG strokes | Only for SVG icons |
moey-icons.sprite.js | The sprite as a script, for pages opened from disk | Only for file:// |
icons.js | Every name, its search tags and categories | Only 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.
<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):
<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 use the current text color. Change color on the icon or anything around it.
<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.
<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 -->
| Class | Stroke |
|---|---|
mi-stroke-1 · -1.25 · -1.5 · -1.75 · -2 · -2.5 · -3 | That many px |
mi-stroke-thin · -light · -medium · -bold | 1 · 1.25 · 2 · 2.5px |
mi-stroke-scale | Classic 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.
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:
<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 — 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.
<svg class="mi"><use href="moey-icons.svg#mi-house"/></svg>
<svg class="mi mi-stroke-1 mi-2x"><use href="moey-icons.svg#mi-bell"/></svg>
The sprite still needs moey-icons.css for the classes. Opening pages straight from disk (file://)? Browsers block outside sprites there — load moey-icons.sprite.js and use href="#mi-house" instead.
Frameworks
Icons are plain HTML, so they work the same in any framework. Add the stylesheet once, for example in your main layout or entry file.
// React
import 'moey/icons/dist/moey-icons.css';
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="moey-icons/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 — load both stylesheets:
<link rel="stylesheet" href="latest/moey.css">
<link rel="stylesheet" href="icons/dist/moey-icons.css">
<button class="btn-solid"><i class="mi mi-plus"></i>New order</button>
Add your own icons
Draw a 24 × 24 line icon
Lucide style:
fill="none",stroke="currentColor", round caps and joins.Drop the SVG into
icons/svg/The file name becomes the class:
truck-fast.svg→mi-truck-fast.Build
node icons/build.mjs # or: npm run build:iconsThe 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 insrc/tags.jsonand a category insrc/categories.json.
A file can't be named like a helper class (xs, spin, stroke-1…) — the build stops and tells you.
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 icon drawings come from Lucide under the ISC license — keep LICENSE-LUCIDE with the files when you share them.