r/htmx • u/Personal-Edge3043 • 19d ago
Design system for server rendered apps
Maybe this is not the right place, but I’m looking for a storybook like site that defines the design system for an app so I can use it with ai agents. One that I can use with htmx and maybe alpine.js.
2
Upvotes
1
u/prafandy 5d ago
full disclosure, I made this, so take it with a grain of salt: alloyhtml.com
it's an open source CSS kit (MIT) for server rendered apps, built for pretty much this. the docs page works like a storybook, every component with the markup to copy. menus, dialogs, tabs etc. are native html (popover, details, dialog), so no JS, which is why it plays fine with htmx. alpine would only be for your own stuff.
for agents there's alloyhtml.com/llms.txt, or npx @alloyhtml/css skill drops a skill file in your project. there's also a checker (npx @alloyhtml/css check templates/) that flags any class the agent made up, which was my main problem with AI writing html.
curious what you end up using either way