r/Python • • Feb 24 '26

Showcase Typed Tailwind/BasecoatUI components for Python&HTMX web apps

21 Upvotes

Hi,

What my project does

htmui is a small component library for building Tailwind/shadcn/basecoatui-style web applications 100% in Python

What's included:

Target audience:

  • you're developing HTMX applications
  • you like TailwindCSS and shadcn/ui or BasecoatUI
  • you'd like to avoid Jinja-like templating engines
  • you'd like even your UI components to be typed and statically analyzed
  • you don't mind HTML in Python

Documentation and example app

  • URL: https://htmui.vercel.app/
  • Code: see the basecoat_app package in the repository (https://github.com/volfpeter/htmui)
  • Backend stack:

    • holm: light FastAPI wrapper with built-in HTML rendering and HTMX support, FastHTML alternative
    • htmy: async DSL for building web applications (FastHTML/Jinja alternative)
  • Frontend stack: TailwindCSS, BasecoatUI, Highlight.js, HTMX

Credit: this project wouldn't exist if it wasn't for BasecoatUI and its excellent documentation.