moey-ui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +74 -2
  4. package/brand/moey-icon.svg +1 -0
  5. package/dist/ai-rules.md +243 -0
  6. package/dist/fonts/Inter-OFL.txt +93 -0
  7. package/dist/fonts/JetBrainsMono-OFL.txt +93 -0
  8. package/dist/fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  9. package/dist/fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  10. package/dist/fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
  11. package/dist/fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
  12. package/dist/fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
  13. package/dist/fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
  14. package/dist/fonts/inter-greek-opsz-italic.woff2 +0 -0
  15. package/dist/fonts/inter-greek-opsz-normal.woff2 +0 -0
  16. package/dist/fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
  17. package/dist/fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
  18. package/dist/fonts/inter-latin-opsz-italic.woff2 +0 -0
  19. package/dist/fonts/inter-latin-opsz-normal.woff2 +0 -0
  20. package/dist/fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
  21. package/dist/fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
  22. package/dist/fonts/jetbrains-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  23. package/dist/fonts/jetbrains-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  24. package/dist/fonts/jetbrains-mono-cyrillic-wght-italic.woff2 +0 -0
  25. package/dist/fonts/jetbrains-mono-cyrillic-wght-normal.woff2 +0 -0
  26. package/dist/fonts/jetbrains-mono-greek-wght-italic.woff2 +0 -0
  27. package/dist/fonts/jetbrains-mono-greek-wght-normal.woff2 +0 -0
  28. package/dist/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
  29. package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  30. package/dist/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
  31. package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  32. package/dist/fonts/jetbrains-mono-vietnamese-wght-italic.woff2 +0 -0
  33. package/dist/fonts/jetbrains-mono-vietnamese-wght-normal.woff2 +0 -0
  34. package/dist/llms-full.txt +13031 -0
  35. package/dist/moey.css +20842 -0
  36. package/dist/moey.js +9673 -0
  37. package/dist/moey.min.css +1 -0
  38. package/dist/moey.min.js +8543 -0
  39. package/package.json +52 -4
  40. package/src/css/accordion.css +94 -0
  41. package/src/css/adapt.css +81 -0
  42. package/src/css/alert.css +171 -0
  43. package/src/css/animate.css +71 -0
  44. package/src/css/app.css +332 -0
  45. package/src/css/avatar.css +106 -0
  46. package/src/css/badge.css +129 -0
  47. package/src/css/breadcrumb.css +78 -0
  48. package/src/css/button-group.css +116 -0
  49. package/src/css/button.css +191 -0
  50. package/src/css/calendar.css +214 -0
  51. package/src/css/card.css +207 -0
  52. package/src/css/carousel.css +137 -0
  53. package/src/css/chart.css +204 -0
  54. package/src/css/chat.css +342 -0
  55. package/src/css/chip.css +145 -0
  56. package/src/css/close-button.css +52 -0
  57. package/src/css/code-copy.css +45 -0
  58. package/src/css/collapse.css +24 -0
  59. package/src/css/color.css +180 -0
  60. package/src/css/combobox.css +48 -0
  61. package/src/css/datatable.css +233 -0
  62. package/src/css/datepicker.css +251 -0
  63. package/src/css/description-list.css +55 -0
  64. package/src/css/dialog.css +310 -0
  65. package/src/css/divider.css +58 -0
  66. package/src/css/dropzone.css +146 -0
  67. package/src/css/empty.css +44 -0
  68. package/src/css/floating-labels.css +128 -0
  69. package/src/css/form-adorn.css +35 -0
  70. package/src/css/form-layout.css +92 -0
  71. package/src/css/forms.css +455 -0
  72. package/src/css/gallery.css +120 -0
  73. package/src/css/helpers.css +71 -0
  74. package/src/css/images.css +21 -0
  75. package/src/css/input-group.css +165 -0
  76. package/src/css/kanban.css +156 -0
  77. package/src/css/kbd.css +38 -0
  78. package/src/css/keyboard.css +58 -0
  79. package/src/css/layout.css +80 -0
  80. package/src/css/list-group.css +97 -0
  81. package/src/css/marquee.css +80 -0
  82. package/src/css/media.css +74 -0
  83. package/src/css/menu.css +244 -0
  84. package/src/css/nav.css +134 -0
  85. package/src/css/navbar.css +426 -0
  86. package/src/css/notifications.css +173 -0
  87. package/src/css/otp.css +129 -0
  88. package/src/css/pagination.css +119 -0
  89. package/src/css/palette.css +170 -0
  90. package/src/css/password.css +75 -0
  91. package/src/css/player.css +154 -0
  92. package/src/css/popover.css +106 -0
  93. package/src/css/progress.css +150 -0
  94. package/src/css/prose.css +101 -0
  95. package/src/css/rating.css +96 -0
  96. package/src/css/reboot.css +139 -0
  97. package/src/css/refresh.css +55 -0
  98. package/src/css/reveal.css +52 -0
  99. package/src/css/rich-text.css +40 -0
  100. package/src/css/scrollbar.css +63 -0
  101. package/src/css/scrollspy.css +39 -0
  102. package/src/css/sections.css +139 -0
  103. package/src/css/select.css +88 -0
  104. package/src/css/shortcuts.css +15 -0
  105. package/src/css/skeleton.css +66 -0
  106. package/src/css/sortable.css +66 -0
  107. package/src/css/spinner.css +58 -0
  108. package/src/css/split.css +158 -0
  109. package/src/css/steps.css +124 -0
  110. package/src/css/stretched-link.css +7 -0
  111. package/src/css/surface.css +79 -0
  112. package/src/css/swipe.css +78 -0
  113. package/src/css/tabbar.css +113 -0
  114. package/src/css/table.css +143 -0
  115. package/src/css/tabs.css +180 -0
  116. package/src/css/tag-input.css +49 -0
  117. package/src/css/timeline.css +88 -0
  118. package/src/css/timepicker.css +45 -0
  119. package/src/css/toast.css +179 -0
  120. package/src/css/toggler.css +59 -0
  121. package/src/css/tokens.css +164 -0
  122. package/src/css/tooltip.css +105 -0
  123. package/src/css/tour.css +52 -0
  124. package/src/css/tree.css +112 -0
  125. package/src/css/typography.css +61 -0
  126. package/src/css/utilities.css +35 -0
  127. package/src/fonts/inter/OFL.txt +93 -0
  128. package/src/fonts/inter/fonts.json +77 -0
  129. package/src/fonts/inter/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  130. package/src/fonts/inter/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  131. package/src/fonts/inter/inter-cyrillic-opsz-italic.woff2 +0 -0
  132. package/src/fonts/inter/inter-cyrillic-opsz-normal.woff2 +0 -0
  133. package/src/fonts/inter/inter-greek-ext-opsz-italic.woff2 +0 -0
  134. package/src/fonts/inter/inter-greek-ext-opsz-normal.woff2 +0 -0
  135. package/src/fonts/inter/inter-greek-opsz-italic.woff2 +0 -0
  136. package/src/fonts/inter/inter-greek-opsz-normal.woff2 +0 -0
  137. package/src/fonts/inter/inter-latin-ext-opsz-italic.woff2 +0 -0
  138. package/src/fonts/inter/inter-latin-ext-opsz-normal.woff2 +0 -0
  139. package/src/fonts/inter/inter-latin-opsz-italic.woff2 +0 -0
  140. package/src/fonts/inter/inter-latin-opsz-normal.woff2 +0 -0
  141. package/src/fonts/inter/inter-vietnamese-opsz-italic.woff2 +0 -0
  142. package/src/fonts/inter/inter-vietnamese-opsz-normal.woff2 +0 -0
  143. package/src/fonts/jetbrains-mono/OFL.txt +93 -0
  144. package/src/fonts/jetbrains-mono/fonts.json +67 -0
  145. package/src/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  146. package/src/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  147. package/src/fonts/jetbrains-mono/jetbrains-mono-cyrillic-wght-italic.woff2 +0 -0
  148. package/src/fonts/jetbrains-mono/jetbrains-mono-cyrillic-wght-normal.woff2 +0 -0
  149. package/src/fonts/jetbrains-mono/jetbrains-mono-greek-wght-italic.woff2 +0 -0
  150. package/src/fonts/jetbrains-mono/jetbrains-mono-greek-wght-normal.woff2 +0 -0
  151. package/src/fonts/jetbrains-mono/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
  152. package/src/fonts/jetbrains-mono/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  153. package/src/fonts/jetbrains-mono/jetbrains-mono-latin-wght-italic.woff2 +0 -0
  154. package/src/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  155. package/src/fonts/jetbrains-mono/jetbrains-mono-vietnamese-wght-italic.woff2 +0 -0
  156. package/src/fonts/jetbrains-mono/jetbrains-mono-vietnamese-wght-normal.woff2 +0 -0
  157. package/src/js/moey.js +9673 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to Moey. The format follows [Keep a Changelog](https://keepachangelog.com/), and versions follow [Semantic Versioning](https://semver.org/) (before 1.0, a minor version may change things that already exist).
4
+
5
+ ## 0.1.0 — 2026-11-24
6
+
7
+ The first release.
8
+
9
+ - **One stylesheet, one script, no dependencies.** `dist/moey.css` (cascade layers: tokens, reboot, layout, content, forms, components, helpers, utilities) and `dist/moey.js`, plus minified copies. Inter and JetBrains Mono are bundled and self-hosted.
10
+ - **Mobile first.** Every page works down to 280px wide with no sideways scrolling; menus and dialogs become bottom sheets on phones and sit on the on-screen keyboard; fields never zoom the page.
11
+ - **Colors and themes.** 14 named colors × 12 shades, six strengths per component, painted areas (`theme-<color>-<strength>`), light and dark mode, and a brand switch (`data-mo-brand`) — black "tuxedo" by default. Contrast checked to WCAG AA in both modes.
12
+ - **Layout.** Containers, a 12-column grid, CSS grid with `grid-cols-*` and `grid-min-*`, masonry, an app shell and sidebar, container queries, right-to-left.
13
+ - **Forms.** Fields, Moey dropdowns for every select, checkboxes, switches (also with a word inside), range, color picker, input groups, floating labels, chips, combobox, datepicker, time picker, OTP, password strength, validation, and rich text with the Mob editor.
14
+ - **Components.** Accordion, alert, avatar, badge, bottom sheet, breadcrumb, button, card, carousel, dialog, drawer, list group, menu, nav, navbar, tab bar, pagination, popover, progress, scrollspy, spinner, tabs, toasts, tooltip and more.
15
+ - **Work-app extras.** Data tables you edit in place (virtual scrolling, expandable, tree and grouped rows), charts, Kanban, split view, calendar, chat (with files, pictures and voice notes), keyboard shortcuts, tours, command palette, notification center, swipe actions, pull to refresh, sortable lists, filter & sort, infinite scroll, lightbox, audio and video player, click-to-load embeds.
16
+ - **Utilities.** Display, flex, grid, spacing (the number × 4px), sizing, text, colors, backgrounds, borders, effects, position, overflow, aspect ratio, interactions — phone first, with responsive prefixes.
17
+ - **Accessible by default.** Keyboard support, focus rings, screen-reader roles and announcements, reduced motion.
18
+ - **Smaller builds.** `node build.mjs --without=… --breakpoints=… --out=…`.
19
+ - **For AI assistants.** `dist/ai-rules.md`, and `docs/llms.txt` / `docs/llms-full.txt`.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The Moey Authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,75 @@
1
- # Temporary Holding Version
1
+ <img src="https://cdn.jsdelivr.net/npm/moey-ui@0.1.0/brand/moey-icon.svg" width="64" height="64" alt="Moey logo">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # Moey
4
+
5
+ A clean, mobile-first front-end framework for admin dashboards, productivity apps and websites — plain HTML, one stylesheet and one script. No dependencies, no build step.
6
+
7
+ Moey takes the best ideas from the popular frameworks (Tailwind, Bulma, Bootstrap, shadcn, DaisyUI, Tamagui and others) and puts them into one consistent, carefully tested toolkit: cascade layers, OKLCH colors, light and dark mode, right-to-left, and a variable icon font.
8
+
9
+ ## Why Moey
10
+
11
+ - **Mobile first, for real.** Every page works down to 280px wide with no sideways scrolling. Menus and dialogs become bottom sheets on phones, and sheets sit right on the on-screen keyboard. Fields never zoom the page.
12
+ - **Flat and calm.** Surfaces are separated by color, not borders; only floating things get a shadow. App density: 15px text, compact controls.
13
+ - **Colors by name.** 14 colors × 12 shades, and six strengths for every component (`btn btn-green btn-vivid`). Paint any area (`theme-indigo-deep`) and everything inside stays readable — thousands of contrast checks pass WCAG AA in light and dark mode.
14
+ - **Your brand in one attribute.** `<html data-mo-brand="blue">` — black ("tuxedo") by default.
15
+ - **Short utilities, phone first.** `flex items-center gap-4 p-4 md:flex-row`, container queries (`@md:`), and a spacing scale that is simply the number × 4px.
16
+ - **Feels like an app on a phone.** A tab bar, swipe actions on rows, pull to refresh, drag to reorder, a lightbox you swipe and pinch, a chat that sits on the keyboard.
17
+ - **Built for work apps.** Data tables you edit in place (and scroll through 10,000 rows), charts, Kanban boards, an inbox split view, calendars, keyboard shortcuts and first-run tours.
18
+ - **Accessible by default.** Keyboard, focus, screen-reader roles and announcements, reduced motion and RTL are built in.
19
+
20
+ ## Install
21
+
22
+ From a CDN (nothing to download):
23
+
24
+ ```html
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/moey-ui@0.1.0/dist/moey.min.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/moey-icons@1.0.0/dist/moey-icons.min.css">
27
+ <script src="https://cdn.jsdelivr.net/npm/moey-ui@0.1.0/dist/moey.min.js" defer></script>
28
+ ```
29
+
30
+ Or from npm — `npm i moey-ui moey-icons` — and link the same files from `node_modules/moey-ui/dist/` (or copy `dist/` into your site). Keep `dist/fonts/` next to the stylesheet: Inter and JetBrains Mono are self-hosted (no Google Fonts, no outside requests), and browsers only download the language subsets a page uses.
31
+
32
+ Moey Icons are a separate package (`moey-icons`, [icons.nakedtuxedo.com](https://icons.nakedtuxedo.com)); Moey works with any icon set, but its docs and examples use them.
33
+
34
+ ## What's inside
35
+
36
+ The docs have one page per piece, with live examples: run a local server and open `docs/`.
37
+
38
+ - **Getting started** — installation, examples (dashboard, landing page, settings, sign in, navbar), accessibility
39
+ - **Customize** — colors, themes and strengths, light / dark mode, shapes, scrollbars, options and the brand switch, component variables, transitions and entrance animations, RTL, smaller custom builds
40
+ - **Layout** — breakpoints, containers, 12-column grid, CSS grid, masonry, app shell, sidebar, z-index
41
+ - **Content** — reboot, typography, images (light / dark pictures), audio & video player, click-to-load embeds, tables, prose
42
+ - **Forms** — fields, inputs, Moey dropdowns for every select, checkboxes, switches, range, color picker, input groups, floating labels, chips, combobox, datepicker, time picker (and date + time), rich text (with the Mob editor), OTP, password strength, form layout, validation
43
+ - **Components** — accordion, alert, avatar, badge, bottom sheet, breadcrumb, button, button group, card, carousel, dialog, drawer, list group, menu, nav, nav overflow, navbar (with phone layouts), tab bar, pagination, popover, progress, scrollspy, spinner, tabs, toasts, toggler, tooltip
44
+ - **Moey extras** — stat, segmented control, empty state, description list, timeline, skeleton, kbd, command palette, data table (editing, very long tables, expandable / tree / grouped rows), charts, Kanban, split view, calendar, swipe actions, pull to refresh, sortable, filter & sort, infinite scroll, lightbox, chat, keyboard shortcuts, tour, tree view, dropzone, rating, tag input, notification center, adapt, confirm dialogs
45
+ - **Sections** — hero, features, pricing, testimonials, call to action, logo cloud, marquee, stats, FAQ, footer
46
+ - **Helpers** — stacks, stretched link, text truncation, focus ring, hover lift, hover reveal, icon link, fixed / sticky, visually hidden
47
+ - **Utilities** — display, flex, grid, alignment, gap, spacing, sizing, text, colors, backgrounds, borders, effects, position, overflow, aspect ratio, interactions, container queries
48
+
49
+ ## Develop
50
+
51
+ Only Node.js is needed.
52
+
53
+ ```sh
54
+ node build.mjs # dist/ + the docs pages
55
+ node build.mjs --breakpoints=md,lg --out=my-moey # a smaller custom build
56
+ node build.mjs --without=carousel,datatable --out=my-moey
57
+ ```
58
+
59
+ The docs use clean links (`docs/button`), so open them through a local web server (any — the repo includes an `.htaccess` for Apache).
60
+
61
+ ```
62
+ moey/
63
+ ├── build.mjs build + settings (palette, brand, breakpoints, spacing)
64
+ ├── src/css/ one file per part, bundled into cascade layers
65
+ ├── src/js/moey.js every behavior, one file
66
+ ├── dist/ built files (don't edit)
67
+ ├── docs/src/pages/ one page per piece (docs/*.html are generated)
68
+ └── examples/ whole example pages
69
+ ```
70
+
71
+ ## Credits
72
+
73
+ Released under the [MIT License](LICENSE).
74
+
75
+ Bundled fonts: [Inter](https://rsms.me/inter/) and [JetBrains Mono](https://www.jetbrains.com/lp/mono/), both under the SIL Open Font License 1.1 (`dist/fonts/*-OFL.txt`). Moey Icons, a separate package, have their own licenses (Lucide ISC, Tabler Icons and Bootstrap Icons MIT).
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -38 525 525"><title>Moey</title><style>path{fill:#111}@media (prefers-color-scheme:dark){path{fill:#fff}}</style><path d="M86.3 0.1C87.7 -0.3 88.9 -1.6 92.4 0C95.9 1.6 101.7 5.4 107.4 9.8C113.1 14.2 118 18.5 126.4 26.6C134.8 34.6 150.5 51.9 157.5 58.1C164.5 64.2 164.2 61.1 168.4 63.6C172.5 66.1 177.6 71 182.5 73.1C187.3 75.1 193.1 74.7 197.4 75.9C201.7 77 204.4 77.6 208.4 79.9C212.4 82.2 218.2 86.4 221.4 89.6C224.6 92.8 226 95.3 227.7 99.1C229.4 102.8 230.8 107.4 231.5 112.1C232.2 116.7 232.2 122.2 232 127.1C231.8 131.9 230.3 138.1 230.2 141.1C230.1 144.1 231.4 145.1 231.4 145.1C231.4 145.1 262.4 108.5 270.4 99.6C278.4 90.7 276.6 93.8 279.4 91.7C282.2 89.6 284.2 88.4 287.4 86.8C290.6 85.3 293.9 83.8 298.4 82.7C302.9 81.5 310.2 80.5 314.4 80C318.6 79.6 318.7 79.3 323.4 79.9C328.1 80.5 336.6 81.5 342.4 83.7C348.2 85.9 353.4 89.2 358.4 93C363.4 96.7 368.6 101.4 372.5 106.1C376.3 110.7 379.6 116.4 381.7 121.1C383.7 125.7 384.3 129.4 384.7 134.1C385 138.7 384.6 144.2 383.8 149.1C382.9 153.9 382.1 156.4 379.7 163.1C377.2 169.7 370.7 184.5 369 189.1C367.3 193.6 369.4 190.4 369.4 190.4C369.4 190.4 378 177.8 382.4 172.4C386.8 167 391 162.5 395.8 158.1C400.7 153.6 407.1 148.6 411.4 145.9C415.7 143.1 417.6 142.6 421.4 141.8C425.2 140.9 430.1 140.5 434.4 140.8C438.7 141.2 443.2 142.4 447.4 143.9C451.6 145.4 455.2 147 459.4 149.8C463.6 152.7 469.1 157.5 472.5 161.1C475.9 164.6 477.6 167.1 479.8 171.1C482 175.1 484.5 180.6 485.8 185.1C487.1 189.6 487.7 193.6 487.8 198.1C487.9 202.6 487.7 207.1 486.6 212.1C485.4 217.1 486.7 216.9 480.6 228.1C474.5 239.2 457.4 266.2 450.1 279.1C442.9 291.9 440.4 297.2 437 305.1C433.7 312.9 431.3 320.4 430.1 326.1C428.9 331.7 429.5 336.1 430.1 339.1C430.6 342 432 342.7 433.4 343.6C434.8 344.5 436.2 344.8 438.4 344.6C440.6 344.4 444.1 343.4 446.4 342.4C448.7 341.3 448.7 341.6 452.4 338.4C456.1 335.2 461.8 330.4 468.6 323.1C475.4 315.7 488.3 299.9 493.4 294.5C498.5 289.1 497.1 291.4 499.4 290.7C501.7 289.9 504.4 289.3 507.4 289.9C510.4 290.4 514.7 291.9 517.4 293.9C520.1 295.9 522.4 299 523.6 302.1C524.8 305.1 524.7 309.1 524.6 312.1C524.5 315.1 523.9 316.7 522.8 320.1C521.6 323.4 522 323.9 517.7 332.1C513.3 340.2 505 355.6 496.7 369.1C488.4 382.6 475.5 402.1 467.8 413.1C460 424 455.6 429.5 450.4 434.7C445.2 439.9 440.9 442 436.4 444.3C431.9 446.5 428.4 447.5 423.4 448.3C418.4 449.1 412.2 449.6 406.4 448.9C400.6 448.3 393.9 446.7 388.4 444.4C382.9 442.1 377.9 438.8 373.4 435.3C368.9 431.7 365 427.9 361.1 423.1C357.3 418.2 353.2 411.6 350.3 406.1C347.5 400.6 345.6 395.1 344.1 390.1C342.5 385.1 341.7 381.6 341 376.1C340.4 370.6 340 362.9 340.2 357.1C340.4 351.2 341 346.9 342.2 341.1C343.4 335.2 344.7 329.7 347.2 322.1C349.7 314.4 353.8 303.2 357.2 295.1C360.5 286.9 363.5 280.6 367.3 273.1C371.1 265.6 375.9 256.9 380.1 250.1C384.4 243.2 392.8 232.1 392.8 232.1C392.8 232.1 391 232.7 387.2 237.1C383.4 241.4 376.5 249.3 370 258.1C363.6 266.8 357.5 274.5 348.4 289.5C339.2 304.5 325 329.6 315.1 348.1C305.2 366.5 295.2 386.9 289.1 400.1C283 413.2 281.3 421.3 278.5 427.1C275.7 432.8 274.9 432.5 272.4 434.6C269.9 436.7 266.6 438.3 263.4 439.4C260.2 440.5 256.9 441 253.4 441.3C249.9 441.7 246.7 441.9 242.4 441.4C238.1 440.9 231.7 439.7 227.4 438.5C223.1 437.4 220.6 436.5 216.4 434.5C212.2 432.5 206.3 429.2 202.4 426.4C198.5 423.7 195.5 420.6 193.2 418.1C190.8 415.5 189.6 413.6 188.2 411.1C186.9 408.6 185.8 405.9 185.1 403.1C184.4 400.2 183.9 397.6 184.2 394.1C184.5 390.6 185.6 386.7 187 382.1C188.5 377.4 186.2 381.4 193 366.1C199.9 350.7 213.1 320.7 228 290.1C242.9 259.4 273.2 201.1 282.6 182.1C292.1 163.1 284.4 177.3 284.5 176.1C284.7 174.8 283.4 174.7 283.4 174.7C283.4 174.7 276.8 180.2 271.1 187.1C265.3 194 256 206.2 249 216.1C242 225.9 236.7 233.9 229 246.1C221.4 258.2 213.8 270.1 203.1 289.1C192.4 308.1 175.2 339.2 164.9 360.1C154.7 380.9 146.8 402.7 141.7 414.1C136.5 425.4 136.3 425.1 134 428.1C131.6 431.1 130 431.1 127.4 432.1C124.8 433.2 122.2 434.1 118.4 434.4C114.6 434.8 108.2 434.6 104.4 434.3C100.6 433.9 99.1 433.5 95.4 432.5C91.7 431.5 87.2 430.4 82.4 428.4C77.6 426.3 72 424 66.4 420.3C60.8 416.6 52.9 409.9 48.9 406.1C44.9 402.2 43.8 399.7 42.2 397.1C40.6 394.4 40 392.4 39.3 390.1C38.6 387.7 38.2 385.4 38.2 383.1C38.2 380.7 38.6 378.2 39.2 376.1C39.9 373.9 37.6 376.9 42 370.1C46.4 363.2 56.9 348.7 65.7 335.1C74.5 321.4 89.2 298.6 94.9 288.1C100.5 277.6 98.8 278.2 99.6 272.1C100.4 265.9 100.6 256.9 99.6 251.1C98.6 245.2 96.4 241.1 93.6 237.1C90.7 233 86.4 228.9 82.4 226.6C78.4 224.3 74.6 223.6 69.4 223.4C64.2 223.1 55.7 225 51.4 225.2C47.1 225.4 45.9 225 43.4 224.5C40.9 224 38.7 223.2 36.4 222.1C34.1 220.9 32.9 220.9 29.4 217.4C25.9 213.9 18.6 206 15.2 201.1C11.8 196.2 10.9 191.6 8.8 188.1C6.6 184.6 3.8 182.6 2.3 180.1C0.9 177.6 0.2 174.7 0 173.1C-0.2 171.4 -1.8 174.4 1 170.1C3.8 165.7 13.3 153.7 16.8 147.1C20.3 140.4 20.4 135.9 21.7 130.1C23.1 124.2 23.5 116.7 24.8 112.1C26.1 107.4 27.1 105.7 29.5 102.1C31.9 98.4 36.1 93.4 39.1 90.1C42.2 86.7 42.1 86.2 47.9 82.1C53.7 77.9 69.9 69.7 73.8 65.1C77.8 60.4 74.3 62.1 71.3 54.1C68.4 46.1 58.3 23.6 56.2 17.1C54 10.5 57.2 15 58.4 14.7C59.6 14.5 59.2 13.4 63.4 15.7C67.6 18.1 83.4 28.9 83.4 28.9C83.4 28.9 83 10.5 83.2 6.1C83.3 1.6 83.6 3.1 84.2 2.1C84.7 1.1 84.9 0.4 86.3 0.1Z"/></svg>
@@ -0,0 +1,243 @@
1
+ # Moey — rules for AI assistants
2
+
3
+ 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 (`<i class="mi mi-house"></i>`). Write normal HTML with Moey classes; moey.js finds the elements and adds behavior by itself — you rarely write JavaScript.
4
+
5
+ ## Setup
6
+
7
+ ```html
8
+ <!doctype html>
9
+ <html lang="en">
10
+ <head>
11
+ <meta charset="utf-8">
12
+ <meta name="viewport" content="width=device-width, initial-scale=1">
13
+ <link rel="stylesheet" href="moey.min.css">
14
+ <link rel="stylesheet" href="moey-icons.min.css">
15
+ <script src="moey.min.js" defer></script>
16
+ </head>
17
+ <body>…</body>
18
+ </html>
19
+ ```
20
+
21
+ ## Golden rules
22
+
23
+ 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]`.
24
+ 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`).
25
+ 3. **Palette:** `blue indigo purple pink red orange amber yellow lime green teal cyan brown gray` (+ `default`).
26
+ 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.
27
+ 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.
28
+ 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.
29
+ 7. **Start/end, not left/right:** `ms-auto`, `pe-4`, `text-start`, `border-s`, `start-0` (RTL works automatically).
30
+ 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).
31
+ 9. **Accessibility:** every field has a `<label for>`; every icon-only button has `aria-label` (Moey shows it as a tooltip); use `<button>` for actions and `<a href>` for navigation; set `<html lang>`.
32
+ 10. **Light/dark is automatic.** Never hard-code white/black backgrounds or gray text colors — use `bg-surface`, `bg-body`, `text-muted`, `text-subtle`. Force a mode with `data-mo-theme="light|dark"` on `<html>` or any element.
33
+
34
+ ## Utilities (short names)
35
+
36
+ - Display: `block inline-block inline flex inline-flex grid inline-grid contents hidden` (+ `md:hidden`, `lg:flex` …)
37
+ - Flex: `flex-row flex-col flex-wrap flex-1 flex-auto flex-none grow shrink-0 order-first order-last`
38
+ - Align: `items-start|center|end|stretch|baseline` · `justify-start|center|end|between|around|evenly` · `self-*` · `content-*` · `place-items-center` · `justify-items-*`
39
+ - Grid: `grid grid-cols-1…6 grid-cols-12 md:grid-cols-3` (a plain `grid` is ONE column — always say how many) · children `span-1…12 md:span-6 span-full` (spans give a 12-column grid) · `grid-auto` (as many as fit; smallest column `grid-min-48` = 12rem, default 16rem)
40
+ - Gap: `gap-4 gap-x-2 gap-y-6`
41
+ - Spacing: `p-4 px-6 py-2 pt-1 pb-3 ps-4 pe-4` · `m-0 mx-auto mt-4 mb-2 ms-auto me-2 mt-auto` · `space-y-3 space-x-2`
42
+ - Size: `w-full w-auto w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-3/4 w-12 h-full h-screen size-10 min-w-0 min-h-screen max-w-xs|sm|md|lg|xl|2xl…7xl max-w-prose`
43
+ - Text: `text-xs text-sm text-base text-lg text-xl text-2xl … text-6xl` · `font-normal font-medium font-semibold font-bold` · `text-start text-center text-end` · `leading-tight leading-relaxed` · `tracking-tight` · `uppercase capitalize` · `underline no-underline` · `text-truncate line-clamp-2 text-balance break-words` · `font-mono tabular-nums`
44
+ - Color text: `text-body text-subtle text-muted text-default text-green text-blue-600` (adaptive by name, exact by shade 25…950)
45
+ - Background: `bg-body bg-surface bg-raised bg-1 bg-2 bg-3 bg-inverse bg-green bg-blue-100 bg-blur`
46
+ - Borders: `border border-0 border-2 border-t border-b border-s border-e border-dashed border-blue rounded-0 rounded-sm rounded rounded-lg rounded-xl rounded-pill rounded-circle divide-y`
47
+ - Effects: `shadow-sm shadow shadow-lg shadow-overlay shadow-none opacity-50 transition duration-200 animate-spin animate-pulse`
48
+ - Position: `relative absolute fixed sticky inset-0 top-0 end-0 z-10 z-sticky`
49
+ - Other: `overflow-auto overflow-hidden overscroll-contain aspect-video aspect-square object-cover pointer-events-none select-none cursor-pointer visually-hidden`
50
+ - Container queries: put `@container` on a box, then `@md:flex-row`, `@lg:grid-cols-3` react to that box's width.
51
+
52
+ ## Helpers
53
+
54
+ `stack` (column, gap 16px) · `hstack` (row, centered, gap 12px) · `cluster` (wrapping row) · `spacer` (pushes the rest away) · `stretched-link` (whole card clickable) · `hover-lift` · `focus-ring` · `icon-link icon-link-hover` · `sticky-top fixed-bottom` · `rtl-flip` (mirror an arrow icon in RTL)
55
+
56
+ ## Layout
57
+
58
+ ```html
59
+ <div class="container">…</div> <!-- centered, max 80rem; container-sm|md|lg|xl|2xl -->
60
+ <div class="grid md:grid-cols-3 gap-4">…</div> <!-- 1 column on phones, 3 from md -->
61
+ <div class="grid gap-4"><div class="span-12 md:span-8">…</div><div class="span-12 md:span-4">…</div></div>
62
+ ```
63
+
64
+ App shell (admin apps): sidebar + topbar + content. The sidebar is a drawer below 1024px (popover, no JS).
65
+
66
+ ```html
67
+ <div class="app" id="app">
68
+ <aside class="app-sidebar" id="sidebar" popover aria-label="Main navigation">
69
+ <div class="app-sidebar-header"><a class="app-brand" href="/"><span class="app-brand-logo">M</span><span class="app-brand-name">Shop</span></a></div>
70
+ <nav class="app-sidebar-body"><div class="app-nav">
71
+ <div class="app-nav-title">Overview</div>
72
+ <a class="app-nav-link active" href="/"><i class="mi mi-house app-nav-icon"></i><span class="app-nav-label">Dashboard</span></a>
73
+ <a class="app-nav-link" href="/orders"><i class="mi mi-shopping-cart app-nav-icon"></i><span class="app-nav-label">Orders</span><span class="app-nav-badge">3</span></a>
74
+ </div></nav>
75
+ </aside>
76
+ <div class="app-main">
77
+ <header class="app-topbar"><button class="app-sidebar-toggle" popovertarget="sidebar" aria-label="Menu"></button>…</header>
78
+ <main class="app-content">…</main>
79
+ </div>
80
+ </div>
81
+ ```
82
+
83
+ Collapse to icons: `is-collapsed` on `.app` (e.g. `<button data-moey-toggle="#app" data-moey-toggle-class="is-collapsed">`). Dark sidebar: `data-mo-theme="dark"` on the aside.
84
+
85
+ ## Components (exact markup)
86
+
87
+ **Button** `<button class="btn">Neutral</button>` · `<button class="btn btn-default btn-solid">Save</button>` · `<button class="btn btn-red btn-ghost btn-sm">Delete</button>` · icon-only: `<button class="btn btn-icon btn-ghost" aria-label="Edit"><i class="mi mi-pencil"></i></button>` · sizes `btn-xs btn-sm btn-lg` · loading `aria-busy="true"`.
88
+
89
+ **Badge** `<span class="badge badge-green badge-subtle">Paid</span>` · `badge-dot` (status dot) · `badge-count` · `badge-corner` (notification count on an icon button).
90
+
91
+ **Card**
92
+ ```html
93
+ <div class="card">
94
+ <div class="card-header"><div><h3 class="card-title">Revenue</h3><p class="card-subtitle">Last 12 months</p></div><div class="card-actions">…</div></div>
95
+ <div class="card-body">…</div>
96
+ <div class="card-footer">…</div>
97
+ </div>
98
+ ```
99
+ Stat tile: `<div class="card"><div class="card-body stat"><span class="stat-label">Revenue</span><span class="stat-value">$48,210</span></div></div>`
100
+
101
+ **Alert** `<div class="alert alert-amber" role="status"><i class="mi mi-triangle-alert alert-icon"></i><div class="alert-content"><div class="alert-title">Trial ends soon</div><p>Add a card.</p></div><button class="btn-close" aria-label="Dismiss"></button></div>`
102
+
103
+ **Form field**
104
+ ```html
105
+ <div class="field">
106
+ <label class="form-label" for="email">Email</label>
107
+ <input class="form-control" id="email" type="email" required>
108
+ <div class="form-text">We'll never share it.</div>
109
+ <div class="form-error">Enter a valid email.</div>
110
+ </div>
111
+ <select class="form-select" id="status">…</select> <!-- becomes a Moey dropdown automatically -->
112
+ <label class="form-check"><input type="checkbox" class="form-check-input"> Remember me</label>
113
+ <label class="form-check form-switch"><input type="checkbox" role="switch"> Notifications</label>
114
+ <label class="form-check form-switch form-switch-text"><input type="checkbox" role="switch" data-on="ON" data-off="OFF"> Wi-Fi</label> <!-- a short word inside the track (the track fits it); keep the label -->
115
+ <input class="form-control" type="date"> <!-- Moey datepicker automatically -->
116
+ <input class="form-control" list="cities"> <!-- Moey combobox from a <datalist> -->
117
+ <input class="form-control" data-moey-tags> <!-- tag input -->
118
+ <input class="form-control" type="password" data-moey-toggle> <!-- eye button -->
119
+ <input class="form-control" data-moey-otp="6"> <!-- one-time code boxes -->
120
+ ```
121
+ Form layouts: `form-stack` · `form-inline` · `form-section` (+`form-section-header`, `form-section-body`) · `form-actions`. `<form data-moey-dirty>` tracks unsaved changes.
122
+
123
+ **Dialog / sheet / drawer** (native `<dialog>`; on phones a dialog becomes a bottom sheet)
124
+ ```html
125
+ <button class="btn" data-moey-open="#invite">Invite</button>
126
+ <dialog class="dialog" id="invite" aria-labelledby="invite-title">
127
+ <div class="dialog-header"><h2 class="dialog-title" id="invite-title">Invite people</h2><button class="btn-close" aria-label="Close"></button></div>
128
+ <div class="dialog-body">…</div>
129
+ <div class="dialog-footer"><button class="btn" data-moey-dismiss>Cancel</button><button class="btn btn-default btn-solid">Send</button></div>
130
+ </dialog>
131
+ ```
132
+ `class="sheet"` for a bottom sheet everywhere, `class="drawer"` (`drawer-start`) for a side panel.
133
+
134
+ **Confirm** `<button class="btn btn-red" data-moey-confirm="This can't be undone." data-moey-confirm-title="Delete order?">Delete</button>` or `if (await Moey.confirm({ title, message })) …`
135
+
136
+ **Menu**
137
+ ```html
138
+ <div class="dropdown">
139
+ <button class="btn dropdown-toggle">Options</button>
140
+ <div class="menu">
141
+ <button class="menu-item"><i class="mi mi-pencil"></i>Edit</button>
142
+ <hr class="menu-divider">
143
+ <button class="menu-item theme-red"><i class="mi mi-trash-2"></i>Delete</button>
144
+ </div>
145
+ </div>
146
+ ```
147
+
148
+ **Tabs** `<div class="tabs"><div class="tab-list"><button class="tab">One</button><button class="tab">Two</button></div><div class="tab-panel">…</div><div class="tab-panel">…</div></div>` (panels pair by position)
149
+
150
+ **Accordion** `<div class="accordion"><details class="accordion-item"><summary class="accordion-header">Question?</summary><div class="accordion-body">Answer.</div></details></div>`
151
+
152
+ **Table** `<div class="table-wrap"><table class="table table-hover"><thead><tr><th><button class="table-sort">Name</button></th>…</tr></thead><tbody>…</tbody></table></div>` · full data table: add `data-moey-datatable` to the `<table>`. Edit inside it with attributes on the `<th>`: `data-moey-editor="text|number|select|date|email|url|tel"` (double-click / Enter / F2 edits; Enter saves, Esc cancels, Tab moves on), `data-moey-control="switch|checkbox|select|number"` (a live control in every cell), `data-moey-options="A,B,C"`, rules `data-moey-required` / `-min` / `-max` / `-pattern` / `-step`; a toolbar button with `data-moey-toolbar data-moey-add` adds a row. Listen to `moey:edit` (`e.detail`: row, key, value, old; `preventDefault()` refuses) to save.
153
+
154
+ **Charts** `<figure class="chart" data-moey-chart="bar|line|area|donut"><figcaption>Revenue</figcaption><table><thead><tr><th>Month</th><th>Online</th><th>In store</th></tr></thead><tbody><tr><td>Jan</td><td>4200</td><td>3100</td></tr>…</tbody></table></figure>` — first column = labels, each other column = a series; moey.js draws it, adds the legend, tooltips, keyboard reading and a Table switch. Options: `data-moey-stacked`, `data-moey-horizontal`, `data-moey-labels`, `data-moey-format="currency:USD|percent|compact"`, `data-moey-baseline="auto"`, `data-moey-center="Visits"` (donut); `<th data-color="red">` only when the color means something (never cycle your own colors — the fixed palette is color-blind checked). In a card, title it with the card header and `aria-label` on the figure. From data: `Moey.chart(el, { type, labels, series: [{ name, data }], format })` → `.update({...})`. Sparkline: `<span class="chart-spark" data-moey-spark="3,5,4,8"></span>`. Never draw charts with divs or a chart library.
155
+
156
+ **Kanban** `<div class="kanban" data-moey-kanban><section class="kanban-column" data-id="todo" data-moey-limit="3"><header class="kanban-header"><h3 class="kanban-title">To do</h3><span class="kanban-count"></span></header><div class="kanban-list"><article class="kanban-card" data-id="t4"><div class="kanban-card-title">…</div><div class="kanban-card-meta">…</div></article></div></section>…</div>` — drag (mouse; press-and-hold on touch), keyboard (Space pick up / arrows / Space drop / Esc), counts and limits automatic, one column per screen on phones. Save in `moey:move` (`e.detail`: id, from, to, index; `preventDefault()` puts it back). `Moey.kanban(el).move(id, columnId, index)` · `.value()`. Don't add drag libraries.
157
+
158
+ **Split view** (inbox, contacts, settings) `<div class="split h-full" data-moey-split><div class="split-list"><a class="split-item is-unread" href="#m1" data-id="m1"><span class="avatar">AK</span><span class="split-item-body"><span class="split-item-title"><span>Ana</span><span class="split-item-meta">9:41</span></span><span class="split-item-subject">…</span><span class="split-item-text">…</span></span></a>…</div><div class="split-detail"><header class="split-header"><button class="split-back" aria-label="Back"></button><h2 class="split-title">…</h2></header><div class="split-body">…</div><div class="split-empty">Choose a message</div></div></div>` — needs a height (`h-full` in the app content, or `h-128`). Side by side from 640px of its own width (resizable divider, `data-moey-persist`), one pane at a time below with the phone Back gesture. Fill details in `moey:select` (`e.detail.id`) or put a `<template>` + `data-title` in each item.
159
+
160
+ **Calendar** `<div class="calendar" data-moey-calendar data-moey-view="month" data-moey-hours="7-20"><ul class="calendar-data"><li data-start="2026-11-24T09:00" data-end="2026-11-24T09:30" data-color="blue">Standup</li><li data-start="2026-11-27" data-end="2026-11-30" data-color="red">Sale</li></ul></div>` — views month / week / day / agenda (`data-moey-views` limits the switcher); dates only = all day, end day included; compact month + day list under 640px of its own width. Events: `moey:event` (`e.detail.event`), `moey:pick` (`{ date, time, allDay }` — open your "new event" dialog here), `moey:change` (`{ view, start, end }` — load that range). `Moey.calendar(el, { events })` → `.add() .remove(id) .setEvents(list) .view(name) .go(date)`. Not the same as the datepicker (`input[type=date].form-control`).
161
+
162
+ **List group** `<ul class="list-group"><li class="list-group-item"><span class="avatar">AK</span><div class="list-group-content"><div class="list-group-title">Ana</div><div class="list-group-detail">#10421</div></div><span class="list-group-meta">2m</span></li></ul>`
163
+
164
+ **Navbar** `<header class="navbar navbar-sticky"><a class="navbar-brand" href="/">Shop</a><button class="navbar-toggle" aria-label="Menu"></button><div class="navbar-collapse"><nav class="nav"><a href="/" aria-current="page">Home</a></nav><div class="navbar-actions">…</div></div></header>`
165
+ On phones (below 1024px, or 768px with `navbar-expand-md`; `navbar-expand` never folds) the links fold into ☰. Put `navbar-toggle` first for ☰ at the start · `navbar-center` centers the brand · a `navbar-actions` placed *outside* `navbar-collapse` stays in the bar (avatar, cart, one key button) · the menu opens as a floating card, or with `navbar-full` (whole screen) or `navbar-drawer` / `navbar-drawer-start` (side sheet).
166
+
167
+ **Nav** `<nav class="nav nav-pills"><a href="/" aria-current="page">Home</a><a href="/orders">Orders</a></nav>` · `nav-underline` · `nav-vertical` · `nav-overflow` (extra links go into a More menu).
168
+
169
+ **Others:** avatar (`avatar avatar-sm avatar-blue`), progress (`<progress class="progress" value="40" max="100">`), spinner (`spinner`), skeleton (`skeleton`), tooltip (`data-moey-tooltip="Text"`), popover (`data-moey-open="#id"` + `class="popover"`), pagination (`<nav class="pagination" data-moey-pages="24" data-moey-page="5">`), breadcrumb (`<nav class="breadcrumb"><ol><li><a>…</a></li></ol></nav>`), chips (`chip chip-pill`, `chip-group data-moey-chips="multiple"`), toast (`Moey.toast({ message: 'Saved', type: 'success' })` or `data-moey-toast="Saved"`), command palette (`dialog class="palette"`), empty state (`empty`), steps (`steps`), timeline (`timeline`), carousel (`carousel`), rating, dropzone, tree view, notification center, segmented control (`btn-group btn-group-segmented`).
170
+
171
+ ## Phone-app patterns
172
+
173
+ **Tab bar** (main sections at the bottom on phones): `<nav class="tabbar" aria-label="Main"><a class="tabbar-item" href="/" aria-current="page"><i class="mi mi-house"></i><span>Home</span></a>…</nav>` — 3–5 items, last thing in `<body>` (or the `.app`); gone from 1024px (`tabbar-always` keeps it). `.tabbar-badge` (count, or empty = dot), `.tabbar-action` (big middle button), `.tabbar-floating`, `data-moey-hide-on-scroll`. Add `viewport-fit=cover` to the viewport meta. The page padding and toasts adjust by themselves.
174
+
175
+ **Swipe actions** on rows: `<div class="swipe-item" data-moey-swipe><div class="swipe-content">…row…</div><div class="swipe-start"><button class="swipe-action theme-blue">Read</button></div><div class="swipe-end"><button class="swipe-action theme-amber">Archive</button><button class="swipe-action theme-red" data-moey-swipe-full>Delete</button></div></div>` — handle the buttons with a click listener; `moey:swipe-full` is cancelable.
176
+
177
+ **Pull to refresh**: `data-moey-refresh` on the content that scrolls (or a scrolling panel); `el.addEventListener('moey:refresh', (e) => e.detail.waitUntil(load()))`; give desktops a button calling `Moey.refresh(el)`.
178
+
179
+ **Sortable** (drag to reorder): `data-moey-sortable` on the list (ul, .list-group, tbody, a grid of cards) with `data-id` on items; `<span class="sort-handle"></span>` for a grip; `data-moey-sortable="name"` links lists; save in `moey:sort` with `Moey.sortable(list).value()`. (`th[data-moey-sortable="false"]` is the data table's column option — different thing.)
180
+
181
+ **Chat**: `<div class="chat" data-moey-chat><div class="chat-log"><div class="chat-day">Today</div><div class="chat-msg"><span class="avatar avatar-sm">AK</span><div class="chat-bubbles"><div class="chat-bubble">Hi</div><div class="chat-meta">Ana · 9:41</div></div></div><div class="chat-msg chat-msg-out">…</div></div><form class="chat-composer"><textarea class="form-control" rows="1" aria-label="Message"></textarea><button class="btn btn-default btn-icon" aria-label="Send"><i class="mi mi-send"></i></button></form></div>` — `.chat-full` for a full-screen, keyboard-aware chat; `moey:send` (`e.detail.text`, `e.detail.status('Read')`); `Moey.chat(el).add({ text, name, avatar })`, `.typing(true, 'Ana')`. `data-moey-names` for group threads. **Files**: `<input type="file" multiple accept="…">` in the composer = attach button + tray + paste/drop (`data-moey-max-size="25MB"` on the chat); a file bubble `<div class="chat-bubble"><a class="chat-file" href="…" download data-size="48213"><span class="chat-file-name">Report.pdf</span></a></div>`; pictures/videos `<div class="chat-bubble chat-media"><a href="big.jpg"><img src="small.jpg" alt="…"></a>…</div>` (1–4, "+N", lightbox; `data-duration` on video links). Upload in `moey:send`: `e.detail.files[i]` = `{ file, name, size, type, signal, progress(0–1), url(href) }` inside `e.detail.waitUntil(promise)` (progress ring, cancel, Retry). `Moey.chat(el).add({ files: [{ name, size, type, url, thumb }] })`.
182
+
183
+ **Tour** (first-run walkthrough): `data-moey-tour="welcome" data-moey-tour-order="1" data-moey-tour-title="…" data-moey-tour-text="…"` on the parts, a button `data-moey-tour-start="welcome"`; or `Moey.tour([{ target, title, text }], { once: 'welcome-v1' }).start()`.
184
+
185
+ **Keyboard shortcuts**: `data-moey-shortcut="c"` / `"mod+s"` / `"g i"` on buttons and links (a field gets focus); `data-moey-shortcut-label`, `data-moey-shortcut-group`; `<kbd class="shortcut-hint" data-moey-keys="c"></kbd>` inside the button; "?" lists them all. `Moey.shortcuts.add({ keys, label, group, run })`.
186
+
187
+ ## More form fields
188
+
189
+ **Time**: every `<input type="time" class="form-control">` becomes a Moey time field (type "930", "9:30pm"; a list of times; `step` in seconds, `min`, `max`; 12/24h from `lang` or `data-moey-clock`). `type="datetime-local"` becomes date + time. The real input keeps "HH:MM" for the form.
190
+
191
+ **Rich text**: load Mob next to Moey (`mobtexteditor` on npm / jsDelivr: mob.css + mob.js), then `<textarea class="form-control" name="body" data-mob></textarea>` — Moey styles it; `data-toolbar="bold italic link ul"`, `data-counter="true"`. The value is HTML: clean it on the server, show it in `.prose`.
192
+
193
+ ## Data, galleries and media
194
+
195
+ **Data table, more**: `data-moey-virtual` / `virtual: true` for thousands of rows; `detail: (row) => html` or `<template data-moey-detail>` for expandable rows; `children: [...]` or `<tr data-parent="id">` for tree rows; `groupBy: 'status'` / `data-moey-group-by` with `sum: true` / `data-moey-sum` for grouped rows. Never put a table inside a table cell.
196
+
197
+ **Masonry**: `<div class="masonry grid-cols-2 md:grid-cols-4 gap-3" data-moey-masonry>…items…</div>` (images need width/height); `span-2` wide items, `.masonry-dense` fills holes, add `data-moey-sortable` to rearrange. `.gallery-tile` + `.gallery-caption` for picture tiles.
198
+
199
+ **Filter & sort**: buttons in `<div data-moey-filters="#items">` with `data-moey-filter="tag"` (`"*"` = all) and `data-moey-sort-by="date"` (+ `data-moey-sort-dir="desc"`); items carry `data-tags="a b"` and `data-date`…; `data-moey-filter-search="#items"`, `data-moey-filter-count="#items"`, a `.filter-empty` inside.
200
+
201
+ **Infinite scroll**: `data-moey-infinite` on the list; `moey:load` → append items inside `e.detail.waitUntil(promise)`, call `e.detail.done()` on the last page. A "Load more" button takes over after 3 loads.
202
+
203
+ **Lightbox**: `data-moey-lightbox` on a gallery: `<a href="big.jpg" data-caption="…"><img src="small.jpg" alt="…"></a>` — also video (.mp4), audio (.mp3), YouTube/Vimeo links, `data-type="iframe"` pages/PDFs, `href="#template-id"` HTML. Parts: `data-moey-lightbox-thumbs="auto|always|never"`, `-counter`, `-caption`, `-zoom`, `-loop`, `-download`, `-share`, `-fullscreen`, `-slideshow="4000"` ("false" turns off). `data-moey-lightbox="name"` groups links across the page. `Moey.lightbox.open([...], options)`.
204
+
205
+ **Audio & video**: `<div class="player" data-moey-player><video src="…" poster="…"></video></div>` (or `<audio>`, with `.player-head` > `.player-cover` + `.player-title`); `data-moey-controls="speed volume captions pip fullscreen"` or `"none"`. A file that can't play shows a message + Try again by itself (`data-moey-error-text`, event `moey:player-error`). Embeds that load on click: `<a class="embed" href="https://www.youtube.com/watch?v=…" data-moey-embed><img src="cover.jpg" alt=""><span class="embed-play"></span><span class="embed-title">…</span></a>` (`.embed-9x16` for Shorts). Never paste a raw YouTube iframe.
206
+
207
+ **Marquee** (logos, testimonials, tickers): `<div class="marquee" data-moey-marquee aria-label="…"><ul class="marquee-group"><li>…</li></ul></div>` — `data-moey-speed`, `.marquee-reverse`, `.marquee-vertical` (with a height). It pauses on hover/focus and has a pause button; don't remove it without another way to stop it.
208
+
209
+ ## Website sections
210
+
211
+ ```html
212
+ <section class="hero hero-center"><div class="container"><div class="hero-body">
213
+ <h1 class="hero-title">Run your shop from one place.</h1>
214
+ <p class="hero-lead">…</p>
215
+ <div class="hero-actions"><a class="btn btn-default btn-solid btn-lg" href="#">Start free</a></div>
216
+ </div></div></section>
217
+ ```
218
+ `hero-split` + `hero-media` (text beside a picture) · `section` / `section-alt` · `section-head section-head-center` with `eyebrow`, `h2`, `p` · `feature-grid` > `feature` (`feature-icon`) · `pricing` > `price-card` (`is-featured`, `price`, `price-period`, `list-check`) · `testimonials` > `testimonial` · `cta cta-center` · `logo-cloud` · `stats` > `stat` · `footer` > `footer-grid`, `footer-links`, `footer-bottom`.
219
+
220
+ ## Painted areas and themes
221
+
222
+ - `theme-<color>` on any element recolors the components inside (buttons, links, switches, focus).
223
+ - `theme-<color>-<strength>` paints an area (`theme-indigo-deep`, `theme-green-subtle`) and keeps everything inside readable. Use it for heroes, banners, colored sidebars, CTAs.
224
+ - Brand color for the whole site: `<html data-mo-brand="blue">` (default is black, "tuxedo").
225
+
226
+ ## Entrance animations
227
+
228
+ `animate-fade-up` (also `fade-in fade-down fade-start fade-end zoom-in slide-up`), `delay-150`, `stagger` on a parent; `data-moey-animate="fade-up"` plays when scrolled into view. Reduced motion is respected automatically.
229
+
230
+ ## JavaScript API (only when needed)
231
+
232
+ `Moey.toast()` · `Moey.confirm() / alert() / prompt()` · `Moey.open(el) / close(el)` · `Moey.tab()` · `Moey.tags()` · `Moey.chips()` · `Moey.toggle()` · `Moey.datatable()` · `Moey.select()` · `Moey.datepicker()` · `Moey.combobox()` · `Moey.palette()` · `Moey.notify()` · `Moey.clean(form)` · `Moey.chart()` · `Moey.kanban()` · `Moey.split()` · `Moey.calendar()` · `Moey.swipe()` · `Moey.refresh()` · `Moey.sortable()` · `Moey.timepicker()` · `Moey.chat()` · `Moey.shortcuts` · `Moey.tour()` · `Moey.marquee()` · `Moey.masonry()` · `Moey.filter()` · `Moey.infinite()` · `Moey.lightbox` · `Moey.player()`. Events are `moey:*` (e.g. `moey:select`, `moey:change`, `moey:open`, `moey:close`).
233
+
234
+ ## Common mistakes to avoid
235
+
236
+ - ❌ `btn-primary`, `text-danger`, `bg-success` → ✅ `btn-default`, `text-red`, `bg-green`
237
+ - ❌ `d-flex justify-content-between` → ✅ `flex justify-between`
238
+ - ❌ `class="grid md:grid-cols-3"` thinking it's 12 columns on phones → it is 1 column, correct ✅
239
+ - ❌ `ml-4`, `pr-2`, `text-left` → ✅ `ms-4`, `pe-2`, `text-start`
240
+ - ❌ `<div onclick>` buttons → ✅ `<button>`
241
+ - ❌ Hard-coded `#fff` / `text-gray-500` → ✅ `bg-surface`, `text-muted`
242
+ - ❌ Writing JS for dropdowns, dialogs, tabs, tooltips, selects, datepickers → ✅ the markup above already works
243
+ - ❌ `<div class="progress"><div class="progress-bar">` (works, but) → ✅ `<progress class="progress" value="72" max="100">`
@@ -0,0 +1,93 @@
1
+ Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.