
Alloy CSS
Interactive HTML without a script to load
At a glance
Alloy CSS is a free CSS component library for dialogs, menus, tabs and toasts that work with JavaScript turned off.
- MITOpen-source license
- 29 USDTemplates, once
- Dialogs and menus work with JavaScript turned off
- One stylesheet, one link and no build step
- A skill command helps AI coding tools use its classes
Works with RailsDjangoLaravelhtmxReactVue
- Pricing
- Open source
- Platforms
- Web
- Category
- Developer Tools
- Website
- alloyhtml.com
- Last checked

What it does
Alloy CSS is a stylesheet for HTML that the server renders. It adds dialogs, menus, drawers, tabs and toasts to a page, and those parts keep working with JavaScript turned off. A developer adds one stylesheet, writes plain HTML and skips the build step.
The parts sit on native HTML features. A dialog is built on the native dialog element with a button that opens it. A menu is a popover. Because no script opens these parts, there is no script to load, break or keep updated.
How it works
- Add the stylesheet with one link tag, from a CDN or from npm.
- Write the page in plain HTML and apply the Alloy class names to the parts you need.
- Open the page in a browser with JavaScript turned off, and check that the parts still work.
Built for AI tools
An install command adds a skill file for AI coding tools. With it, an assistant can write pages from the same class list instead of inventing its own markup. Pages built this way stay consistent, and each class name can be looked up in the documentation.
Good to know
- The package lists one person as its author, so check the repository activity before you depend on it for a large project.
- Templates are plain HTML pages built with the same CSS, so you can copy and change them.
Who it's for
Web developers who build server-rendered pages and want simple interactive parts
Typical uses
- Add a dialog or menu to a Rails or Django page without writing JavaScript
- Prototype an invoicing page in one HTML file and one stylesheet
- Have an AI coding tool write pages from one set of classes
Features
- Dialogs built on the native dialog element
- Menus that open as popovers without scripts
- Tabs, drawers and toasts styled with plain classes
- Command that installs a skill file for AI coding tools
- Docs with live examples for every class
Pricing
Open source
Free and open source under the MIT license. Alloy Templates, a set of 82 pages for nine kinds of app, cost 29 USD once.
Limitations
- Components are limited to dialogs, menus, drawers, tabs and toasts
- The ready-made Templates are a separate paid product at 29 USD once
- It styles the HTML your server renders, so it needs a server-rendered page.
FAQ
Is Alloy CSS free to use?
Yes. It is open source under the MIT license and can be loaded from a CDN or installed from npm.
Does Alloy CSS need JavaScript?
No. Dialogs and menus are built on native HTML features, so they work with JavaScript turned off.
What does the paid Templates set include?
82 pages for nine kinds of app, such as a shop, a blog and a job portal, built with the same CSS in plain HTML for 29 USD once.