Plain card
For everything elseWhite surface, hairline border, no shadow.
Semantic HTML, CSS and a little JavaScript. No dependencies, no build step, under 10KB. Write plain HTML and it already looks like Manarp.
One stylesheet and one module. The script only adds behavior; everything still renders without it.
npm install @manarp/mor
<link rel="stylesheet" href="node_modules/@manarp/mor/dist/mor.min.css">
<script type="module" src="node_modules/@manarp/mor/dist/mor.js"></script>
// Or from a bundler
import "@manarp/mor/mor.min.css";
import { toast } from "@manarp/mor";
Ink and brass. Every color is a variable that switches with light and dark mode; override any of them to theme.
--mor-bg--mor-surface--mor-tint--mor-text--mor-muted--mor-brass--mor-success--mor-errorSystem fonts in two weights. Headings, text, lists, quotes and code need no classes.
Body text with strong, emphasis, a link, inline code, a highlight and ⌘ K.
Small things, made with care.
.container centers content. .stack spaces children vertically, .cluster wraps them in a row, and .grid makes equal columns that wrap. Set spacing with --gap and column width with --min.
Labels, inputs, selects and choices are classless. For a hint or error, wrap the label, control and <small> in .field and link them with aria-describedby; errors set aria-invalid="true". A switch is a checkbox with role="switch".
.card with an optional <header> and <footer>. .card.tint marks featured content; a.card makes the whole card a link.
White surface, hairline border, no shadow.
Use it sparingly, for the one thing that matters.
.badge for status and labels. .brass is for milestones.
Inline messages. Use role="status"; keep role="alert" for urgent errors only.
Your trial ends in 3 days.
Feather 1 is live.
You shipped your tenth release.
Update your card to keep your plan.
Classless tables. Wrap wide ones in .table-wrap so they scroll in their own box; .number right-aligns figures.
| Product | Status | Release | Users |
|---|---|---|---|
| Mor | Live | Feather 1 | 1 |
| Next app | Draft | - | 0 |
| Shopify app | Planned | - | 0 |
An image or initials in .avatar; sizes .small and .large; stack them in .avatar-group.
Native <details>. Give several the same name and only one opens at a time.
Manarp's design system, named after the peacock.
No. It is plain HTML, CSS and a little JavaScript.
Under 10KB gzipped, CSS and JS together.
Native <progress> (leave out value for indeterminate) and <meter>, which turns brass and then red past its thresholds.
.spinner for short waits; .skeleton blocks hold the shape of content that is loading.
The WAI-ARIA tabs pattern: arrow keys, Home and End move between tabs; only the selected tab is in the tab order.
Everything you need to start.
Free while in Feather 1.
Ask us anything at hello@manarp.com.
.divider labels a break; .empty fills a space that has nothing yet.
Your first Feather is one click away.
All overlays render in the browser's top layer and are positioned against the window, so a parent with overflow: hidden, a scroll box or a z-index can never clip or cover them.
A native <dialog> opened with commandfor and command="show-modal". Focus is trapped and returned, Escape closes it, and closedby="any" also closes it on a backdrop click.
The same dialog with .drawer: from the right, .left, or .bottom as a sheet.
Native popover with popovertarget: light dismiss and Escape come free. Mor anchors it to its button, flips it when there is no room and keeps it inside the window. Choose a side with data-placement.
Rich content, anchored to its button.
Inside a small scroll box, it still escapes the box:
Add data-tooltip to any focusable element. It shows on hover and keyboard focus, hides on Escape, and is linked with aria-describedby. Choose a side with data-tooltip-placement.
Call mor.toast(message, { variant, duration }). Toasts stack in a polite live region, pause while hovered or focused, and sit above open modals.
A .floatbar pinned to the bottom of the window, for actions on a selection. Show and hide it with the hidden attribute.