@muchobien/ui
One layered stylesheet that styles plain HTML, a closed set of classes and
data-* variants, Lucide icons, and six light-DOM custom elements for what the
platform doesn't do yet. Built for the latest Chrome and iOS Safari.
Load it
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@muchobien/ui@0/dist/ui.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@muchobien/ui@0/dist/icons.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@muchobien/ui@0/dist/ui.js"></script>
icons.css is only needed for icons and ui.js only for the
ui-* elements. In an app, install it from npm instead:
pnpm add @muchobien/ui
import "@muchobien/ui/ui.css";
import "@muchobien/ui/ui.js";
Override it
Every rule sits in a cascade layer (ui.reset, ui.tokens,
ui.base, ui.components, ui.utils), so any CSS of your
own that isn't in a layer wins without !important. Change colours, spacing and
radii by setting the --mb-* tokens.
:root {
--mb-accent-fill: light-dark(oklch(52% 0.17 150), oklch(55% 0.17 150));
}
Pin a scheme with <meta name="color-scheme" content="dark">, or a subtree
with data-theme="dark".