Moey Icons
No results. Try “dialog”, “dark” or “grid”.
Getting started

Installation

Moey is one stylesheet and one script, with no dependencies and no build step. Link them from the CDN, or install them with npm.

CDN

Link the files straight from jsDelivr (the version in the address never changes, so it can be cached for a year):

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

npm

For a project with a bundler (Vite, webpack, …):

npm install moey-ui moey-icons
/* in your CSS, or your bundler's entry */
@import "moey-ui/dist/moey.css";
@import "moey-icons";

// and the behaviors, once, anywhere in your app
import "moey-ui/dist/moey.js";

A first page

The viewport line matters: it makes the page fit a phone. The small script before the stylesheet remembers light / dark mode without a flash.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My app</title>
  <script>try { const t = localStorage.getItem('moey-theme'); if (t) document.documentElement.dataset.moTheme = t; } catch {}</script>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/moey-ui@0.2.0/dist/moey.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/moey-icons.min.css">
  <script src="https://cdn.jsdelivr.net/npm/moey-ui@0.2.0/dist/moey.min.js" defer></script>
</head>
<body>
  <main class="container py-8">
    <h1>Hello, Moey</h1>
    <button class="btn btn-default btn-solid"><i class="mi mi-plus"></i>New order</button>
  </main>
</body>
</html>

Next