· Manarp

Introducing Mor, our design system

We've released Mor, the design system we use for everything we build. It's plain HTML, CSS and a little JavaScript, it has no dependencies, and the whole thing is under 10KB gzipped.

Why we made our own

We wanted every Manarp product to look and behave the same way, without pulling a large framework into each one. Most component libraries assume a build step and a lot of JavaScript. For small tools, that's more weight than the tool itself.

Plain HTML already looks right

Write a normal <button>, <input> or <table> and it's styled, with no classes needed. You only add a class when you want something different, like a secondary button. Colors, sizes and corners are all CSS variables, and the same set covers both light and dark mode.

Popups that don't get cut off

If you've built a dropdown inside a scrolling panel, you've probably seen it get clipped. Mor's modals, menus, popovers, tooltips and toasts use the browser's own <dialog> element and Popover API. Those open in what browsers call the top layer, above everything else on the page, so no parent element can hide them. A small script then places each one next to its button and keeps it on screen.

A size limit we actually enforce

The CSS and JavaScript together have to stay under 10KB gzipped. If a change pushes past that, the build fails. We write the JavaScript in TypeScript but ship plain JavaScript, so there's nothing extra to install.

React too

If you use React, @manarp/mor-react gives you typed components like Button, Modal, Menu, Tabs and Tooltip. They render the same HTML as plain Mor.

Try it

Every component is on design.manarp.com, with a live demo and both HTML and React code. To install it, run npm install @manarp/mor. It's free and MIT licensed.