Live examples and copy-paste snippets for every documented class in the drop-in stylesheet.
Each example is rendered from, and its snippet shown verbatim from, the same fragment in
docs/examples/ — the two cannot drift apart.
<header class="header">
<div class="brand">MOSNI'S <span class="purple">CAT HEADER</span></div>
<div class="little-link">
made with love by <a href="https://mosni.dev">mosni</a>
</div>
</header>
A base link uses the house link colour and
underlines on hover/focus.
<p>
A base <a href="https://mosni.dev">link</a> uses the house link colour and
underlines on hover/focus.
</p>
Components
Every surface below ships two first-class authoring paths that render pixel-identically
(D-17): drop in the custom element tag (<mosni-header>, …) for
attribute-driven terseness, or hand-write the plain HTML/class version
(<header class="header">, …) for full control and the strongest no-JS
story — neither path is deprecated or secondary. Each section below is a live
<mosni-*> example (this page loads mosnicat.js at the end
of <body>, so the tag upgrades in-browser) followed by its
attribute/slot/event contract.
Mosni Accordion
What is mosnicat?
The shared visual chrome for every app on the mosni stack.
How do I include it?
Add one script tag to the page's head — see mosnicat.md.
<mosni-accordion exclusive>
<details open>
<summary>What is mosnicat?</summary>
<p>The shared visual chrome for every app on the mosni stack.</p>
</details>
<details>
<summary>How do I include it?</summary>
<p>Add one script tag to the page's head — see mosnicat.md.</p>
</details>
</mosni-accordion>
Attributes
Name
Type
Observed
Description
exclusive
boolean
no
Only one section open at a time — sets a shared generated name on every child <details>.
Events
Name
Description
toggle
Native toggle, bubbling from each child <details>.
mosnicat ships components and utility classes from one file.
Add one script tag to your page's head.
Override the CSS custom properties in :root.
<mosni-tabs>
<mosni-tab label="Overview" selected>
<p>mosnicat ships components and utility classes from one file.</p>
</mosni-tab>
<mosni-tab label="Installation">
<p>Add one script tag to your page's head.</p>
</mosni-tab>
<mosni-tab label="Theming">
<p>Override the CSS custom properties in :root.</p>
</mosni-tab>
</mosni-tabs>
Events
Name
Description
mosni-tab-change
Bubbles on selection change; detail: { index, label }. Also settable via tabs.selectedIndex.
mosnicat is the shared visual chrome for every app on the mosni stack.
Flat colours, few gradients.
<div class="prose">
<h2>About mosnicat</h2>
<p>mosnicat is the shared visual chrome for every app on the mosni stack.</p>
<blockquote>Flat colours, few gradients.</blockquote>
</div>
Purple
The .purple utility applies the mosnicat accent
colour to any inline element.
<p>
The <span class="purple">.purple</span> utility applies the mosnicat accent
colour to any inline element.
</p>