# Moey — rules for AI assistants Moey is a mobile-first CSS + JS framework: one stylesheet (`moey.css`), one script (`moey.js`), plain HTML, no build step, no dependencies. Icons come from Moey Icons (``). Write normal HTML with Moey classes; moey.js finds the elements and adds behavior by itself — you rarely write JavaScript. ## Setup ```html … ``` ## Golden rules 1. **Moey is not Bootstrap or Tailwind.** Use only Moey's class names (below). There is no `d-flex`, `col-md-6`, `btn-primary`, `text-primary`, `data-bs-*`, `bg-white text-gray-700`, `rounded-md`, `px-[13px]`. 2. **Colors have names, never meanings.** `btn-green`, `badge-red`, `theme-blue`. There is NO `primary`, `secondary`, `success`, `danger`, `warning`, `info`. The brand color is `default` (`btn-default`, `badge-default`, `text-default`). 3. **Palette:** `blue indigo purple pink red orange amber yellow lime green teal cyan brown gray` (+ `default`). 4. **Strengths (light → strong):** `-subtle` · `-soft` · *(none = the default fill)* · `-solid` · `-vivid` · `-deep`, plus `-outline` · `-ghost` · `-link` on buttons. Example: `btn btn-green btn-solid`, `badge badge-amber badge-subtle`, `alert alert-red alert-soft`. A component without a color class is neutral. 5. **Phone first.** Write the phone layout first; add breakpoint prefixes for bigger screens: `sm:` 576 · `md:` 768 · `lg:` 1024 · `xl:` 1280 · `2xl:` 1536px. `flex flex-col md:flex-row`. Never assume a wide screen. 6. **Spacing scale = number × 4px:** `p-4` = 16px, `gap-6` = 24px, `mt-2` = 8px. Values: 0 0.5 1 1.5 2 2.5 3 4 5 6 7 8 9 10 11 12 14 16 20 24. 7. **Start/end, not left/right:** `ms-auto`, `pe-4`, `text-start`, `border-s`, `start-0` (RTL works automatically). 8. **No inline styles.** Use utilities and component classes; values go in attributes (`data-value="4.5"` on `.rating-static`, `.progress-stack` parts and `.progress-circle`). To change a component variable, write a CSS rule with your own class (`.btn-rounder { --mo-btn-radius: 99px; }`), not `style="…"`. Sizes: `w-* h-* min-w-* min-h-* max-w-* max-h-*` on the rem×4 scale (`max-w-56` = 14rem). 9. **Accessibility:** every field has a `