Home
Softono

Monochrome Ui

Open source MIT TypeScript
131
Stars
2
Forks
0
Issues
4
Watchers
2 months
Last Commit

 About Monochrome Ui

Accessible UI component library. Best performance out of the box. HTML first, React and Vue supported.

Platforms

Web Self-hosted

Languages

TypeScript

Need Help Installing Monochrome Ui?

We provide expert installation service for this software. Our team will install, configure, and secure Monochrome Ui on your server. plans start at just $30.

Monochrome Ui

View on GitHub

Monochrome

Accessible UI component library. Best-in-class performance. HTML-first, React and Vue supported.

npm gzip CI license

If you write accessible HTML, monochrome makes it interactive. The DOM is the state; ARIA attributes (aria-expanded, aria-selected, aria-checked) drive every component. No initialization, no mount hooks.

Components

Accordion · Collapsible · Dialog · Menu · Menubar · Popover · Tabs · Tooltip.

Plus an optional client-side router and thin React and Vue wrappers.

Install

npm install monochrome
// core runtime
import "monochrome"

// optional router
import "monochrome/router"

// React wrappers
import { Accordion } from "monochrome/react"

// Vue wrappers
import { Accordion } from "monochrome/vue"

Example

<script type="module" src="https://esm.sh/monochrome"></script>

<button id="mct:collapsible:1" aria-expanded="false" aria-controls="mcc:collapsible:1">
  Show details
</button>
<div id="mcc:collapsible:1" aria-labelledby="mct:collapsible:1" aria-hidden="true" hidden>
  Hidden by default, revealed on click.
</div>

The React and Vue wrappers generate the same HTML and ARIA; all interactivity comes from the core.

Browser support

Baseline 2024. Uses the Popover API and the native <dialog> element. No polyfills shipped.

Contributing

See AGENTS.md for architecture, invariants, and code style.

License

MIT © Colin van Eenige