A shared HTML/CSS foundation for server-rendered apps and agent-built pages: one layered
stylesheet that styles plain HTML, a closed set of classes and data-* variants, Lucide icons,
and six light-DOM custom elements. It targets the latest Chrome and iOS Safari only.
- Docs: https://ui.muchobien.dev
- Kitchen sink, with the markup for every pattern: https://ui.muchobien.dev/kitchen-sink
- For agents: https://ui.muchobien.dev/llms.txt
The latest 0.x release:
<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>This release, pinned with subresource integrity:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@muchobien/ui@0.1.0/dist/ui.css"
integrity="sha384-tPMDHqV+u9XjxcmxfyAuDgQWhEls1ydKhs9GSnFRWLnFwwmcHiqdX7wuVpAR9dQR"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@muchobien/ui@0.1.0/dist/icons.css"
integrity="sha384-rCf3PDlus39mfBTlBx8H3E1lzSAj7z18JXC3006uiEEIJy00XB+lLvlHrEVIA89z"
crossorigin="anonymous"
/>
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@muchobien/ui@0.1.0/dist/ui.js"
integrity="sha384-zeCNIdh+HgMhXj7eZVsc7IHfBOuEQKE9H/OVgzXEvwSPjPx3ZG7gYfKZYbCbOVX5"
crossorigin="anonymous"
></script>icons.css is only needed for icons, ui.js only for the ui-* elements.
pnpm add @muchobien/uiImport @muchobien/ui/ui.css, and @muchobien/ui/icons.css and @muchobien/ui/ui.js when
you need them. @muchobien/ui/tokens.css has the --mb-* tokens on their own, and
@muchobien/ui/vocabulary.json lists every class, data-* value, element and icon.
npx -p @muchobien/ui ui-lint page.htmlui-lint reports classes, data-* values, icons and elements that aren't in the
vocabulary, colours written by hand, and stylesheets that aren't the library's.
See AGENTS.md for the layout, commands and rules.
MIT. The icons are from Lucide under the ISC licence, which
icons.css and icons.svg carry.