Dialogs, menus, drawers, tabs and toasts that work with JavaScript turned off. No build step. It fits Rails, Django, Laravel and htmx, and works just as well in React, Vue or one plain HTML file.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alloyhtml/css@1/dist/alloy.min.css">
One HTML file, one stylesheet, no script. Open it, use it, then view its source.
A dialog is a <dialog> and a button that names it. A menu is a popover. No script opens them, so there's none to load, break or keep updated.
Everything in the card is real: the menu, the switch that marks an invoice paid, the toast and the dialog. Try them.
Two dark themes come with it. Link one after the kit and every part follows the visitor's device. Your brand colours and fonts work the same way: one small file.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alloyhtml/css@1/dist/themes/dark.min.css" media="(prefers-color-scheme: dark)">
Ask AI for ten pages and you get ten ideas of what a button is. Give it Alloy's class list and it writes every page from the same classes. The check catches any class it makes up.
Build an invoice page with Alloy CSS. Read alloyhtml.com/llms.txt first. npx @alloyhtml/css skill# An AI wrote invoice.html from Bootstrap and Tailwind habits.
# None of these classes exist in Alloy, and the check says so.
$ npx @alloyhtml/css check app/
app/invoice.html:12 .mt-4
app/invoice.html:18 .btn
app/invoice.html:18 .btn-primary
3 classes Alloy CSS doesn't define. Use a kit class instead (see alloyhtml.com/docs), or pass --css for your own stylesheet.Tested with JavaScript off in Chromium, Firefox and WebKit, at phone and desktop widths. Works in Chrome and Edge 135, Firefox 144 and Safari 26.2, and newer.
Every class, with live examplesAlloy Templates: 82 pages for 9 kinds of app (a shop, a blog, a job portal, healthcare and more), built with this same CSS. Plain HTML, $29 once.