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

Options

Make Moey yours without touching its files: pick a brand color with one attribute, and change fonts, sizes, corners, spacing and motion with CSS variables.

Brand color

Moey's default color is black (white in dark mode). data-mo-brand on <html> makes any palette color the default instead — every default button, link, switch, checkbox, focus ring and progress bar follows. Try it: it changes this whole page.

A link Badge
64%
<html lang="en" data-mo-brand="blue">

Any of the 14 palette colors works: blue indigo purple pink red orange amber yellow lime green teal cyan brown gray — or tuxedo for the default black. Your own color (not in the palette) needs a build — see below.

CSS variables

Everything Moey draws comes from a variable. Set them in your own stylesheet (after Moey's) — on :root for the whole site, or on any element for just that part.

:root {
  --mo-font-sans: "Your Font", system-ui, sans-serif;   /* text */
  --mo-font-size: 1rem;              /* base size: 15px by default, made for apps */
  --mo-radius-control: .375rem;      /* buttons, inputs */
  --mo-radius-card: .75rem;          /* cards, widgets */
  --mo-surface-border-width: 1px;    /* a border on cards and panels (borderless by default) */
  --mo-shadow-strength: 2;           /* stronger shadows on menus and dialogs */
  --mo-container-max: 72rem;         /* widest a .container gets */
  --mo-gutter: 2rem;                 /* space between grid columns */
  --mo-duration: .2s;                /* speed of hovers and small transitions */
}
VariableDefaultWhat it changes
--mo-font-sans · --mo-font-monoInter · JetBrains Monothe fonts (both self-hosted, no Google Fonts)
--mo-font-size.9375rem (15px)the base text size
--mo-font-weight-medium · --mo-heading-weight500 · 600how bold labels and headings are
--mo-radius-control · --mo-radius-card · --mo-radius-overlay · --mo-radius-dialog10 · 16 · 14 · 20pxcorners — or use a shape: shape-sharp / shape-round
--mo-surface-border-width0pxborders on cards, panels, alerts, badges
--mo-border-colorsoft graylines and input borders
--mo-shadow-strength1how dark shadows are (0 = none)
--mo-bg-body · --mo-bg-surface · --mo-fg-bodygray page · white cards · inkthe page, cards and text (each follows light / dark mode)
--mo-container-max · --mo-container-padding · --mo-gutter80rem · 1rem · 1.5rempage width and grid spacing
--mo-duration · --mo-ease.15s · soft ease-outsmall transitions
--mo-focus-ring-width3pxkeyboard focus rings
--mo-z-menu · --mo-z-sticky · --mo-z-fixed · --mo-z-toast · --mo-z-tooltip1000 … 1100layers

Each component has its own variables too — see Components.

Build options

For changes that create new classes, Moey has a build (node build.mjs, no other tools needed). The settings sit at the top of build.mjs:

SettingWhat it is
PALETTEthe colors, as [lightness, chroma, hue] — add your brand color here and it gets all 12 shades, every strength and every component class
DEFAULT_THEMEwhich color is the default (tuxedo = black)
BREAKPOINTSsm 576 · md 768 · lg 1024 · xl 1280 · 2xl 1536
SPACE · SIZESthe spacing and size scale (number × 4px)
GRIDcolumns, gutters
// build.mjs — your own brand color, and make it the default
const PALETTE = {
  …
  coral: [68, .16, 32],      // lightness %, chroma, hue — try oklch.com
};
const DEFAULT_THEME = 'coral';