# Momo UI
> Momo UI: a neobrutalist UI kit for web apps. Thick lines, hard shadows, flat pop colors. One CSS file and one script, no build step. Version 0.9.1.
The full text of the documentation is at https://momo.moey.dev/docs/llms-full.txt
Momo UI · neobrutalist UI kit
# Bold lines. Soft color.
A small CSS framework for dashboards, tools and phone web apps: thick ink lines, soft flat colors and heavy titles. Flat by default; hard shadows and press effects when you want them.
Based on [Moey UI](https://nakedtuxedo.com): the same plain class names, mobile-first parts and Moey Icons, redrawn in a bold neobrutalist style.
### The look
Everything below is built from the foundations only: `.stat`, `.box`, colors, `.shadow` and `.section-title`. The stat tiles have a shadow; the list rows stay flat.
```html
Total revenue$12.4k
Active users1,204
New signups+34%
Churn rate2.1%
```
```html
Recent activity
Online order Nov 24 · 10:42
+$450.00
Cloud hosting Nov 23 · 09:15
-$120.00
Coffee with Momo Nov 21 · 08:15
-$8.50
```
## Get started
Link the CSS, Moey Icons and the script. More on the [Getting started](https://momo.moey.dev/docs/getting-started) page.
```
```
## Two builds
Pick the one that fits what you are making:
| Files | For | Has |
| `momo.min.css` + `momo.js` | Apps and dashboards | Everything |
| `momo-site.min.css` + `momo-site.js` | Websites: landing pages, blogs, docs, shops | Everything except the app parts: app shell, kanban, calendar, date range, charts, chat, comments, keyboard shortcuts, command palette, file manager, steps, tag input, file upload. About 15% less CSS and less than half the script. |
The landing, docs site, 404 and coming soon examples all use the site build.
## Icons
Momo uses [Moey Icons](https://icons.nakedtuxedo.com) for now: ``. Icons take the text color, so they work on every fill.
```html
```
## Build
Run `node build.mjs` in the `momo` folder. It writes `dist/momo.css`, `dist/momo.min.css`, `dist/momo.js`, the site build (`momo-site.*`) and the fonts, generates these docs, and stops if any color fails its contrast check.
Source: https://momo.moey.dev/docs/
---
# Getting started
One stylesheet and one script from npm. No build step, no framework: add them, write plain HTML with Momo classes, and every component wakes up on its own.
## 1. Add the CSS and the script
From the jsDelivr CDN. Keep the version in the address (`@momo-neobrut-ui@0.9.1`), so an update never changes your site by surprise. The fonts load from the same place, nothing else to add.
```
```
## 2. A starter page
CSS in the head, the script with `defer` so it runs once the page is read.
```
My app
Hello
```
That is all. The script finds the components on the page and sets them up. Content you add later (from fetch, a template, a framework) is set up too, as soon as it lands in the page.
```html
New
```
## Full or site build
Pick one pair, never both.
| Build | Files | For |
| Full | `momo.min.css` + `momo.js` | Web apps. Everything, including the app shell, kanban, calendar, charts, chat, command palette, files and state variants like `hover:` and `dark:`. |
| Site | `momo-site.min.css` + `momo-site.js` | Websites and landing pages. The same look, minus the app parts, so it is much lighter. |
```
```
Each docs page that covers an app part says so. If a class does nothing on your site, check that you are on the full build.
## Or install it
With a bundler, or to host the files yourself:
```
npm install momo-neobrut-ui@0.9.1
```
Then link `node_modules/momo-neobrut-ui/dist/momo.min.css` and `dist/momo.js`, or copy the `dist` folder to your server. Keep the `fonts` folder next to the CSS: the stylesheet finds the fonts from there.
## Fonts
Familjen Grotesk for text and Iosevka Charon Mono for code come with the package and load from beside the CSS, so pages make no calls to a font service. Both are under the SIL Open Font License. Only the files a page actually uses get downloaded.
Want your own font? Set the font tokens after the Momo CSS:
```
:root {
--momo-font: "Your Font", system-ui, sans-serif;
--momo-font-mono: "Your Mono", ui-monospace, monospace;
}
```
## Icons
Momo uses [Moey Icons](https://icons.nakedtuxedo.com). Add an icon with ``; it takes the text color and size. Icons that Momo draws itself (check marks, select arrows, the password eye) are already built into the CSS, so they work even without the icon stylesheet.
## Dark mode
Nothing to do: Momo follows the system. To choose, set `data-momo-mode` on ``.
```
```
More on the [Dark mode](https://momo.moey.dev/docs/dark-mode) and [Theme toggle](https://momo.moey.dev/docs/theme-toggle) pages.
## Make it yours
Brand color, line width, corners, shadows and weights are all CSS variables. Try them on the [Customize](https://momo.moey.dev/docs/customize) page, then copy the CSS it gives you into your own stylesheet, after Momo.
```
```
Momo's own rules sit in cascade layers, so any plain rule you write beats them without `!important`.
## Scripting
Components send events you can listen to, and most have a small helper on `window.Momo`:
```
Momo.toast('Saved'); // a toast
Momo.pin.invalid('#code'); // shake a PIN red
document.addEventListener('momo:pin-complete', (e) => check(e.detail.value));
Momo.init(someElement); // set up by hand (rarely needed)
```
Each component page lists its events and helpers.
## Browsers
Current Chrome, Edge, Firefox and Safari, on desktop and phones. Momo uses cascade layers, `:has()`, `color-mix()` and the popover attribute, which all of them support.
## Where next
- [ColorsThe palette and its tints](https://momo.moey.dev/docs/colors)
- [CustomizeBrand, lines, corners](https://momo.moey.dev/docs/customize)
- [ComponentsButtons and everything else](https://momo.moey.dev/docs/button)
- [ExamplesWhole pages to copy](https://momo.moey.dev/docs/examples)
Source: https://momo.moey.dev/docs/getting-started
---
# Customize
A few settings shape every component. Change them here and the whole docs follows, live. Then copy the CSS into your app.
## Settings
Brand color
Ink (black)
Violet
Yellow
Pink
Red
Orange
Lime
Green
Cyan
Blue
Gray
Used for chosen options, checks, switches and the main buttons.
Line width (px)
Corners (px)
Shadow (px)
Shadows everywhere
Adds class="momo-shadows" to : buttons, menus, dialogs and picked items get hard shadows.
Heading weight
Regular 400
Medium 500
Bold 700
Text weight
Regular 400
Medium 500
Reset
Revenue
$12.4k
Active users
1,204
8%
### Create project
New
Monthly
Yearly
Name
Framework
MomoPlain HTML
Make it public
Email me updates
Cancel
Deploy
## Your CSS
Put this after `momo.css`. Only the settings you changed are listed.
momo-theme.css Copy CSS
```
/* No changes yet: the defaults are in use. */
```
## All the settings
| Variable | Default | Changes |
| `--momo-brand` (+ `-soft`, `-text`) | Ink (black, white in dark mode) | Chosen options, checks, switches, `.btn-brand` |
| `--momo-border-width` | 1px | Every ink line |
| `--momo-radius` | 6px | Every corner (0 for square) |
| `.momo-shadows` on | off | Shadows on buttons, floating panels and picked items |
| `--momo-shadow-x` / `-y` | 2px | The smallest hard shadow (.shadow); -md is 1.5×, -lg 2×, -xl 3×, -2xl 4× |
| `--momo-heading-weight` | 700 | Headings |
| `--momo-font-weight` | 400 | Body text |
Settings you save here stay in this browser for the docs only.
Source: https://momo.moey.dev/docs/customize
---
# Accessibility
What Momo does so that everyone can use what you build, by keyboard, by screen reader, by touch, at any zoom, and what is left for you to do.
## What Momo does for you
| Area | How |
| Real elements first | Dialogs are `