TE
TechEcho
StartseiteTop 24hNeuesteBesteFragenZeigenJobs
GitHubTwitter
Startseite

TechEcho

Eine mit Next.js erstellte Technologie-Nachrichtenplattform, die globale Technologienachrichten und Diskussionen bietet.

GitHubTwitter

Startseite

StartseiteNeuesteBesteFragenZeigenJobs

Ressourcen

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. Alle Rechte vorbehalten.

Show HN: Basecoat – All of the shadcn/ui magic, none of the React

6 Punktevon hunvreusvor etwa 10 Stunden
In a nutshell: Basecoat is a port of shadcn&#x2F;ui to HTML and Tailwind CSS. It&#x27;s a modern, themeable component library; everything from buttons to comboboxes and dialogs.<p>Why? Well, I got sick of React and moved over to a more &quot;old school&quot; stack (Python, HTMX, Alpine.js and Tailwind).<p>The one thing I missed was shadcn&#x2F;ui [1]. Nice defaults, well thought out design system, easy to theme and great to build your own component library with.<p>I didn&#x27;t find the alternatives compelling: Flowbite, Preline and the likes encourage you to copy&#x2F;paste dozens of classes for each element.<p>That&#x27;s not how I use Tailwind. I love the utility-first approach, but I don&#x27;t want walls of classes for each button, form element or tooltip I have in my app.<p>I had been building my own component library for a project I’m working on (a Vercel for Python apps) and realized it may be worth my time to firm things up.<p>Why I think it&#x27;s cool? Well:<p>- No React. Just Tailwind CSS (with a tiny bit of Alpine.js if you choose to). You can use that with whatever stack you want.<p>- Jinja and Nunjucks macros. I hope to support more template engines.<p>- 100% compatible with shadcn&#x2F;ui themes (you can play with the theme select box on the site).<p>- Super easy to install and use (there&#x27;s even a CLI).<p>- Accessible, with ARIA support.<p>- Did I mention no React?<p>Hope some of you find it useful.<p>[1]: <a href="https:&#x2F;&#x2F;ui.shadcn.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ui.shadcn.com&#x2F;</a><p>[2]: <a href="https:&#x2F;&#x2F;v4.shadcn.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;v4.shadcn.com&#x2F;</a> (this is actually the new&#x2F;upcoming version of shadcn&#x2F;ui).

1 comment

drivingmenutsvor etwa 9 Stunden
Not working in Safari. Did you, perchance, test this only in Chrome?<p>A sampling of error messages:<p>- Failed to load resource: Load cannot follow more than 20 redirections<p>- Cross-origin script load denied by Cross-Origin Resource Sharing policy.<p>- TypeError: window.basecoat.registerDialog is not a function. (In &#x27;window.basecoat.registerDialog(Alpine)&#x27;, &#x27;window.basecoat.registerDialog&#x27; is undefined)<p>- Alpine Expression Error: Can&#x27;t find variable: sidebar<p>and so on and so forth. It just goes downhill from there.
评论 #43926048 未加载